/* Notahop landing (light only, studio rule 2026-09-23). Tokens = apps/Notahop/Sources/UI/Theme.swift (pass 2, "a sunny pond"):
   leaf = right + main actions, sky = info, sun = stars, berry = wrong. Fredoka for every word with a voice; chunky
   game buttons with a darker bottom edge, like the app. No gradients, no glow, no side stripes. */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }

:root {
  --paper: #EEF7F0; --surface: #FFFFFF; --felt: #E2F0E6; --ink: #17302A; --muted: #557067; --hair: #CFE3D6;
  --leaf: #188A36; --leaf-edge: #0F6727; --leaf-tint: #D7F2DD;
  --sky: #1479CC; --sky-edge: #0D5A9A; --sky-tint: #DDEEFC;
  --sun: #FFB51F; --sun-tint: #FFF1CC; --berry: #D12F45; --key-edge: #C3D8CB;
  --round: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --r: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17.5px/1.55 var(--round); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 9; }
.skip:focus { top: 12px; }
.defs { position: absolute; }

.top, main { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--round); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 10px; }
.top-links { display: flex; gap: 6px; }
.top-links a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.top-links a:hover { background: var(--felt); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--hair); background: var(--surface); font-size: 15px; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 8px; list-style: none;
  width: min(92vw, 520px); columns: 3 150px; column-gap: 4px; background: var(--surface); border: 1.5px solid var(--hair); border-radius: 16px; }
.langs a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.langs a[aria-current] { font-weight: 700; color: var(--leaf); }

h1, h2, h3 { font-family: var(--round); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.04; font-weight: 700; margin: 0 0 18px; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; font-weight: 700; margin: 0 0 26px; text-wrap: balance; }
h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.2; margin: 0 0 6px; }
section { padding-block: 44px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-block: 28px 60px; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; max-width: 32em; }
.note { font-size: .95rem; color: var(--muted); margin: 16px 0 0; }

/* Download: Apple's badge once live; until then a chunky "Coming soon" label that is not a link */
.badge { display: inline-block; border-radius: 10px; }
.badge img { height: 53px; width: auto; }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 16px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1.05rem; box-shadow: 0 4px 0 #0A1A16; cursor: default; }
.soon.small { min-height: 44px; font-size: .95rem; padding: 0 16px; border-radius: 13px; box-shadow: 0 3px 0 #0A1A16; }

/* The staff sheet: white like the app's staff card, a leaf ring */
.stage { margin: 0; background: var(--surface); border-radius: 28px; padding: 22px 22px 26px; box-shadow: 0 0 0 2px var(--hair), 0 6px 0 var(--hair); }
.stage-q { margin: 0 0 4px 6px; font-weight: 600; font-size: 1.1rem; }
.staff { width: 100%; height: auto; overflow: visible; display: block; }
.staff .lines line, .mini .lines line { stroke: var(--ink); stroke-width: 2.4; }
.staff .ledger { stroke: var(--ink); stroke-width: 2.4; }
.clef { fill: var(--ink); }
.trail { fill: none; stroke: var(--sun); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.note use { fill: var(--leaf); }
.note-next use { fill: var(--ink); }
.hop { transform: translate(249px, 36px); }
@media (prefers-reduced-motion: no-preference) {
  .hop { animation: hop 3s cubic-bezier(.45, 0, .3, 1) .5s both; }
  .note-e use { animation: lit 3s linear .5s both; --at: 33%; }
  .note-g use { animation: lit-g 3s linear .5s both; }
  .trail { animation: trail 3s linear .5s both; stroke-dashoffset: 0; }
  .keys .on { animation: key 3s linear .5s both; }
}
@keyframes hop {
  0%, 14% { transform: translate(89px, 76px); }
  24% { transform: translate(129px, 22px); }
  34%, 52% { transform: translate(169px, 56px); }
  62% { transform: translate(209px, 2px); }
  72%, 100% { transform: translate(249px, 36px); }
}
@keyframes lit { 0%, 33% { fill: var(--ink); } 34%, 100% { fill: var(--leaf); } }
@keyframes lit-g { 0%, 71% { fill: var(--ink); } 72%, 100% { fill: var(--leaf); } }
@keyframes trail { 0%, 14% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes key { 0%, 71% { background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--key-edge), inset 0 0 0 1.5px var(--hair); transform: none; }
  72% { transform: translateY(3px); box-shadow: 0 1px 0 var(--leaf-edge); }
  80%, 100% { background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--leaf-edge); transform: none; } }

/* The answer keys, as in a round: white keys with a pressed edge; the right one turns leaf */
.keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 10px; }
.key { display: flex; align-items: flex-end; justify-content: center; height: 76px; padding-bottom: 10px; border-radius: 12px;
  background: var(--surface); font-weight: 700; font-size: 1.35rem; box-shadow: 0 4px 0 var(--key-edge), inset 0 0 0 1.5px var(--hair); }
.key.on { background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--leaf-edge); }

/* How a round goes: four steps on numbered lily pads */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--r); padding: 22px 20px 24px; box-shadow: 0 0 0 1.5px var(--hair), 0 5px 0 var(--hair); }
.pad { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50% 50% 50% 12%;
  background: var(--leaf); color: #fff; font-weight: 700; font-size: 1.3rem; box-shadow: 0 4px 0 var(--leaf-edge); }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { position: relative; background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: 0 0 0 1.5px var(--hair), 0 5px 0 var(--hair); }
.card p { margin: 0; color: var(--muted); }
.card.calm { padding-inline-end: 150px; min-height: 170px; background: var(--leaf-tint); box-shadow: 0 5px 0 #BFE5C8; }
.card.calm img { position: absolute; inset-inline-end: 18px; bottom: 16px; width: 120px; }
.card.calm p { color: var(--ink); }
.chips, .namerows { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--sky-tint); color: var(--sky-edge); font-weight: 500; font-size: .95rem; }
.chips li:last-child { background: var(--felt); color: var(--muted); }
.mini { display: flex; gap: 12px; margin-top: 16px; }
.mini svg { width: 33%; max-width: 120px; height: auto; background: var(--paper); border-radius: 14px; }
.mini .dot-note { fill: var(--leaf); }
.namerows { flex-direction: column; gap: 10px; }
.namerows li { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.namerows span { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 1.02rem;
  box-shadow: 0 3px 0 var(--key-edge), inset 0 0 0 1.5px var(--hair); }
.namerows li.on span { background: var(--leaf); color: #fff; box-shadow: 0 3px 0 var(--leaf-edge); }

/* Screens: two real screens of the app, Hop next to them */
.phones { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.phones img:not(.proud) { width: min(260px, 40%); border-radius: 30px; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7.5px var(--hair), 0 10px 0 7px var(--hair); }
.phones .proud { width: 170px; margin-inline-start: 12px; }

/* Wardrobe */
.outfits .head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.outfits .head h2 { margin-bottom: 6px; }
.outfits .head p { margin: 0; color: var(--muted); max-width: 46em; }
.outfits .head img { width: 88px; flex: none; }
.wardrobe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wardrobe li { background: var(--surface); border-radius: 18px; padding: 14px 10px 14px; text-align: center; box-shadow: 0 0 0 1.5px var(--hair), 0 4px 0 var(--hair); }
.wardrobe img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 8px; }
.wardrobe b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.wardrobe small { color: var(--muted); font-size: .85rem; }

/* Ranks */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.board { border-radius: var(--r); padding: 22px; background: var(--sky-tint); box-shadow: 0 5px 0 #BCD9F3; }
.board.sun { background: var(--sun-tint); box-shadow: 0 5px 0 #F3D98F; }
.board img { width: 72px; height: 72px; object-fit: contain; object-position: left bottom; margin-bottom: 12px; }
.board p { margin: 0; color: var(--ink); }
.nick { margin: 22px 0 0; color: var(--muted); max-width: 52em; }

/* Price: free first, then Unlimited; the billed amount is the largest price on each plan (3.1.2(c)) */
.tiers { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: stretch; }
.tier { position: relative; background: var(--surface); border-radius: 26px; padding: 26px; box-shadow: 0 0 0 1.5px var(--hair), 0 5px 0 var(--hair); }
.tier h3 { font-size: 1.3rem; }
.tier .big { font: 700 2.6rem/1 var(--round); color: var(--leaf); margin: 10px 0 2px; }
.tier .sub { margin: 0 0 16px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.tier .wave { position: absolute; inset-inline-end: 18px; top: 18px; width: 92px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 2px; padding: 16px 14px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair); }
.plan.first { background: var(--leaf-tint); box-shadow: inset 0 0 0 2.5px var(--leaf); }
.pname { font-weight: 600; }
.amount { font: 700 2rem/1.1 var(--round); margin-top: 6px; }
.per { color: var(--muted); font-size: .95rem; }
.pnote { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.plan.first .pnote { color: var(--leaf-edge); font-weight: 500; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: .88rem; }

/* FAQ: 760px reading column, centered under the 1040px sections (founder 2026-10-03) */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: var(--surface); border-radius: 18px; margin-bottom: 12px; box-shadow: 0 0 0 1.5px var(--hair), 0 4px 0 var(--hair); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--felt); font: 600 1.3rem/1 var(--round); color: var(--leaf); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* Closing */
.closing { text-align: center; padding-block: 48px 72px; }
.closing > img { width: 150px; margin: 0 auto 12px; }
.closing h2 { margin-bottom: 8px; }
.closing > p:not(.note) { color: var(--muted); margin: 0 0 24px; }

/* Footer */
.foot { margin-top: 24px; background: var(--surface); border-top: 1.5px solid var(--hair); color: var(--muted); font-size: .95rem; }
.foot-in { max-width: 1080px; margin-inline: auto; padding: 44px 20px 32px; display: grid; grid-template-columns: 1.2fr .7fr 1.4fr; gap: 40px; }
.foot-brand p { margin: 12px 0 18px; max-width: 32ch; }
.foot-links { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.foot-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.foot-links a:hover { color: var(--leaf); }
.foot-links .mail { font-size: .88rem; }
.foot-credit p { margin: 6px 0 0; font-size: .88rem; max-width: 40ch; }
.foot-langs h2 { font-size: .95rem; margin: 6px 0 14px; }
.foot-langs ul { list-style: none; margin: 0; padding: 0; columns: 3 120px; }
.foot-langs a { color: var(--muted); text-decoration: none; }
.foot-base { max-width: 1080px; margin-inline: auto; padding: 18px 20px 32px; border-top: 1.5px solid var(--hair); font-size: .85rem;
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.foot-base p { margin: 0; }

/* Legal pages (privacy, terms): full main width (founder 2026-10-03), plain reading type */
.doc { padding-block: 24px 56px; line-height: 1.65; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.doc h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.doc .eyebrow, .doc .updated { color: var(--muted); font-size: .95rem; }
.doc li { margin-bottom: 6px; }
.doc address { font-style: normal; color: var(--muted); }
.lost { text-align: center; padding-block: 48px 80px; }
.lost img { width: 150px; margin: 0 auto 16px; }

@media (max-width: 900px) {
  .top-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 8px 36px; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .grid, .tiers { grid-template-columns: 1fr; }
  .boards { grid-template-columns: 1fr; }
  .wardrobe { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .foot-links { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  section { padding-block: 32px; }
  .top, main { padding-inline: 16px; }
  .stage { padding: 14px 10px 18px; border-radius: 22px; }
  .keys { gap: 5px; }
  .key { height: 58px; font-size: 1.1rem; padding-bottom: 8px; border-radius: 10px; }
  .steps ol { grid-template-columns: 1fr; }
  .card.calm { padding-inline-end: 26px; padding-bottom: 130px; }
  .card.calm img { width: 104px; }
  .phones { gap: 12px; }
  .phones img:not(.proud) { width: calc(50% - 6px); border-radius: 22px; }
  .phones .proud { display: none; }
  .wardrobe { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: auto; grid-auto-columns: 30%; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin-inline: -2px; }
  .wardrobe li { scroll-snap-align: start; }
  .wardrobe li { padding: 10px 6px; border-radius: 14px; }
  .wardrobe img { width: 76px; height: 76px; }
  .wardrobe b { font-size: .88rem; }
  .plans { grid-template-columns: 1fr; }
  .plan { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; }
  .plan .amount { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
  .tier .wave { width: 72px; }
  .outfits .head img { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
