/* =========================================================
   Med99 — website styles (Design 2 — Light)
   ========================================================= */

:root {
  --brand: #00897B;         /* Med99 primary */
  --brand-btn: #00796B;     /* slightly deeper teal for small white text */
  --brand-text: #00695C;    /* teal for small text on white */
  --brand-tint: #E6F3F1;
  --ink: #0E1A18;
  --body: #45524F;
  --muted: #5F6B69;
  --line: #E3E8E7;
  --line-strong: #CDD6D4;
  --surface: #F6F8F8;
  --panel: #F3F6F6;
  --gold-bg: #F3F9F8;
  --warn: #8A4B00;
  --warn-bg: #FFF6E5;
  --radius: 8px;
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--brand-text); }
a:hover { color: #004D40; }
b { font-weight: 600; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

[id] { scroll-margin-top: 84px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 520px; }
.body { font-size: 15px; line-height: 1.6; color: var(--body); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 50px; padding: 0 24px; }
.btn--block { display: flex; width: 100%; }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #22312E; color: #FFFFFF; }
.btn--outline { border: 1px solid var(--line-strong); color: var(--ink); background: #FFFFFF; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: #FFFFFF; color: var(--ink); }
.btn--white:hover { background: #EEF4F3; color: var(--ink); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center;
  background: var(--brand); color: #FFFFFF;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.4px;
  padding: 5px 11px; border-radius: 6px; text-decoration: none;
}
.logo:hover { color: #FFFFFF; }
.logo--xs { font-size: 14px; padding: 3px 8px; border-radius: 5px; }

/* ---------- Announcement ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  background: var(--ink); color: #FFFFFF;
  font-size: 13px; font-weight: 500; text-decoration: none; text-align: center;
}
.announce:hover { color: #FFFFFF; }
.announce:hover .announce__text { text-decoration: underline; }
.announce__tag { color: #7FD9CD; font-weight: 600; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__left { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--ink); text-decoration: none; }
.nav__links a:hover { color: var(--brand-text); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.nav__mobile-only { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 96px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 12px 6px 8px; font-size: 13px; font-weight: 500; color: var(--body);
}
.badge__brand { background: var(--brand-tint); color: var(--brand-text); font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.hero__title {
  max-width: 920px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.hero__lead { max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.hero__note { font-size: 13px; color: var(--muted); }

/* Product frame */
.frame {
  margin-top: 64px;
  background: var(--brand);
  border-radius: 16px 16px 0 0;
  padding: 56px 56px 0;
  overflow: hidden;
}
.app {
  background: #FFFFFF; border-radius: 10px 10px 0 0; overflow: hidden;
  box-shadow: 0 -2px 0 rgba(255,255,255,0.25), 0 30px 80px rgba(0,40,36,0.35);
  text-align: left;
}
.app__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; min-height: 52px; border-bottom: 1px solid var(--line); }
.app__bar-left { display: flex; align-items: center; gap: 20px; }
.app__tabs { display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
.app__tab { padding: 7px 12px; color: var(--muted); border-radius: 6px; }
.app__tab.is-active { background: #F1F4F4; color: var(--ink); }
.app__body { display: flex; }
.app__main { flex: 1 1 560px; min-width: 0; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.app__bills { display: flex; gap: 6px; font-size: 13px; font-weight: 500; }
.app__bill { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.app__bill.is-active { border-color: var(--ink); color: var(--ink); }
.app__bill--add { border-style: dashed; border-color: var(--line-strong); padding: 6px 10px; }
.app__search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 14px; min-height: 44px; font-size: 14px; color: var(--muted); }
.app__search-text { flex: 1 1 auto; }
.app__kbd { font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.table-wrap { overflow-x: auto; }
.app__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.app__table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.app__table td { padding: 12px 8px; border-bottom: 1px solid #F0F3F3; }
.app__table tr:last-child td { border-bottom: 0; }
.app__table b { font-weight: 500; }
.app__table .r { text-align: right; }
.warn { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 500; }
.warn__dot { width: 6px; height: 6px; border-radius: 999px; background: #D97706; }
.warn-text { color: var(--warn); font-weight: 500; }
.app__side { flex: 0 1 320px; min-width: 0; border-left: 1px solid var(--line); background: #FAFBFB; padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.app__field { display: flex; flex-direction: column; gap: 6px; }
.app__select { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: #FFFFFF; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.app__summary { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 16px; }
.app__summary > span { display: flex; justify-content: space-between; }
.app__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.app__btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); background: #FFFFFF; font-size: 14px; font-weight: 600; }
.app__btn--primary { background: var(--brand-btn); border-color: var(--brand-btn); color: #FFFFFF; }

/* Phone mock (mobile only) */
.phone { display: none; }

/* ---------- Value strip ---------- */
.values { border-bottom: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.values__item { padding: 32px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.values__item:first-child { border-left: 1px solid var(--line); }
.values__title { font-weight: 600; font-size: 15px; }
.values__text { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: 128px; }
.section--lg { padding-top: 140px; }
.cta-wrap { padding-bottom: 120px; }

.split { display: flex; align-items: center; gap: 64px; }
.split--reverse { flex-direction: row; }
.split__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split__visual { flex: 1 1 480px; min-width: 0; background: var(--panel); border-radius: 14px; padding: 48px; display: flex; justify-content: center; }

.deflist { margin: 12px 0 0; border-top: 1px solid var(--line); }
.deflist > div { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.deflist dt { flex: 0 0 160px; font-weight: 600; }
.deflist dd { margin: 0; color: var(--body); }

/* Invoice card */
.invoice {
  width: 100%; max-width: 360px; background: #FFFFFF;
  border: 1px solid var(--line); border-radius: 6px; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 2px rgba(14,26,24,0.04), 0 12px 32px rgba(14,26,24,0.08);
}
.invoice__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.invoice__head > div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.invoice__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--brand-text); background: var(--brand-tint); padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.invoice__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.invoice__items { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.invoice__items > div { display: flex; justify-content: space-between; gap: 8px; }
.invoice__items > div > div { display: flex; flex-direction: column; gap: 2px; }
.invoice__items b { font-weight: 500; }
.invoice__foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* Expiry card */
.expiry {
  width: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(14,26,24,0.04), 0 12px 32px rgba(14,26,24,0.08);
}
.expiry__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.expiry__group { padding: 10px 18px 6px; font-size: 12px; font-weight: 600; color: var(--body); background: var(--surface); }
.expiry__group--warn { color: var(--warn); background: var(--warn-bg); }
.expiry__row { display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px; border-bottom: 1px solid #F0F3F3; font-size: 13.5px; }
.expiry__row:last-child { border-bottom: 0; }
.expiry__row b { font-weight: 500; }

/* Features list */
.features { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.features__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.features__list { flex: 2 1 640px; min-width: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.features__list li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.features__list b { font-size: 16px; }
.features__list span { font-size: 15px; line-height: 1.55; color: var(--body); }

/* Bordered box grids (apps + plans) */
.boxgrid { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.boxgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.boxgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.boxgrid__cell { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-right: 1px solid var(--line); }
.boxgrid__cell:last-child { border-right: 0; }
.boxgrid__cell .body { max-width: 420px; }

.center-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 48px; }
.center-head .lead { max-width: 560px; }

.plan { padding: 36px; align-items: stretch; gap: 20px; }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan__head > div { display: flex; flex-direction: column; gap: 6px; }
.plan__tag { font-size: 12px; font-weight: 600; color: var(--brand-text); border: 1px solid #A9D6CF; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.plan__list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--body); }
.plan--gold { background: var(--gold-bg); }
.plan--gold .plan__list { border-top-color: #D5E7E4; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 48px; }
.faq > div { display: flex; flex-direction: column; gap: 10px; }
.faq h3 { font-size: 17px; font-weight: 600; }
.faq p { font-size: 15px; line-height: 1.65; color: var(--body); }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--brand); border-radius: 16px; padding: 72px 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta__title { flex: 1 1 520px; color: #FFFFFF; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* Decorative pattern on the right: faint medical crosses fading in, plus soft rings */
.cta::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 55%; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2736%27 height=%2736%27 viewBox=%270 0 36 36%27%3E%3Cpath d=%27M18 12v12M12 18h12%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
  background-size: 36px 36px; background-position: right -6px center;
  opacity: .16;
  -webkit-mask-image: linear-gradient(to left, #000 25%, transparent);
  mask-image: linear-gradient(to left, #000 25%, transparent);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 420px; height: 420px; right: -140px; top: 50%; transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 56px rgba(255,255,255,.04), 0 0 0 57px rgba(255,255,255,.12), 0 0 0 120px rgba(255,255,255,.03);
}

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 280px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 72px; font-size: 14px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 12px; }
.footer__cols a { color: var(--body); text-decoration: none; }
.footer__cols a:hover { color: var(--ink); }
.footer__head { font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px; font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--ink); }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values__item:nth-child(odd) { border-left: 1px solid var(--line); }
  .values__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .split--reverse { flex-direction: column; align-items: stretch; }
  .split--reverse .split__visual { order: 2; }
  .split__visual { padding: 40px; }
  .boxgrid--3 { grid-template-columns: 1fr; }
  .boxgrid--3 .boxgrid__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .boxgrid--3 .boxgrid__cell:last-child { border-bottom: 0; }
  .app__side { display: none; }
  .frame { padding: 40px 32px 0; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Nav */
  .nav { min-height: 60px; }
  .nav__toggle { display: inline-flex; }
  .nav__signin { display: none; }
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; font-size: 16px;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links.is-open { display: flex; }
  .nav__mobile-only { display: block; }

  /* Hero */
  .hero { padding-top: 48px; }
  .hero__inner { align-items: flex-start; text-align: left; gap: 18px; }
  .badge { font-size: 12px; }
  .hero__title { font-size: 40px; line-height: 1.04; }
  .hero__lead { font-size: 16px; }
  .hero__ctas { flex-direction: column; width: 100%; padding-top: 4px; }
  .hero__ctas .btn { width: 100%; }
  .hero__note { align-self: center; font-size: 12.5px; }

  .frame { margin-top: 36px; padding: 32px 24px 0; border-radius: 14px 14px 0 0; }
  .app--desktop { display: none; }
  .phone {
    display: block; background: #FFFFFF;
    border: 6px solid var(--ink); border-bottom: 0;
    border-radius: 22px 22px 0 0; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,40,36,0.35);
  }
  .phone__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
  .phone__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
  .phone__body { padding: 10px 14px 18px; display: flex; flex-direction: column; }
  .phone__row { display: flex; justify-content: space-between; gap: 6px; padding: 10px 0; border-bottom: 1px solid #F0F3F3; font-size: 13px; }
  .phone__row:nth-last-child(2) { border-bottom: 0; }
  .phone__row > div { display: flex; flex-direction: column; gap: 2px; }
  .phone__row b { font-weight: 500; }
  .phone__row .muted, .phone__row .warn-text { font-size: 11px; }
  .phone .app__btn { margin-top: 6px; min-height: 40px; font-size: 13px; }

  /* Values */
  .values__item { padding: 20px 14px; }
  .values__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .values__item:nth-child(even) { border-right: 0; }
  .values__title { font-size: 14px; }
  .values__text { font-size: 13px; }

  /* Sections */
  .section { padding-top: 72px; }
  .section--lg { padding-top: 80px; }
  .cta-wrap { padding-bottom: 64px; }
  .h2 { font-size: 30px; line-height: 1.08; }
  .lead { font-size: 15px; }
  .split { gap: 24px; }
  .split__text { gap: 16px; }
  .split--reverse .split__visual { order: 2; }
  .split__visual { padding: 24px 20px; border-radius: 12px; }
  .invoice { padding: 20px 18px; }
  .expiry__row { flex-direction: column; gap: 2px; }
  .deflist dt { flex-basis: 130px; }
  .deflist > div { font-size: 14px; }

  .features { gap: 20px; }
  .features__list li { grid-template-columns: 1fr; padding: 16px 0; }
  .features__list b { font-size: 15px; }
  .features__list span { font-size: 14px; }

  .boxgrid--2 { grid-template-columns: 1fr; border-radius: 12px; }
  .boxgrid--2 .boxgrid__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .boxgrid--2 .boxgrid__cell:last-child { border-bottom: 0; }
  .boxgrid__cell { padding: 28px 22px; align-items: stretch; }
  .boxgrid__cell .btn { width: 100%; }
  .h3 { font-size: 22px; }

  .center-head { align-items: flex-start; text-align: left; margin-bottom: 24px; }
  .plans .plan--gold { order: -1; }
  .plan { padding: 24px 22px; }

  .faq { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; margin-top: 24px; }
  .faq h3 { font-size: 16px; }
  .faq p { font-size: 14px; }

  .cta { padding: 36px 24px; border-radius: 14px; flex-direction: column; align-items: stretch; gap: 20px; }
  .cta::before { width: 100%; -webkit-mask-image: linear-gradient(to bottom left, #000 10%, transparent 60%); mask-image: linear-gradient(to bottom left, #000 10%, transparent 60%); }
  .cta::after { width: 260px; height: 260px; right: -120px; top: -60px; transform: none; }
  .cta__title { flex: none; font-size: 30px; }
  .cta__btns { flex-direction: column; }
  .cta__btns .btn { width: 100%; }

  .footer { padding: 40px 0 32px; }
  .footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Download page (/download) ---------- */
.dl-page { background: var(--surface); min-height: 100vh; display: flex; flex-direction: column; }
.dl-header { padding: 20px 24px; }
.dl-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 16px 64px; }
.dl-card {
  width: 100%; max-width: 420px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  padding: 36px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.dl-card[hidden] { display: none; }
.dl-card--wide { max-width: 640px; }
.dl-ring { position: relative; width: 88px; height: 88px; margin-bottom: 8px; }
.dl-ring svg { transform: rotate(-90deg); }
.dl-ring circle { fill: none; stroke-width: 5; }
.dl-ring__track { stroke: var(--brand-tint); }
.dl-ring__bar { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.dl-ring__num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--ink);
}
.dl-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dl-cancel {
  min-height: 44px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted);
}
.dl-cancel:hover { color: var(--ink); text-decoration: underline; }
.dl-options { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.dl-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 20px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none; transition: border-color .15s ease;
}
.dl-option svg { color: var(--brand); margin-bottom: 6px; }
.dl-option__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.dl-option__sub { font-size: 14px; line-height: 1.5; color: var(--body); flex: 1; margin-bottom: 10px; }
a.dl-option:hover { border-color: var(--ink); color: var(--ink); }
a.dl-option:hover .btn--dark { background: #22312E; }
.dl-option.is-disabled { background: var(--panel); }
.dl-option.is-disabled svg { color: var(--muted); }
.dl-option.is-disabled .btn { color: var(--muted); cursor: not-allowed; }
.dl-soon {
  display: inline-block; vertical-align: middle; margin-left: 4px;
  padding: 2px 8px; border-radius: 4px; background: var(--warn-bg); color: var(--warn);
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
}
.dl-foot { margin-top: 12px; }

@media (max-width: 560px) {
  .dl-options { grid-template-columns: 1fr; }
  .dl-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-ring__bar { transition: none; }
}

/* ---------- Legal pages (/privacy, /terms, /refunds, /delete-data) ---------- */
.legal-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.legal-header__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-header__back { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.legal-header__back:hover { color: var(--brand-text); }
.legal { padding-top: 56px; padding-bottom: 80px; }
.legal__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal__nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none;
}
.legal__nav a:hover { border-color: var(--ink); color: var(--ink); }
.legal__nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.legal__body { max-width: 760px; font-size: 15px; line-height: 1.7; color: var(--body); }
.legal__body h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin: 40px 0 12px;
}
.legal__body p { margin: 0 0 14px; }
.legal__body ul, .legal__body ol { margin: 0 0 14px; padding-left: 22px; }
.legal__body li { margin-bottom: 8px; }
.legal__body b { color: var(--ink); }
.legal__card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.legal__summary { background: var(--brand-tint); border-radius: 12px; padding: 18px 20px; color: var(--ink); }
.legal-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0; font-size: 13px; color: var(--muted); }
.legal-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.legal-footer .footer__legal { flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Data deletion form ---------- */
.dd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.dd__info { display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.6; color: var(--body); position: sticky; top: 24px; }
.dd__warn { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 16px 18px; }
.dd__warn b { display: block; margin-bottom: 6px; font-size: 15px; }
.dd__warn p { color: #5C3300; }
.dd__h { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.dd__steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.dd__form, .dd__done { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.dd__form[hidden], .dd__done[hidden] { display: none; }
.dd__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dd__where { margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field[hidden] { display: none; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 2px; }
.field__hint { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #FFFFFF;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field ::placeholder { color: #8A9593; }
.is-invalid { border-color: #C62828 !important; box-shadow: 0 0 0 3px #FDECEC !important; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: var(--line-strong); }
.choice input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 2px 0 0;
  width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #FFFFFF;
  display: grid; place-content: center; cursor: pointer;
}
.choice input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .12s ease; }
.choice input:checked { border-color: var(--brand); }
.choice input:checked::before { transform: scale(1); }
.choice input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.choice__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.choice__title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.choice__sub { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.choice__tag {
  padding: 3px 9px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  background: var(--panel); color: var(--body);
}
.choice__tag--warn { background: var(--warn-bg); color: var(--warn); }
.choice__tag--danger { background: #FDECEC; color: #A61B1B; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--gold-bg); box-shadow: 0 0 0 3px var(--brand-tint); }
.choice--danger:has(input:checked) { border-color: #C62828; background: #FFF7F7; box-shadow: 0 0 0 3px #FDECEC; }
.choice--danger input:checked { border-color: #C62828; }
.choice--danger input::before { background: #C62828; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; font-weight: 400; color: var(--ink); cursor: pointer; }
.checks input, .agree input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.dd__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.captcha img { border: 1px solid var(--line); border-radius: var(--radius); background: var(--gold-bg); }
.captcha__refresh {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--brand-text);
}
.captcha__refresh:hover { color: #004D40; text-decoration: underline; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--body); cursor: pointer; }
.agree input { margin-top: 3px; }
.dd__error { background: #FDECEC; color: #8E1B1B; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.dd__error[hidden] { display: none; }
.dd__submit { align-self: flex-start; cursor: pointer; border: 0; }
.dd__submit:disabled { opacity: .6; cursor: progress; }
.dd__done { align-items: flex-start; }
.dd__done svg { color: var(--brand); }
.dd__done:focus { outline: none; }

@media (max-width: 900px) {
  .dd { grid-template-columns: 1fr; gap: 28px; }
  .dd__info { position: static; }
}
@media (max-width: 560px) {
  .choice { padding: 14px; gap: 12px; }
  .legal { padding-top: 36px; padding-bottom: 56px; }
  .dd__form, .dd__done { padding: 22px 18px; }
  .dd__grid, .checks { grid-template-columns: 1fr; }
  .dd__submit { align-self: stretch; }
}

/* ---------- 404 page ---------- */
.nf-code { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--brand); }
