/* Telos Health website. Built on the app's design system (New App/designsystem.md): the same tokens, type,
   radii, ring pattern and grain. Quiet by default, loud when it matters. */

@font-face { font-family: Geist; src: url(fonts/Geist-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F3EEE3; --surface: #FFFFFF; --sunk: #EAE4D6; --tx: #161C18; --mut: #5E6861;
  --hl: rgba(22,28,24,.09); --hl2: rgba(22,28,24,.20);
  --acc: #2C7A66; --accTx: #2C7A66; --btn: #123C31; --btnFg: #F3EEE3;
  --field: #6FC6AC; --fieldFg: #0B110E; --fieldPat: rgba(11,17,14,.16);
  --deep: #123C31; --deepFg: #E9F0EA; --mint: #6FC6AC;
  --marigold: #F2A93B; --marigoldFg: #123C31;
  --grain-blend: multiply;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B110E; --surface: #141D19; --sunk: #0F1713; --tx: #E9F0EA; --mut: #8C978F;
    --hl: rgba(233,240,234,.10); --hl2: rgba(233,240,234,.20);
    --acc: #6FC6AC; --accTx: #6FC6AC; --btn: #6FC6AC; --btnFg: #0B110E;
    --field: #123C31; --fieldFg: #E9F0EA; --fieldPat: rgba(111,198,172,.22);
    --grain-blend: screen;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B110E; --surface: #141D19; --sunk: #0F1713; --tx: #E9F0EA; --mut: #8C978F;
  --hl: rgba(233,240,234,.10); --hl2: rgba(233,240,234,.20);
  --acc: #6FC6AC; --accTx: #6FC6AC; --btn: #6FC6AC; --btnFg: #0B110E;
  --field: #123C31; --fieldFg: #E9F0EA; --fieldPat: rgba(111,198,172,.22);
  --grain-blend: screen;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--tx); font: 500 17px/1.55 Geist, system-ui, -apple-system, sans-serif;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono, .eyebrow { font-family: "Geist Mono", ui-monospace, monospace; font-weight: 400; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { color: var(--accTx); }
.mut { color: var(--mut); }

/* Buttons (app: 54px, radius 12, 16/700) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 12px;
       background: var(--btn); color: var(--btnFg); font: 700 16px/1 Geist, sans-serif; text-decoration: none; border: 0; cursor: pointer;
       transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.btn:active { transform: scale(.97); }
.btn.secondary { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 1px var(--hl2); }
.btn.small { height: 42px; padding: 0 18px; font-size: 14.5px; }
.textlink { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Nav: quiet, sticky, hairline once scrolled */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
       -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--hl); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: block; height: 30px; width: auto; }
.logo-light { display: block; } .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--mut); }
.nav-links a:not(.btn):hover { color: var(--tx); }
@media (max-width: 560px) { .nav-links .hide-sm { display: none; } }

/* Type scale (at most three sizes per section) */
h1, h2, h3 { margin: 0; font-weight: 600; }
.display { font-size: clamp(44px, 9vw, 96px); line-height: .92; letter-spacing: -.045em; }
.title { font-size: clamp(32px, 5.4vw, 56px); line-height: 1; letter-spacing: -.035em; }
.lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--mut); max-width: 34em; }
p { margin: 0; }

section { position: relative; }
.quiet { padding: clamp(72px, 11vw, 128px) 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 9vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .lede { margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.hero .note { margin-top: 18px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { margin: 8px auto 0; } }

/* Phone frame around real app screenshots (390×844 screens in the 48pt-radius device) */
.phone { width: min(100%, 320px); aspect-ratio: 390 / 844; border-radius: 46px; padding: 9px; background: #0B110E;
         box-shadow: 0 30px 80px -30px rgba(11,17,14,.45), 0 0 0 1px rgba(255,255,255,.06) inset; flex: none; }
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; object-position: top; }
.phone.sm { width: min(100%, 260px); }

/* Loud fields: one colour, edge to edge, ring pattern + grain */
.loud { color: var(--fg); background: var(--bgc); overflow: hidden; isolation: isolate; }
.loud::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: var(--patOp, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%230B110E' stroke-width='1.1'%3E%3Ccircle cx='24' cy='24' r='14.4'/%3E%3Cpath d='M24 2.88a21.12 21.12 0 0 1 21.12 21.12'/%3E%3Ccircle cx='24' cy='24' r='2.88'/%3E%3C/svg%3E"); }
.loud::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.loud.mint { --bgc: var(--field); --fg: var(--fieldFg); }
.loud.deep { --bgc: var(--deep); --fg: var(--deepFg); --patOp: .22; --grain-blend: screen; }
.loud.deep::before, .loud.mint.on-dark::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%236FC6AC' stroke-width='1.1'%3E%3Ccircle cx='24' cy='24' r='14.4'/%3E%3Cpath d='M24 2.88a21.12 21.12 0 0 1 21.12 21.12'/%3E%3Ccircle cx='24' cy='24' r='2.88'/%3E%3C/svg%3E"); }
.loud.marigold { --bgc: var(--marigold); --fg: var(--marigoldFg); --grain-blend: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .loud.mint::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%236FC6AC' stroke-width='1.1'%3E%3Ccircle cx='24' cy='24' r='14.4'/%3E%3Cpath d='M24 2.88a21.12 21.12 0 0 1 21.12 21.12'/%3E%3Ccircle cx='24' cy='24' r='2.88'/%3E%3C/svg%3E"); --patOp: .22; } }
:root[data-theme="dark"] .loud.mint::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%236FC6AC' stroke-width='1.1'%3E%3Ccircle cx='24' cy='24' r='14.4'/%3E%3Cpath d='M24 2.88a21.12 21.12 0 0 1 21.12 21.12'/%3E%3Ccircle cx='24' cy='24' r='2.88'/%3E%3C/svg%3E"); --patOp: .22; }

/* Telos Age moment */
.age { padding: clamp(80px, 12vw, 150px) 0; }
.age .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.age .number { font-size: clamp(170px, 30vw, 330px); font-weight: 600; letter-spacing: -.07em; line-height: .78; margin-left: -.04em; }
.age .headline { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; max-width: 13em; }
.age .meta { margin-top: 18px; }
.age p.body { margin-top: 22px; font-size: 17px; line-height: 1.55; max-width: 32em; opacity: .86; }
@media (max-width: 760px) { .age .wrap { grid-template-columns: 1fr; gap: 12px; } }

/* How it works: three steps with screens */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 44px); margin-top: 56px; }
.step .phone { margin: 0 auto 26px; }
.step .num { color: var(--accTx); }
.step h3 { font-size: 22px; letter-spacing: -.02em; margin-top: 8px; }
.step p { margin-top: 8px; color: var(--mut); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 56px; } .step { max-width: 420px; margin: 0 auto; } }

/* Split sections (text + phone) */
.split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 7vw, 96px); align-items: center; }
.split.flip .wrap { grid-template-columns: 320px minmax(0, 1fr); }
.split.flip .text { order: 2; }
.split .lede { margin-top: 18px; }
@media (max-width: 820px) { .split .wrap, .split.flip .wrap { grid-template-columns: 1fr; } .split.flip .text { order: 0; } .split .phone { margin: 0 auto; } }

/* Rows (the app's hairline lists) */
.rows { margin-top: 34px; border-top: 1px solid var(--hl); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--hl); }
.row strong { font-size: 17px; font-weight: 600; }
.row .mono { color: var(--mut); text-align: right; }
@media (max-width: 480px) { .row { flex-direction: column; gap: 4px; } .row .mono { text-align: left; } }

/* Festival */
.festival { padding: clamp(80px, 12vw, 140px) 0; }
.festival .display { max-width: 9em; }
.fest-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 7vw, 96px); align-items: center; }
@media (max-width: 820px) { .fest-grid { grid-template-columns: 1fr; } .fest-grid .phone { margin: 0 auto; } }
.festival .lede { color: inherit; opacity: .82; margin-top: 22px; }
.seasons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.seasons span { font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px;
                border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(18,60,49,.35); }

/* Data promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; }
.promise { background: var(--surface); border-radius: 20px; padding: 22px 20px 24px; box-shadow: inset 0 0 0 1px var(--hl); }
.promise strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.promise p { margin-top: 6px; font-size: 15px; color: var(--mut); line-height: 1.45; }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--hl); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hl); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
               padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--mut); border-bottom: 1.5px solid var(--mut);
                      transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq .answer { padding: 0 0 22px; color: var(--mut); max-width: 44em; }
.faq .answer p + p { margin-top: 10px; }

/* Closing */
.closing { padding: clamp(90px, 13vw, 160px) 0; text-align: center; }
.closing .display { margin: 0 auto; max-width: 9em; }
.closing .lede { color: inherit; opacity: .8; margin: 20px auto 0; }
.closing .btn { margin-top: 34px; background: var(--mint); color: #0B110E; }

/* Footer */
footer { padding: 44px 0 56px; border-top: 1px solid var(--hl); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; }
footer nav a { text-decoration: none; }
footer .fine { color: var(--mut); max-width: 36em; line-height: 1.5; margin-top: 12px; }

/* Reveal on scroll (off with Reduce Motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Document pages (privacy, support) */
.doc { padding: clamp(40px, 7vw, 80px) 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 7vw, 52px); line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 16px; }
.doc h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc section { border-top: 1px solid var(--hl); padding: 34px 0 6px; }
.doc ul { padding-left: 20px; margin: 8px 0 16px; } .doc li { margin: 6px 0; }
.doc p + p { margin-top: 12px; }
.doc a { color: var(--accTx); }
.card { background: var(--surface); border-radius: 20px; padding: 22px 22px; box-shadow: inset 0 0 0 1px var(--hl); }
.doc a.btn { color: var(--btnFg); text-decoration: none; }
.doc ul.short { padding-left: 0; margin: 28px 0 36px; }
