/* join.prescribe.live. The look follows prescribe.live (assets/marketing.css) and the app tokens in
   src/constants/theme.ts. Fonts are self-hosted: no request leaves for a font service. */
@font-face { font-family: 'DM Sans'; src: url('fonts/dmsans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dmsans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-600i.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --paper: #FFFCF8; --ink: #171827; --soft: #53515F; --rule: #DAD6D2;
  --terracotta: #DD420E; --action: #D33A20; --action-hover: #AD2B14; --action-down: #8D2513;
  --deep-blue: #075B85; --cream: #FFF4CC; --label: #FFF8DF; --peri-soft: #E8EDFF;
  --yellow: #FFD449; --yellow-hover: #FFE895; --coral: #FF9379; --peri: #93AEF4; --lilac: #E7AAE1;
  --pistachio: #C7D9AA; --sage: #D7F0E1; --sage-ink: #1F5B3E;
  --sans: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --mark: 'Cormorant Garamond', Georgia, serif;
  --read: 38rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.read { max-width: var(--read); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: the mark and one button that jumps to the form. No menu, no links away. */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font: 700 1.1rem/1 var(--sans); letter-spacing: 0.06em; text-decoration: none; }
.px { position: relative; display: inline-block; width: 1.9rem; height: 2.2rem; color: var(--terracotta); font-family: var(--mark); font-style: italic; font-weight: 600; line-height: 1; }
.px .p { position: absolute; left: 0; top: 0; font-size: 2.05rem; }
.px .x { position: absolute; left: 0.53rem; top: 0.88rem; font-size: 1.13rem; }

/* Buttons: the prescribe.live pill */
.go, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 2px solid var(--action); border-radius: 999px; background: var(--action); color: var(--paper); font: 700 1.1rem/1.4 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.go:hover, .btn:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--paper); }
.go:active, .btn:active { background: var(--action-down); border-color: var(--action-down); }
.go[disabled] { opacity: 0.6; cursor: wait; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }

/* Type */
.eyebrow { margin: 0 0 18px; color: var(--soft); font: 700 0.76rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(2.9rem, 5.4vw, 4.6rem)/1.06 var(--display); letter-spacing: -0.035em; text-wrap: pretty; }
h1 em, h2 em { font-style: normal; color: var(--action); }
h2 { margin: 0 0 1rem; font: 700 clamp(2rem, 4.2vw, 3.1rem)/1.08 var(--display); letter-spacing: -0.025em; text-wrap: pretty; }
h3 { font-family: var(--display); font-weight: 700; }
.sub { margin: 20px 0 24px; color: var(--ink); font-size: 1.08rem; line-height: 1.55; max-width: 34rem; }
.lead { margin: 0 0 1.5rem; font-size: 1.08rem; }
.fine { color: var(--soft); font-size: 0.92rem; }

/* Hero */
.hero { padding: 40px 0; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* Sign-up form */
.form-q { margin: 0 0 0.6rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.chip { min-height: 44px; padding: 0.55rem 1rem; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 0.98rem; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
label.field { display: block; margin: 0 0 0.4rem; font-weight: 700; }
.email { width: 100%; min-height: 52px; padding: 0.8rem 1rem; border: 1.5px solid var(--soft); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; }
.form .go { width: 100%; margin-top: 0.75rem; }
.risk { margin: 14px 0 0; color: var(--soft); font-size: 0.9rem; text-align: center; }
.error { margin: 0.6rem 0 0; color: #9C2E08; font-weight: 700; }
.error:empty { display: none; }

/* Art tiles, as on prescribe.live: real PILLs from the catalog */
.hero-visual { display: grid; gap: 16px; min-width: 0; }
.art-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 280px; padding: 24px; border-radius: 20px; background-position: center; background-size: cover; color: var(--ink); }
.art-tile h3 { margin: 0; max-width: 62%; font-size: clamp(1.8rem, 3.3vw, 2.8rem); line-height: 1.02; letter-spacing: -0.025em; }
.art-label { margin: 0; max-width: 100%; padding: 8px 12px; border-radius: 999px; background: var(--label); color: var(--ink); font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.02em; text-transform: uppercase; }
.tile-jelly { background-color: var(--deep-blue); background-image: url('plates/cabinet-jellies.svg'); color: var(--paper); }
.tile-good { background-color: var(--yellow); background-image: url('plates/discover-good-things.svg'); }
.tile-voice { background-color: var(--peri); background-image: url('plates/discover-voice-note.svg'); }
.hero-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-support .art-tile { min-height: 172px; padding: 18px; gap: 24px; }
.hero-support h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
@media (max-width: 420px) { .art-tile { min-height: 230px; } .hero-support .art-tile { min-height: 160px; padding: 14px; } .hero-support h3 { max-width: 80%; } }

/* Example check-in: the three options with their reasons */
.example { padding: 0 0 64px; }
.demo { margin: 0; padding: 24px; border: 1px solid var(--rule); border-radius: 24px; }
.demo-top { display: flex; justify-content: space-between; margin: 0 0 16px; color: var(--ink); font: 700 0.76rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; }
.checkin { margin: 0 0 18px; padding: 18px; border-radius: 14px; background: var(--cream); }
.checkin p { margin: 0; font-size: 1.1rem; }
.options { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.option { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.option img { width: 100%; aspect-ratio: 600 / 330; object-fit: cover; border-radius: 17px 17px 0 0; }
.o-listen img { background: var(--coral); } .o-do img { background: var(--pistachio); } .o-send img { background: var(--peri); }
.option .text { padding: 18px; }
.kind { margin: 0; color: var(--soft); font: 700 0.72rem/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.option .name { margin: 8px 0 12px; font: 700 1.45rem/1.15 var(--display); }
.option .line { margin: 0; font-size: 0.94rem; }
.tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--label); font: 700 0.72rem/1.4 var(--sans); }
.demo-foot { margin: 16px 0 0; color: var(--soft); font-size: 0.85rem; }

/* Sections */
.band { padding: 64px 0; }
.band-cream { background: var(--cream); }
.band-peri { background: var(--peri-soft); }
.moments { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .moments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .moments { grid-template-columns: repeat(4, 1fr); } }
.moment { display: flex; align-items: flex-end; min-height: 9rem; padding: 20px; border-radius: 20px; font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.01em; }
.m1 { background: var(--yellow); } .m2 { background: var(--peri); } .m3 { background: var(--lilac); } .m4 { background: var(--coral); }

.insight { display: grid; gap: 1rem 48px; margin-bottom: 2rem; }
@media (min-width: 900px) { .insight { grid-template-columns: 1fr 1fr; align-items: center; } .insight .lead { margin: 0; } }
.steps { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 22px; border: 1px solid var(--rule); border-radius: 20px; background: var(--paper); }
.step h3 { margin: 0 0 0.4rem; font-size: 1.35rem; line-height: 1.2; }
.step p { margin: 0; color: var(--soft); }
.num { display: inline-grid; place-items: center; min-width: 38px; min-height: 38px; margin-bottom: 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 0.95rem/1 var(--sans); }

.ways { display: grid; gap: 16px; padding: 0; margin: 0 0 1rem; list-style: none; }
@media (min-width: 720px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way { padding: 22px; border: 1px solid var(--rule); border-radius: 20px; background: var(--paper); }
.way img { width: 100%; aspect-ratio: 300 / 210; object-fit: cover; margin-bottom: 18px; border-radius: 12px; }
.w1 img { background: var(--peri); } .w2 img { background: var(--yellow); } .w3 img { background: var(--sage); }
.way h3 { margin: 0 0 0.4rem; font-size: 1.35rem; line-height: 1.2; }
.way p { margin: 0; color: var(--soft); }
.way .tag { background: var(--cream); }
.way .tag.soon { background: var(--sage); color: var(--sage-ink); }

/* Two-column sections: heading on the left, content on the right */
.split { display: grid; gap: 1.5rem 48px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
.split h2 { margin: 0 0 0.75rem; }

/* Questions: white rows on cream, like the cards elsewhere */
.faq { display: grid; gap: 12px; }
details { border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
details[open] { border-color: var(--ink); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 16px 20px 16px 24px; cursor: pointer; list-style: none; font: 700 1.3rem/1.25 var(--display); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 1.3rem/1 var(--sans); }
details[open] summary::after { content: '\2212'; background: var(--ink); color: var(--paper); }
summary:hover::after { background: var(--yellow-hover); }
details[open] summary:hover::after { background: var(--ink); }
details p { margin: 0; padding: 0 24px 22px; color: var(--soft); font-size: 1.02rem; }

/* Closing, as on prescribe.live: deep blue, yellow accent and button */
.closing { padding: 64px 0; background: var(--deep-blue); color: var(--paper); }
.closing h2 { color: var(--paper); }
.closing h2 em { display: block; color: var(--yellow); }
.closing .form { max-width: 30rem; }
.closing label.field { color: var(--paper); }
.closing .email { border-color: var(--paper); }
.closing .go { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.closing .go:hover { border-color: var(--yellow-hover); background: var(--yellow-hover); }
.closing .risk { color: var(--paper); text-align: left; }
.closing .error { color: var(--yellow); }

footer { padding: 28px 0 40px; color: var(--soft); font-size: 0.9rem; }
footer p { margin: 0 0 0.6rem; }
footer a { color: var(--ink); }
footer .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
footer button.linkish { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }

/* Thank-you and leave pages */
.thanks { padding: 40px 0 56px; }
.thanks h2 { margin-top: 3rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.doses-now { display: grid; gap: 16px; margin: 1rem 0 2rem; padding: 0; list-style: none; }
@media (min-width: 720px) { .doses-now { grid-template-columns: repeat(3, 1fr); } }
.doses-now a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; }
.doses-now a:hover { border-color: var(--ink); }
.doses-now img { width: 100%; aspect-ratio: 600 / 330; object-fit: cover; border-radius: 17px 17px 0 0; }
.doses-now .text { padding: 18px; }
.doses-now .name { display: block; margin: 8px 0 10px; font: 700 1.35rem/1.15 var(--display); }
.dn1 img { background: var(--coral); } .dn2 img { background: var(--deep-blue); } .dn3 img { background: var(--yellow); }
.extras { margin-top: 1rem; padding: 24px; border-radius: 24px; background: var(--cream); }
.extras h2 { margin-top: 0; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1.2rem; font-weight: 700; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; accent-color: var(--action); }
textarea { width: 100%; min-height: 7rem; padding: 0.8rem 1rem; border: 1.5px solid var(--soft); border-radius: 14px; background: #fff; font: inherit; }
.extras .go, .share .go, .leave .go { margin-top: 0.75rem; }
.saved { color: var(--sage-ink); font-weight: 700; }
.saved:empty { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.doses-now .kind { display: block; }
/* On a phone the form is already on screen, so the header button steps aside to keep it above the fold. */
@media (max-width: 599px) {
  .top .btn { display: none; }
  .top .wrap { min-height: 3.5rem; }
  .hero { padding: 24px 0 40px; }
  .eyebrow { margin-bottom: 12px; }
  .sub { margin: 16px 0 20px; }
}
/* On a phone, keep the example options and the three ways compact: art beside the words. */
@media (max-width: 719px) {
  .option { flex-direction: row; }
  .option img { width: 38%; aspect-ratio: auto; border-radius: 17px 0 0 17px; }
  .option .text { padding: 14px; }
  .option .name { margin: 6px 0 8px; font-size: 1.2rem; }
  .way { display: grid; grid-template-columns: 7rem 1fr; gap: 0 14px; align-items: start; padding: 16px; }
  .way img { grid-row: span 3; margin: 0; aspect-ratio: 1; }
  .way h3 { font-size: 1.2rem; }
  .way .tag { justify-self: start; }
  .moment { min-height: 0; padding: 18px 20px; }
  .band { padding: 48px 0; }
}

/* Why trust it: three proof cards anyone can check */
.proof { display: grid; gap: 16px; padding: 0; margin: 0 0 1.25rem; list-style: none; }
@media (min-width: 900px) { .proof { grid-template-columns: 1fr 1fr 1.25fr; } }
.proof > li { display: flex; flex-direction: column; padding: 26px; border-radius: 20px; }
.pr1 { background: var(--sage); } .pr2 { background: var(--label); } .pr3 { background: var(--peri-soft); }
.proof p { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.5; }
.proof .big { margin: 0 0 6px; color: var(--action); font: 700 clamp(3rem, 6vw, 4.2rem)/1 var(--display); letter-spacing: -0.03em; }
.proof .big-sm { margin: 0 0 14px; font: 700 1.45rem/1.15 var(--display); }
.proof .src { margin: auto 0 0; padding-top: 8px; color: var(--soft); font-size: 0.82rem; }
.names { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; list-style: none; }
.names li { padding: 6px 12px; border-radius: 999px; background: var(--paper); font: 700 0.85rem/1.3 var(--sans); }
.early { margin: 0; max-width: 40rem; }
.soon-label { margin: 0 0 8px !important; color: var(--soft); font: 700 0.72rem/1.3 var(--sans) !important; letter-spacing: 0.08em; text-transform: uppercase; }
.names.soon li { border: 1.5px dashed var(--soft); background: transparent; }
.names.soon li.more { border: 0; padding-left: 4px; color: var(--soft); font-weight: 400; }
