/* Gelasio 700, hosted on getaskmed.com (was Google Fonts; same v14 files and subsets). Pages no longer wait for
   Google's stylesheet before showing anything; the font file only downloads where Georgia is missing. License: /fonts/LICENSE-Gelasio.txt (SIL OFL 1.1). */
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 700; font-display: swap; src: url(/https/getaskmed.com/fonts/gelasio-v14-vietnamese-700.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 700; font-display: swap; src: url(/https/getaskmed.com/fonts/gelasio-v14-latin-ext-700.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 700; font-display: swap; src: url(/https/getaskmed.com/fonts/gelasio-v14-latin-700.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* AskMed web page (design 3A). Colors from the iOS app: primary #1259B5, deep #0A3880, teal #149EA6, gold #FFC721.
   Fonts from the iOS app too (Loop's pick 2026-10-16): Georgia Bold titles, the system font (SF Pro on Apple) for text.
   Gelasio, a Georgia lookalike (Google Fonts, hosted in /fonts), only downloads where Georgia is missing (Android). */
:root {
  --primary: #1259B5;
  --deep: #0A3880;
  --teal: #149EA6;
  --gold: #FFC721;
  --bg: #FBFCFE;
  --subtle: #F5F7FC;
  --highlight: #EDF4FF;
  --stroke: #E0E6EF;
  --text: #0D1221;
  --secondary: #616E82;
  --muted: #4A5468;
  --serif: Georgia, 'Gelasio', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
/* The bounce past the ends shows the header's light blue above the page and the footer's navy below it, not white (Loop 2026-10-21).
   Browsers paint that area with html's color; bounce.js switches it to navy in the lower half of the page. */
html { scroll-behavior: smooth; background: var(--highlight); }
html.past-mid { background: var(--deep); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--primary); }
a:hover { color: var(--deep); }
h1, h2 { font-family: var(--serif); font-weight: 700; margin: 0; }
h2 { text-wrap: balance; } /* no word alone on a heading's last line */
h2 { font-size: 30px; line-height: 1.08; letter-spacing: -1px; text-align: center; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
.center { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Header + hero share one light-blue block. */
.top { background: var(--highlight); }
.header { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; display: block; object-fit: cover; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.brand-name span { color: var(--primary); }
.pill-btn { text-decoration: none; background: var(--primary); color: #FFFFFF; font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.pill-btn:hover { color: #FFFFFF; background: var(--deep); }
/* Menu: section links on wide screens, Sign in + Get AskMed on the right. */
.header { gap: 12px; }
.nav { display: none; gap: 32px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.ghost-btn { text-decoration: none; background: #FFFFFF; color: var(--text); border: 1px solid var(--stroke); font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.ghost-btn:hover { color: var(--primary); }
/* Phones under 400 px: the header shrinks with the screen (sizes slide from 400 px values down to 320 px values)
   so the logo, Sign in and Get AskMed fit on one row from 320 px up. 400 px and up is unchanged. */
@media (max-width: 399px) {
  .header { gap: clamp(8px, calc(8px + (100vw - 320px) * 0.05), 12px); }
  .brand { gap: clamp(6px, calc(6px + (100vw - 320px) * 0.025), 8px); }
  .brand-mark { width: clamp(26px, calc(26px + (100vw - 320px) * 0.075), 32px); height: clamp(26px, calc(26px + (100vw - 320px) * 0.075), 32px); }
  .brand-name { font-size: clamp(16px, calc(16px + (100vw - 320px) * 0.0375), 19px); }
  .head-actions { gap: clamp(6px, calc(6px + (100vw - 320px) * 0.025), 8px); }
  .ghost-btn, .pill-btn { font-size: clamp(12px, calc(12px + (100vw - 320px) * 0.0375), 15px); padding-left: clamp(10px, calc(10px + (100vw - 320px) * 0.075), 16px); padding-right: clamp(10px, calc(10px + (100vw - 320px) * 0.075), 16px); white-space: nowrap; }
}
@media (min-width: 760px) { .nav { display: flex; } }
/* Pages without Get AskMed keep an invisible copy of it, so the menu lines up with the landing page. */
.head-spacer { visibility: hidden; }
@media (max-width: 759px) { .head-spacer { display: none; } }

.hero { padding-top: 20px; padding-bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.badge { background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.hero h1 { font-size: 44px; line-height: 1.02; letter-spacing: -0.5px; }
.hero h1 span { color: var(--primary); }
.sub { margin: 0; font-size: 18px; color: var(--muted); max-width: 330px; }
.cta { text-decoration: none; background: var(--primary); color: #FFFFFF; font-weight: 700; font-size: 17px; padding: 16px 26px; border-radius: 999px; }
.cta:hover { color: #FFFFFF; background: var(--deep); }
.cta.light { background: #FFFFFF; color: var(--deep); padding: 15px 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.cta-row .cta { white-space: nowrap; }
/* Phones: both hero buttons stay on one row with either button text ("Get AskMed Pro" is the longer one). */
@media (max-width: 429px) {
  .cta-row.two { column-gap: 12px; }
  .cta-row.two .cta { font-size: 16px; padding: 15px 20px; }
}
@media (max-width: 374px) {
  .cta-row.two { column-gap: 8px; }
  .cta-row.two .cta { font-size: 14px; padding: 13px 14px; }
  .cta-row.two .cta-play { font-size: 13px; gap: 4px; }
}
.cta-play { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 16px; white-space: nowrap; }
.cta-play:hover { color: var(--deep); }
.cta.light:hover { background: var(--highlight); color: var(--deep); }
.made-for { font-size: 15px; color: var(--primary); }
.made-for strong { color: var(--text); }
/* Hero buttons (Loop 2026-11-03): App Store, Google Play, then the web version in the old Get AskMed Pro blue.
   Stacked on phones, one row from 640px. See it in action sits left of Made for, under the buttons. */
/* --bh is the badge height. Apple's badge is 119.66 x 40. Google's PNG (646 x 250) has 41 px of clear space around a
   564 x 168 badge, so it is drawn larger and that space is cut off with negative margins: both badges stand the same height. */
.stores { --bh: 48px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; max-width: calc(var(--bh) * 6.349 + 10px); }
.store-badge { display: block; line-height: 0; border-radius: calc(var(--bh) * 0.16); overflow: hidden; }
.store-badge img { display: block; width: auto; max-width: none; }
/* Hover like the Web button (Loop 2026-11-03): the button's color shifts. The badges are black, so a light layer lifts them to dark grey. */
.store-badge { position: relative; }
.store-badge::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.store-badge:hover::after, .store-badge:focus-visible::after { opacity: 0.16; }
.store-badge img.as { height: var(--bh); }
.store-badge img.gp { height: calc(var(--bh) * 250 / 168); margin: calc(var(--bh) * -41 / 168); }
.store { display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--bh); padding: 0 18px; border-radius: calc(var(--bh) * 0.16); text-decoration: none; }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.2px; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.1px; }
.store.web { flex: 1 1 100%; background: var(--primary); color: #FFFFFF; transition: background-color 0.15s ease; }
.store.web:hover { background: var(--deep); color: #FFFFFF; }
@media (min-width: 640px) { .stores { --bh: 56px; flex-wrap: nowrap; max-width: none; } .store.web { flex: none; min-width: 186px; } }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 20px; }
.hero-meta .made-for strong { display: inline-block; text-align: left; }
@media (max-width: 429px) { .hero-meta { column-gap: 14px; } .hero-meta .cta-play, .hero-meta .made-for { font-size: 14px; } }
.rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 14px; height: 14px; fill: var(--gold); }
.stars.small { color: var(--gold); font-size: 14px; letter-spacing: 1px; line-height: 1; }

/* Auto-scrolling rows (reviews, logos, specialties). Each track holds its items twice and moves by half. */
@keyframes askmedScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes askmedScrollBack { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee { overflow: hidden; }
/* Spacing is a right margin on every item (not gap) so each copy has the same width and the loop is seamless.
   web.js adds more copies on wide screens and keeps the speed the same. */
.track { display: flex; width: max-content; }
.review-track { align-items: stretch; padding: 4px 0; animation: askmedScroll 40s linear infinite; }
.logo-track { align-items: center; padding: 8px 0; animation: askmedScrollBack 24s linear infinite; }
.logo-track > * { margin-right: 36px; }
.chip-track { animation: askmedScroll 30s linear infinite; }
.chip-track-back { animation: askmedScrollBack 30s linear infinite; }
.chip-track > *, .chip-track-back > * { margin-right: 8px; }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

.reviews { padding: 30px 0; display: flex; flex-direction: column; gap: 14px; }
.reviews h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.8px; }
.review { margin: 0 16px 0 0; flex: 0 0 250px; background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.review blockquote { margin: 0; font-size: 15px; line-height: 1.45; }
.review figcaption { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; color: var(--secondary); }

.schools { padding: 4px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.schools p { margin: 0 auto; font-size: 14px; color: var(--muted); text-align: center; }
.logo { height: 32px; width: auto; display: block; }
.logo-md { height: 28px; }
.logo-sm { height: 26px; }
.logo-xs { height: 22px; }

/* Demo */
.demo { background: var(--highlight); padding: 32px 0 36px; margin-bottom: 32px; }
.demo h2 { font-size: 32px; line-height: 1.05; }
/* iPhone 18 Pro Max frame (6.9", 1320 x 2868 screen): titanium rim and thin black bezel, no side buttons (Loop 2026-10-20). Sizes scale with --w. */
.iphone { --w: 290px; width: var(--w); padding: calc(var(--w) * 0.03); border: calc(var(--w) * 0.012) solid transparent; border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(#08090B, #08090B) padding-box, linear-gradient(140deg, #9EA3AC 0%, #3B3F46 22%, #C9CDD3 48%, #4A4E55 72%, #A7ABB2 100%) border-box;
  box-shadow: 0 30px 60px -24px rgba(11, 31, 66, 0.45), 0 12px 24px -12px rgba(11, 31, 66, 0.3); }
.iphone-screen { position: relative; overflow: hidden; aspect-ratio: 1320 / 2868; border-radius: calc(var(--w) * 0.13); background: #F8FAFC; }
.iphone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; background: var(--highlight); border: 1px solid #D3E2F7; border-radius: 999px; padding: 6px 10px; }
.chip svg { width: 13px; height: 13px; fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Comparison table */
.compare { padding-top: 8px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.table { background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; font-size: 13px; }
.row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); padding: 12px 10px; border-top: 1px solid var(--stroke); align-items: center; }
.row span { text-align: center; color: var(--secondary); }
.row span[role="rowheader"] { text-align: left; font-weight: 700; color: var(--text); }
.row span.us { font-weight: 700; color: var(--text); background: var(--highlight); border-radius: 8px; padding: 4px 2px; }
.row.head { border-top: 0; background: var(--subtle); font-weight: 700; }
.row.head span { color: var(--text); }
.row.head span.us { color: var(--primary); background: none; padding: 0; }

/* Specialties */
.specialties { padding: 8px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.specialties h2 { margin-bottom: 4px; }
.chip-track span { font-size: 15px; font-weight: 500; background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 999px; padding: 9px 14px; white-space: nowrap; }
.chip-track-back span { font-size: 15px; font-weight: 500; background: var(--highlight); border-radius: 999px; padding: 9px 14px; white-space: nowrap; }

/* Pricing */
.price { background: var(--highlight); padding: 32px 0 36px; }
.price h2 { font-size: 32px; line-height: 1.05; }
.price-sub { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.amount { white-space: nowrap; }
.plan-name, .popular { white-space: nowrap; }
.plan-head { gap: 8px; }
@media (max-width: 379px) { .price .plan { padding: 18px; } .price .plan-name { font-size: 18px; } .price .popular { font-size: 11px; padding: 4px 8px; } }
.amount-unit { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
/* Three plan buttons: on small phones they share the full width so the toggle never overflows. */
@media (max-width: 479px) { .price .toggle { display: flex; width: 100%; } .price .toggle button { flex: 1 1 0; padding: 9px 6px; font-size: 14px; white-space: nowrap; } }
.toggle { display: inline-flex; background: #D3E2F7; border-radius: 999px; padding: 4px; }
.toggle button { border: 0; background: transparent; font-family: inherit; font-size: 15px; font-weight: 500; padding: 9px 18px; border-radius: 999px; min-height: 40px; color: #33405A; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #FFFFFF; font-weight: 700; color: var(--text); }
.plan { width: 100%; background: #FFFFFF; border-radius: 20px; padding: 22px; box-shadow: 0 12px 30px rgba(13, 40, 90, 0.10); display: flex; flex-direction: column; gap: 10px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.popular { font-size: 12px; font-weight: 700; color: #FFFFFF; background: var(--primary); border-radius: 999px; padding: 4px 10px; }
.amount { align-self: flex-start; font-family: var(--serif); font-weight: 700; font-size: 52px; letter-spacing: -2px; line-height: 1.15; }
.per { font-size: 15px; color: var(--muted); }
.benefits { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-direction: column; gap: 6px; flex: 1 0 auto; } /* fills the card so the button stays at the bottom */
.benefits li { display: flex; gap: 8px; font-size: 15px; }
.benefits li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23149EA6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.buy { text-decoration: none; text-align: center; background: var(--primary); color: #FFFFFF; font-weight: 700; font-size: 18px; padding: 16px; border-radius: 999px; min-height: 54px; }
.buy:hover { background: var(--deep); color: #FFFFFF; }
.fine { font-size: 13px; color: var(--secondary); text-align: center; }
.secure { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--secondary); text-align: center; }

/* FAQ, closed by default; one open at a time (details name="faq"). */
.faq { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { font-size: 28px; text-align: left; }
.faq-list { background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 16px; padding: 4px 16px; }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; min-height: 52px; font-size: 16px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 16px; height: 16px; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231259B5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231259B5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq details p { margin: 0; padding: 0 0 15px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dots li { display: flex; gap: 8px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.dots li::before { content: "•"; color: var(--secondary); }
.outline-btn { display: block; margin: 12px 0 15px; text-align: center; text-decoration: none; border: 1.5px solid var(--primary); color: var(--primary); font-weight: 700; font-size: 15px; padding: 12px; border-radius: 999px; min-height: 46px; }

/* Closing + footer (footer centered on every screen size, Loop 2026-10-20) */
.closing { background: var(--deep); color: #FFFFFF; padding: 40px 0; text-align: center; }
.closing h2 { font-size: 32px; }
.footer { background: var(--deep); border-top: 1px solid #23508F; color: #C9D6EA; font-size: 13px; padding: 22px 0 32px; }
.footer .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.footer a { color: #FFFFFF; }

/* Tablet */
@media (min-width: 640px) {
  .wrap { max-width: 760px; padding-left: 28px; padding-right: 28px; }
  .hero h1 { font-size: 56px; letter-spacing: -0.5px; }
  .sub { max-width: 480px; }
}

/* Desktop: wider page, bigger type, demo and pricing side by side. */
@media (min-width: 960px) {
  .wrap { max-width: 1160px; padding-left: 40px; padding-right: 40px; }
  h2 { font-size: 44px; letter-spacing: -1.5px; }

  .header { padding-top: 20px; padding-bottom: 20px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand-name { font-size: 22px; }

  .hero { padding-top: 48px; padding-bottom: 72px; gap: 22px; }
  .hero h1 { font-size: 76px; letter-spacing: -0.5px; max-width: 980px; }
  .sub { font-size: 21px; max-width: 620px; }
  .cta { font-size: 18px; padding: 18px 32px; }
  .made-for { font-size: 17px; }
  .rating { font-size: 16px; }
  .stars svg { width: 17px; height: 17px; }
  .badge { font-size: 14px; padding: 7px 14px; }

  .reviews { padding: 64px 0 40px; gap: 28px; }
  .reviews h2 { font-size: 40px; }
  .review { flex-basis: 340px; padding: 22px; margin-right: 24px; }
  .review blockquote { font-size: 17px; }
  .schools { padding: 8px 0 72px; gap: 22px; }
  .schools p { font-size: 16px; }
  .logo { height: 42px; }
  .logo-md { height: 36px; }
  .logo-sm { height: 34px; }
  .logo-xs { height: 28px; }
  .logo-track > * { margin-right: 64px; }

  .demo { padding: 80px 0; margin-bottom: 72px; }
  .demo .center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-areas: "title phone" "chips phone";
    align-items: center;
    column-gap: 80px;
    row-gap: 28px;
  }
  .demo h2 { grid-area: title; align-self: end; text-align: left; font-size: 60px; line-height: 1.02; }
  .demo .iphone { grid-area: phone; --w: 330px; justify-self: center; }
  .demo .chips { grid-area: chips; align-self: start; justify-content: flex-start; }
  .chip { font-size: 15px; padding: 8px 14px; }
  .chip svg { width: 15px; height: 15px; }

  .compare { max-width: 900px; padding-bottom: 80px; gap: 28px; }
  .table { font-size: 16px; }
  .row { padding: 18px 22px; }

  .specialties { padding: 0 0 80px; gap: 16px; }
  .specialties h2 { margin-bottom: 12px; }
  .chip-track span, .chip-track-back span { font-size: 17px; padding: 11px 18px; }
  .chip-track > *, .chip-track-back > * { margin-right: 12px; }

  .price { padding: 80px 0; }
  .price .center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    grid-template-areas: "title plan" "sub plan" "toggle plan" "secure plan";
    align-items: center;
    column-gap: 80px;
    row-gap: 24px;
  }
  .price h2 { grid-area: title; align-self: end; text-align: left; font-size: 60px; line-height: 1.02; }
  .price .price-sub { grid-area: sub; text-align: left; font-size: 18px; }
  .price .toggle { grid-area: toggle; justify-self: start; }
  .price .secure { grid-area: secure; align-self: start; text-align: left; }
  .price .plan { grid-area: plan; padding: 30px; }

  .faq { max-width: 860px; padding-top: 80px; padding-bottom: 80px; gap: 24px; }
  .faq h2 { font-size: 44px; text-align: center; }
  .faq summary { font-size: 18px; min-height: 64px; }
  .faq details p, .dots li { font-size: 16px; }
  .outline-btn { max-width: 320px; }

  .closing { padding: 96px 0; }
  .closing .center { gap: 28px; }
  .closing h2 { font-size: 56px; max-width: 920px; }
  .footer { padding: 28px 0 40px; font-size: 14px; }
  .footer .wrap { gap: 10px; }
}

/* 404 page (Loop 2026-11-03): headline, one line, then the home page's three buttons. */
.not-found { padding-top: 40px; padding-bottom: 64px; }
/* The 404 page fills the screen, so the footer sits at the bottom with no empty band under it. */
body[data-page="404"] { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body[data-page="404"] .top { flex: 1 0 auto; }

/* Closing block at the end of every content page (Loop 2026-11-03). Markup lives once in partials/closing-cta.html;
   the build copies it into each page. Navy card, the home page's 3 buttons: one row on desktop, 2 badges then the
   full-width Web button on phones. */
.closing-cta { width: 100%; max-width: 1000px; margin: 0 auto; padding: 8px 18px 40px; }
.closing-cta-card { background: var(--deep); color: #FFFFFF; border-radius: 22px; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.closing-cta .closing-cta-card h2 { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: -0.5px; margin: 0; color: #FFFFFF; text-align: center; text-wrap: balance; }
.closing-cta .closing-cta-card p { margin: 0 0 10px; color: #C9D6EA; font-size: 18px; line-height: 1.5; }
/* Phones: the 2 badges always fit side by side inside the card (they shrink a little under 390 px). */
@media (max-width: 639px) { .closing-cta .stores { --bh: min(48px, (100vw - 78px) / 6.349); } }
/* Phones: the heading is always 2 lines (Loop 11/03), its size following the screen; desktop: 1 line. */
@media (max-width: 639px) { .closing-cta .closing-cta-card h2 { font-size: min(34px, (100vw - 68px) / 12.4); } }
@media (min-width: 640px) { .closing-cta .closing-cta-card h2 br { display: none; } }
@media (min-width: 640px) {
  .closing-cta { padding: 16px 28px 56px; }
  .closing-cta-card { padding: 44px 40px; gap: 12px; }
  .closing-cta .closing-cta-card h2 { font-size: 32px; }
  .closing-cta .closing-cta-card p { font-size: 16px; margin-bottom: 14px; }
}

/* Breadcrumbs on every content page (Loop 2026-11-04). The build writes them (scripts/site.mjs). */
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--secondary); margin: 0 0 14px; }
.crumbs a { color: var(--primary); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--secondary); }

/* Footer, option A (Loop 2026-11-04): main links on top, every feature page, then the languages. */
.footer.site-footer { padding: 32px 0 28px; font-size: 13px; text-align: left; }
.footer.site-footer .wrap { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 22px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 18px; border-bottom: 1px solid #23508F; }
.footer.site-footer .footer-top a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.footer-label { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8FB0DE; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.footer.site-footer .footer-grid a { color: #C9D6EA; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.footer.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer.site-footer .footer-langs a[aria-current] { color: #FFFFFF; font-weight: 700; }
.footer-top + .footer-legal { border-top: 0; padding-top: 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-top: 14px; border-top: 1px solid #23508F; color: #8FA3C2; font-size: 12px; }
.footer.site-footer .footer-legal a { color: #8FA3C2; text-decoration: none; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer.site-footer { padding: 40px 0 32px; font-size: 14px; } .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Article visuals (Loop 2026-11-05: "illustration / visual components using claude, images using codex ... so it's not too
   dry"). Coded visuals use inline SVG or HTML with these classes only (no style="" or <style>: CSP). Codex images come
   from <!-- codex-image name | alt | caption --> markers that scripts/publish-queued.mjs turns into a .post-figure. */
.viz, .post-figure { margin: 28px auto; max-width: 760px; }
.viz svg { display: block; width: 100%; height: auto; }
.viz-card { background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--stroke); background: #F5F7FC; }
.viz figcaption, .post-figure figcaption { margin-top: 10px; color: var(--secondary); font-size: 14px; line-height: 1.5; text-align: center; }
.viz text { font-family: inherit; }
.viz .f-primary { fill: var(--primary); } .viz .f-deep { fill: var(--deep); } .viz .f-teal { fill: var(--teal); } .viz .f-gold { fill: var(--gold); }
.viz .f-soft { fill: #EAF1FB; } .viz .f-white { fill: #FFFFFF; } .viz .f-text { fill: var(--text); } .viz .f-muted { fill: var(--secondary); } .viz .f-none { fill: none; }
.viz .s-primary { stroke: var(--primary); } .viz .s-deep { stroke: var(--deep); } .viz .s-teal { stroke: var(--teal); } .viz .s-gold { stroke: var(--gold); } .viz .s-line { stroke: var(--stroke); }
.viz .t-bold { font-weight: 700; } .viz .t-serif { font-family: var(--serif); } .viz .t-mid { text-anchor: middle; } .viz .t-end { text-anchor: end; }
/* HTML visuals: numbered steps, stat tiles and bars (bar width in 5% steps: w-5 … w-100). */
.viz-steps { list-style: none; counter-reset: viz; display: grid; gap: 12px; padding: 0; margin: 0; }
.viz-steps li { counter-increment: viz; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 14px; padding: 14px; }
.viz-steps li::before { content: counter(viz); width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #FFFFFF; font-weight: 700; display: grid; place-items: center; }
.viz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.viz-stat { background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 14px; padding: 16px; }
.viz-stat b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--deep); }
.viz-stat span { color: var(--secondary); font-size: 14px; line-height: 1.4; }
.viz-bars { display: grid; gap: 10px; }
.viz-bar { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.viz-bar i { display: block; height: 14px; border-radius: 999px; background: var(--primary); }
.viz-bar.alt i { background: #B8C6DA; }
.viz-bar i.w-5{width:5%}.viz-bar i.w-10{width:10%}.viz-bar i.w-15{width:15%}.viz-bar i.w-20{width:20%}.viz-bar i.w-25{width:25%}.viz-bar i.w-30{width:30%}.viz-bar i.w-35{width:35%}.viz-bar i.w-40{width:40%}.viz-bar i.w-45{width:45%}.viz-bar i.w-50{width:50%}
.viz-bar i.w-55{width:55%}.viz-bar i.w-60{width:60%}.viz-bar i.w-65{width:65%}.viz-bar i.w-70{width:70%}.viz-bar i.w-75{width:75%}.viz-bar i.w-80{width:80%}.viz-bar i.w-85{width:85%}.viz-bar i.w-90{width:90%}.viz-bar i.w-95{width:95%}.viz-bar i.w-100{width:100%}
/* "You might like" (SEO review row 4, scripts/site.mjs withRelated): one block right under the closing block on every
   calculator, guide and article, in the page's .wrap column, with the same cards as a calculator's Guides list
   (.tool-guides in tool.css) and a small label for the kind of page (Calculator, Guide, Article…). */
.related-wrap { padding-top: 8px; padding-bottom: 40px; }
.related-links { max-width: 760px; margin-left: auto; margin-right: auto; } /* centered on every page; its title stays left (Loop 2026-11-13) */
.related-links h2 { font-size: 24px; line-height: 1.2; letter-spacing: 0; text-align: left; margin: 0 0 12px; }
.related-links ul.link-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-links .link-cards li { display: flex; flex-direction: column; gap: 2px; margin: 0; border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 14px; background: #FFFFFF; }
.related-links .link-cards li a { font-weight: 700; color: var(--primary); text-decoration: none; }
.related-links .link-cards li a:hover { text-decoration: underline; }
.related-links .link-cards li span { color: var(--secondary); font-size: 14px; line-height: 1.45; }
.related-links .link-cards li small { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* AskMed call to action after an in-text AskMed mention in a long article: one line, then the 3 buttons
   (Loop 2026-11-13: "i want the 3 buttons every time you mention it, with a clear and fitting cta"). */
.inline-cta { margin: 6px 0 28px; display: grid; gap: 10px; }
.inline-cta p { margin: 0; }
