/* lately.day. Same tokens, faces and wax as the app (proto/index.html). */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(/fonts/newsreader-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(/fonts/newsreader-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(/fonts/newsreader-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(/fonts/newsreader-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #F3EFE8; --surface: #FFFFFF; --hairline: #E6E1D8; --line-2: #DCD6CB; --field: #D9D3C8;
  --ink: #22262B; --ink-2: #3F4449; --muted: #646A71; --on-ink: #FFFFFF;
  --sand: #ECE6DB; --sand-ink: #2A2622; --sand-muted: #6B6258;
  --wax: #A63E30; --wax-text: #A63E30; --bar-off: #C9C6C0;
  --band: #22262B; --band-ink: #EDE8DF; --band-line: #3A3E44; --band-dot: #C4564A;
  --shadow: rgba(34, 38, 43, .35);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', -apple-system, system-ui, sans-serif;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
/* Light by default. The app's dark palette is kept for a future toggle. */
  :root[data-theme="dark"] {
    --ground: #1A1917; --surface: #252320; --hairline: #37342F; --line-2: #3F3B35; --field: #4A463F;
    --ink: #EDE8DF; --ink-2: #D8D2C8; --muted: #A9A398; --on-ink: #1C1B19;
    --sand: #2E2B27; --sand-ink: #E4DED4; --sand-muted: #A9A398;
    --wax: #C4564A; --wax-text: #E08476; --bar-off: #4D4943;
    --band: #252320; --band-ink: #EDE8DF; --band-line: #37342F; --band-dot: #C4564A;
    --shadow: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--wax-text); }
:focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.serif { font-family: var(--serif); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: max(28px, env(safe-area-inset-top, 0px)) 28px; }
.brand { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); font: italic 400 28px/1 var(--serif); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand::after { content: ""; width: .2em; height: .2em; border-radius: 50%; background: var(--wax); margin-left: .07em; flex: 0 0 auto; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; padding-block: 10px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--wax); }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; padding-block: 64px 104px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font: italic 400 clamp(52px, 7.4vw, 104px)/.98 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }

.signup { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin-top: 8px; }
.signup label { font-size: 14px; font-weight: 600; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] { flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid var(--field); border-radius: 26px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.signup input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 26px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-solid { border: 0; background: var(--ink); color: var(--on-ink); }
.btn-solid:hover { color: var(--on-ink); opacity: .9; }
.btn-solid[disabled] { opacity: .6; cursor: default; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { color: var(--ink); background: var(--surface); }
.signup .note { font-size: 13px; color: var(--muted); }
.signup .error { font-size: 14px; color: var(--wax-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kept { display: flex; align-items: center; gap: 18px; max-width: 480px; margin-top: 8px; padding: 18px 22px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface); }
.kept img { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; }
.kept-title { font: italic 400 22px/1.2 var(--serif); }
.kept-sub { font-size: 14px; color: var(--muted); }

/* hero composition */
.scene { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; padding-block: 24px; }
.scene-inner { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; padding-bottom: 56px; }
.page { position: relative; border-radius: 22px; display: flex; flex-direction: column; }
.page-back { margin-left: 8%; width: 77%; padding: 26px 28px 72px; background: var(--sand); color: var(--sand-ink); transform: rotate(4deg); gap: 10px; }
.page-back .when { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sand-muted); }
.page-back p:last-child { font: 400 20px/1.4 var(--serif); }
.page-front { margin-top: -52px; width: 82%; padding: 28px 30px 30px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 24px 48px -28px var(--shadow); transform: rotate(-2.5deg); gap: 14px; }
.page-front .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.page-front .day { font: italic 400 22px/1.1 var(--serif); }
.page-front .time, .voice .len { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-front .words { font: 400 21px/1.42 var(--serif); }
.voice { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.voice .play { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.voice .play svg path { fill: var(--on-ink); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.wave i { width: 3px; border-radius: 2px; background: var(--bar-off); flex: 0 0 auto; }
.wave i.on { background: var(--ink); }
.wave i:nth-child(1) { height: 6px; }
.wave i:nth-child(2) { height: 10px; }
.wave i:nth-child(3) { height: 16px; }
.wave i:nth-child(4) { height: 9px; }
.wave i:nth-child(5) { height: 20px; }
.wave i:nth-child(6) { height: 14px; }
.wave i:nth-child(7) { height: 24px; }
.wave i:nth-child(8) { height: 12px; }
.wave i:nth-child(9) { height: 18px; }
.wave i:nth-child(10) { height: 8px; }
.wave i:nth-child(11) { height: 22px; }
.wave i:nth-child(12) { height: 15px; }
.wave i:nth-child(13) { height: 26px; }
.wave i:nth-child(14) { height: 11px; }
.wave i:nth-child(15) { height: 19px; }
.wave i:nth-child(16) { height: 7px; }
.wave i:nth-child(17) { height: 16px; }
.wave i:nth-child(18) { height: 21px; }
.wave i:nth-child(19) { height: 10px; }
.wave i:nth-child(20) { height: 14px; }
.wave i:nth-child(21) { height: 6px; }
.wave i:nth-child(22) { height: 12px; }
.wave i:nth-child(23) { height: 18px; }
.wave i:nth-child(24) { height: 9px; }
.wave i:nth-child(25) { height: 13px; }
.wave i:nth-child(26) { height: 7px; }
.wave i:nth-child(27) { height: 10px; }
.wave i:nth-child(28) { height: 5px; }
.seal { position: absolute; right: -2%; bottom: -4px; width: 112px; height: 112px; border-radius: 26px; transform: rotate(8deg); box-shadow: 0 18px 36px -20px var(--shadow); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px 56px; padding-block: 56px 96px; border-top: 1px solid var(--hairline); }
.principles > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.principles h2 { font: italic 400 30px/1.15 var(--serif); }
.principles p { line-height: 1.6; color: var(--ink-2); }

/* privacy band */
.band { background: var(--band); color: var(--band-ink); }
.band-inner { padding-block: 96px; display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.band h2 { flex: 1 1 380px; min-width: 0; font: italic 400 clamp(40px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.band-list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.band ul { list-style: none; padding: 0; }
.band li { display: flex; gap: 16px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--band-line); font-size: 18px; }
.band li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--band-dot); flex: 0 0 auto; transform: translateY(-3px); }
.band a { color: var(--band-ink); font-size: 15px; font-weight: 500; text-underline-offset: 4px; align-self: flex-start; padding-block: 8px; }

/* closing */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 96px; }
.closing p { flex: 1 1 420px; min-width: 0; font: italic 400 clamp(30px, 3.6vw, 44px)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: 32px max(44px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.site-foot .left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.site-foot .brand { font-size: 20px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot nav a, .site-foot .addr { color: var(--ink-2); }
.addr { user-select: all; }

/* text pages */
.doc { max-width: 720px; display: flex; flex-direction: column; gap: 56px; padding-block: 48px 112px; }
.doc-head { display: flex; flex-direction: column; gap: 16px; }
.doc h1, .support h1 { font: italic 400 clamp(44px, 6vw, 72px)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.doc section { display: flex; flex-direction: column; gap: 14px; }
.doc h2 { font: italic 400 32px/1.15 var(--serif); }
.doc p { line-height: 1.6; color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.short { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline); }
.short h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.short p { font: 400 22px/1.45 var(--serif); color: var(--ink); }
.table-box { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); }
.table-box table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-box th { text-align: left; padding: 14px 20px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.table-box td { padding: 16px 20px; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid var(--hairline); }
.table-box tr:last-child td { border-bottom: 0; }
.table-box td:first-child { font-weight: 600; color: var(--ink); }
.small { font-size: 14px; color: var(--muted) !important; }

.support { display: flex; flex-wrap: wrap; gap: 48px 88px; align-items: flex-start; padding-block: 48px 112px; }
.support-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline); }
.contact p:first-child { font-size: 15px; color: var(--ink-2); }
.contact .addr { font: italic 400 26px/1.2 var(--serif); overflow-wrap: anywhere; }
.contact p:last-child { font-size: 13px; color: var(--muted); }
.faq { flex: 1 1 520px; min-width: 0; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 34em; line-height: 1.6; }

.thanks { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-block: 96px 128px; max-width: 640px; }
.thanks img { width: 96px; height: 96px; border-radius: 22px; }
.thanks h1 { font: italic 400 clamp(44px, 6vw, 72px)/1 var(--serif); letter-spacing: -.02em; }
.thanks p { font-size: 19px; color: var(--ink-2); }

@media (max-width: 520px) {
  .hero { padding-block: 32px 72px; gap: 40px; }
  .page-front .words { font-size: 19px; }
  .seal { width: 92px; height: 92px; border-radius: 22px; }
  .band-inner, .closing { padding-block: 72px; }
  .signup-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
