/* PawLife home v2 (English root only, body.page-v2). Loaded after style.css.
   Direction A (the seam between day and evening) with B's giant ring and
   close-up tiles. Tokens first; every colour below is a token. */

.page-v2 {
  --day: #F6EFE4;
  --day-2: #EDE3D3;
  --surface-2: #FFFBF4;
  --eve: #2A2018;
  --eve-2: #1A1410;
  --ink: #1A1410;
  --ink-soft: #5E5246;
  --on-eve: #F6EFE4;
  --on-eve-soft: #D9CDBB;
  --act: #C67139;
  --act-hover: #D27D45;
  --on-act: #1A1410;
  --coral: #E08A4E;
  --coral-track: #EBD9C6;
  --sage: #A9B78C;
  --sage-ring: #8FA06E;
  --olive: #3D472B;
  --bezel: #1A1410;
  --badge: #000000;
  --on-badge: #FFFFFF;
  --focus: #C67139;
  --chat-bg: #F5F0E5;

  --face: "Comfortaa", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* five sizes */
  --t-hero: clamp(32px, 6.9vw, 88px);
  --t-head: clamp(28px, 4.2vw, 56px);
  --t-state: clamp(21px, 2.2vw, 28px);
  --t-body: 18px;
  --t-small: 16px;

  --m: clamp(16px, 3.2vw, 40px);
  --max: 1240px;
  --gap-section: clamp(80px, 9vw, 128px);
  --col-gap: clamp(16px, 2.4vw, 36px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  background: var(--day);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  .page-v2 {
    --day: #1A1410;
    --day-2: #231C16;
    --surface-2: #2A2018;
    --eve: #2E2620;
    --eve-2: #120E0B;
    --ink: #F5EDE0;
    --ink-soft: #D2C0A9;
    --on-eve: #F5EDE0;
    --on-eve-soft: #DCCDB9;
    --act: #E08A4E;
    --act-hover: #EA9A62;
    --coral-track: #3A2E24;
    --sage: #4E5A38;
    --sage-ring: #9BAE79;
    --bezel: #0B0907;
    --focus: #E08A4E;
    --chat-bg: #161410;
  }
  /* Cream bands in the dark theme: the light tokens again, so the page
     breathes between evening sections (food check, pricing). */
  .page-v2 .v2-cream {
    --day: #F6EFE4; --day-2: #EDE3D3; --surface-2: #FFFBF4;
    --ink: #1A1410; --ink-soft: #5E5246; --act: #9E521F; --focus: #9E521F;
    --bezel: #1A1410; --badge: #000000; --on-badge: #FFFFFF;
    background: var(--day); color: var(--ink);
  }
}

.page-v2 *:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:where(.page-v2) :is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.page-v2) :is(ul, ol) { padding: 0; list-style: none; }
:where(.page-v2) img { display: block; max-width: 100%; height: auto; }
:where(.page-v2) a { color: inherit; }
.page-v2 .main > section { max-width: none; padding: 0; margin: 0; }
:where(.page-v2) :is(h1, h2, h3) { font-family: var(--face); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }

/* Shared */
.v2-h2 { font-size: var(--t-head); max-width: 18ch; }
.v2-lead { margin-top: 24px; max-width: 60ch; }
:where(.page-v2) p { max-width: 65ch; }
.v2-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .v2-link:hover { text-decoration-color: var(--act); } }

.v2-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 22px 8px 16px;
  border-radius: 14px; background: var(--badge); color: var(--on-badge); text-decoration: none;
  transition: transform 140ms var(--ease-out);
}
.v2-badge:active { transform: scale(0.97); }
.v2-badge__logo { width: 28px; height: 28px; fill: currentColor; flex: none; }
.v2-badge__text { display: grid; line-height: 1.1; text-align: left; }
.v2-badge__small { font-size: var(--t-small); }
.v2-badge__big { font: 600 var(--t-state)/1.05 var(--text); letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) { .page-v2 { --badge: #FFFFFF; --on-badge: #000000; } }

/* A card cut out of a frame, in the same bezel as the phones */
.v2-shot { width: min(100%, 380px); padding: 8px; border-radius: 30px; background: var(--bezel); }
.v2-shot__pic { display: block; overflow: hidden; border-radius: 22px; background: var(--day); }
.v2-shot__img { width: 100%; height: auto; }

/* Phone: exact iPhone 17 Pro screen ratio, 402 x 874, inside a CSS bezel */
.v2-phone {
  --w: 300px;
  position: relative; width: var(--w); max-width: 100%;
  padding: calc(var(--w) * 0.032); border-radius: calc(var(--w) * 0.168);
  background: var(--bezel);
}
.v2-phone::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.058);
  width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.086);
  border-radius: 999px; background: var(--bezel); transform: translateX(-50%);
}
.v2-phone__pic { display: block; aspect-ratio: 402 / 874; overflow: hidden; border-radius: calc(var(--w) * 0.136); background: var(--day); }
.v2-phone__img { width: 100%; height: 100%; }
.v2-phone--stack .v2-phone__pic { position: relative; }
.v2-phone--stack { display: grid; }
.v2-stack__layer { grid-area: 1 / 1; opacity: 0; transition: opacity 250ms var(--ease-out); }
.v2-stack__layer.is-active { opacity: 1; }

/* Hero: the words and the App Store badge on the left, the phone in one ring on the right */
.page-v2 .main > .v2-hero {
  position: relative; overflow: hidden; background: var(--day); color: var(--ink);
  display: grid; align-items: center;
  grid-template-columns: minmax(var(--m), 1fr) minmax(0, 660px) minmax(0, 580px) minmax(var(--m), 1fr);
  min-height: min(calc(100svh - 64px), 900px);
}
.v2-hero__copy { grid-column: 2; position: relative; z-index: 1; padding: clamp(40px, 5vw, 80px) var(--col-gap) clamp(40px, 5vw, 80px) 0; }
.v2-hero__title { font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.04em; }
.v2-hero__line { display: block; white-space: nowrap; }
.v2-hero__lead { margin-top: 28px; max-width: 46ch; }
.v2-hero__act { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.v2-hero__rating { max-width: 34ch; font-size: var(--t-small); color: var(--ink-soft); }
.v2-hero__rating strong { color: var(--ink); }
.v2-hero__media { grid-column: 3; position: relative; display: grid; place-items: center; padding-block: 40px; isolation: isolate; }
/* One ring, centred on the phone and smaller than the hero, so nothing cuts it */
.v2-ring { position: absolute; left: 50%; top: 50%; width: min(540px, 100%); height: auto; aspect-ratio: 1; z-index: -1; transform: translate(-50%, -50%) rotate(-90deg); pointer-events: none; }
.v2-ring circle { fill: none; stroke-width: 14; }
.v2-ring__track { stroke: var(--coral-track); }
.v2-ring__arc { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 64 100; stroke-dashoffset: 0; }
.v2-phone--hero { --w: min(320px, calc((100svh - 160px) * 0.43)); }

/* What you get tonight: the evening band right under the hero */
.page-v2 .main > .v2-tonight-band { background: var(--eve); color: var(--on-eve); padding: clamp(56px, 6vw, 88px) var(--m); }
.v2-tonight-band__inner { max-width: var(--max); margin-inline: auto; }
.v2-tonight-band__title { font-size: var(--t-state); }
.v2-tonight { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.v2-tonight__name { font-size: var(--t-body); letter-spacing: -0.01em; line-height: 1.3; color: var(--coral); }
.v2-tonight__text { margin-top: 8px; color: var(--on-eve-soft); }

/* Tour: text on the left, one frame that stays */
.page-v2 .main > .v2-tour { padding-block: var(--gap-section); }
.v2-tour__head, .v2-tour__body { max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.v2-tour__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); margin-top: 32px; }
.v2-step { min-height: 42svh; display: flex; flex-direction: column; justify-content: center; max-width: 34em; padding-block: 24px; }
.v2-step__title { font-size: var(--t-state); line-height: 1.3; }
.v2-step__text { margin-top: 14px; max-width: 46ch; }
.v2-step__media { display: none; }
.v2-tour__stage { position: relative; }
.v2-tour__sticky {
  --tw: min(320px, calc((100svh - 140px) * 0.43));
  position: sticky; top: calc(50svh - var(--tw) * 1.119); height: calc(var(--tw) * 2.238);
  display: grid; place-items: center;
}
.v2-tour__sticky .v2-phone { --w: var(--tw); }
.v2-tour__sticky .v2-shot { width: calc(var(--tw) * 1.2); }
.v2-tour__sticky .v2-stack__layer { grid-area: 1 / 1; }
/* Inactive steps dim by colour, not opacity, so they stay readable (ink-soft is 4.5:1 or better) */
.js-tour .v2-step { color: var(--ink-soft); transition: color 200ms ease; }
.js-tour .v2-step.is-active { color: var(--ink); }

/* Food check and the label scanner: two frames side by side */
.page-v2 .main > .v2-pair { background: var(--day-2); padding: var(--gap-section) var(--m); }
.v2-pair__inner { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) var(--col-gap); }
.v2-pair__item { display: grid; align-content: start; }
.v2-pair__title { font-size: var(--t-state); line-height: 1.3; }
.v2-pair__text { margin-top: 14px; max-width: 44ch; }
.v2-pair__frame { margin-top: 36px; }
.v2-pair__frame .v2-phone { --w: 300px; }

/* Evening round: the evening field, steps on the left, the phone on the right */
.page-v2 .main > .v2-round { background: var(--eve); color: var(--on-eve); }
.v2-round__pin { max-width: var(--max); margin-inline: auto; padding: var(--gap-section) var(--m); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: center; }
.v2-round__steps { margin-top: 40px; display: grid; gap: 8px; max-width: 34em; }
.v2-roundstep {
  display: grid; gap: 4px; width: 100%; text-align: left; padding: 16px 20px; border: 0; border-radius: 18px;
  background: transparent; color: var(--on-eve-soft); font: inherit; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}
.v2-roundstep:active { transform: scale(0.98); }
.v2-roundstep__name { font: 700 var(--t-state)/1.3 var(--face); letter-spacing: -0.02em; }
.v2-roundstep__text { font-size: var(--t-small); line-height: 1.5; }
.v2-roundstep.is-active { background: var(--eve-2); color: var(--on-eve); }
.v2-roundstep.is-active .v2-roundstep__name { color: var(--coral); }
@media (hover: hover) and (pointer: fine) { .v2-roundstep:hover { color: var(--on-eve); } }
.v2-round__stage .v2-phone { --w: min(320px, calc((100svh - 140px) * 0.43)); margin-inline: auto; }
.js-pin .page-v2 .main > .v2-round { height: 210svh; }
.js-pin .v2-round__pin { position: sticky; top: 0; min-height: 100svh; padding-block: 72px; }

/* Assistant: one real chat frame; the answer's blocks come in one by one (home.js) */
.page-v2 .main > .v2-assistant { max-width: var(--max); margin-inline: auto; padding: var(--gap-section) var(--m); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--col-gap); align-items: center; }
.v2-knows { margin-top: 48px; display: grid; gap: 28px; max-width: 46ch; }
.v2-knows dt { font: 700 var(--t-state)/1.3 var(--face); letter-spacing: -0.02em; }
.v2-knows dd { margin: 8px 0 0; }
.v2-assistant__proof { display: grid; justify-items: center; gap: 20px; }
.v2-phone--chat { --w: min(360px, calc((100svh - 120px) * 0.43)); }
.v2-assistant__note { font-size: var(--t-small); color: var(--ink-soft); max-width: 40ch; text-align: center; }
.v2-reveal { position: absolute; inset: calc(var(--w) * 0.032); border-radius: calc(var(--w) * 0.136); overflow: hidden; pointer-events: none; }
.v2-reveal__mask { position: absolute; left: 0; right: 0; background: var(--chat-bg); opacity: 0; }
.v2-reveal__mask--1 { top: 26.09%; height: 11.67%; }
.v2-reveal__mask--2 { top: 38.22%; height: 16.82%; }
.v2-reveal__mask--3 { top: 55.15%; height: 19.79%; }
.v2-reveal__mask--4 { top: 75.17%; height: 11.10%; }
.v2-reveal__mask--5 { top: 86.50%; height: 2.97%; }
.v2-reveal.is-veiled .v2-reveal__mask { opacity: 1; }
/* Five blocks, 200 ms each, 110 ms apart: the whole answer lands in 640 ms */
.v2-reveal.is-open .v2-reveal__mask { opacity: 0; transition: opacity 200ms var(--ease-out); }
.v2-reveal.is-open .v2-reveal__mask--2 { transition-delay: 110ms; }
.v2-reveal.is-open .v2-reveal__mask--3 { transition-delay: 220ms; }
.v2-reveal.is-open .v2-reveal__mask--4 { transition-delay: 330ms; }
.v2-reveal.is-open .v2-reveal__mask--5 { transition-delay: 440ms; }

/* Close-up tiles: one grid, one surface, the same band of every screen */
.page-v2 .main > .v2-board { background: var(--day-2); padding: var(--gap-section) var(--m); }
.v2-board__inner { max-width: var(--max); margin-inline: auto; }
.v2-board__tiles { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.v2-tile { display: flex; flex-direction: column; gap: 20px; padding: 16px 16px 24px; border-radius: 28px; background: var(--surface-2); color: var(--ink); }
.v2-tile__crop { border-radius: 18px; overflow: hidden; background: var(--day); }
.v2-tile__img { width: 100%; height: auto; }
.v2-tile__cap { padding-inline: 8px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-soft); }
.v2-tile__cap strong { display: block; font: 700 var(--t-state)/1.3 var(--face); letter-spacing: -0.02em; margin-bottom: 4px; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .v2-tile__img { transition: transform 200ms ease; }
  .v2-tile:hover .v2-tile__img { transform: scale(1.03); }
}

/* Proof */
.page-v2 .main > .v2-proof { max-width: var(--max); margin-inline: auto; padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--col-gap); align-items: end; }
.v2-proof__line { grid-column: 1 / -1; margin-top: 56px; font: 700 var(--t-state)/1.3 var(--face); letter-spacing: -0.02em; max-width: 40ch; }

/* Doubts: three fields side by side */
.page-v2 .main > .v2-doubts { padding-top: 0; }
.v2-doubts__title { max-width: var(--max); margin: 0 auto 48px; padding-inline: var(--m); }
.v2-doubts__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-doubt { padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px) clamp(48px, 6vw, 88px); min-height: 360px; }
.v2-doubt__q { font-size: var(--t-state); }
.v2-doubt__a { margin-top: 20px; max-width: 34ch; }
.v2-doubt__a a { font-weight: 600; text-underline-offset: 4px; }
.v2-doubt--sage { background: var(--sage); }
.v2-doubt--night { background: var(--eve); color: var(--on-eve); }
.v2-doubt--coral { background: var(--coral); color: #1A1410; }

/* Pricing: one sentence */
.page-v2 .main > .v2-pricing { padding: var(--gap-section) max(var(--m), calc((100% - var(--max)) / 2 + var(--m))); }
.v2-pricing__title { font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.04em; }
.v2-pricing__plans { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.v2-plan { background: var(--surface-2); border-radius: 28px; padding: clamp(24px, 3vw, 40px); }
.v2-plan__name { font-size: var(--t-state); }
.v2-plan__list { margin-top: 16px; }
.v2-pricing__act { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.v2-pricing__note { font-size: var(--t-small); color: var(--ink-soft); max-width: 44ch; }

/* FAQ: large questions */
.page-v2 .main > .v2-faq { max-width: var(--max); margin-inline: auto; padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.v2-faq__title { grid-column: 1 / span 4; }
.v2-faq__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.v2-faq__item { background: var(--surface-2); border: 0; border-radius: 22px; padding: 0; }
.v2-faq__item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font: 700 var(--t-state)/1.25 var(--face); letter-spacing: -0.02em; }
.v2-faq__item summary::-webkit-details-marker { display: none; }
.v2-faq__item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-family: var(--text); font-weight: 400; transition: transform 200ms var(--ease-out); }
.v2-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.v2-faq__item .faq__answer { padding: 0 24px 24px; margin: 0; color: var(--ink); max-width: 60ch; }

/* Blog */
.page-v2 .main > .v2-blog { background: var(--day-2); padding: var(--gap-section) var(--m); }
.v2-blog__head, .v2-posts, .v2-blog__more { max-width: var(--max); margin-inline: auto; }
.v2-posts { margin-top: 56px; display: grid; gap: 8px; }
.v2-post__link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px var(--col-gap); padding: 28px; border-radius: 22px; text-decoration: none; background: var(--day); transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .v2-post__link:hover { background: var(--surface-2); } .v2-post__link:hover .v2-post__title { color: var(--act); } }
.v2-post__title { font: 700 var(--t-state)/1.3 var(--face); letter-spacing: -0.02em; transition: color 200ms ease; }
.v2-post__desc { font-size: var(--t-small); line-height: 1.5; color: var(--ink-soft); }
.v2-blog__more { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* Close */
.page-v2 .main > .v2-close { background: var(--eve); color: var(--on-eve); padding: var(--gap-section) var(--m); }
.v2-close__title, .v2-close__row { max-width: var(--max); margin-inline: auto; }
.v2-close__title { font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.04em; max-width: 9em; }
.v2-close__row { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.v2-close__text { max-width: 40ch; }

/* Header and footer on this page: the same shell, set to the page scale */
.page-v2 .site-header { border: 0; background: var(--day); }
.page-v2 .site-header__inner { max-width: var(--max); padding-inline: var(--m); padding-block: 14px; }
.page-v2 .site-header__brand { font-size: var(--t-state); color: var(--ink); }
.page-v2 .site-nav__link { color: var(--ink); font-size: var(--t-small); font-weight: 600; }
.page-v2 .site-header__cta { background: var(--ink); color: var(--day); font-size: var(--t-small); padding: 12px 18px; }
@media (hover: hover) and (pointer: fine) { .page-v2 .site-nav__link:hover { color: var(--act); } .page-v2 .site-header__cta:hover { background: var(--act); color: var(--on-act); } }
/* Features menu (shared markup and behaviour in style.css), in this page's colours */
.page-v2 .nav-menu__list { background: var(--day-2); border-radius: 18px; }
.page-v2 .nav-menu__link { color: var(--ink); font-size: var(--t-small); }
@media (hover: hover) and (pointer: fine) { .page-v2 .nav-menu__link:hover { background: var(--surface-2); } }
/* Language menu (shared markup and behaviour in style.css), in this page's colours */
.page-v2 .lang-menu__current { color: var(--ink); font-size: var(--t-small); }
.page-v2 .lang-menu__current:hover, .page-v2 .lang-menu[open] .lang-menu__current { background: var(--day-2); }
.page-v2 .lang-menu__list { background: var(--day-2); border-radius: 18px; }
.page-v2 .lang-menu__link { color: var(--ink); font-size: var(--t-small); }
.page-v2 .lang-menu__link:hover, .page-v2 .lang-menu__link[aria-current="page"] { background: var(--surface-2); }
.page-v2 .site-footer { margin-top: 0; border: 0; background: var(--eve-2); color: var(--on-eve-soft); font-size: var(--t-small); }
.page-v2 .site-footer__inner, .page-v2 .site-footer__legal { max-width: var(--max); padding-inline: var(--m); }
.page-v2 .site-footer__heading, .page-v2 .site-footer__logo { color: var(--on-eve); font-size: var(--t-small); }
.page-v2 .site-footer__link { color: var(--on-eve-soft); }
.page-v2 .site-footer__legal { font-size: var(--t-small); color: var(--on-eve-soft); }
.page-v2 .site-footer__tagline { margin-top: 8px; }

/* Motion: entrances (only for things below the fold, set by home.js) */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal { opacity: 0; transform: translateY(12px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); transition-delay: calc(var(--i, 0) * 30ms); }
  .will-reveal.is-in { opacity: 1; transform: none; }
  /* The ring is the hero, so "first view" is the first paint: draw once, no script. */
  .v2-ring__arc { animation: v2-ring-arc 800ms var(--ease-out) 150ms both; }
}
@keyframes v2-ring-arc { from { stroke-dashoffset: 64; } }
@media (prefers-reduced-motion: reduce) {
  .v2-stack__layer, .v2-step, .v2-roundstep, .v2-reveal__mask, .v2-tile__img { transition: none !important; }
  .v2-tile:hover .v2-tile__img { transform: none; }
}

/* Tablet */
@media (max-width: 1060px) {
  .page-v2 .main > .v2-hero { grid-template-columns: var(--m) minmax(0, 1fr) var(--m); min-height: 0; }
  .v2-hero__copy { grid-column: 2; padding-right: 0; }
  .v2-hero__media { grid-column: 2; padding-block: 8px 64px; }
  .v2-phone--hero { --w: min(300px, 70vw); }
  .v2-tonight { grid-template-columns: 1fr; gap: 16px; }
  .page-v2 .main > .v2-assistant { grid-template-columns: 1fr; }
  .v2-board__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-faq__title { grid-column: 1 / -1; }
  .v2-faq__list { grid-column: 1 / -1; }
  .v2-post__link { grid-template-columns: 1fr; }
  /* The sticky tour frame needs ~400 px beside the text; below this width each step carries its own frame */
  .v2-tour__body { grid-template-columns: 1fr; margin-top: 24px; }
  .v2-tour__stage { display: none; }
  .v2-step, .js-tour .v2-step { min-height: 0; color: var(--ink); padding-block: 28px; max-width: 46em; }
  .v2-step__media { display: block; margin-top: 24px; }
  .v2-step__media .v2-phone { --w: min(300px, 72vw); }
  .v2-round__stage .v2-phone { --w: min(300px, 36vw, calc((100svh - 140px) * 0.43)); }
}
/* Five links, the language menu and the App Store button stop fitting one row here */
@media (max-width: 980px) { .page-v2 .site-nav { display: none; } .page-v2 .site-header__inner { flex-wrap: nowrap; } }

/* Phone: one column; the tour shows each frame under its words */
@media (max-width: 760px) {
  .page-v2 { --t-body: 17px; --t-small: 15px; }
  .page-v2 .site-nav { display: none; }
  .page-v2 .site-header__inner { flex-wrap: nowrap; gap: 8px; padding-block: 10px; }
  .page-v2 .site-header__brand { font-size: var(--t-body); }
  .page-v2 .site-header__cta { padding: 10px 14px; white-space: nowrap; }
  .v2-hero__copy { padding: 28px 0 8px; }
  .v2-hero__lead { margin-top: 18px; }
  .v2-hero__act { margin-top: 24px; gap: 12px; }
  .v2-badge { width: 100%; justify-content: center; }
  .v2-hero__media { padding-block: 40px 56px; }
  .v2-ring { width: min(400px, 96vw); }
  .v2-phone--hero { --w: min(260px, 66vw); }
  .v2-tour__body { grid-template-columns: 1fr; margin-top: 24px; }
  .v2-tour__stage { display: none; }
  .v2-step, .js-tour .v2-step { min-height: 0; color: var(--ink); padding-block: 28px; max-width: none; }
  .v2-step__media { display: block; margin-top: 24px; }
  .v2-step__media .v2-phone { --w: min(280px, 72vw); margin-inline: auto; }
  .v2-step__media .v2-shot { margin-inline: auto; }
  .v2-pair__inner { grid-template-columns: 1fr; }
  .v2-pair__frame { margin-top: 24px; display: grid; justify-items: center; }
  .v2-pair__frame .v2-phone { --w: min(280px, 72vw); }
  .v2-round__pin { grid-template-columns: 1fr; }
  .v2-round__stage { order: -1; }
  .v2-round__stage .v2-phone { --w: min(260px, 66vw); }
  .v2-round__steps { margin-top: 28px; }
  .v2-roundstep { padding: 14px 16px; }
  .v2-phone--chat { --w: min(320px, 82vw); }
  .v2-board__tiles { grid-template-columns: 1fr; margin-top: 28px; }
  .v2-proof__line { margin-top: 32px; }
  .v2-doubts__fields { grid-template-columns: 1fr; }
  .v2-doubt { min-height: 0; }
  .v2-pricing__plans { grid-template-columns: 1fr; }
  .v2-close__row { margin-top: 36px; }
}
/* Narrow phones: brand, flag and the App Store button share one row */
@media (max-width: 400px) {
  .page-v2 .site-header__inner { gap: 4px; padding-inline: 12px; }
  .page-v2 .site-header__logo { width: 30px; height: 30px; }
  .page-v2 .site-header__cta { font-size: 13px; padding: 9px 10px; }
}
.page-v2 .site-header__brand { flex: none; }
@media (max-width: 370px) { .page-v2 .site-header__name { display: none; } }

/* Back to top (shared, style.css) in this page's accent */
.page-v2 .to-top { background: var(--coral); color: #1A1410; }

/* Rating card */
.v2-rating { grid-column: 1 / span 7; display: inline-flex; align-items: center; gap: 28px; padding: 28px 36px; border-radius: 28px; background: var(--surface-2); color: inherit; text-decoration: none; justify-self: start; transition: transform .14s ease-out, background-color .2s ease-out; }
@media (hover: hover) and (pointer: fine) { .v2-rating:hover { background: var(--day-2); } }
.v2-rating:active { transform: scale(.97); }
.v2-rating__num { font: 700 clamp(64px, 9vw, 112px)/0.9 var(--face); letter-spacing: -0.04em; }
.v2-rating__body { display: grid; gap: 10px; }
.v2-rating__stars { width: clamp(150px, 16vw, 210px); height: auto; display: block; }
.v2-rating__empty { fill: currentColor; opacity: .18; }
.v2-rating__full { fill: var(--coral, #E08A4E); }
.v2-rating__meta { font-size: 1rem; opacity: .75; }
@media (max-width: 640px) { .v2-rating { grid-column: 1 / -1; gap: 18px; padding: 22px 24px; } }
@media (prefers-reduced-motion: reduce) { .v2-rating { transition: none; } }
