/* Page CSS: only what sits inside a visual (the phone frames) and the kit lacks. */
.logo-img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.nav__logo { gap: 10px; }
.rows .rows__name { font-size: var(--t-card); }

/* the app's own screenshots in a phone-shaped frame, cropped to the part each section is about */
.device { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: #1b1b1b; }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 0); }
.phones { display: grid; gap: var(--gutter); align-content: start; }
.phones--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phones .device { height: var(--dev-h); }
#cards, #faq { --dev-h: min(548px, calc(100svh - 352px)); }
#lists { --dev-h: min(540px, calc(100svh - 360px)); }

/* hero: the wallet screen on the lit ground, cut by the frame's foot; the open barcode over its lower left */
/* sized so the panel's foot cuts below the app's lists, above its floating + button, never through it */
.hero__art > .hero-phone { position: absolute; right: var(--s-8); top: var(--s-8); width: min(372px, 60%); aspect-ratio: 1080 / 2400; }
.hero__art > .hero-card { left: var(--s-6); bottom: var(--s-6); width: min(270px, 44%); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #252624; }
.hero-card img { display: block; width: 100%; height: auto; }

/* under 1280 the barcode stays, but inside the phone's own column so it never spills off the screen it sits on */
@media (max-width: 1279px) {
  .hero__art > .hero-card { left: auto; right: calc(var(--s-8) + 5%); width: 46%; bottom: var(--s-5); }
}
@media (max-width: 1023px) {
  .hero__art > .hero-card { right: auto; left: 50%; translate: -50% 0; width: min(240px, 48%); }
}
@media (max-width: 639px) {
  /* a phone: the kit hides the second piece, but the barcode is the product's payoff, so it shows cropped to its header and bars */
  .hero__art > .ly-piece.hero-card { display: block; width: 56%; top: var(--s-4); bottom: auto; border-radius: 14px; }
  /* one piece on a phone: the wallet under the barcode left only slivers, so the barcode stands alone, cut below its number */
  .hero__art > .hero-phone { display: none; }
}
@media (max-width: 1023px) {
  .hero__art > .hero-phone { right: auto; left: 50%; translate: -50% 0; top: var(--s-6); width: min(300px, 60%); }
  #cards, #faq { --dev-h: auto; }
  .phones .device { aspect-ratio: 3 / 4; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .phones .device { aspect-ratio: 1 / 1; }
  .closing__links .footer__col { grid-column: span 4; }
}
@media (max-width: 639px) {
  .hero__art > .hero-phone { top: var(--s-4); width: 62%; }
  .device { border-radius: 20px; }
}
/* a 320 phone stacks the rows taller than one screen */
@media (max-width: 359px) { #cards { --hm: 2; } }
@media (max-width: 359px) {
  .nav__actions .btn { display: none; }
  .closing__cta .btn--xl { white-space: normal; }
}

/* --- refinement pass --- */
/* the feature splits get the hero's lit panel, so the dark app screens stand off the dark page */
#cards .phones { background: var(--ground-bg); border-radius: var(--r-lg); padding: var(--s-7); height: var(--dev-h); }
#cards .phones .device { height: 100%; border-color: rgba(20, 20, 20, .5); box-shadow: 0 20px 40px -18px rgba(18, 30, 16, .55); }
.device { border-color: rgba(244, 245, 240, .12); }
.hero-phone { box-shadow: 0 28px 56px -24px rgba(18, 30, 16, .6); }
.hero-card { box-shadow: 0 18px 36px -14px rgba(18, 30, 16, .5); }

/* the privacy statement fills its screen as the page's one type moment */
#privacy .mo-wh__text { font-size: clamp(34px, 1.6vw + 28px, 72px); max-width: 17em; line-height: 1.08; text-wrap: balance; }
@media (min-width: 1280px) { #privacy .mo-wh__text { font-size: clamp(46px, 3.4vw, 52px); } }

/* the secondary button needs an edge on the dark ground */
.hero .btn--secondary { box-shadow: inset 0 0 0 1px rgba(244, 245, 240, .22); }

/* browser surfaces in the palette */
::selection { background: #c5fc7a; color: #141414; }
.ground-inverse ::selection { background: #141414; color: #c5fc7a; }
html { scrollbar-color: #3a3b37 #141414; accent-color: #c5fc7a; caret-color: #c5fc7a; }

@media (max-width: 1023px) {
  #cards .phones { height: auto; padding: var(--s-5); }
  #cards .phones .device { height: auto; }
}
@media (max-width: 639px) {
  #cards .phones { padding: var(--s-4); gap: var(--s-3); }
}

/* --- dead bands --- */
/* phone: the statement is set large enough to hold its screen instead of floating in the top third */
@media (max-width: 639px) {
  #privacy .mo-wh__text { font-size: clamp(30px, 9.4vw, 38px); line-height: 1.1; }
  #faq .faq > .faq__item { padding-block: var(--s-5); }
  #faq .grid { row-gap: var(--s-7); }
}

/* the backup line closes the privacy statement: what to do when the phone changes */
#privacy .statement__note { margin-top: var(--s-7); max-width: 40ch; color: var(--ink); }

/* --- the mascot: Pluzy's own character, waving beside the wallet and peeking over the last button --- */
.hero-mascot { position: absolute; left: var(--s-6); top: var(--s-8); width: min(180px, 27%); height: auto; z-index: 1; }
.close__action { position: relative; }
.close__action .btn { position: relative; z-index: 1; }
/* its feet sit behind the button */
.close__mascot { position: absolute; right: 0; bottom: 40%; width: clamp(150px, 16vw, 220px); height: auto; pointer-events: none; }
@media (max-width: 1279px) { .hero-mascot { left: var(--s-5); top: var(--s-6); width: 22%; } }
@media (max-width: 1023px) { .hero-mascot { width: min(150px, 20%); } }
@media (max-width: 639px) {
  .hero-mascot { display: none; }
  /* exactly the right column of the phone's two-tile grid */
  .close__mascot { position: static; display: block; width: calc(50% - var(--s-3) / 2); margin: var(--s-4) 0 -14% auto; }
}

/* --- clarity --- */
/* the Google Play mark leads the download buttons, in the button's own ink */
.play-glyph { width: 1em; height: 1em; flex: none; margin-right: .5em; }
/* the promise gets a real accent on the light band: the app's lime, darkened until it reads on #f4f5f0 */
#privacy { --accent: #3d6e14; }

.footer__lede { line-height: 1.4; }

/* --- privacy beside its proof, close without a dead field --- */
/* the statement keeps seven columns; the app's own privacy screen stands beside it */
#privacy .privacy-side .device { height: min(600px, calc(100svh - 240px)); border-color: rgba(20, 20, 20, .14); box-shadow: 0 24px 48px -22px rgba(20, 20, 20, .35); }
@media (max-width: 1023px) {
  #privacy .grid > .span-8 { grid-column: 1 / -1; }
  /* tablet: the privacy screen sits under the statement, as tall as the screen leaves it */
  #privacy .privacy-side { grid-column: 1 / span 6; }
}
@media (max-width: 639px) { #privacy .privacy-side { display: none; } }

/* one download button everywhere: the lime of the nav and hero, also on the sage close (the kit inks it there),
   with a dark edge because lime on sage has almost no contrast */
.closing__cta .btn--primary { --action: var(--p-action); --action-ink: var(--p-action-ink); box-shadow: inset 0 0 0 1.5px var(--ground-ink); }
.closing__cta .btn--xl.btn--wide { justify-content: center; }
/* the kit rings focus in --action; lime on sage would vanish, so the close button rings in the ground's ink */
.closing__cta .btn--primary:focus-visible { outline-color: var(--ground-ink); }

/* --- lists: two screens large, rising from the foot of the same lit panel as the hero --- */
#lists .lists-panel { display: flex; justify-content: center; height: var(--dev-h); padding: var(--s-7) var(--s-7) 0; overflow: hidden; background: var(--ground-bg); border-radius: var(--r-lg); }
#lists .lists-panel .phones { width: min(100%, 680px); align-content: start; }
#lists .lists-panel .device { height: auto; aspect-ratio: 1080 / 2400; border-color: rgba(20, 20, 20, .5); box-shadow: 0 20px 40px -18px rgba(18, 30, 16, .55); }
@media (max-width: 1023px) { #lists { --dev-h: max(360px, calc(100svh - 520px)); } }
@media (max-width: 639px) {
  #lists { --dev-h: max(300px, calc(100lvh - 420px)); }
  #lists .lists-panel { padding: var(--s-4) var(--s-4) 0; }
  #lists .lists-panel .phones { gap: var(--s-3); }
}

/* --- questions: one tutorial screen on the same lit panel, cut by its foot --- */
#faq .faq-panel { display: flex; justify-content: center; height: var(--dev-h); padding: var(--s-7) var(--s-7) 0; overflow: hidden; background: var(--ground-bg); border-radius: var(--r-lg); }
#faq .faq-panel .device { width: min(100%, 300px); height: auto; aspect-ratio: 1080 / 2400; flex: none; border-color: rgba(20, 20, 20, .5); box-shadow: 0 20px 40px -18px rgba(18, 30, 16, .55); }
/* phones and tablets: the tutorial splash was a screen of mostly black before the close, so the questions run alone */
@media (max-width: 1023px) { #faq .faq-panel { display: none; } #faq .faq { grid-column: 1 / -1; } }

/* --- content-height sections ---
   The kit holds every section to one or two whole screens. On real phones and tablets that left half a
   screen or more of empty ground under #privacy, #lists and the close (owner feedback, 2026-11-25), so
   below 1280px each section is as tall as what it holds, and the close is at every width. The hero keeps
   its first screen. */
@media (max-width: 1279px) {
  html main > :is(section, .section):not(.hero, .section--hero) { height: auto; min-height: 0; }
  html main > :is(section, .section):not(.hero, .section--hero) > .wrap > .fill,
  html main > :is(section, .section):not(.hero, .section--hero) .group > .fill { flex: 0 0 auto; }
  /* panels that were stretched to a screen now hug their phones */
  #lists .lists-panel { height: auto; padding-bottom: var(--s-7); }
  #faq .faq-panel { height: auto; padding-bottom: var(--s-7); }
  /* the privacy screen is cropped to the mascot and its "Maximum privacy" line, not a whole black phone */
  #privacy .privacy-side .device { height: 360px; max-width: 300px; }
}
html footer.closing { height: auto; min-height: 0; }
html footer.closing > .wrap { height: auto; }
html footer.closing.g2m > .wrap { grid-template-rows: auto auto; row-gap: var(--s-9); }
@media (max-width: 639px) {
  #lists .lists-panel { padding-bottom: var(--s-5); }
  /* the mascot no longer fills a screen: it takes the right column, feet behind the button */
  .close__mascot { width: calc(50% - var(--s-3) / 2); margin: var(--s-4) 0 -14% auto; }
}

/* phone: the two list screens were 170px wide and unreadable, so one screen, the ticked list, runs large */
@media (max-width: 639px) {
  #lists .lists-panel .phones { grid-template-columns: minmax(0, 1fr); width: 70%; }
  #lists .lists-panel .device:nth-child(2) { display: none; }
}
/* phone: the hero already shows the open barcode, so #cards shows the wallet with its four cards instead */
.phone-only { display: none; }
@media (max-width: 639px) { #cards .phone-only { display: block; } #cards .wide-only { display: none; } }
/* the questions run longer than one desktop screen in Italian, so they size to their content at every width */
html main > section#faq { height: auto; min-height: 0; }
html main > section#faq > .wrap > .fill { flex: 0 0 auto; }
