/* =====================================================================
   PharmEase – public pages (home, sign in, legal). Builds on the colour
   tokens, buttons and inputs in pharmease.css.
   ===================================================================== */

.site { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-head .logo { margin-left: 0; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav a:hover { color: var(--brand-deep); }
.head-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.head-actions .btn { padding: 8px 16px; }
@media (max-width: 820px) { .site-nav { display: none; } }
@media (max-width: 420px) { .head-actions .btn-ghost { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: 64px 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-k { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; font-size: .88rem; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.01em; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin-top: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-cta .btn { padding: 12px 22px; font-size: 1.02rem; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-block: 40px; } }

/* the "question card" preview */
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -36px rgba(19, 40, 58, .45); padding: 20px; display: grid; gap: 12px; transform: rotate(1.2deg); max-width: 440px; justify-self: center; width: 100%; }
.qcard-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.qcard-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }
.qcard-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.qcard-bar i { display: block; height: 100%; width: 40%; background: var(--brand); border-radius: inherit; }
.qcard-q { font-weight: 600; line-height: 1.4; }
.qcard ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.qcard li { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .92rem; }
.qcard li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); font-size: .78rem; flex: none; }
.qcard li.ok { border-color: var(--ok); background: var(--ok-soft); }
.qcard li.ok b { background: var(--ok); color: var(--on-brand); }
.qcard-fb { font-size: .86rem; color: var(--ok-deep); background: var(--ok-soft); border-radius: 10px; padding: 8px 10px; }

/* ---------- strips and sections ---------- */
.facts-strip { border-block: 1px solid var(--line); background: var(--surface); }
.facts-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-strip div { padding: 22px 12px; display: grid; gap: 2px; }
.facts-strip div + div { border-left: 1px solid var(--line); }
.facts-strip b { font-family: var(--font-head); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.facts-strip span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .facts-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-strip div:nth-child(3) { border-left: 0; } .facts-strip div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.sec { padding-block: 76px; }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin-top: 8px; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.feature .f-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; }
.feature .f-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* syllabus table */
.syllabus { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.syllabus li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--w); border-radius: var(--r-sm); font-weight: 500; }
.syllabus .chip { margin-left: auto; }
.legend-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.legend-row span { display: inline-flex; gap: 6px; align-items: center; }
.legend-row i { width: 12px; height: 12px; border-radius: 3px; background: var(--w); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--font-head); font-size: 2.4rem; color: var(--brand); line-height: 1; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.price-card.best { border: 2px solid var(--brand); box-shadow: 0 24px 50px -34px rgba(10, 122, 76, .6); }
.price-card h3 { font-size: 1.15rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price-card .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.price-card .amount small { font-family: var(--font); font-size: .95rem; color: var(--muted); font-weight: 400; }
.price-card ul { margin: 0; padding-left: 1.15em; display: grid; gap: 6px; color: var(--ink); }
.price-card .btn { margin-top: auto; }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; } }

/* quote */
.quote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35; max-width: 30ch; }
.quote-by { margin-top: 14px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin-top: 10px; }

.cta-band { background: var(--brand); color: var(--on-brand); padding-block: 56px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 26ch; }
.cta-band .btn { background: var(--on-brand); color: var(--brand-deep); padding: 12px 22px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 32px; margin-top: auto; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--muted); }
.site-foot p { max-width: 62ch; }

/* ---------- sign in ---------- */
.auth-page { flex: 1; display: grid; place-items: center; padding-block: 40px; }
.auth-card { width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--font-head); font-size: 1.8rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 4px; }
.auth-tabs button { border: 0; background: none; padding: 8px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth-form { display: grid; gap: 14px; }
.auth-form .field input { font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--brand); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); display: inline-flex; justify-content: center; gap: 10px; align-items: center; }
.btn-google svg { width: 18px; height: 18px; }
.auth-msg { font-size: .92rem; padding: 10px 12px; border-radius: var(--r-sm); }
.auth-msg.error { background: var(--bad-soft); color: var(--bad-deep); }
.auth-msg.ok { background: var(--ok-soft); color: var(--ok-deep); }
.link { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; text-decoration: underline; font-size: .92rem; justify-self: start; }

/* ---------- legal ---------- */
.legal { padding-block: 48px 72px; }
.legal article { max-width: 760px; display: grid; gap: 14px; }
.legal h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-family: var(--font-head); font-size: 1.35rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal .updated { color: var(--muted); }
.legal .fill-me { background: var(--medium-soft); color: var(--medium-deep); padding: 0 4px; border-radius: 4px; }
.legal table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.table-scroll { overflow-x: auto; }

.notfound { flex: 1; display: grid; place-content: center; text-align: center; gap: 14px; padding: 60px 20px; }
.notfound h1 { font-family: var(--font-head); font-size: 2.4rem; }
