/* TroyHealth marketing site. Tokens mirror apps/web/src/styles.css */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/jakarta.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+20A6, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --brand-50: #ecfdf8; --brand-100: #d1f7ec; --brand-200: #a6eedb; --brand-500: #14b88f; --brand-600: #0a9b78; --brand-700: #087c61; --brand-900: #053b2f;
  --ink: #0d1726; --ink-2: #344054; --muted: #5d6779; --line: #eaecf0; --line-2: #f2f4f7;
  --bg: #f6f8fa; --surface: #ffffff; --surface-2: #f9fafb;
  --accent: var(--brand-700);
  --hero: linear-gradient(150deg, #0a9b78 0%, #087c61 55%, #065f4b 100%);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 16px -4px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --sh-3: 0 20px 40px -12px rgba(16, 24, 40, .18);
  --frame: #0d1726;
  --font: 'Plus Jakarta Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-50: #0b2620; --brand-100: #0f3229; --brand-200: #17483b;
    --ink: #eef2f6; --ink-2: #cdd5df; --muted: #98a2b3; --line: #232b38; --line-2: #1a212c;
    --bg: #0b0f16; --surface: #121821; --surface-2: #161d28;
    --accent: var(--brand-500);
    --sh-1: none; --sh-2: 0 0 0 1px var(--line); --sh-3: 0 20px 40px -12px rgba(0, 0, 0, .6);
    --frame: #2a3342;
    color-scheme: dark;
  }
}

/* ============ Base ============ */
*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, ::before, ::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.skip:focus { top: 12px; }

h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lede { font-size: 1.1rem; color: var(--ink-2); }
.body { color: var(--ink-2); }
.narrow { max-width: 620px; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--r-md); font-weight: 700; text-decoration: none; transition: transform .12s, background .15s, border-color .15s; line-height: 1.2; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 12px; }
.btn-lg { min-height: 58px; padding: 0 22px; font-size: 1rem; border-radius: 16px; }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(8, 124, 97, .7); }
.btn-primary:hover { background: #065f4b; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--brand-500); }
.btn .i { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn .i[fill="none"] { fill: none; }
.btn small { display: block; font-size: .75rem; font-weight: 600; opacity: .85; }
.btn span { text-align: left; }

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav nav { margin-left: auto; }
.nav-links { display: none; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { background: var(--line-2); color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 820px) { .nav-links { display: flex; } .nav .btn { margin-left: 8px; } }

/* ============ Hero ============ */
.hero { position: relative; padding: 28px 0 48px; background:
  radial-gradient(700px 420px at 85% 10%, color-mix(in srgb, var(--brand-500) 18%, transparent), transparent 70%),
  radial-gradient(600px 400px at 0% 0%, var(--brand-50), transparent 70%); }
.hero-in { display: grid; gap: 36px; align-items: center; }
.hero-copy h1 { margin-bottom: 16px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 20px; }
.apk-note { font-size: .88rem; color: var(--muted); margin: -8px 0 20px; }
.hero-points { display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-visual { display: flex; justify-content: center; }
@media (min-width: 520px) { .cta-row { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero .phone { width: 300px; }
}

/* ============ Phone & laptop frames ============ */
.phone { position: relative; width: 250px; flex: none; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--surface-2); border: 9px solid var(--frame); border-top-width: 26px; border-bottom-width: 18px; border-radius: 38px; box-shadow: var(--sh-3); }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 46px; height: 6px; background: color-mix(in srgb, var(--frame) 60%, #fff 40%); opacity: .35; border-radius: 6px; }
.phone.sm { width: 220px; }
.phone.sm img { border-width: 7px; border-top-width: 22px; border-bottom-width: 15px; border-radius: 32px; }
.phone.sm::before { top: 8px; width: 40px; height: 5px; }
.phone figcaption { text-align: center; margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }

.laptop { margin: 32px auto 0; max-width: 960px; }
.laptop-screen { border: 8px solid var(--frame); border-bottom-width: 14px; border-radius: 16px 16px 6px 6px; overflow: hidden; box-shadow: var(--sh-3); background: var(--surface-2); }
.laptop-screen img { width: 100%; aspect-ratio: 16 / 10; }
.laptop::after { content: ''; display: block; height: 12px; margin: 0 -4%; background: linear-gradient(var(--frame), color-mix(in srgb, var(--frame) 70%, #000)); border-radius: 0 0 14px 14px; }

/* ============ Sections ============ */
.section { padding: 64px 0; scroll-margin-top: 60px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 96px 0; } }

.steps { display: grid; gap: 16px; margin-top: 28px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.steps h3 { margin: 14px 0 6px; }
.steps p { color: var(--ink-2); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hero); color: #fff; font-weight: 800; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.split { display: grid; gap: 36px; align-items: center; }
.split-copy .body { margin-bottom: 18px; }
.feature-list { display: grid; gap: 14px; color: var(--ink-2); margin-top: 8px; }
.feature-list li { position: relative; padding-left: 30px; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a9b78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.feature-list strong { color: var(--ink); }

/* Horizontal scroll-snap gallery on phones, row on desktop */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 8px 16px 20px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: center; }
@media (min-width: 640px) { .gallery { margin: 0 -24px; padding-inline: 24px; } }
@media (min-width: 1040px) {
  .split { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .split.rev .split-copy { order: 2; }
  .gallery { overflow: visible; margin: 0; padding: 0; justify-content: center; }
  .gallery .phone.sm { width: 200px; }
  .gallery .phone.sm:nth-child(2) { transform: translateY(-24px); }
}

.sub-h { font-size: 1.35rem; margin: 64px 0 18px; }
.cards { display: grid; gap: 16px; margin-top: 24px; }
.sub-h + .cards { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.section.alt .card { background: var(--bg); }
.card h3, .card h4 { margin: 14px 0 6px; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; }
.card-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 700px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.center-cta { text-align: center; margin-top: 28px; }

.pill-grid { display: grid; gap: 12px; margin-top: 24px; }
.pill-grid li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; }
.pill-grid span { color: var(--ink-2); font-size: .93rem; }
@media (min-width: 640px) { .pill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pill-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ FAQ ============ */
.faq-wrap { max-width: 800px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.05rem; font-weight: 700; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a9b78' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--ink-2); max-width: 680px; }

/* ============ Download ============ */
.download { background: linear-gradient(150deg, #087c61 0%, #065f4b 55%, #053b2f 100%); color: #fff; text-align: center; }
.download h2 { color: #fff; }
.download .lede { color: rgba(255, 255, 255, .9); }
.dl-in { max-width: 820px; }
.store-row { display: grid; gap: 12px; margin: 28px auto 20px; max-width: 360px; }
@media (min-width: 720px) { .store-row { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.store { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 18px; border-radius: 16px; background: #0d1726; color: #fff; text-decoration: none; text-align: left; border: 1.5px solid rgba(255, 255, 255, .18); transition: transform .12s, background .15s; }
.store:hover { background: #000; }
.store:active { transform: scale(.98); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: grid; font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.store small { font-size: .75rem; font-weight: 600; opacity: .8; }
.store em { font-style: normal; font-size: .75rem; font-weight: 600; opacity: .8; }
.store.disabled { background: transparent; border-style: dashed; color: rgba(255, 255, 255, .85); cursor: not-allowed; }
.download :focus-visible { outline-color: #fff; }
.install-note { max-width: 520px; margin: 0 auto; text-align: left; background: rgba(0, 0, 0, .16); border-radius: var(--r-md); padding: 4px 16px; }
.install-note summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.install-note ol { list-style: decimal; padding: 0 0 14px 20px; display: grid; gap: 6px; color: rgba(255, 255, 255, .92); }

/* ============ Footer ============ */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { display: grid; gap: 20px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; display: inline-block; padding: 6px 0; }
.footer nav a:hover { color: var(--accent); }
.fine { color: var(--muted); font-size: .85rem; }
/* Company address + legal line */
.addr { font-style: normal; color: var(--ink-2); line-height: 1.6; font-size: 14px; }
.addr b { display: block; color: var(--ink); margin-bottom: 4px; }
.powered { font-weight: 600; }
@media (min-width: 820px) { .foot-in { grid-template-columns: auto 1fr; align-items: center; } .footer nav { justify-self: end; } .fine, .addr { grid-column: 1 / -1; } }
