/* steady: the app's look, sized for the web.
   #F5F5F5 ground, black ink, #6B6B6B second voice, #D9D9D9 days ahead. */
:root {
  --bg: #F5F5F5;
  --ink: #000;
  --ink2: #6B6B6B;
  --ahead: #D9D9D9;
  --card: #FFF;
  --track: #EBEBEB;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* type: the app's two-line headline, black then grey */
.head { text-wrap: balance; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(44px, 8.2vw, 92px); }
.head .l1, .head .l2 { display: block; }
.head .l2 { color: var(--ink2); }
h2 { text-wrap: balance; font-weight: 700; letter-spacing: -0.028em; line-height: 1.08; font-size: clamp(30px, 4.4vw, 48px); }
.small { font-size: 15px; color: var(--ink2); }

/* buttons: the app's black rounded rect, never a pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px; border-radius: 18px; border: 0;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { background: #262626; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 13px; font-size: 15px; }
.arrow { font-size: 17px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.arrow::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); border-radius: 1px; transition: transform .2s var(--ease); }
.arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* nav: the app's white rounded bar, floating */
.nav-wrap { padding: 14px var(--gutter) 0; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.nav {
  max-width: var(--max); margin-inline: auto; display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 20px; padding: 8px 8px 8px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin-right: auto; }
.mark { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-right: 8px; }
.nav-links a { text-decoration: none; color: var(--ink2); font-size: 15px; padding: 8px 12px; border-radius: 12px; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* hero: the home screen, made big */
.hero { padding-block: clamp(36px, 7vh, 88px) clamp(24px, 4vh, 48px); padding-inline: var(--gutter); }
.hero .col { max-width: 640px; margin-inline: auto; }
.hero .head { font-size: clamp(38px, 5.6vw, 60px); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 18px; }
.tabs button { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 17px; color: var(--ink2); display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.tabs button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ahead); transition: background-color .15s; }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button[aria-pressed="true"]::before { background: var(--ink); }
.tabs button:hover { color: var(--ink); }

.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 1.4vw, 12px); margin-top: clamp(24px, 4vw, 36px); max-width: 420px; }
.month .dot {
  aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: var(--ahead); cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.month .dot.done { background: var(--ink); }
.month .dot.today { background: transparent; box-shadow: inset 0 0 0 2.5px var(--ink); }
.month .dot.today.done { background: var(--ink); }
.month .dot:not(:disabled):active { transform: scale(.9); }
.month .dot:disabled { cursor: default; }
.hint { min-height: 1.5em; margin-top: 18px; font-size: 15px; color: var(--ink2); }
.intro { margin-top: 28px; font-size: clamp(18px, 2vw, 20px); line-height: 1.45; max-width: 34em; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

/* paper and phone, overlapping */
.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 96px) clamp(56px, 9vw, 120px); }
.stage { position: relative; min-height: clamp(420px, 52vw, 600px); }
.paper {
  position: absolute; left: 0; top: 0; width: 72%; aspect-ratio: 210 / 297; background: #fff; border-radius: 3px;
  transform: rotate(-3.5deg); transform-origin: 30% 20%;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 24px -10px rgba(0,0,0,.14), 0 38px 70px -30px rgba(0,0,0,.22);
}
.paper svg { width: 100%; height: 100%; display: block; }
.stage .phone { position: absolute; right: 2%; bottom: 0; width: 40%; transform: rotate(4deg); }
.duo-text p { margin-top: 18px; color: var(--ink2); font-size: 19px; max-width: 28em; }
.duo-text .arrow { margin-top: 22px; }

/* phones: the real app screen, framed by the browser (stays sharp at any size) */
.phone { display: block; width: 100%; container-type: inline-size; }
.phone img {
  display: block; width: 100%; height: auto; box-sizing: border-box;
  border: 3.2cqw solid #0c0c0c; border-radius: 16cqw; background: #0c0c0c;
  box-shadow: 0 0 0 max(1px, .55cqw) #cfcfd2, 0 2px 4px rgba(0,0,0,.06), 0 30px 50px -24px rgba(0,0,0,.32);
}

/* a day with steady: a row you swipe; on wide screens the phone stays while the day scrolls */
.day { padding-block: clamp(48px, 7vw, 96px); }
.day-stage { display: none; }
.day-steps {
  list-style: none; margin: clamp(28px, 4vw, 48px) calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 280px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.day-steps::-webkit-scrollbar { display: none; }
.day-steps li { scroll-snap-align: center; }
.day-shot { margin-bottom: 22px; }
.day .k { font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.day h3 { margin-top: 4px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.day h3 + p { margin-top: 6px; color: var(--ink2); font-size: 17px; max-width: 24em; }
@media (min-width: 900px) {
  html:not(.js) .day-steps { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; }
  .js .day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
  .js .day-stage { display: block; }
  .js .day-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
  .js .day-sticky .phone { grid-area: 1 / 1; width: min(320px, calc((100vh - 120px) / 2.25)); opacity: 0; transition: opacity .5s var(--ease); }
  .js .day-sticky .phone.on { opacity: 1; }
  .js .day-steps { display: block; overflow: visible; margin: 0; padding: 0; }
  .js .day-steps li { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); }
  .js .day-steps li.on { opacity: 1; }
  .js .day-shot { display: none; }
  .js .day .k { font-size: 15px; }
  .js .day h3 { font-size: clamp(30px, 3.2vw, 42px); }
  .js .day h3 + p { margin-top: 10px; font-size: 19px; }
}

/* not only a break: two phones side by side, even on a phone */
.ways { padding-block: clamp(48px, 7vw, 96px); text-align: center; }
.ways-grid { margin: clamp(28px, 4vw, 48px) auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; gap: clamp(16px, 6vw, 96px); }
.ways figure { display: grid; gap: 20px; align-content: start; justify-items: center; }
.ways figcaption { color: var(--ink2); font-size: clamp(15px, 1.6vw, 17px); }
.ways figcaption b { display: block; color: var(--ink); font-weight: 600; }
.also { margin-top: clamp(40px, 5vw, 64px); max-width: 40em; margin-inline: auto; text-align: center; color: var(--ink2); }

/* your colours: four phones fanned */
.colours { text-align: center; padding-block: clamp(48px, 7vw, 96px); }
.colours > p { margin-top: 14px; color: var(--ink2); }
.fan { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; }
.fan .phone { width: min(24vw, 240px); margin-inline: max(-28px, -2.5vw); }
.fan .phone:nth-child(1) { transform: rotate(-6deg) translateY(18px); }
.fan .phone:nth-child(2) { transform: rotate(-2deg); position: relative; z-index: 1; }
.fan .phone:nth-child(3) { transform: rotate(2deg); position: relative; z-index: 2; }
.fan .phone:nth-child(4) { transform: rotate(6deg) translateY(18px); position: relative; z-index: 3; }

/* the medal */
.medal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 96px); max-width: 960px; }
.medal-text p { margin-top: 16px; color: var(--ink2); font-size: 19px; max-width: 26em; }
@media (max-width: 640px) { .medal { grid-template-columns: 1fr; } .medal .phone { max-width: 240px; margin-inline: auto; } }

.private { padding-block: clamp(64px, 10vw, 140px); text-align: center; }
.private .head { font-size: clamp(30px, 5.6vw, 64px); max-width: 15em; margin-inline: auto; }
.private .small { margin-top: 22px; }

.story { max-width: 720px; padding-block: 0 clamp(48px, 7vw, 96px); }
.story p { margin-top: 16px; font-size: 20px; color: var(--ink2); }

.beta { text-align: center; padding-block: clamp(48px, 7vw, 96px); max-width: 640px; }
.appicon { width: 88px; height: 88px; border-radius: 22.5%; display: block; margin: 0 auto 28px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 28px -14px rgba(0,0,0,.3); }
.beta p { margin-top: 16px; color: var(--ink2); }
.beta .btn { margin-top: 28px; }
.beta .pending { color: var(--ink); font-weight: 600; margin-top: 24px; }

/* questions: the app's white "check in" rows */
.qa { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); max-width: 820px; }
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 14px; height: 14px; color: var(--ink2); flex: none; transition: transform .2s var(--ease); }
.faq details[open] .chev { transform: rotate(90deg); }
.faq details p { padding: 0 22px 22px; color: var(--ink2); max-width: 40em; }

/* page headers (tracker, dry january, privacy) */
.page-head { padding-block: clamp(40px, 7vh, 88px) clamp(28px, 4vw, 44px); }
.page-head .head { font-size: clamp(34px, 5.8vw, 72px); }
.lede { margin-top: 24px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; max-width: 36em; }

/* the tool */
.tool { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.controls { background: var(--card); border-radius: 26px; padding: 24px; display: grid; gap: 22px; position: sticky; top: 16px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-size: 14px; color: var(--ink2); }
.field input, .field select {
  height: 50px; border-radius: 14px; border: 0; background: var(--bg); padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%236B6B6B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.field input::placeholder { color: #6E6E6E; }
.habits { display: grid; gap: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--track); border-radius: 13px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 10px; min-height: 40px; cursor: pointer; font-size: 15px; color: var(--ink2); transition: background-color .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.tool-actions { display: grid; gap: 14px; justify-items: center; }
.tool-actions .btn { width: 100%; }
.linkbtn { background: none; border: 0; padding: 4px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.preview { display: grid; gap: 16px; justify-items: center; }
.preview .paper { position: relative; width: min(100%, 600px); transform: none; }
.preview .paper.letter { aspect-ratio: 215.9 / 279.4; }
.preview .hint { margin: 0; text-align: center; }
.sheet-dot { cursor: pointer; }
@media (hover: hover) { .sheet-dot:hover { stroke: #000; } }
@media (max-width: 860px) {
  .tool { grid-template-columns: 1fr; }
  .controls { position: static; }
}

/* reading sections under the tool */
.prose { padding-block: clamp(40px, 6vw, 72px); }
.prose > h2 + * { margin-top: 24px; }
.dots-list { list-style: none; padding: 0; display: grid; gap: 16px; max-width: 40em; }
.dots-list li { position: relative; padding-left: 26px; font-size: 19px; }
.dots-list li::before { content: ""; position: absolute; left: 0; top: .52em; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 760px; }
.ideas h3 { font-size: 19px; font-weight: 600; }
.ideas ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; color: var(--ink2); }
.ideas li { display: flex; align-items: center; gap: 12px; }
.ideas li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #BDBDBD; flex: none; }
@media (max-width: 560px) { .ideas { grid-template-columns: 1fr; } }

.bridge { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.bridge p { margin-top: 16px; color: var(--ink2); font-size: 19px; max-width: 30em; }
.bridge .btn, .bridge .pending { margin-top: 26px; }
.bridge .pending { font-weight: 600; }
@media (max-width: 640px) { .bridge { grid-template-columns: 1fr; } .bridge .phone { max-width: 220px; } }
.bridge .phone { max-width: 260px; }

/* dry january */
.answer { margin-top: 26px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.42; max-width: 34em; }
.start { margin-top: 18px; color: var(--ink2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.stats b { display: block; font-size: clamp(38px, 8vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stats span { display: block; margin-top: 8px; color: var(--ink2); }
.note { margin-top: 24px; font-size: 15px; color: var(--ink2); max-width: 44em; }
@media (max-width: 560px) { .stats { gap: 14px; } .stats span { font-size: 15px; } }
.tips { display: grid; gap: 22px; max-width: 44em; }
.tips dt { font-weight: 600; font-size: 19px; }
.tips dd { margin-top: 4px; color: var(--ink2); }
.safety { background: var(--card); border-radius: 24px; padding: clamp(22px, 3vw, 32px); max-width: 44em; }
.safety h2 { font-size: 22px; letter-spacing: -0.01em; }
.safety p { margin-top: 10px; }
.sources ol { margin-top: 16px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: var(--ink2); }
.sources a { text-underline-offset: 3px; }
.updated { margin-top: 20px; font-size: 14px; color: var(--ink2); }
.embed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.embed .paper { position: relative; width: 100%; transform: none; }
.embed-side { display: grid; gap: 18px; align-content: start; }
.embed-side p { color: var(--ink2); }
@media (max-width: 760px) { .embed { grid-template-columns: 1fr; } }

/* privacy */
.legal { padding-bottom: clamp(56px, 8vw, 104px); max-width: 760px; }
.legal section + section { margin-top: 32px; }
.legal h2 { font-size: 24px; letter-spacing: -0.015em; }
.legal p { margin-top: 10px; color: var(--ink2); }

/* footer: one quiet block */
.foot { padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; gap: 18px; font-size: 15px; color: var(--ink2); }
.foot-line { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.langs { position: relative; justify-self: start; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin-left: -12px; border-radius: 12px; color: var(--ink2); transition: color .15s, background-color .15s; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--ink); background: var(--card); }
.langs .globe { width: 15px; height: 15px; }
.langs .chev { width: 11px; height: 11px; transition: transform .2s var(--ease); }
.langs[open] .chev { transform: rotate(180deg); }
.langs ul { list-style: none; margin: 0; padding: 6px; position: absolute; bottom: calc(100% + 6px); left: -12px; min-width: 180px; background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 16px 32px -12px rgba(0,0,0,.22); z-index: 5; }
.langs li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink2); }
.langs li a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.langs li a[aria-current] { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .stage { min-height: 0; aspect-ratio: 1 / 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* printing: only the sheet, edge to edge */
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root svg { display: block; width: 100%; height: auto; }
}
