/* The Habbit · home page. Follows the app: system grouped background, white cards, four habit
   hues (35 / 150 / 250 / 330 in OKLCH, from Design/HabitPalette.swift), light and dark. */
:root {
  --bg: #F2F2F7; --card: #FFFFFF; --ink: #1C1C1E; --on-ink: #FFFFFF; --night: #171719;
  --muted: rgba(60,60,67,.6); --faint: rgba(60,60,67,.38); --sep: rgba(60,60,67,.2); --tile-shadow: 0 10px 30px rgba(28,28,30,.08);
  --t35: oklch(0.94 0.03 35);  --f35: oklch(0.52 0.09 35);  --d35: oklch(0.38 0.09 35);
  --t150: oklch(0.94 0.03 150); --f150: oklch(0.52 0.09 150); --d150: oklch(0.38 0.09 150);
  --t250: oklch(0.94 0.03 250); --f250: oklch(0.52 0.09 250); --d250: oklch(0.38 0.09 250);
  --t330: oklch(0.94 0.03 330); --f330: oklch(0.52 0.09 330); --d330: oklch(0.38 0.09 330);
  --sage: oklch(0.72 0.06 150); --glass: rgba(255,255,255,.62);
  --deco35: oklch(0.93 0.03 35); --deco150: oklch(0.92 0.03 150); --deco250: oklch(0.93 0.03 250);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #1C1C1E; --ink: #F2F2F7; --on-ink: #1C1C1E; --night: #F2F2F7;
    --muted: rgba(235,235,245,.6); --faint: rgba(235,235,245,.36); --sep: rgba(84,84,88,.65); --tile-shadow: none;
    --t35: oklch(0.30 0.05 35);  --d35: oklch(0.84 0.07 35);
    --t150: oklch(0.30 0.05 150); --d150: oklch(0.84 0.07 150);
    --t250: oklch(0.30 0.05 250); --d250: oklch(0.84 0.07 250);
    --t330: oklch(0.30 0.05 330); --d330: oklch(0.84 0.07 330);
    --glass: rgba(44,44,46,.72);
    --deco35: oklch(0.20 0.035 35); --deco150: oklch(0.20 0.035 150); --deco250: oklch(0.20 0.035 250);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* anchors: land every section's heading the same distance under the 68px nav, whatever its top padding */
[id] { scroll-margin-top: 88px; }
section[id] { scroll-margin-top: calc(108px - var(--pt, 0px)); }   /* heading lands ~40px under the nav */
.rules, .streaks { --pt: 110px; } .sound { --pt: 100px; } .everywhere, .get { --pt: 40px; } .mosaic { --pt: 60px; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 20px; letter-spacing: -.015em; }
p { text-wrap: pretty; }
h2 + .lede, h2 + .facts, h2 + .ladder, h2 + ul { margin-top: 18px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.55; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--muted); }
.kicker::before { content: ''; width: 11px; height: 11px; flex: none; }
.kicker.circle::before { border-radius: 50%; background: var(--f35); }
.kicker.square::before { border-radius: 3px; background: var(--f150); }
.kicker.diamond::before { border-radius: 2px; background: var(--f250); transform: rotate(45deg) scale(.88); }
.kicker.ring::before { border-radius: 50%; border: 3px solid var(--f330); box-sizing: border-box; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; border-radius: 26px; text-decoration: none; font-weight: 650; font-size: 16px; background: var(--ink); color: var(--on-ink); transition: transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.quiet { background: var(--card); color: var(--ink); border: 1px solid var(--sep); }
.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 1.5px 1.5px 1px rgba(255,255,255,.55), 0 1px 3px rgba(0,0,0,.07), 0 3px 10px rgba(0,0,0,.06); }
@media (prefers-color-scheme: dark) { .glass { box-shadow: inset 1px 1px 1px rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.4); } }

/* decorative forms behind the hero, as in the Tracker header */
.deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.deco.a { top: -140px; right: -120px; width: 420px; height: 420px; background: var(--deco35); opacity: .8; }
.deco.b { top: 300px; right: -60px; width: 160px; height: 160px; border: 22px solid var(--deco150); opacity: .6; }
.deco.c { top: 560px; left: -150px; width: 340px; height: 340px; background: var(--deco250); opacity: .6; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .bar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav::before { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: .84; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: -1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 20px; font-size: 14px; font-weight: 650; text-decoration: none; color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding: 56px 22px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); letter-spacing: -.045em; line-height: .98; }
.hero h1 span { color: var(--f35); }
.hero .lede { max-width: 480px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hint { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.hint b { font-weight: 650; font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--t150); color: var(--d150); }

/* live tracker demo */
.demo-float { width: 100%; max-width: 420px; margin-left: auto; perspective: 1200px; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-8px) rotate(.3deg); } }
.demo { position: relative; width: 100%; padding: 26px 22px 22px; --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease; transform-style: preserve-3d; will-change: transform; border-radius: 36px; background: var(--bg); box-shadow: 0 30px 70px rgba(0,0,0,.14), 0 0 0 1px var(--sep); overflow: hidden; }
@media (prefers-color-scheme: dark) { .demo { background: #0d0d0f; box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px var(--sep); } }
.demo .deco { z-index: 0; } .demo .deco.a { top: -90px; right: -70px; width: 220px; height: 220px; } .demo .deco.b { top: 70px; right: -40px; width: 90px; height: 90px; border-width: 14px; }
.demo > * { position: relative; z-index: 1; }
.demo > .deco { position: absolute; z-index: 0; }
.demo-head h2 { font-size: 30px; letter-spacing: -.03em; } .demo-head p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 18px; }
.day { padding: 8px 0 7px; display: grid; justify-items: center; gap: 4px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.day small { font-size: 10px; font-weight: 600; color: var(--muted); }
.day.today { background: var(--ink); color: var(--on-ink); } .day.today small { color: inherit; opacity: .7; }
.day.future { color: var(--faint); }
.dots { display: flex; gap: 3px; height: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; }
.dots i.h35 { background: var(--f35); } .dots i.h150 { background: var(--f150); } .dots i.h250 { background: var(--f250); } .dots i.h330 { background: var(--f330); }
.day.today .dots i { background: var(--on-ink); opacity: .9; }
.progress { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.progress b { font-size: 17px; font-weight: 650; } .progress span { color: var(--muted); font-size: 13px; }
.bars { display: flex; gap: 6px; margin-top: 8px; }
.bars i { flex: 1; height: 6px; border-radius: 3px; background: var(--sep); transition: background .25s ease; }
.tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.tile { position: relative; overflow: hidden; height: 150px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; border: 0; border-radius: 26px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--tile-shadow); font: inherit; transition: transform .12s ease, background .25s ease, color .25s ease; -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.97); }
.tile:focus-visible { outline: 3px solid var(--f250); outline-offset: 2px; }
.tile .well { position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; transition: background .25s ease; }
.tile .bloom { position: absolute; right: -34px; bottom: -34px; width: 130px; height: 130px; border-radius: 50%; opacity: .55; transition: background .25s ease; }
.tile b { position: relative; font-size: 17px; font-weight: 650; letter-spacing: -.01em; } .tile small { position: relative; margin-top: 2px; font-size: 13px; color: var(--muted); transition: color .25s ease; }
.mark { display: block; width: 16px; height: 16px; }
.mark.circle { border-radius: 50%; } .mark.square { border-radius: 4px; } .mark.diamond { border-radius: 3px; transform: rotate(45deg) scale(.85); } .mark.ring { border-radius: 50%; border: 4px solid; background: transparent !important; }
.tile.h35 .well { background: var(--t35); } .tile.h35 .mark { background: var(--f35); border-color: var(--f35); } .tile.h35 .bloom { background: var(--t35); }
.tile.h150 .well { background: var(--t150); } .tile.h150 .mark { background: var(--f150); border-color: var(--f150); } .tile.h150 .bloom { background: var(--t150); }
.tile.h250 .well { background: var(--t250); } .tile.h250 .mark { background: var(--f250); border-color: var(--f250); } .tile.h250 .bloom { background: var(--t250); }
.tile.h330 .well { background: var(--t330); } .tile.h330 .mark { background: var(--f330); border-color: var(--f330); } .tile.h330 .bloom { background: var(--t330); }
.tile.done { color: #fff; } .tile.done small { color: rgba(255,255,255,.75); }
.tile.done .well { background: rgba(255,255,255,.28); } .tile.done .mark { background: #fff; border-color: #fff; } .tile.done .bloom { background: rgba(255,255,255,.16); }
.tile.h35.done { background: var(--f35); } .tile.h150.done { background: var(--f150); } .tile.h250.done { background: var(--f250); } .tile.h330.done { background: var(--f330); }
.bars i.h35 { background: var(--f35); } .bars i.h150 { background: var(--f150); } .bars i.h250 { background: var(--f250); } .bars i.h330 { background: var(--f330); }
.halo { position: absolute; inset: -6px; border-radius: 32px; pointer-events: none; opacity: 0; border: 3px solid transparent; }
.tiles.perfect .halo { animation: halo 2.2s ease-out forwards; border-image: conic-gradient(var(--f35), var(--f150), var(--f250), var(--f330), var(--f35)) 1; border-radius: 32px; }
@keyframes halo { 0% { opacity: 0; transform: scale(.96); } 25% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }
.demo-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-foot button { flex: none; white-space: nowrap; height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: transparent; color: var(--ink); font: 600 13px/1 -apple-system, system-ui, sans-serif; cursor: pointer; }
.demo-foot .sound[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.demo-foot .toast { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--muted); font-size: 12px; }

/* rules */
.rules { padding: 110px 0 70px; }
.rules .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.rules .lede { margin-top: 16px; }
.rule-list { display: grid; gap: 0; border-top: 1px solid var(--sep); }
.rule { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--sep); }
.rule i { font: 600 13px/1.6 var(--mono); color: var(--muted); }
.rule h3 { font-size: 19px; } .rule p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* screenshot band */
.real { padding: 40px 0 110px; }
.real .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.phone { width: 300px; margin: 0 auto; padding: 8px; border-radius: 50px; background: #121214; box-shadow: 0 34px 70px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.16); }
.phone .screen { border-radius: 42px; overflow: hidden; background: #000; }
.caption { margin-top: 14px; text-align: center; color: var(--faint); font-size: 13px; line-height: 1.45; }
.facts { display: grid; gap: 14px; margin-top: 26px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .well { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.fact .well.h35 { background: var(--t35); color: var(--d35); } .fact .well.h150 { background: var(--t150); color: var(--d150); } .fact .well.h250 { background: var(--t250); color: var(--d250); } .fact .well.h330 { background: var(--t330); color: var(--d330); }
.fact .well .mark { width: 14px; height: 14px; background: currentColor; border-color: currentColor; }
.fact b { display: block; font-size: 16px; font-weight: 650; } .fact p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* sound */
.sound { padding: 100px 0; background: var(--night); color: var(--bg); }
@media (prefers-color-scheme: dark) { .sound { background: #0d0d0f; color: var(--ink); } }
.sound .kicker { color: rgba(255,255,255,.5); } @media (prefers-color-scheme: dark) { .sound .kicker { color: var(--muted); } }
.sound .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sound .lede { color: rgba(255,255,255,.62); } @media (prefers-color-scheme: dark) { .sound .lede { color: var(--muted); } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { height: 84px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border: 0; border-radius: 20px; background: rgba(255,255,255,.08); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: transform .12s ease, background .2s ease; }
@media (prefers-color-scheme: dark) { .key { background: var(--card); color: var(--ink); } }
.key:hover { background: rgba(255,255,255,.14); } .key:active { transform: scale(.96); }
.key:focus-visible { outline: 3px solid var(--f250); }
.key b { font-size: 16px; font-weight: 650; }
.key.playing { background: rgba(255,255,255,.22); }
.key i { width: 10px; height: 10px; border-radius: 50%; }
.key.h35 i { background: var(--f35); } .key.h150 i { background: var(--f150); } .key.h250 i { background: var(--f250); } .key.h330 i { background: var(--f330); } .key.earn i { background: var(--sage); }
.sound .fine { margin-top: 16px; color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.5; } @media (prefers-color-scheme: dark) { .sound .fine { color: var(--faint); } }

/* streaks */
.streaks { padding: 110px 0; }
.streaks .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.strip { margin-top: 30px; padding: 20px; border-radius: 26px; background: var(--card); }
.strip .week { margin-top: 0; }
.strip .legend { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.strip .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.day .dots i.mend { width: 9px; height: 3px; border-radius: 2px; background: var(--sage); align-self: center; }
.ladder { display: grid; gap: 0; border-top: 1px solid var(--sep); margin-top: 30px; }
.ladder div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sep); align-items: baseline; }
.ladder b { font-size: 24px; font-weight: 750; letter-spacing: -.03em; } .ladder span { color: var(--muted); font-size: 15px; }
.ladder div:nth-child(2) b { color: var(--f35); }

/* everywhere */
.everywhere { padding: 40px 0 110px; }
.everywhere .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.everywhere ul { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 12px; }
.everywhere li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink); font-size: 16px; line-height: 1.45; }
.everywhere li i { font: 600 12px/1.7 var(--mono); color: var(--muted); }
.lock { position: relative; width: 300px; height: 620px; margin: 0 auto; padding: 8px; border-radius: 50px; background: #121214; box-shadow: 0 34px 70px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.16); }
.lock .screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; color: #fff; text-align: center; background: radial-gradient(120% 70% at 30% 0%, oklch(0.42 0.08 35) 0%, oklch(0.24 0.05 250) 55%, #0a0a0c 100%); }
.lock .inline { margin-top: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 600; }
.lock .inline i { width: 8px; height: 8px; border-radius: 50%; background: var(--f150); }
.lock .time { margin-top: 6px; font-size: 74px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.lock .date { margin-top: 2px; font-size: 14px; opacity: .8; }
.lock .acc { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; padding: 0 16px; }
.lock .acc .circ { flex: none; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--f35) 0 25%, var(--f150) 25% 50%, rgba(255,255,255,.16) 50% 100%); display: grid; place-items: center; }
.lock .acc .circ b { width: 40px; height: 40px; border-radius: 50%; background: rgba(20,20,22,.85); display: grid; place-items: center; font-size: 12px; }
.lock .acc .rect { flex: 1; min-width: 0; max-width: 176px; height: 54px; padding: 0 12px; border-radius: 16px; background: rgba(255,255,255,.14); display: flex; flex-direction: column; justify-content: center; gap: 5px; text-align: left; }
.lock .acc .rect b { font-size: 11px; line-height: 1.2; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .lock .acc .rect span { display: flex; gap: 5px; }
.lock .acc .rect i { width: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); } .lock .acc .rect i.h35.on { background: var(--f35); } .lock .acc .rect i.h150.on { background: var(--f150); }
.lock .corner { position: absolute; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); } .lock .corner::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.lock .corner.l { left: 24px; } .lock .corner.r { right: 24px; } .lock .corner.r::after { border-radius: 4px; }
.lastcall { position: absolute; left: 14px; right: 14px; bottom: 92px; padding: 14px; border-radius: 22px; background: rgba(28,28,30,.9); text-align: left; }
.lastcall .row { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0; }
.lastcall .ring { flex: none; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--f35) 0 25%, var(--f150) 25% 50%, rgba(255,255,255,.14) 50% 100%); display: grid; place-items: center; }
.lastcall .ring b { width: 34px; height: 34px; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; font-size: 11px; }
.lastcall .row .txt b { display: block; font-size: 15px; } .lastcall .row .txt small { font-size: 12px; opacity: .6; }
.lastcall .ring b { font-weight: 700; line-height: 1; }
.lastcall .acts { margin-top: 12px; display: flex; gap: 8px; }
.lastcall .acts span { flex: 1; padding: 9px 0; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 650; background: rgba(255,255,255,.1); }
.lastcall .acts span.h250 { background: var(--t250); color: var(--d250); } .lastcall .acts span.h330 { background: var(--t330); color: var(--d330); }
@media (prefers-color-scheme: light) { .lastcall .acts span.h250 { background: oklch(0.85 0.06 250); color: oklch(0.3 0.09 250);} .lastcall .acts span.h330 { background: oklch(0.85 0.06 330); color: oklch(0.3 0.09 330);} }

/* mosaic */
.mosaic { padding: 60px 0 110px; }
.mosaic .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mosaic .lock .screen { background: #000; }
.mosaic svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.mosaic .time, .mosaic .date { position: relative; }
.mosaic .lede { margin-top: 16px; }
.duet { margin-top: 36px; padding: 22px 24px; border-radius: 24px; background: var(--card); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.duet .pair { display: flex; }
.duet .pair span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card); }
.duet .pair span:first-child { background: var(--f35); } .duet .pair span:last-child { background: var(--f330); margin-left: -12px; }
.duet b { display: block; font-size: 16px; font-weight: 650; } .duet p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* account + privacy rows, in the Settings style the legal pages use */
.account { padding: 0 0 110px; }
.account .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.rows { background: var(--card); border-radius: 22px; overflow: hidden; }
.row { display: flex; gap: 16px; padding: 14px 18px; align-items: flex-start; }
.row + .row { border-top: .5px solid var(--sep); margin-left: 18px; padding-left: 0; }
.row .k { flex: 0 0 36%; font-size: 16px; font-weight: 600; }
.row .v { flex: 1; font-size: 15px; color: var(--muted); line-height: 1.45; }
.row .v b { color: var(--ink); font-weight: 600; }
.foot { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 10px 18px 0; }
.foot a { color: var(--ink); }

/* get the beta */
.get { padding: 40px 0 60px; }
.get .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.get .hero-actions { margin-top: 26px; }
.get .hint { display: block; margin-top: 12px; font-size: 13px; }
.steps { list-style: none; margin: 0; padding: 6px 0; display: grid; gap: 0; border-radius: 26px; background: var(--card); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 20px; align-items: start; }
.steps li + li { border-top: .5px solid var(--sep); }
.steps i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 700 14px/1 -apple-system, system-ui, sans-serif; }
.steps b { display: block; font-size: 16px; font-weight: 650; } .steps p { margin-top: 3px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.button .apple { width: 15px; height: 18px; margin-right: 2px; }

/* legal pages (privacy, terms): same system, one narrow column */
.legal { position: relative; overflow: hidden; }
.legal .wrap { position: relative; z-index: 1; max-width: 760px; padding: 56px 22px 90px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -.04em; }
.legal .meta { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.legal .lede { margin-top: 20px; }
.legal .marks { display: flex; gap: 10px; margin: 28px 0 8px; }
.legal .marks .circle { background: var(--f35); } .legal .marks .square { background: var(--f150); } .legal .marks .diamond { background: var(--f250); } .legal .marks .ring { border-color: var(--f330); }
.legal section { margin-top: 30px; }
.legal section h2.kicker { margin: 0 0 10px 2px; font-size: 14px; }
.legal .card { padding: 18px 20px; border-radius: 22px; background: var(--card); }
.legal .card p { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.55; } .legal .card p + p { margin-top: 10px; }
.legal .card.pill { display: flex; gap: 14px; align-items: flex-start; }
.legal .card.pill .well { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.legal .card.pill .well svg { width: 22px; height: 22px; }
.legal .well.h35 { background: var(--t35); color: var(--d35); } .legal .well.h150 { background: var(--t150); color: var(--d150); } .legal .well.h250 { background: var(--t250); color: var(--d250); } .legal .well.h330 { background: var(--t330); color: var(--d330); }
.legal .card.pill .title { font-size: 16px; font-weight: 650; margin-bottom: 3px; }
.legal .card.pill p { color: var(--muted); font-size: 15px; }
.legal .row .v b { color: var(--ink); }
.legal .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; }
.legal .chip.h150 { background: var(--t150); color: var(--d150); }
.legal a { color: var(--ink); }
/* .legal a outranks .button, which left button text ink-on-ink (the Duet invite page) */
.legal a.button { color: var(--on-ink); } .legal a.button.quiet { color: var(--ink); }
.legal .foot { padding: 8px 18px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.legal .deco.a { top: -160px; right: -140px; } .legal .deco.c { top: auto; bottom: -140px; }

/* closing */
.closing { padding: 100px 22px 120px; text-align: center; }
.closing .four { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.closing .four .mark { width: 16px; height: 16px; } .closing .four .circle { background: var(--f35); } .closing .four .square { background: var(--f150); } .closing .four .diamond { background: var(--f250); } .closing .four .ring { border-color: var(--f330); }
.closing h2 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -.045em; }
.closing .lede { margin-top: 16px; }
.closing .button { margin-top: 30px; }

footer .wrap { padding: 34px 22px 56px; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 14px 32px; border-top: 1px solid var(--sep); color: var(--muted); font-size: 13px; line-height: 1.55; }
footer b { color: var(--ink); font-size: 14px; }
footer nav { display: flex; gap: 20px; } footer a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .tiles.perfect .halo { animation: none; } .demo-float { animation: none; } .demo { transform: none; transition: none; } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero .wrap, .rules .wrap, .real .wrap, .sound .wrap, .streaks .wrap, .everywhere .wrap, .mosaic .wrap, .account .wrap, .get .wrap { grid-template-columns: 1fr; gap: 40px; }
  footer .wrap { grid-template-columns: 1fr; }
  .everywhere .wrap, .real .wrap { display: grid; }
  .everywhere .wrap > :first-child, .real .wrap > :first-child { order: 2; }
  .hero .wrap { padding-top: 40px; }
  .demo-float { margin: 0 auto; }
  .rules { padding-top: 80px; --pt: 80px; }
  .sound, .streaks, .everywhere, .mosaic, .real { padding-block: 70px; --pt: 70px; }
  .keys { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 44px; }
  .demo { padding: 20px 16px 16px; border-radius: 30px; }
  .tile { height: 136px; }
  .keys { grid-template-columns: repeat(2, 1fr); }
  .lock, .phone { width: 270px; } .lock { height: 570px; }
  .rows .row { flex-direction: column; gap: 4px; } .rows .row .k { flex: none; }
  .duet { grid-template-columns: 1fr; }
}
