/* home.css: the homepage's own pieces. The top of the page (a phone that logs a case while you watch, and the Wall
   behind it), the "Does it...?" box, the reviews, the numbers, the three prices. Loaded after folio.css on Home only. */

/* ---------- arriving from a link in an account email (confirm.js puts this at the top of the page) ---------- */
.landed { background: var(--yellow); color: var(--tape-ink); }
.landed:focus { outline: none; }
.landed > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.landed p { margin: 0; flex: 1 1 18em; min-width: 0; }
.landed b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.landed span { display: block; margin-top: 5px; font-size: 16.5px; line-height: 1.5; max-width: 40em; }
/* the address is the thing to tap in two of the messages: the padding makes it easier to hit without moving the line */
.landed a { color: inherit; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; padding-block: 10px; }
.landed .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.landed button { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 9px 18px; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 9px; cursor: pointer; }
/* "Open Anesto" (an iPhone only): the one filled button on the band, so it reads as the next step and Close as the way out */
.landed a.open { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 9px 20px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--yellow); background: var(--tape-ink); border: 1.5px solid var(--tape-ink); border-radius: 9px; }
.landed :focus-visible { outline-color: var(--tape-ink); }

/* ---------- the top ---------- */
.home-hero > .container { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 44px; align-items: start; padding-block: 54px 0; }
.home-hero h1 { font-size: clamp(60px, 8.3vw, 108px); line-height: 0.94; letter-spacing: -0.035em; margin-top: 16px; }
.home-hero h1 .say { display: block; white-space: nowrap; }
.home-hero .tag-slip { margin-top: 0.34em; white-space: nowrap; }
.home-hero .pick { margin-top: 36px; }
/* who it's for, in two lines: the reader's headline, then one sentence. Both keep their room, so nothing below moves
   when the reader says who they are. */
.home-hero .lead { font-size: clamp(16.5px, 1.4vw, 18.5px); max-width: 33em; margin-top: 26px; min-height: calc(7.5em + 10px); }
.home-hero .lead b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2em; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.home-hero .lead span { display: block; margin-top: 10px; max-width: 31em; }
.home-hero .fine { min-height: 3.2em; }
.more { margin: 16px 0 0; font-size: 16.5px; font-weight: 600; }
.more a { color: var(--on-field); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* nothing hangs over the Wall: the phone ends above it, and its pause button sits inside the phone */
.device { position: relative; min-width: 0; margin: 6px 0 0; z-index: 2; }
/* the reel: one bar per example, under the notch. The bar that's playing fills; tap one to jump, the round button pauses. */
.reel { display: flex; align-items: center; gap: 8px; margin: -4px 4px 8px; }
.phone:has(.reel:not([hidden])) .notch { margin-bottom: 8px; }
.segs { flex: 1; display: flex; gap: 5px; min-width: 0; }
.seg { flex: 1; position: relative; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.seg::after { content: ""; position: absolute; inset: -8px 0; }
.seg::before, .seg i { content: ""; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.seg::before { right: 0; background: var(--line); }
.seg i { width: 0; background: var(--ink); }
.seg:hover::before { background: var(--faint); }
.pp { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink-wet); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pp::after { content: ""; position: absolute; inset: -9px; }
.pp:hover { color: var(--ink); border-color: var(--faint); }
.pp svg { width: 10px; height: 10px; fill: currentColor; }
.pp .play, .pp[aria-pressed="true"] .pause { display: none; }
.pp[aria-pressed="true"] .play { display: block; }
.fan .slip { position: absolute; width: 220px; background: var(--panel); color: var(--ink); border-radius: 6px; padding: 12px 14px; box-shadow: 0 14px 30px rgba(0,0,0,0.30); display: grid; gap: 2px; }
.fan .slip small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.fan .slip b { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.15; }
.fan .slip span { font-size: 12px; font-weight: 600; color: var(--ok); }
.fan .s1 { left: -118px; top: 108px; transform: rotate(-10deg); }
.fan .s2 { left: -74px; top: 396px; transform: rotate(6deg); }

/* the phone's screen while the example plays (home.js builds these) */
.screen { height: 540px; overflow: hidden; transition: opacity 0.28s ease; }
.screen.swap { opacity: 0; }
/* nothing in the phone shifts while it plays: the dictation bar always has room for two lines, a saved case folds away
   and its row slides into the list */
.screen .capture { min-height: 62px; }
.case.gone { opacity: 0; max-height: 0 !important; margin-top: 0; padding-block: 0; border-width: 0; overflow: hidden; transition: opacity 0.25s ease, max-height 0.38s ease, margin 0.38s ease, padding 0.38s ease; }
.lrow.off { opacity: 0; transform: translateY(-8px); }
.screen.paused .caret { animation: none; }
.case { position: relative; margin-top: 10px; padding: 11px 10px 11px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: opacity 0.3s ease, transform 0.3s ease; }
.case.off { opacity: 0; transform: translateY(8px); }
.case::before { content: ""; position: absolute; left: 6px; top: 11px; bottom: 11px; width: 4px; border-radius: 2px; background: var(--tick, var(--cat-gen)); }
.case .ttl { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.case .chips { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 8px; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); transition: opacity 0.3s ease, transform 0.3s ease; }
.chip.lead-chip { color: color-mix(in srgb, var(--tick) 70%, var(--ink)); background: color-mix(in srgb, var(--tick) 13%, transparent); border-color: color-mix(in srgb, var(--tick) 30%, transparent); }
.chip.need { border: 1px dashed var(--folio); color: var(--folio-ink); background: var(--folio-soft); }
.chip.off { opacity: 0; transform: translateY(5px); }
.screen .ask { margin-top: 10px; max-height: 120px; overflow: hidden; transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease; }
.screen .ask.off { opacity: 0; max-height: 0; margin-top: 0; }
.screen .opt { border-style: dashed; border-color: var(--folio); color: var(--folio-ink); background: var(--folio-soft); transition: background 0.2s ease, color 0.2s ease; }
.screen .opt.on { border-style: solid; background: var(--folio); color: var(--on-accent); }
.saved { font-size: 11.5px; color: var(--ok); margin-top: 9px; }
.saved:empty { display: none; }
.screen .meter { margin: 10px 4px 0; padding: 0; border: 0; }
.mrow { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.mrow b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.mrow i { font-style: normal; }
.mbar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 3px; background: var(--folio); transition: width 0.9s ease; }
.lrow { transition: opacity 0.35s ease, transform 0.35s ease; position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 6px 9px 16px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow::before { content: ""; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--tick); }
.lrow b { font-family: var(--serif); font-weight: 400; font-size: 16px; }
.lrow span { font-size: 11.5px; color: var(--ok); font-weight: 500; white-space: nowrap; }
.lrow span.todo { color: var(--folio-ink); border: 1px dashed var(--folio); border-radius: 7px; padding: 1px 7px; background: var(--folio-soft); }
.screen .status { font-size: 14px; margin: 12px 4px 4px; }

/* the Wall, pressed into the field. It stands still; the name the phone just logged lights up. */
.ribbon { padding-block: 34px 4px; overflow: hidden; }
.ribbon .line { position: relative; display: flex; width: max-content; font-family: var(--serif); font-size: clamp(44px, 7.4vw, 104px); line-height: 1.08; letter-spacing: -0.025em; white-space: nowrap; }
.ribbon .line span { color: var(--field-deep); transition: color 0.5s ease; }
.ribbon .line span::after { content: "\00b7"; margin-inline: 0.3em; color: var(--field-deep); }
.ribbon .line span.lit { color: var(--yellow); }
.ribbon-cap { padding-block: 12px 30px; font-size: 15px; color: var(--field-bright); max-width: 620px; margin: 0; }
.ribbon-cap b { color: var(--on-field); font-weight: 600; }
.ribbon-cap a { color: var(--on-field); text-underline-offset: 3px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ribbon.live .line { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .tag-slip.land { animation: land 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
  .stamp.thunk { animation: thunk 0.28s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
}
@keyframes land { from { transform: translateY(-0.5em) rotate(-7deg) scale(1.06); } to { transform: rotate(2deg); } }
@keyframes thunk { from { transform: rotate(-12deg) scale(1.7); opacity: 0; } to { transform: rotate(-5deg) scale(1); opacity: 1; } }

/* ---------- the good stuff: four things worth showing off, picked for whoever is reading. Big words on the reader's
   colour; under each, the app's own pieces as scraps of paper. ---------- */
section.band.goods .kick { color: var(--field-bright); }
.goods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; margin-top: 40px; }
.good { border-top: 1px solid var(--rule); padding: 30px 0 46px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.good .lab { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--field-bright); padding: 4px 0 3px; }
.good .lab.new { background: var(--yellow); color: var(--tape-ink); padding: 4px 9px 3px; border-radius: 4px; transform: rotate(-1.6deg); }
.good h3 { font-size: clamp(31px, 3.5vw, 46px); line-height: 1.04; letter-spacing: -0.028em; margin: 16px 0 14px; text-wrap: balance; }
.good p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 30em; }
.good .show { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.good .show span { background: var(--slip); color: var(--slip-ink); font-size: 13.5px; font-weight: 500; line-height: 1.2; padding: 7px 11px; border-radius: 7px; box-shadow: 0 6px 14px rgba(0,0,0,0.22); }
.good .show span:nth-child(odd) { transform: rotate(-1.2deg); }
.good .show span:nth-child(even) { transform: rotate(0.9deg); }
.good .show .on { background: var(--yellow); color: var(--tape-ink); transform: rotate(-3deg) scale(1.06); }
.good .show .ask { background: transparent; color: var(--on-field); box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--on-field) 70%, transparent); padding: 5.5px 10px; }
.good .link { margin-top: auto; padding-top: 16px; font-weight: 600; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Does it...? one question, answered from everything the site knows ---------- */
section.band .doesit > .kick { color: var(--ink-wet); }
.askline { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.12em 0.26em; margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.8vw, 78px); line-height: 1.08; letter-spacing: -0.03em; }
.blank { flex: 1 1 6.5em; min-width: 0; display: flex; align-items: baseline; border-bottom: 4px solid var(--accent); cursor: text; transition: border-color 0.6s ease; }
.blank:focus-within { background: linear-gradient(transparent 58%, var(--blank-mark) 58%); border-bottom-color: var(--ink); }
.blank input { flex: 1; min-width: 0; width: 100%; height: 1.22em; border: 0; border-radius: 0; background: transparent; font: inherit; line-height: 1.2; letter-spacing: inherit; color: var(--accent-ink); padding: 0; outline: none; }
.blank input::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); opacity: 1; }
.clr { flex: none; align-self: center; cursor: pointer; width: 36px; height: 36px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); font: 400 20px/1 var(--sans); letter-spacing: 0; margin: 0 0.1em 0 8px; }
.clr:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.stamp { position: absolute; right: 2px; top: -3em; font-family: var(--mono); font-size: max(0.3em, 14px); font-weight: 500; letter-spacing: 0.12em; line-height: 1; text-transform: uppercase; color: var(--accent); border: 3px solid currentColor; border-radius: 8px; padding: 0.55em 0.7em 0.5em; transform: rotate(-5deg); white-space: nowrap; }
.stamp.dash { border-style: dashed; border-width: 2px; color: var(--ink-wet); }
.stamp:empty { display: none; }
.tries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; min-height: 36px; }
.tries span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-wet); margin-right: 4px; }
.tries button { cursor: pointer; background: transparent; border: 1.5px solid var(--rule); border-radius: 7px; padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--ink); }
.tries button:hover { border-color: var(--accent); color: var(--accent-ink); }
.doesit .res { min-height: 240px; }

/* ---------- yellow: in their words ---------- */
.voices { background: var(--voices-bg); color: var(--voices-ink); --ink-wet: var(--voices-dim); --dim: var(--voices-dim); --accent-ink: var(--voices-ink); }
section.band.voices .kick { color: var(--voices-kick); }
.voices :focus-visible { outline-color: var(--tape-ink); }
.slips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 46px; }
.slips figure { margin: 0; background: var(--panel); color: var(--ink); border-radius: 7px; padding: 26px 26px 22px; box-shadow: 0 18px 36px rgba(30,27,22,0.24); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.slips figure:nth-child(1) { transform: rotate(-1.6deg); }
.slips figure:nth-child(2) { transform: rotate(1.1deg) translateY(14px); }
.slips figure:nth-child(3) { transform: rotate(-0.7deg); }
.slips figure.first { order: -1; }
.slips blockquote { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.slips figcaption { font-size: 13px; color: var(--ink-wet); margin-top: auto; border-top: 1px dashed var(--line); padding-top: 12px; }
.slips figcaption b { color: var(--ink); font-weight: 600; }
.voices .disclaim { color: var(--tape-ink); margin-top: 44px; }

/* ---------- night: the numbers, and what it promises ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 30px; }
.numbers .n { font-family: var(--serif); font-size: clamp(46px, 5.6vw, 80px); line-height: 0.95; letter-spacing: -0.03em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.numbers .l { font-size: 14.5px; color: var(--ink-wet); margin-top: 10px; max-width: 15em; }
.promise h2 { margin-top: 84px; }
.promise .disclaim { display: flex; gap: 2px 26px; flex-wrap: wrap; }
.promise .disclaim .link { padding-block: 5px; }

/* ---------- three prices; the one that fits the reader is lifted ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; align-items: stretch; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 26px 26px 24px; min-width: 0; transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease; }
.tier .kick { color: var(--ink-wet); }
.tier h3 { font-size: 27px; letter-spacing: -0.015em; margin: 8px 0 0; }
.tier .amt { font-family: var(--serif); font-size: 58px; line-height: 1; margin-top: 10px; letter-spacing: -0.03em; }
.tier .amt small { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.tier p { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-wet); }
.tier p + p { margin-top: 8px; }
.tier.pick-me { background: var(--field); border-color: var(--field); color: var(--on-field); transform: rotate(1.2deg); box-shadow: 0 20px 40px rgba(30,27,22,0.22); }
.tier.pick-me[data-plan="train"] { transform: rotate(-1.2deg); }
.tier.pick-me .kick { color: var(--field-bright); }
.tier.pick-me .amt { color: var(--yellow); }
.tier.pick-me p { color: var(--on-field); }

@media (max-width: 1120px) { .fan .s2 { display: none; } }
@media (max-width: 1100px) and (min-width: 961px) { .pick { gap: 7px; } .pick > span { margin-right: 0; } .pick button { padding: 7px 10px; font-size: 14px; } }
@media (max-width: 960px) {
  .home-hero > .container { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 34px 0; }
  .home-hero h1 { font-size: clamp(54px, 16.8vw, 96px); }
  .home-hero .lead, .home-hero .fine { min-height: 0; }
  .home-hero .lead b { font-size: clamp(27px, 7.4vw, 34px); }
  .home-hero .pick { margin-top: 40px; }
  .fan { display: none; }
  .device { margin: 0; }
}
@media (max-width: 860px) {
  .goods-grid { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .good { padding: 26px 0 38px; }
  .good:last-child { padding-bottom: 6px; }
  .tries button { min-height: 40px; }
  .slips { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 14px 20px 34px; scrollbar-width: none; }
  .slips::-webkit-scrollbar { display: none; }
  .slips figure { flex: 0 0 84%; scroll-snap-align: center; }
  .slips figure:nth-child(2) { transform: rotate(1.1deg); }
  .voices .disclaim { margin-top: 12px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .promise h2 { margin-top: 58px; }
  .tiers { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  :root[data-role] .tier.pick-me { order: -1; }
}
@media (max-width: 560px) { .askline > span:first-child { flex-basis: 100%; } .stamp { top: 0.55em; } }
@media (max-height: 480px) and (orientation: landscape) { .home-hero h1 { font-size: clamp(40px, 8.4vw, 62px); } .home-hero > .container { padding-top: 20px; } .home-hero .tag-slip { margin-top: 0.46em; } .pick { margin-top: 22px; } }
