/* Soft depth and category browsing */
:root {
  --card-shadow: 0 3px 6px rgba(26, 26, 36, 0.015), 0 14px 34px rgba(26, 26, 36, 0.055);
  --card-hover-shadow: 0 5px 12px rgba(26, 26, 36, 0.025), 0 24px 48px rgba(26, 26, 36, 0.095);
}

.benefit,
.support-card,
.discover,
.transfer-grid article {
  box-shadow: var(--card-shadow);
  border: 0;
}
/* Keep mobile packshots inside the image area without a tilted crop. */
@keyframes phone-enter-mobile {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Product specifications and direct store */
.bag-link {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 32px;
  min-height: 38px;
  justify-content: center;
}

.bag-link svg {
  width: 21px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.bag-link span {
  font-size: 12px;
  position: absolute;
  right: -7px;
  top: 0;
}

.button:disabled {
  background: #c9c9ce;
  color: #fff;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .global nav {
    gap: 15px;
  }
  .global nav a:nth-child(n+5) {
    display: none;
  }
  .nav-tools {
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .bag-link {
    min-width: 27px;
  }
  .nav-tools {
    gap: 7px;
  }
}
/* News and company pages use the same calm Japanese typography. */
.global nav {
  gap: 23px;
}

#press-result-label {
  font-size: 14px;
  color: #74747a;
  margin: 0 0 28px;
}

@media (min-width: 1201px) and (max-width: 1400px) {
  .global nav {
    gap: 14px;
    font-size: 12px;
  }
  .global {
    gap: 15px;
  }
  .nav-tools {
    gap: 13px;
  }
  .nav-compare {
    font-size: 12px;
  }
}

:root {
  --visual-ink: #17171a;
  --visual-muted: #77777c;
}

.cinema-copy :is(h1, h2) {
  font-size: clamp(58px, 6.8vw, 96px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 20px 0 24px;
  font-weight: 650;
}
@media (max-width: 760px) {
  .cinema-copy :is(h1, h2) {
    font-size: 53px;
  }
}

/* Headlines are edited separately from technical facts, so one-character overflow never drives the layout. */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

p,
li,
dd {
  text-wrap: pretty;
}

.section-heading > a,
.card-actions .button,
.store-card-actions .button {
  white-space: nowrap;
}

.section-heading h2 {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .global nav {
    display: none !important;
  }
  .global .menu-button {
    display: grid;
  }
  .global .nav-tools {
    margin-left: auto;
  }
  .global {
    gap: 20px;
    justify-content: space-between;
  }
}
@media (max-width: 760px) {
  .statement h2 {
    font-size: 34px !important;
    line-height: 1.3;
  }
  .switch-banner h2,
  .switch-hero h1 {
    font-size: 29px;
    line-height: 1.3;
  }
}

@keyframes ribbon-drift {
  from {
    transform: translateX(-4%) rotate(-24deg);
  }
  to {
    transform: translateX(4%) rotate(-19deg);
  }
}
@media (max-width: 760px) {
  .switch-banner h2,
  .switch-hero h1 {
    font-size: clamp(22px, 6.3vw, 29px);
  }
}
@media (max-width: 360px) {
  .cinema-copy :is(h1, h2) {
    font-size: 40px;
  }
  .section-heading h2,
  .section h2 {
    font-size: 26px;
  }
  .switch-banner h2,
  .switch-hero h1 {
    font-size: 21px;
  }
}
@media (max-width: 360px) {
  .statement h2 {
    font-size: 26px !important;
  }
}

#phone-results {
  scroll-margin-top: 62px;
}
.global .nav-compare {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .global {
    padding-inline: 16px;
    gap: 8px;
  }
  .global .brand {
    flex-shrink: 0;
  }
  .global .nav-tools {
    gap: 5px;
    flex-shrink: 0;
  }
  .global .brand-logo {
    width: 112px;
  }
}

@media (min-width: 761px) {
  .switch-hero h1,
  .switch-banner h2 {
    font-size: clamp(32px, 4.2vw, 64px);
  }
}

@keyframes signature-arrive {
  from {
    opacity: 0;
    transform: translateY(35px) rotate(15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(11deg);
  }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .detail-hero:is([data-product=buds2plus],
  [data-product=edge70fusion],
  [data-product=g66j],
  [data-product=soundflow],
  [data-product=watch],
  [data-product=parker]) h1 {
    font-size: clamp(28px, 3.8vw, 44px);
  }
}

@keyframes spec-focus-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes performance-panel-in {
  from {
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes performance-scene-in {
  from {
    opacity: 0.4;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.migration-nav,
.help-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(24px, (100vw - 1240px) / 2);
  background: #fff;
  border-bottom: 1px solid #e5e5e9;
  font-size: 15px;
}

.migration-nav > span,
.help-nav > a {
  font-weight: 650;
}

.migration-nav > div,
.help-nav > div {
  display: flex;
  gap: 20px;
  align-items: center;
}

.migration-nav a,
.help-nav a {
  white-space: nowrap;
}

.migration-nav a[aria-current],
.help-nav a[aria-current] {
  color: #315bbc;
  font-weight: 650;
}

.migration-nav a[aria-current] {
  background: #edf1f8;
  border-radius: 22px;
  padding: 10px 18px;
}

.android-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 30px;
  background: #f4f5f7;
  padding: 72px max(28px, (100vw - 1240px) / 2);
  min-height: 580px;
}

.android-hero h1 {
  font-size: clamp(32px, 3.7vw, 54px);
  line-height: 1.25;
  letter-spacing: -0.045em;
  word-break: normal;
  text-wrap: balance;
}

.android-hero p {
  line-height: 1.9;
}

.android-hero-art {
  text-align: center;
  background: radial-gradient(ellipse, #e0e7f0 0, transparent 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.android-hero-art img {
  width: min(100%, 410px);
  height: 410px;
  object-fit: contain;
}

.android-hero-art span {
  font-size: 14px;
  color: #626975;
  margin: 12px;
}

.android-config {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  background: #f5f5f7;
  border-radius: 30px;
  padding: 44px;
}

.android-controls {
  display: grid;
  gap: 25px;
}

.android-controls label,
.repair-layout aside > label,
.contact-preparation > label,
.help-model-label,
.help-search-label {
  display: grid;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.android-controls select,
.repair-layout select,
.contact-preparation select,
.help-model-label select,
.help-search-label input,
.contact-preparation textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d4dc;
  border-radius: 12px;
  background: white;
  padding: 14px 16px;
  font: inherit;
  color: #1d1d1f;
  font-weight: 400;
  line-height: 1.5;
}

.android-controls fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.android-controls legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.choice-pills {
  display: flex;
  gap: 10px;
}

.choice-pills label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5d8df;
  border-radius: 24px;
  padding: 12px 20px;
  background: #fff;
  cursor: pointer;
}

.choice-pills label:has(input:checked) {
  border-color: #355db8;
  background: #e8eef9;
}

.android-advice {
  align-self: center;
}

.android-advice h3 {
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.android-advice p {
  line-height: 1.9;
}

.help-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.help-step {
  background: #f5f5f7;
  border-radius: 26px;
  padding: 35px 30px;
}

.soft .help-step {
  background: white;
}

.help-step > span,
.help-home-card > span {
  color: #8b8d95;
  font-size: 14px;
}

.help-step h3 {
  font-size: 25px;
  line-height: 1.35;
  text-wrap: balance;
  letter-spacing: -0.04em;
}

.help-step p,
.help-tiles p {
  font-size: 16px;
  line-height: 1.9;
  color: #65656d;
}

.help-note {
  font-size: 13px;
  color: #74747c;
  line-height: 1.9;
  margin-top: 25px;
}

.help-note a {
  color: #315bbc;
  text-decoration: underline;
}

.help-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.help-tiles article {
  background: #f5f5f7;
  border-radius: 25px;
  padding: 35px;
}

.soft .help-tiles article {
  background: #fff;
}

.help-tiles h3 {
  font-size: 25px;
  letter-spacing: -0.035em;
}

.help-details {
  max-width: 1100px;
  margin-inline: auto;
}

.help-details > h2 {
  font-size: 34px;
  letter-spacing: -0.04em;
}

.help-details details {
  border-bottom: 1px solid #dedee2;
  padding: 24px 0;
}

.help-details summary {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  padding-right: 32px;
  position: relative;
  text-wrap: balance;
}

.help-details summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  font-weight: 400;
}

.help-details details[open] summary::after {
  content: "−";
}

.help-details details p {
  max-width: 880px;
  color: #65656d;
  font-size: 16px;
  line-height: 1.9;
}

.help-details details a {
  display: inline-block;
  margin: 8px 20px 0 0;
  color: #315bbc;
  font-size: 15px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.android-checklist {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 65px;
  background: #f5f5f7;
}

.android-checklist h2 {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.android-checklist p {
  line-height: 1.9;
  color: #65656d;
}

.android-checklist progress {
  width: 100%;
  height: 7px;
  accent-color: #315bbc;
  display: block;
  margin: 15px 0 25px;
}

.help-check {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fff;
  padding: 20px 22px;
  border-radius: 15px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.65;
  cursor: pointer;
}

.help-check input {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  accent-color: #315bbc;
}

.help-check:has(input:checked) {
  background: #e8eef7;
}

.help-finish {
  text-align: center;
  padding: 90px 24px;
}

.help-finish h2 {
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.help-finish p {
  color: #6f6f75;
  line-height: 1.9;
}

.help-finish .actions {
  justify-content: center;
}

.help-search-label input:focus,
.help-model-label select:focus,
.android-controls select:focus,
.contact-preparation textarea:focus {
  outline: 2px solid #315bbc;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .android-hero h1 {
    font-size: 38px;
  }
  .android-config {
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .help-nav,
  .migration-nav {
    padding: 16px 20px;
    gap: 15px;
    font-size: 13px;
  }
  .migration-nav > div {
    gap: 8px;
  }
  .migration-nav a[aria-current] {
    padding: 8px 12px;
  }
  .migration-nav > span {
    max-width: 100px;
    line-height: 1.6;
  }
  .android-hero {
    grid-template-columns: 1fr;
    padding: 45px 24px 30px;
    gap: 15px;
    text-align: center;
  }
  .android-hero h1 {
    font-size: clamp(29px, 7.2vw, 41px);
  }
  .android-hero p {
    font-size: 15px;
  }
  .android-hero p br {
    display: none;
  }
  .android-hero-art img {
    width: 280px;
    height: 280px;
  }
  .android-hero-art span {
    font-size: 12px;
  }
  .android-config {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 25px;
    border-radius: 24px;
  }
  .android-advice h3 {
    font-size: 27px;
  }
  .help-steps {
    grid-template-columns: 1fr;
  }
  .help-step {
    padding: 28px;
  }
  .help-step h3 {
    font-size: 24px;
  }
  .help-tiles {
    grid-template-columns: 1fr;
  }
  .help-tiles article {
    padding: 28px;
  }
  .help-details summary {
    font-size: 19px;
  }
  .help-details > h2 {
    font-size: 29px;
  }
  .android-checklist {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .android-checklist h2 {
    font-size: 37px;
  }
  .help-check {
    padding: 17px;
    font-size: 15px;
    gap: 13px;
  }
  .help-finish {
    padding: 70px 24px;
  }
  .help-finish h2 {
    font-size: 36px;
  }
  .help-finish p br {
    display: none;
  }
}
@media (max-width: 760px) {
  .android-hero h1 {
    font-size: clamp(33px, 8.5vw, 44px);
  }
}
.migration-nav > span {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .android-migration .section-heading h2 {
    font-size: clamp(27px, 7vw, 38px);
    line-height: 1.35;
    text-wrap: balance;
  }
}

[hidden]:not([hidden=until-found]) {
  display: none !important;
}
/* 2026-10-22: Align Android migration hero typography/spacing with iPhone migration hero. */
.android-hero {
  grid-template-columns: 1.35fr 0.8fr;
  padding: 85px 8vw;
  min-height: 760px;
  gap: 30px;
}
.android-hero h1 {
  font-size: clamp(36px, 4.8vw, 70px);
  line-height: 1.26;
  letter-spacing: -0.06em;
  margin: 26px 0;
}
.android-hero > div:first-child > p:not(.eyebrow) {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 34px;
}
.android-hero .eyebrow {
  font-size: 20px;
  color: #252d39;
}
.android-hero-art img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}
@media (max-width: 1000px) and (min-width: 761px) {
  .android-hero {
    padding: 60px 6vw;
    min-height: 700px;
  }
  .android-hero h1 {
    font-size: 46px;
  }
}
@media (max-width: 760px) {
  .android-hero {
    display: flex;
    flex-direction: column;
    padding: 40px 22px 30px;
    min-height: 890px;
    text-align: center;
    gap: 20px;
  }
  .android-hero h1 {
    font-size: 37px;
    line-height: 1.3;
    margin: 26px 0;
  }
  .android-hero > div:first-child > p:not(.eyebrow) {
    font-size: 16px;
    margin-bottom: 34px;
  }
  .android-hero .eyebrow {
    font-size: 18px;
  }
  .android-hero-art img {
    width: 100%;
    height: 330px;
  }
}

/* 2026-10-22: Visually balance Android hero title with the iPhone migration hero. */
@media (min-width: 1001px) {
  .android-hero h1 {
    font-size: clamp(36px, 4.3vw, 62px);
    line-height: 1.28;
    letter-spacing: -0.05em;
    font-weight: 700;
  }
}
