/* VytalCoach website — shared styles */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --purple: #6D28D9;
  --purple-dark: #4C1D95;
  --purple-ink: #5B21B6;
  --purple-tint: #EDE5FC;
  --purple-soft: #C9B6F7;
  --orange: #E8672A;
  --orange-ink: #B4470F;
  --orange-tint: #FFF1E8;
  --teal-ink: #0B7A6E;
  --teal-tint: #E3F5F2;
  --red-ink: #C42B4B;
  --red-tint: #FDECEF;
  --blue-ink: #1D5BD8;
  --blue-tint: #E8F0FE;
  --ink: #16151C;
  --ink-2: #2B2933;
  --muted: #4A4754;
  --muted-2: #67646F;
  --line: #E8E6EF;
  --bg: #F6F5FA;
  --card: #FFFFFF;
  --radius: 24px;
  --shadow-phone: 0 30px 60px rgba(46, 16, 101, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; }
p { margin: 0; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section.white { background: var(--card); }
.section.dark { background: var(--ink); color: #fff; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--purple); letter-spacing: 0.06em; text-transform: uppercase; }
.dark .eyebrow { color: var(--purple-soft); }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; }
.h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 250, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
.nav .btn-nav { height: 44px; padding: 0 18px; border-radius: 12px; background: var(--purple); color: #fff; display: inline-flex; align-items: center; }
/* White text in every state, including on the download page itself (aria-current would otherwise turn it purple). */
.nav .btn-nav, .nav .btn-nav[aria-current="page"] { color: #fff; }
.nav .btn-nav:hover, .nav .btn-nav[aria-current="page"]:hover { background: var(--purple-dark); color: #fff; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.store:hover { background: var(--ink-2); color: #fff; }
.store small { display: block; font-size: 11px; font-weight: 600; color: #D9D6E0; line-height: 1.1; }
.store strong { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; }
.btn-ghost { display: inline-flex; align-items: center; height: 58px; padding: 0 22px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 1.5px #D9D6E0; }
.btn-ghost:hover { color: var(--purple); }
.pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--purple-tint); color: var(--purple-ink); font-size: 14px; font-weight: 700; }

/* Phone frame */
.phone { width: 320px; max-width: 100%; padding: 10px; background: var(--ink); border-radius: 48px; box-shadow: var(--shadow-phone); flex: 0 0 auto; }
.phone img { width: 100%; border-radius: 38px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #F3F3F7; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; }
.hero-visual { flex: 0 1 auto; margin: 0 auto; }
.note { font-size: 14px; color: var(--muted-2); }

/* Strip */
.strip { background: #fff; border-top: 1px solid #ECEAF2; border-bottom: 1px solid #ECEAF2; }
.strip ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; padding-top: 24px; padding-bottom: 24px; font-size: 15px; font-weight: 700; color: var(--muted); }
.strip li { display: flex; align-items: center; gap: 8px; }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.section.white .card { background: var(--bg); }
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--muted); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.t-purple { background: var(--purple-tint); color: var(--purple); }
.t-red { background: var(--red-tint); color: var(--red-ink); }
.t-orange { background: var(--orange-tint); color: var(--orange-ink); }
.t-teal { background: var(--teal-tint); color: var(--teal-ink); }
.t-blue { background: var(--blue-tint); color: var(--blue-ink); }
.step-num { width: 44px; height: 44px; border-radius: 14px; background: var(--purple); color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
ol.grid3 { list-style: none; margin: 0; padding: 0; }

/* Screens row */
.screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.screens figcaption { font-size: 16px; font-weight: 700; }

/* Feature rows */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.row.rev { flex-direction: row-reverse; }
.row .copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; }
.row .copy p { font-size: 18px; color: var(--muted); }
.row .phone { margin: 0 auto; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ticks svg { flex: 0 0 auto; margin-top: 1px; }
.small { font-size: 14px !important; color: var(--muted-2) !important; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.chips a { padding: 10px 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }

/* Privacy band */
.privacy-band .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.privacy-band .left { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.privacy-band ul { flex: 1 1 520px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.privacy-band li { display: flex; gap: 14px; font-size: 17px; color: #E6E4EC; }
.privacy-band li strong { color: #fff; }
.privacy-band a { color: var(--purple-soft); font-weight: 700; text-decoration: none; }

/* CTA */
.cta { background: var(--purple); color: #fff; border-radius: 32px; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta p { color: #E9DEFD; font-size: 17px; margin-top: 12px; }

/* Download */
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 28px rgba(46, 16, 101, 0.25); }
.qr { display: flex; align-items: center; gap: 14px; }
.qr img { width: 104px; height: 104px; padding: 8px; background: #fff; border-radius: 14px; }
.qr span { font-size: 14px; color: var(--muted); max-width: 160px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--purple); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps span:last-child { padding-top: 4px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 14px; background: #E8E7EE; }
.toggle button { height: 44px; padding: 0 18px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(22, 21, 28, 0.08); }
.plans { width: 100%; max-width: 900px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 32px auto 0; }
.plan { background: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan.pro { background: var(--ink); color: #fff; box-shadow: 0 20px 40px rgba(46, 16, 101, 0.25); }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan .per { font-size: 14px; color: var(--muted-2); }
.plan.pro .per { color: #B9B6C4; }
.plan.pro .ticks li { color: #E6E4EC; }
.badge { padding: 5px 10px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 12px; font-weight: 700; }
.fine { font-size: 13px; color: var(--muted-2); text-align: center; max-width: 660px; margin: 20px auto 0; }
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--bg); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Legal */
.legal-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 28px; }
.legal-head h1 { font-size: clamp(36px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.draft { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--orange-tint); color: #8A3A10; margin-bottom: 36px; font-size: 14px; }
.draft svg { flex: 0 0 auto; margin-top: 2px; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 40px; }
.glance div { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--purple); }
.glance strong { color: var(--ink); font-size: 16px; }
.glance span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.legal-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.toc { flex: 1 1 220px; max-width: 280px; background: #fff; border-radius: 20px; padding: 12px; }
.toc p { padding: 8px 12px; font-size: 12px; font-weight: 800; color: var(--muted-2); letter-spacing: 0.06em; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.toc a:hover { background: var(--purple-tint); color: var(--purple-ink); }
.legal { flex: 999 1 560px; min-width: 0; max-width: 780px; background: #fff; border-radius: 24px; padding: 8px 40px 32px; }
.legal h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; scroll-margin-top: 96px; }
.legal h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.legal table { width: 100%; border-collapse: collapse; min-width: 420px; }
.legal th { text-align: left; font-size: 14px; color: var(--muted-2); padding: 10px 12px; border-bottom: 1.5px solid #E6E4EC; }
.legal td { font-size: 15px; padding: 12px; border-bottom: 1px solid #F1EFF5; vertical-align: top; }

/* Footer */
.site-footer { background: var(--ink); color: #B9B6C4; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer .brand-f { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.site-footer .brand-f img { width: 32px; height: 32px; border-radius: 9px; }
.site-footer .brand-f strong { color: #fff; font-size: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #B9B6C4; text-decoration: none; font-size: 14px; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: #fff; }
.site-footer .disclaimer { padding-bottom: 32px; font-size: 13px; line-height: 1.5; color: #9E9AAD; }

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .row { gap: 40px; }
  .legal { padding: 4px 20px 24px; }
  .cta { padding: 40px 24px; }
  .qr { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Jump links (e.g. the Pricing menu item) land below the sticky header. */
#pricing { scroll-margin-top: 88px; }

/* Not on the App Store yet: the badge is a label, not a link. */
.store.soon, .store.soon:hover { background: var(--ink); cursor: default; }
