/* ---------- Notiscan marketing site ---------- */

:root {
  --bg: #EFEAE0;
  --bg-2: #E8E2D4;
  --bg-card: #F6F3EA;
  --bg-white: #FBF9F3;
  --ink: #15170F;
  --ink-2: #2A2D24;
  --muted: #6B6E5E;
  --muted-2: #8A8C7C;
  --line: #15170F;
  --line-soft: rgba(21,23,15,0.12);
  --green: #2BAA4A;
  --green-deep: #197A33;
  --green-ink: #0E3A1A;
  --red: #C8462E;
  --red-soft: #F2D7CE;
  --amber: #E0A82E;
  --paper: #FBF9F3;
  --shadow-btn: 4px 4px 0 var(--ink);
  --shadow-btn-sm: 3px 3px 0 var(--ink);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }

.font-display {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; position: relative; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.dark { background: var(--bg-2); color: var(--ink); }
.section.paper { background: var(--paper); }
.section.cream { background: var(--bg); }
.section.cream-2 { background: var(--bg-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.primary { background: var(--green); color: var(--ink); }
.btn.primary:hover { background: #34BD55; }
.btn.dark { background: var(--ink); color: #F1EEE3; }
.btn.dark:hover { background: #1f2218; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,0.04); }
.btn.lg { padding: 20px 28px; font-size: 17px; }
.btn.sm { padding: 10px 16px; font-size: 14px; box-shadow: var(--shadow-btn-sm); }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--bg-card);
}
.pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.pill.dark { background: var(--ink); color: #F1EEE3; border-color: var(--ink); }
.pill.green { background: var(--green); color: var(--ink); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-btn);
}
.card.flat { box-shadow: none; }
.card.soft { border: 1.5px solid var(--line-soft); box-shadow: none; background: var(--bg-card); }

/* ---------- Headings ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--green); margin-right: 8px; vertical-align: middle;
}

h1.display, .h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
}

h2.display, .h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
}

h3.display, .h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
}

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
}

.muted { color: var(--muted); }
.tiny { font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }

/* ---------- Section header pattern ---------- */
.section-head {
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px;
  max-width: 740px;
}
.section-head.center { margin-left: auto; margin-right: auto; align-items: flex-start; text-align: left; }

/* ---------- Utility ---------- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid { display: grid; }
.hide-mobile { }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 234, 224, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav .wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav .wordmark .glyph {
  width: 32px; height: 32px; display: grid; place-items: center; color: var(--green-deep);
}
.nav .wordmark img { display: block; }
.nav .links {
  display: flex; gap: 4px;
}
.nav .links a {
  text-decoration: none;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  color: var(--ink-2);
}
.nav .links a:hover { background: rgba(0,0,0,0.05); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1080px) {
  .nav-inner { flex-wrap: wrap; row-gap: 10px; }
  .nav .links {
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
  }
  .nav .links a { padding: 8px 10px; font-size: 14px; }
}
/* Tablet: keep wordmark + CTA on the same row, links below (centered).
   Mobile (<= 760px) keeps the existing 3-row stack since the user reported it reads well. */
@media (min-width: 761px) and (max-width: 1080px) {
  .nav .wordmark { order: 0; }
  .nav .nav-cta { order: 1; }
  .nav .links { order: 2; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 14px 0; }
  .nav .wordmark { font-size: 20px; }
  .nav .wordmark img { width: 28px; height: 28px; }
}

/* ---------- HERO ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero h1 { margin-top: 18px; }
.hero h1 em {
  font-style: normal; color: var(--green-deep); position: relative;
  padding: 0 4px;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 14px;
  background: rgba(43,170,74,0.22); z-index: -1; border-radius: 2px;
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero .meta {
  display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 28px;
  font-size: 14px; color: var(--muted);
}
.hero .meta b { color: var(--ink); font-weight: 600; }
.hero .feature-row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.hero .feature-row .feat { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero .feature-row .feat svg { width: 18px; height: 18px; }

/* phone column */
.phone-stage {
  position: relative; min-height: 620px;
  display: grid; place-items: center;
}
.phone-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(43,170,74,0.18), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.phone {
  position: relative;
  width: 320px; aspect-ratio: 320/660;
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: 44px;
  box-shadow: 8px 10px 0 var(--ink);
  padding: 14px; z-index: 1;
}
.phone .notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: var(--ink); border-radius: 999px;
}
.phone .screen {
  background: linear-gradient(180deg, #F6F3EA 0%, #EFEAE0 100%);
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
}

/* ---------- floating chips around phone ---------- */
.float-chip {
  position: absolute; z-index: 2; background: var(--bg-card); border: 2px solid var(--ink);
  border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-btn-sm);
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.float-chip.bad { background: #FBE3DA; }
.float-chip.good { background: #D8F0DD; }
.float-chip .badge {
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: #fff; flex-shrink: 0;
}
.float-chip.bad .badge { background: var(--red); }
.float-chip.good .badge { background: var(--green-deep); color: #fff; }

/* ---------- in-phone notification list ---------- */
.notif-list {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  height: 100%; overflow: hidden;
}
.notif-list .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px 16px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(14,26,16,0.06);
  position: relative; z-index: 2;
}
.notif-stream {
  position: relative;
  overflow: hidden;
  flex: 1;
  margin-top: 4px;
}
.notif.stream-item {
  position: absolute;
  left: 0; right: 0; top: 0;
  margin: 0;
  height: 60px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}
.notif.stream-item.flag-bad::after { top: -4px; }
.notif-list .head .title {
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 15px;
}
.notif-list .head .time { font-size: 11px; color: var(--muted); }

.notif {
  background: #fff; border: 1.5px solid rgba(0,0,0,0.08); border-radius: 14px;
  padding: 10px 12px; display: grid; grid-template-columns: 32px 1fr auto;
  gap: 10px; align-items: start; position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.notif .av {
  width: 32px; height: 32px; border-radius: 999px; background: #ddd;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff;
}
.notif .meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif .sender { font-weight: 600; font-size: 13px; }
.notif .when { font-size: 10px; color: var(--muted); }
.notif .body { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }

.notif.flag-bad {
  border-color: var(--red); background: #FFF1EC;
  box-shadow: 0 0 0 3px rgba(200,70,46,0.08);
}
.notif.flag-bad::after {
  content: "RISK"; position: absolute; top: -8px; right: 10px;
  font-size: 9px; letter-spacing: 0.1em; font-weight: 700;
  background: var(--red); color: #fff; padding: 2px 8px; border-radius: 999px;
}
.notif.flag-good { border-color: var(--green-deep); }

/* ---------- SPOT THE FRAUD ---------- */
.spot-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 760px; margin: 0 auto;
}
.spot-msg {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: 18px;
  padding: 18px 20px; position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px;
  align-items: start;
  transition: background 0.2s ease;
}
.spot-msg > * { min-width: 0; }
.spot-msg .sender-av {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  color: #fff; font-weight: 700;
}
.spot-msg .sender { font-weight: 700; font-size: 16px; }
.spot-msg .body {
  color: var(--ink-2); margin-top: 3px; font-size: 15px; line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-word;
}
.spot-msg .when { color: var(--muted); font-size: 13px; }
.spot-msg .verdict {
  position: absolute; top: -12px; right: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.spot-msg.revealed .verdict { opacity: 1; transform: translateY(0); }
.spot-msg.revealed.fraud { background: #FBE3DA; }
.spot-msg.revealed.legit { background: #D8F0DD; }
.spot-msg.revealed.fraud .verdict { background: var(--red); color: #fff; }
.spot-msg.revealed.legit .verdict { background: var(--green-deep); color: #fff; }

.spot-status {
  text-align: center; margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.score-bubble {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--bg-card);
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 18px;
}
.score-bubble .num { font-size: 28px; color: var(--green-deep); }

/* ---------- HOW IT WORKS ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1080px; margin-inline: auto;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-btn);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; min-height: 240px;
}
.step .num {
  width: 36px; height: 36px; border-radius: 999px; background: var(--green);
  border: 2px solid var(--ink); display: grid; place-items: center;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 15px;
}
.step .icon { width: 32px; height: 32px; }
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- WHY / TESTIMONIALS ---------- */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }
.tmonial {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-btn);
  display: flex; flex-direction: column; gap: 16px; min-height: 240px;
}
.tmonial .stars { color: var(--green-deep); font-size: 14px; letter-spacing: 2px; }
.tmonial .q {
  font-family: "DM Sans", sans-serif; font-weight: 600;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
}
.tmonial .who {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.tmonial .who .av {
  width: 36px; height: 36px; border-radius: 999px; background: var(--ink-2); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.tmonial .who .name { font-weight: 600; font-size: 14px; }
.tmonial .who .place { font-size: 13px; color: var(--muted); }

/* trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 20px 36px; justify-content: center;
  padding: 20px 0; margin-top: 40px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.trust-strip .t { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.trust-strip .t svg { width: 18px; height: 18px; color: var(--green-deep); }

/* ---------- CUSTOMIZE ---------- */
.customize-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) { .customize-grid { grid-template-columns: 1fr; } }
.customize-list { display: flex; flex-direction: column; gap: 12px; }
.cust-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: 18px; background: var(--bg-card);
  border: 1.5px solid var(--line-soft);
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.cust-row.active { border-color: var(--ink); background: var(--bg-white); box-shadow: 4px 4px 0 var(--ink); }
.cust-row .left { display: flex; align-items: center; gap: 14px; }
.cust-row .ic {
  width: 38px; height: 38px; border-radius: 12px; background: var(--bg);
  display: grid; place-items: center; border: 1.5px solid var(--line-soft);
}
.cust-row .label { font-weight: 600; font-size: 16px; }
.cust-row .desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

.preview-card {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--shadow-btn); min-height: 480px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ---------- CHECK TOOL ---------- */
.tool-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 980px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-btn);
  display: flex; flex-direction: column; gap: 14px;
}
.tool-card h3 { margin: 0; }
.tool-card .tagline { color: var(--muted); margin: 0; font-size: 15px; }
.tool-card textarea, .tool-card input {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  background: var(--bg-white);
  border: 2px solid var(--ink); border-radius: 14px;
  padding: 14px 16px; font-size: 15px;
  width: 100%; resize: vertical;
}
.tool-card textarea:focus, .tool-card input:focus { outline: none; box-shadow: 0 0 0 3px rgba(43,170,74,0.25); }
.tool-card .result {
  border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5;
  border: 1.5px dashed var(--line-soft); color: var(--muted);
}
.tool-card .result.ok { background: #D8F0DD; border-color: var(--green-deep); color: var(--ink); border-style: solid; }
.tool-card .result.bad { background: #FBE3DA; border-color: var(--red); color: var(--ink); border-style: solid; }
.tool-card .row-input { display: flex; gap: 10px; }
.tool-card .row-input input { flex: 1; }
.tool-card .small { font-size: 13px; color: var(--muted); }

.notif.notiscan-warn {
  background: #E8F5E9;
  border-color: var(--green-deep);
  box-shadow: inset 3px 0 0 var(--green-deep);
}
.notif.notiscan-warn .sender { color: var(--green-ink); font-weight: 700; }
.notif.notiscan-warn .when { color: var(--muted); }
.notif.notiscan-warn .warn-inner {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.55);
  border: 1px dashed rgba(14,58,26,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 4px;
}
.notif.notiscan-warn .warn-from {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.notif.notiscan-warn .warn-body {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: rgba(200,70,46,0.5);
  font-size: 13px;
}

.tool-card .leak-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tool-card .leak-consent:hover { border-color: rgba(21,23,15,0.3); }
.tool-card .leak-consent input { position: absolute; opacity: 0; pointer-events: none; }
.tool-card .leak-consent-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--bg-card);
  display: grid; place-items: center;
  color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.tool-card .leak-consent-box svg { width: 14px; height: 14px; }
.tool-card .leak-consent input:checked + .leak-consent-box {
  background: var(--green);
  border-color: var(--ink);
  color: var(--ink);
}
.tool-card .leak-consent input:focus-visible + .leak-consent-box {
  box-shadow: 0 0 0 3px rgba(43,170,74,0.3);
}
.tool-card .leak-consent-text { flex: 1; }

/* ---------- PRICING ---------- */
.pricing-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--bg-card); border: 2px solid var(--ink); box-shadow: var(--shadow-btn-sm);
}
.pricing-toggle button {
  font-family: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; background: transparent; border: 0; cursor: pointer;
  color: var(--ink-2);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.pricing-toggle button.active { background: var(--ink); color: #F1EEE3; }
.pricing-toggle .save { font-size: 11px; padding: 2px 8px; background: var(--green); color: var(--ink); border-radius: 999px; margin-left: 6px; font-weight: 700; }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px;
}
.plans.plans-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .plans.plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans.plans-4 { grid-template-columns: 1fr; } }
.plan .price-sub { font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 8px; }
.plan.highlight .price-sub { color: rgba(255,255,255,0.55); }
.plans-extras {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px;
}
.plans-extras .plan { max-width: none; }
@media (max-width: 980px) { .plans-extras { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-btn);
  display: flex; flex-direction: column; gap: 18px; position: relative;
}
.plan.highlight { background: var(--ink); color: #F1EEE3; }
.plan.highlight h3 { color: #fff; }
.plan.highlight .price-num { color: var(--green); }
.plan.highlight ul li::before { background: var(--green); }
.plan .top-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 14px; font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
}
.plan h3 { margin: 0; font-size: 28px; }
.plan .sub { color: inherit; opacity: 0.75; font-size: 14px; margin-top: -6px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.plan.highlight .price { border-color: rgba(255,255,255,0.15); }
.plan .price-num { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 38px; color: var(--ink); letter-spacing: -0.02em; }
.plan .price-unit { font-size: 14px; color: var(--muted); }
.plan.highlight .price-unit { color: rgba(255,255,255,0.6); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan ul li {
  position: relative; padding-left: 26px; font-size: 15px; line-height: 1.35;
}
.plan ul li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--green-deep); border-radius: 999px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5z'/></svg>") center/contain no-repeat;
}

/* ---------- PROBLEM ---------- */
.problem-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 980px) { .problem-grid { grid-template-columns: 1fr; gap: 36px; } }
.problem-stats {
  display: flex; flex-direction: column; gap: 14px;
}
.problem-stat {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 22px 26px; box-shadow: var(--shadow-btn-sm);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline;
}
.problem-stat .num {
  font-family: "DM Sans", sans-serif; font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em;
  color: var(--green-deep); line-height: 1;
}
.problem-stat .lbl { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.problem-foot {
  margin-top: 32px; max-width: 720px;
  font-size: 15px; color: var(--muted); font-style: italic;
  border-left: 3px solid var(--green-deep); padding-left: 16px;
}

/* ---------- AUDIENCE TABS ---------- */
.audience-tabs {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--bg-card); border: 2px solid var(--ink); box-shadow: var(--shadow-btn-sm);
}
.audience-tabs button {
  font-family: inherit; font-weight: 600; font-size: 12px;
  padding: 6px 12px; border-radius: 999px; background: transparent; border: 0; cursor: pointer;
  color: var(--ink);
}
.audience-tabs button.active { background: var(--ink); color: #F1EEE3; }

.audience-card {
  margin-top: 36px;
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 44px; box-shadow: var(--shadow-btn);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 900px) { .audience-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; } }
.audience-bullets {
  list-style: none; padding: 24px; margin: 0;
  background: var(--bg); border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 14px;
}
.audience-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; color: var(--ink-2); line-height: 1.45;
}
.audience-bullets .bullet-dot {
  flex-shrink: 0; width: 10px; height: 10px; border-radius: 999px;
  background: var(--green-deep); margin-top: 8px;
}

/* ---------- FAMILY FEATURE BULLETS ---------- */
.feature-bullets {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px;
}
.feature-bullets li {
  position: relative; padding-left: 26px; font-size: 16px; color: var(--ink-2); line-height: 1.4;
}
.feature-bullets li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  background: var(--ink); border-radius: 999px;
}
.feature-bullets-light li { color: #FBF9F3; }
.feature-bullets-light li::before { background: #FBF9F3; }

/* ---------- KONTAKTPERSONER ---------- */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; margin-top: 36px;
}
@media (max-width: 980px) { .kontakt-grid { grid-template-columns: 1fr; } }

.kontakt-levels { display: flex; flex-direction: column; gap: 10px; }
.kontakt-levels .level-head {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 600; margin-bottom: 4px;
}
.kontakt-levels .level-row {
  text-align: left; cursor: pointer; font-family: inherit;
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow-btn-sm);
  display: flex; flex-direction: column; gap: 4px; transition: transform .15s ease;
}
.kontakt-levels .level-row:hover { transform: translate(-1px, -1px); }
.kontakt-levels .level-row.active {
  background: var(--ink); color: #F1EEE3;
  box-shadow: 6px 6px 0 var(--green-deep);
}
.kontakt-levels .level-row.active .level-desc { color: rgba(255,255,255,0.7); }
.kontakt-levels .level-name { font-weight: 700; font-size: 16px; }
.kontakt-levels .level-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.kontakt-levels .level-info {
  background: rgba(43,170,74,0.1); border: 1px dashed var(--green-deep); border-radius: var(--r-md);
  padding: 16px 18px; font-size: 14px; color: var(--ink-2); line-height: 1.5;
}

.kontakt-preview .preview-frame {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-btn); overflow: hidden;
}
.kontakt-preview .preview-tab {
  background: var(--ink); color: #F1EEE3; padding: 10px 18px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.kontakt-preview .preview-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.kontakt-preview .mail-row {
  display: grid; grid-template-columns: 60px 1fr; font-size: 13px; gap: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.kontakt-preview .mail-row span { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.kontakt-preview .mail-row strong { color: var(--ink); font-size: 14px; }
.kontakt-preview .mail-body p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 8px 0; }
.kontakt-preview .mail-foot { font-size: 12px; color: var(--muted); margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

.kontakt-preview .kontakt-phone-stage {
  position: relative;
  display: grid; place-items: center;
  padding: 12px 0;
}
.kontakt-preview .kontakt-phone-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(43,170,74,0.18), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.kontakt-preview .phone {
  width: 320px; aspect-ratio: 320/620;
  z-index: 1;
}
.kontakt-preview .kontakt-screen {
  background: linear-gradient(180deg, #F6F3EA 0%, #EFEAE0 100%);
  padding: 32px 14px 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.kontakt-app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(14,26,16,0.08);
}
.kontakt-app-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 14px; color: var(--ink);
}
.kontakt-app-time {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
}
.kontakt-app-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.kontakt-app-card {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 0 rgba(14,26,16,0.04);
}
.kontakt-app-card.alert {
  border-color: var(--green-deep);
  box-shadow: inset 3px 0 0 var(--green-deep), 0 1px 0 rgba(14,26,16,0.04);
}
.kontakt-app-tag {
  align-self: flex-start;
  font-size: 9px; letter-spacing: 0.12em; font-weight: 700;
  background: var(--green-deep); color: #fff;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase;
}
.kontakt-app-title {
  font-family: "DM Sans", sans-serif; font-weight: 700;
  font-size: 14px; line-height: 1.3; color: var(--ink);
}
.kontakt-app-meta {
  display: grid; grid-template-columns: 38px 1fr; gap: 6px; align-items: baseline;
  padding-bottom: 4px; border-bottom: 1px dashed rgba(14,26,16,0.08);
}
.kontakt-app-meta:last-of-type { border-bottom: 0; }
.kontakt-app-meta span {
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 9px;
}
.kontakt-app-meta strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.kontakt-app-text p {
  font-size: 12px; line-height: 1.5; color: var(--ink-2); margin: 0;
}
.kontakt-app-foot {
  font-size: 10px; color: var(--muted); line-height: 1.4;
  padding-top: 8px; border-top: 1px solid var(--line-soft);
}

.tryg-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) { .tryg-grid { grid-template-columns: 1fr; } }
.tryg .stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 18px; margin-top: 24px;
}
.tryg .stat .label { font-size: 12px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.1em; }
.tryg .stat .val { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 28px; margin-top: 4px; color: var(--green); }

/* ---------- FAMILY ---------- */
.family-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch;
}
@media (max-width: 900px) { .family-grid { grid-template-columns: 1fr; gap: 32px; } }

.family-copy { display: flex; flex-direction: column; justify-content: center; }

.family-stage {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: var(--r-xl);
  padding: 26px; box-shadow: var(--shadow-btn);
  display: flex; flex-direction: column; gap: 14px;
}
.family-payer {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px; background: var(--green-deep); color: #FBF9F3;
}
.family-payer .name { font-weight: 700; font-size: 15px; }
.family-payer .role { font-size: 12px; opacity: 0.85; }
.family-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 2px dashed rgba(14,26,16,0.22); border-radius: 12px;
  background: rgba(14,26,16,0.02);
}
.family-code span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.family-code strong { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 22px; letter-spacing: 0.16em; color: var(--ink); }
.family-members { display: flex; flex-direction: column; gap: 8px; }
.family-member { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(14,26,16,0.04); border-radius: 10px; }
.family-member.empty { background: transparent; border: 1.5px dashed rgba(14,26,16,0.22); }
.family-member .avatar { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.family-payer .avatar { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(255,255,255,0.16); color: #FBF9F3; }
.family-member .name { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }
.family-member .role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- SAMARBETA ---------- */
.samarbeta { background: var(--bg); color: var(--ink); }
.samarbeta-letter {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(8px, 1.5vw, 24px) 0;
  display: flex;
  flex-direction: column;
}
.samarbeta-letter::before {
  content: "";
  position: absolute;
  left: -4px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--green-deep);
  border-radius: 2px;
}
@media (max-width: 720px) { .samarbeta-letter::before { left: 0; } }

.samarbeta-corner {
  position: absolute;
  top: 0;
  right: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.samarbeta-head { padding-left: clamp(20px, 3vw, 36px); }
.samarbeta-head .eyebrow { display: inline-flex; }
.samarbeta-head .display {
  font-size: clamp(40px, 5.4vw, 72px);
  margin: 16px 0 0;
  max-width: 760px;
  text-wrap: balance;
  letter-spacing: -0.025em;
}
.samarbeta-deck {
  margin: 18px 0 0;
  max-width: 560px;
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  color: var(--muted);
}

.samarbeta-body {
  margin-top: 40px;
  padding-left: clamp(20px, 3vw, 36px);
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
}
.samarbeta-body p:first-of-type::first-letter {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 2.6em;
  line-height: 0.9;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--ink);
}

.samarbeta-tracks {
  list-style: none;
  margin: 56px 0 0;
  padding: 0 0 0 clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}
.samarbeta-track {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(21,23,15,0.16);
  align-items: baseline;
}
.samarbeta-track:last-child { border-bottom: 1px solid rgba(21,23,15,0.16); }
.samarbeta-track-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--green-deep);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.samarbeta-track-h {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.samarbeta-track-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.55;
  max-width: 56ch;
}

.samarbeta-foot {
  margin-top: 64px;
  padding-left: clamp(20px, 3vw, 36px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
}
.samarbeta-sign { display: flex; flex-direction: column; gap: 2px; }
.samarbeta-sign-cursive {
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
}
.samarbeta-sign-name {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.samarbeta-sign-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 6px;
}
@media (max-width: 720px) {
  .samarbeta-corner { position: static; margin-bottom: 18px; display: block; }
  .samarbeta-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 2px solid var(--ink); border-radius: 16px;
  overflow: hidden; transition: box-shadow 0.15s ease;
}
.faq-item.open { box-shadow: var(--shadow-btn-sm); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16px; gap: 16px;
}
.faq-q .ic {
  width: 28px; height: 28px; border-radius: 999px; background: var(--bg);
  border: 1.5px solid var(--ink); display: grid; place-items: center; flex-shrink: 0;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item.open .faq-q .ic { background: var(--green); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-a {
  max-height: 400px; padding: 0 22px 20px;
}
.faq-a p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink); color: #DAD7CB; padding: 80px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 14px; color: #F1EEE3;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: #B7B3A4; text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--green); }
.footer .legal {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; margin-top: 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #8A8775;
}

/* ---------- ANIMATIONS ---------- */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--green);
  box-shadow: 0 0 12px rgba(43,170,74,0.6);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0% { top: 12%; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 88%; opacity: 1; }
  90% { opacity: 0; }
  100% { top: 12%; opacity: 0; }
}

.fade-up { animation: slideIn 0.5s ease both; }

/* mini app preview shapes used in customize section */
.mini-app {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-white); border: 1.5px solid var(--line-soft);
  border-radius: 18px; padding: 18px; min-height: 300px;
}
.mini-app .row-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-card); }
.mini-app.dark { background: #14160E; color: #F1EEE3; }
.mini-app.dark .row-mini { background: #1F2218; color: #F1EEE3; }

/* ===== Legal pages (Integritetspolicy / Användarvillkor) ===== */
.legal-page .legal-shell {
  max-width: 760px;
  margin: 0 auto;
}
.legal-page .legal-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal-prose { margin-top: 40px; }
.legal-prose .legal-section { margin-top: 48px; }
.legal-prose .legal-section:first-child { margin-top: 0; }
.legal-prose h2 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
}
.legal-prose h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}
.legal-prose .legal-sub { margin-top: 24px; }
.legal-prose p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose ul {
  margin: 6px 0 18px 22px;
  padding: 0;
  list-style: disc;
}
.legal-prose li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.legal-prose li::marker { color: var(--green-deep); }
.legal-prose a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-prose a:hover { color: var(--green-ink); }
@media (max-width: 720px) {
  .legal-prose .legal-section { margin-top: 36px; }
  .legal-prose h2 { font-size: 19px; }
  .legal-prose p, .legal-prose li { font-size: 15px; }
}

.legal-prose .legal-table-wrap {
  margin: 18px 0 22px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: #FFFFFF;
}
.legal-prose .legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.legal-prose .legal-table th,
.legal-prose .legal-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(21,23,15,0.18);
}
.legal-prose .legal-table th {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.legal-prose .legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-prose .legal-table tbody tr:nth-child(even) td { background: rgba(43,170,74,0.04); }
@media (max-width: 720px) {
  .legal-prose .legal-table { font-size: 13px; }
  .legal-prose .legal-table th,
  .legal-prose .legal-table td { padding: 8px 10px; }
}

/* ---------- ACCESSIBILITY ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: #F1EEE3;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* Reset native button styling when used as a structured row (faq-q, cust-row, level-row).
   These were divs before; the button element brings default UA styles we don't want. */
button.faq-q,
button.cust-row,
button.level-row {
  width: 100%;
  text-align: left;
  background: inherit;
  color: inherit;
  font: inherit;
  border: inherit;
  box-shadow: inherit;
  appearance: none;
  cursor: pointer;
}
button.faq-q { background: transparent; border: 0; box-shadow: none; }

/* Visible focus indicator for keyboard users — works against both cream and paper backgrounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="tab"]:focus-visible,
[role="radio"]:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
