/* Receptify website */
:root {
  --blue: #137fec;
  --blue-600: #0f6bd0;
  --blue-700: #0b56aa;
  --blue-50: #eef5ff;
  --blue-100: #dbeafe;
  --ink: #0b1526;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e8ef;
  --bg: #f6f7f8;
  --card: #ffffff;
  --red: #e5484d;
  --navy: #07111f;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 40, 80, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 40px 80px -30px rgba(11, 60, 130, .35), 0 12px 24px -12px rgba(15, 23, 42, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
svg { flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(19, 127, 236, .45); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 12px; border: 0;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 24px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(19, 127, 236, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 14px 30px -10px rgba(19, 127, 236, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2940; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; }
.btn-soft { background: #eef1f5; color: var(--ink); }
.btn-soft:hover { background: #e4e8ee; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--blue); font-weight: 600; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(19,127,236,.18); }
.eyebrow-light { color: #7cc0ff; }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; padding: 0 var(--gutter); }
.section-head h2 { margin: 10px 0 14px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px var(--gutter); transition: transform .35s ease; }
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 60px; padding: 0 10px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 18px; background: rgba(255,255,255,.62); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 8px 30px -18px rgba(15, 40, 80, .4);
}
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: rgba(15, 23, 42, .05); color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px var(--gutter) 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(19,127,236,.22), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(124, 192, 255, .25), transparent 70%),
    radial-gradient(50% 60% at 50% 120%, rgba(19,127,236,.12), transparent 70%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.hero-title { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 18px 0 22px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.grad { background: linear-gradient(100deg, var(--blue) 10%, #45a6ff 55%, var(--blue-700) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 28px 0 0; font-size: 15px; color: var(--ink-2); font-weight: 550; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; background: var(--blue-50); border-radius: 50%; padding: 2px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: center; }
.glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(19,127,236,.45), rgba(19,127,236,0) 65%); filter: blur(20px); }
.pill-stage { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.pill-stage.is-ready { opacity: 1; }
.pill-stage canvas { width: 100% !important; height: 100% !important; display: block; }
.pill-fallback { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: cover; border-radius: 22%; box-shadow: var(--shadow-lg); transition: opacity .8s ease, transform .8s ease; }
.hero-visual.has-3d .pill-fallback { opacity: 0; transform: scale(.9); }

.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), var(--shadow); line-height: 1.35; }
.float-card small { color: var(--muted); font-weight: 500; }
.float-card svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fc-k { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--blue); font-size: 18px; }
.fc-1 { left: -4%; bottom: 18%; display: block; }
.fc-2 { right: 0; top: 14%; }
.fc-3 { right: 6%; bottom: 6%; }

.scroll-hint { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(15,23,42,.25); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; max-width: min(300px, 70vw); margin: -16px auto -36px; }
  .hero-title { margin: 12px 0 16px; }
  .fc-1 { left: 0; bottom: 8%; font-size: 12.5px; }
  .fc-2 { right: -2%; top: 8%; font-size: 12.5px; }
  .fc-3 { display: none; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  .fc-1 { display: none; }
}

/* ---------- tool ---------- */
.tool { padding: 110px var(--gutter) 120px; position: relative; }
.tool-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(360px, calc((100vh - 330px) * .707), 520px)); gap: 28px; align-items: start; }
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow), inset 0 0 0 1px rgba(15,23,42,.04); }
.tool-form { padding: 10px 28px 28px; }

.steps { display: flex; gap: 6px; padding: 12px 0 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; }
.step { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; padding: 10px 6px; border-radius: 12px; cursor: pointer; color: var(--muted); font-weight: 650; font-size: 15px; transition: background .2s, color .2s; }
.step b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px; background: #eef1f5; color: var(--muted); transition: inherit; }
.step[aria-selected="true"] { background: var(--blue-50); color: var(--blue); }
.step[aria-selected="true"] b { background: var(--blue); color: #fff; }
.step.is-done b { background: #d7f5e3; color: #138a4b; }
.step-mobile { display: none; }

.panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.panel[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; min-width: 0; }
.field label, .label, .group-label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field label i, .label-row label i { color: var(--red); font-style: normal; }
.group-label { margin: 22px 0 -6px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row .field { margin-top: 16px; }
.row-addr { grid-template-columns: 1fr 96px; }
.row-zip { grid-template-columns: 130px 1fr; }
input:not([type="checkbox"]):not([type="radio"]), textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fbfcfd;
  font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 64px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #a3aebd; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(19,127,236,.14); }
.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(229,72,77,.12) !important; }
.input-icon { position: relative; }
.input-icon input { padding-right: 46px; }
.input-icon a { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); }
.input-icon a:hover { background: var(--blue-50); }
.input-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.hint.lock { display: flex; gap: 8px; align-items: flex-start; background: #f3f7fc; padding: 12px 14px; border-radius: 12px; margin-top: 20px; }
.hint.lock svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; margin-top: 1px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 48px; background: #fbfcfd; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { height: 100%; display: grid; place-items: center; font-size: 19px; color: var(--ink-2); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 3px rgba(19,127,236,.4); }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.check small { color: var(--muted); display: block; font-size: 13px; }
.check-red input { accent-color: var(--red); }
.check-red input:checked + span { color: var(--red); font-weight: 650; }

details.more { margin-top: 20px; border: 1px dashed var(--line); border-radius: 12px; padding: 4px 14px 14px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: 14.5px; padding: 10px 0 0; }

.sig-pad { position: relative; height: 170px; border: 1.5px dashed #c9d3df; border-radius: 14px; background:
  linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px) 0 0 / 28px 28px, #fff; touch-action: none; overflow: hidden; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; z-index: 1; }
.sig-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa6b5; font-size: 15px; pointer-events: none; transition: opacity .2s; }
.sig-pad.has-ink .sig-hint { opacity: 0; }
.sig-x { position: absolute; left: 16px; bottom: 30px; right: 16px; border-bottom: 1px solid #c9d3df; font-weight: 700; color: #94a3b8; font-size: 15px; line-height: 1; padding-bottom: 4px; pointer-events: none; }

.panel-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.med { position: relative; padding: 16px; border-radius: 16px; border: 1px solid #d9e7fb; background: linear-gradient(180deg, #f7fbff, #fff); margin-top: 14px; }
.med .row { margin-top: 10px; gap: 10px; }
.med-head { display: flex; align-items: center; gap: 10px; }
.rx { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--blue); font-size: 22px; width: 36px; flex: none; }
.rx-k { font-family: var(--serif); font-weight: 700; font-style: italic; color: var(--ink-2); font-size: 17px; width: 36px; flex: none; }
.med-name { font-weight: 650; }
.med-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.med textarea { margin-top: 10px; }
.med .row { padding-left: 46px; }
.med textarea, .med .check { margin-left: 46px; width: calc(100% - 46px); }
.med .check { margin-top: 12px; }
.icon-btn { width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #fdecec; color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.med:only-child .med-remove { visibility: hidden; }
#add-med { margin-top: 14px; }
.fk { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #4f8a2b; color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }
.fk:hover { filter: brightness(1.1); }

/* preview */
.tool-preview { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; font-weight: 700; }
.preview-head .ref { font-weight: 500; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.paper-wrap { position: relative; width: 100%; aspect-ratio: 595 / 842; perspective: 1400px; }
.paper {
  position: absolute; left: 0; top: 0; width: 595px; height: 842px; transform-origin: 0 0; transform: scale(var(--s, .8));
  background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15,23,42,.05);
  padding: 34px 38px 40px; font-size: 10.5px; line-height: 1.4; color: #111; overflow: hidden;
  font-family: Helvetica, Arial, sans-serif; display: flex; flex-direction: column;
}
.paper > .pp-badge { align-self: flex-start; }
.rx-actions { background: var(--card); border-radius: 18px; padding: 4px 18px 18px; box-shadow: var(--shadow); }
.action-row { display: flex; gap: 10px; margin-top: 16px; }
.action-row .btn { flex: 1; }
.action-row .btn svg { width: 20px; height: 20px; }
.form-error { margin-top: 12px; padding: 12px 14px; background: #fdecec; color: #b42328; border-radius: 12px; font-size: 14.5px; font-weight: 550; }
#new-rx { margin-top: 12px; }

/* paper contents (mirrors the PDF) */
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.pp-brand { color: #137fec; font-weight: 800; font-size: 20px; letter-spacing: .01em; line-height: 1; }
.pp-sub { color: #888; font-size: 8.5px; margin-top: 4px; }
.pp-meta { text-align: right; color: #666; font-size: 8.5px; line-height: 1.6; }
.pp-sec { border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; background: rgba(19,127,236,.035); }
.pp-sec.pt { background: rgba(0,0,0,.025); }
.pp-badge { display: inline-block; background: #137fec; color: #fff; font-size: 7.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; margin-bottom: 7px; }
.pp-sec.pt .pp-badge { background: #666; }
.pp-row { display: flex; gap: 8px; }
.pp-row dt { width: 90px; flex: none; color: #888; font-size: 9px; padding-top: 1px; }
.pp-row dd { margin: 0; font-size: 10.5px; overflow-wrap: anywhere; }
.pp-row.b dd { font-weight: 700; }
.pp-empty { color: #aaa; font-style: italic; font-size: 9.5px; }
.pp-med { border: 1px solid rgba(19,127,236,.25); background: rgba(19,127,236,.04); border-radius: 6px; padding: 9px 11px; margin-top: 8px; }
.pp-med .l1 { display: flex; gap: 8px; align-items: baseline; }
.pp-rx { font-family: Georgia, serif; font-style: italic; font-weight: 700; color: #137fec; font-size: 14px; }
.pp-name { font-weight: 700; font-size: 11.5px; }
.pp-form { color: #555; }
.pp-urgent { color: #d92d20; font-weight: 700; font-size: 9px; margin-top: 3px; }
.pp-line { display: flex; gap: 8px; margin-top: 3px; }
.pp-line b { font-family: Georgia, serif; font-style: italic; width: 22px; flex: none; color: #333; }
.pp-note { color: #555; font-style: italic; margin-top: 4px; }
.pp-sign { margin-top: auto; padding-top: 16px; align-self: flex-end; width: 190px; text-align: left; }
.pp-sign .who { font-weight: 700; font-size: 10px; }
.pp-sign .who small { display: block; font-weight: 400; color: #666; font-size: 8.5px; }
.pp-sign .box { height: 58px; border: 1px solid rgba(0,0,0,.25); border-radius: 4px; margin-top: 6px; display: grid; place-items: center; overflow: hidden; }
.pp-sign .box img { max-height: 52px; max-width: 170px; object-fit: contain; }
.pp-sign .box span { color: #aaa; font-size: 8.5px; }
.pp-sign .x { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: #555; font-size: 9px; }
.pp-sign .x::after { content: ""; flex: 1; border-bottom: 1px solid #bbb; }
.pp-sign .ver { text-align: center; color: #888; font-size: 8px; margin-top: 3px; }
.pp-foot { position: absolute; left: 38px; right: 38px; bottom: 18px; color: #aaa; font-size: 7.5px; display: flex; justify-content: space-between; }

@media (max-width: 980px) {
  .tool { padding-top: 80px; }
  .tool-grid { grid-template-columns: 1fr; }
  .step-mobile { display: flex; }
  .tool-preview { position: static; display: none; }
  .tool-grid[data-step="4"] .tool-preview { display: flex; }
  .tool-grid[data-step="4"] #rx-form { display: none; }
  .tool-grid[data-step="4"] .tool-form { padding-bottom: 6px; }
}
@media (max-width: 560px) {
  .tool-form { padding: 6px 16px 20px; border-radius: 20px; }
  .step span { display: none; }
  .step[aria-selected="true"] span { display: inline; }
  .row:not(.row-addr):not(.row-zip) { grid-template-columns: 1fr; gap: 0; }
  .row-addr { grid-template-columns: 1fr 80px; }
  .row-zip { grid-template-columns: 112px 1fr; }
  .med .row { padding-left: 0; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .med textarea, .med .check { margin-left: 0; width: 100%; }
  .action-row { flex-direction: column; }
}

/* ---------- how it works ---------- */
.how { padding: 120px var(--gutter); background: linear-gradient(180deg, var(--bg), #eaf2fd 50%, var(--bg)); overflow: hidden; }
.how-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 80vh; }
.how-copy h2 { margin: 10px 0 34px; }
.how-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 8px; }
.how-steps li { position: relative; padding: 18px 20px 18px 66px; border-radius: 18px; counter-increment: s; transition: background .4s, box-shadow .4s, opacity .4s; opacity: .45; }
.how-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: #dde6f2; color: var(--ink-2); transition: inherit; }
.how-steps li b { font-size: 19px; }
.how-steps li p { color: var(--ink-2); margin-top: 4px; font-size: 16px; }
.how-steps li.is-active { opacity: 1; background: #fff; box-shadow: var(--shadow); }
.how-steps li.is-active::before { background: var(--blue); color: #fff; }
.how-visual { position: relative; display: grid; place-items: center; perspective: 1600px; }
.phone { position: relative; width: min(320px, 74vw); aspect-ratio: 600 / 1240; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #1d2735, #0a0f18); box-shadow: inset 0 0 0 2px #3a4657, inset 0 0 0 5px #0a0f18, var(--shadow-lg); transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(8deg) rotateZ(2deg); will-change: transform; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #05080d; border-radius: 20px; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #f6f7f8; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; padding-top: 52px; background: #fff; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s ease; }
.phone-screen img.is-active { opacity: 1; transform: none; }
.phone-shadow { width: 60%; height: 30px; margin-top: 30px; border-radius: 50%; background: radial-gradient(rgba(11,40,90,.3), transparent 70%); filter: blur(6px); }
@media (max-width: 900px) {
  .how { padding: 90px var(--gutter); }
  .how-inner { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .how-visual { order: -1; }
  .how-steps li { opacity: 1; }
  .phone { width: min(260px, 66vw); }
}

/* ---------- features ---------- */
.features { padding: 120px var(--gutter); }
.feat-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.feat { position: relative; background: #fff; padding: 28px; border-radius: 22px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(15,23,42,.04); transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .25s; overflow: hidden; }
.feat::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(19,127,236,.10), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feat:hover::after { opacity: 1; }
.feat:hover { box-shadow: var(--shadow-lg); }
.feat h3 { margin: 18px 0 8px; }
.feat p { color: var(--ink-2); font-size: 15.5px; }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #3d9bff, var(--blue-700)); box-shadow: 0 10px 20px -8px rgba(19,127,236,.7), inset 0 1px 0 rgba(255,255,255,.35); transform: translateZ(30px); }
.feat-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } .features { padding: 80px var(--gutter); } }

/* ---------- privacy ---------- */
.privacy { background: var(--navy); color: #fff; padding: 140px var(--gutter); position: relative; overflow: hidden; }
.privacy::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(19,127,236,.28), transparent 60%); }
.privacy-inner { position: relative; max-width: 980px; margin: 0 auto; }
.privacy h2 { font-size: clamp(32px, 5.2vw, 62px); font-weight: 750; line-height: 1.12; margin-top: 14px; }
.privacy h2 .w { opacity: .15; transition: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.stat { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }
.stat b { display: block; font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #fff, #7cc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #9fb2c8; font-size: 15px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 26px; } .privacy { padding: 100px var(--gutter); } }

/* ---------- download ---------- */
.download { padding: 120px var(--gutter) 60px; }
.download-card { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 32px;
  background: radial-gradient(80% 120% at 0% 0%, #dcecff, transparent 60%), #fff; box-shadow: var(--shadow-lg); }
.dl-icon { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 30px 50px -20px rgba(19,127,236,.6); }
.download h2 { font-size: clamp(28px, 3.8vw, 42px); }
.download p { color: var(--ink-2); margin: 12px 0 24px; max-width: 560px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; font-weight: 650; font-size: 19px; line-height: 1.05; transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store small { display: block; font-size: 11.5px; font-weight: 500; opacity: .8; }
.store svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.store.is-soon { background: #e9edf2; color: var(--muted); cursor: default; }
.store.is-soon:hover { transform: none; }
@media (max-width: 700px) { .download-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; text-align: left; } .dl-icon { width: 96px; height: 96px; border-radius: 24px; } }

/* ---------- faq ---------- */
.faq { padding: 100px var(--gutter) 120px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(15,23,42,.05); padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-weight: 650; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px var(--gutter) 60px; background: #fff; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 30px 40px; align-items: start; font-size: 14.5px; color: var(--muted); }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.copy { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal defaults (JS animates these) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .hero-title .line > span { transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-title .line > span { transform: none; }
  .scroll-hint span { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- privacy page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 130px var(--gutter) 90px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 18px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc .note { background: #fff7e6; border-radius: 12px; padding: 14px 16px; font-size: 15px; color: #8a5a00; margin-bottom: 20px; }
