/* ==========================================================================
   HAJIRI — Marketing, auth-adjacent and utility pages
   Loaded after theme.css + components.css on every page.
   ========================================================================== */

/* ------------------------------------------------------- marketing shell */
.mkt-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px; max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------- landing background
   The marketing and sign-in pages carry a layer of hand-drawn doodles — a
   register, a fence, a face check, a shield, a signature — in the four hues the
   product already speaks in: brand green, info blue, violet and the red the
   register uses for absence. They are decoration only.

   `isolation: isolate` gives the canvas its own stacking context so the layer
   can sit at z-index -1 — behind every section, cards included, and above the
   canvas background — without the sections needing z-index rules of their own. */
.deco-canvas { position: relative; isolation: isolate; overflow: hidden; }
.deco-doodles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* The colour wash that sits under the doodles. On the layer rather than the
   canvas so a page whose own wrapper is the canvas (the sign-in pages use
   .auth-wrap) still gets it. */
.deco-doodles::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 380px at 8% 3%, rgba(21, 122, 78, .07), transparent 70%),
    radial-gradient(560px 360px at 97% 9%, rgba(29, 111, 208, .06), transparent 70%),
    radial-gradient(520px 340px at 10% 97%, rgba(109, 74, 199, .05), transparent 70%);
}
.deco-doodles .doodle {
  position: absolute; display: block; height: auto;
  opacity: var(--doodle-o, .13);
  transform: rotate(var(--doodle-r, 0deg));
  animation: doodle-drift var(--doodle-d, 16s) var(--ease-in-out) infinite;
}
@keyframes doodle-drift {
  0%, 100% { transform: rotate(var(--doodle-r, 0deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--doodle-r, 0deg) + 2.5deg)) translateY(-12px); }
}
/* Motion is the flourish here, never the message. */
@media (prefers-reduced-motion: reduce) {
  .deco-doodles .doodle { animation: none; }
}
/* Narrower than the content column, the doodles inevitably fall behind the
   copy. Fade them and drop the ones furthest down the page, so the page reads
   as paper with a few pencil marks rather than clutter over the text. */
@media (max-width: 1200px) {
  .deco-canvas .deco-doodles .doodle, .auth-wrap .deco-doodles .doodle { opacity: .09; }
  .deco-doodles .doodle:nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  .deco-doodles .doodle:nth-child(n+3) { display: none; }
}

.mkt-nav a.brand {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  text-decoration: none; font-family: var(--font-brand);
  font-weight: 700; font-size: 20px; letter-spacing: -.015em;
}
/* The APHD mark leads the header, so it is given real size: at 20px it read as
   a favicon someone had left in the markup rather than the company behind the
   product. Its own aspect ratio (500×212) keeps it from crowding the wordmark. */
.mkt-nav a.brand .brand-aphd { height: 40px; width: auto; object-fit: contain; }
.mkt-nav a.brand .brand-sep { color: var(--line-3); font-weight: 400; font-size: 26px; line-height: 1; }
.mkt-nav a.brand .brand-hajiri { display: flex; align-items: center; gap: 8px; }
.mkt-nav a.brand .brand-hajiri .mark { width: 30px; height: 30px; }
.mkt-nav .links { display: flex; gap: 24px; align-items: center; font-size: 14px; }
/* Plain links only. This rule outranks `.btn`, so keeping it off the pill's path
   matters: it was painting "Company sign in" in --ink-3 on a --brand background
   — a green button with grey-green text that read as an empty shape. */
.mkt-nav .links a:not(.btn) { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.mkt-nav .links a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* The phone menu button. Hidden wherever the links fit on one row; the rules at
   the foot of this file swap it in and turn the link row into a dropdown. */
.mkt-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 auto;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2);
  box-shadow: var(--e1); transition: background var(--t-fast) ease, color var(--t-fast) ease;
}
.mkt-toggle:hover { background: var(--surface-2); color: var(--ink); }
.mkt-toggle .ic-cross { display: none; }
.mkt-toggle[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.mkt-toggle[aria-expanded="true"] .ic-bars { display: none; }
.mkt-toggle[aria-expanded="true"] .ic-cross { display: block; }

/* hero: copy on the left, the product's own answer on the right */
.mkt-hero {
  max-width: 1200px; margin: 0 auto; padding: 72px 32px 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.mkt-hero.solo { grid-template-columns: 1fr; padding-bottom: 12px; margin-bottom: 12px; }
.mkt-hero h1 {
  font-size: clamp(36px, 5vw, 56px); line-height: 1.1; color: var(--ink);
  font-weight: 800; letter-spacing: -.03em;
}
.mkt-hero h1 b, .mkt-hero h1 strong { color: var(--brand); font-weight: 800; }
.mkt-hero p.lede { font-size: 18px; color: var(--ink-2); margin-top: 20px; max-width: 48ch; line-height: 1.6; }
.mkt-hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.mkt-trust {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px;
  color: var(--ink-3); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--line);
}
.mkt-trust span { display: flex; align-items: center; gap: 8px; }
.mkt-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.mkt-trust .ic { color: var(--brand); flex-shrink: 0; }

/* the product visual: a live-looking presence board, not decoration */
.mkt-splash {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--e4); padding: 32px; overflow: hidden;
  display: flex; gap: 32px; align-items: stretch;
}
.mkt-splash .ms-photo {
  flex: 0 0 160px; position: relative; border-radius: var(--r-lg);
  background: var(--brand-50); border: 2px solid var(--brand-200);
  display: grid; place-items: center; overflow: hidden; min-height: 200px;
}
.mkt-splash .ms-photo-inner {
  color: var(--brand); opacity: 0.6;
}
.mkt-splash .ms-photo-inner .ic {
  width: 48px; height: 48px;
}
.mkt-splash .ms-scan-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand); box-shadow: 0 0 8px var(--brand);
  animation: h-scan 2.5s ease-in-out infinite;
}
@keyframes h-scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%, 90% { opacity: 1; }
  50% { transform: translateY(190px); }
}
.mkt-splash .ms-details {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}
.mkt-splash .ms-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.mkt-splash .ms-head h4 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.mkt-splash .ms-head span { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.mkt-splash .ms-time { font-size: 24px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.mkt-splash .ms-metrics {
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; flex: 1;
}
.mkt-splash .ms-metric {
  display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 650; color: var(--ink-2);
}
.mkt-splash .ms-metric.ok .ic { color: var(--ok-d); }
.mkt-splash .ms-metric .ic { width: 20px; height: 20px; stroke-width: 2.5; }
.mkt-splash .ms-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.mkt-splash .ms-foot .badge { font-size: 12px; padding: 4px 10px; }

/* sections */
.mkt-section { max-width: 1200px; margin: 80px auto 0; padding: 0 32px; }
.mkt-section > h2 {
  font-size: clamp(28px, 3.5vw, 36px); color: var(--ink); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 12px; max-width: 24ch;
}
.mkt-section > p.sub { color: var(--ink-2); font-size: 16px; max-width: 64ch; margin-bottom: 32px; line-height: 1.6; }

.mkt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.mkt-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--e1);
}
.mkt-step .n {
  width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.mkt-step h3 { color: var(--ink); font-size: 16px; margin-bottom: 8px; font-weight: 700; letter-spacing: -.01em; }
.mkt-step p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }

.mkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.mkt-card h3 { color: var(--ink); font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.mkt-card p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }

.mkt-honest { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mkt-honest .item {
  display: flex; gap: 12px; font-size: 14px; color: var(--ink-2);
  align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; line-height: 1.6;
}
.mkt-honest .tick, .mkt-honest .cross {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; margin-top: 1px;
}
.mkt-honest .tick  { background: var(--ok-t);  color: var(--ok-d) }
.mkt-honest .cross { background: var(--bad-t); color: var(--bad-d) }
.mkt-honest .item b { color: var(--ink); font-weight: 700; }

.mkt-cta { margin: 80px auto 0; max-width: 1200px; padding: 0 32px; }
.mkt-cta .inner {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-900) 100%);
  border-radius: var(--r-lg); padding: 56px 40px; text-align: center;
  box-shadow: 0 20px 40px rgba(13, 78, 50, 0.25);
}
.mkt-cta h2 { color: #fff; font-size: clamp(28px, 3.5vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.mkt-cta p { color: rgba(255,255,255,.82); margin: 16px auto 32px; max-width: 56ch; font-size: 16px; line-height: 1.6; }
.mkt-cta .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mkt-cta .btn { background: #fff; color: var(--brand-ink); border-color: #fff; }
.mkt-cta .btn:hover { background: var(--brand-50); border-color: var(--brand-50); }
.mkt-cta .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.34); }
.mkt-cta .btn.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

/* pricing */
.mkt-price {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
  max-width: 1100px; margin: 48px auto 0; padding: 0 32px;
}
.price-card { display: flex; flex-direction: column; box-shadow: var(--e1); border-radius: var(--r-lg); }
.price-card.featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--e2); position: relative; }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -13px; left: 24px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; padding: 4px 12px; border-radius: var(--r-pill);
}
.price-card .amt {
  font-size: 40px; font-weight: 800; color: var(--ink); margin: 12px 0 4px;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.price-card ul { margin: 24px 0 0; padding: 0; list-style: none; flex: 1; }
.price-card li { color: var(--ink-2); font-size: 14px; padding: 8px 0 8px 28px; position: relative; line-height: 1.5; }
/* The Hajiri check mark, drawn from the same path data as #i-check in the
   sprite — an image, not a text glyph, so no font can substitute it. */
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 16px; height: 16px;
  background: currentColor; color: var(--ok);
  -webkit-mask: var(--tick-mask) center / 16px 16px no-repeat;
          mask: var(--tick-mask) center / 16px 16px no-repeat;
}
:root {
  --tick-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.8 12.4 5 5 9.4-10.4'/%3E%3C/svg%3E");
}
.price-note {
  font-size: 14px; color: var(--ink-3); text-align: center; max-width: 700px;
  margin: 32px auto 0; line-height: 1.7;
}

/* legal */
.legal { max-width: 760px; margin: 56px auto; padding: 0 32px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.legal h1 { color: var(--ink); font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.legal h2 { color: var(--ink); font-size: 18px; font-weight: 700; margin: 32px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 12px 20px; }
.legal li { margin-bottom: 6px; }

.mkt-footer {
  border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 32px; max-width: 1200px;
  margin-left: auto; margin-right: auto;
}
.mkt-footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.mkt-footer .brandline {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  font-family: var(--font-brand); font-weight: 700; font-size: 18px; letter-spacing: -.015em;
}
.mkt-footer p.tagline { color: var(--ink-3); font-size: 13px; margin-top: 10px; max-width: 40ch; line-height: 1.6; }
.mkt-footer .flinks { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.mkt-footer .flinks a { color: var(--ink-3); text-decoration: none; font-weight: 500; }
.mkt-footer .flinks a:hover { color: var(--ink); }
.mkt-footer .copy { color: var(--ink-4); font-size: 12px; margin-top: 24px; line-height: 1.6; }

/* ----------------------------------------------------------- org switcher */
.org-switch { position: relative; padding: 12px 12px 0; }
.org-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: background var(--t-fast), border-color var(--t-fast);
}
.org-switch summary:hover { background: var(--surface-2); border-color: var(--line-2); }
.org-switch summary::-webkit-details-marker { display: none; }
.org-switch .who { min-width: 0; flex: 1; }
.org-switch .who b {
  display: block; font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.org-switch .who span {
  display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600;
}
.org-switch .caret { color: var(--ink-3); flex-shrink: 0; transition: transform 180ms var(--ease); }
.org-switch[open] .caret { transform: rotate(180deg); }
.org-switch .menu {
  position: absolute; left: 12px; right: 12px; margin-top: 8px; z-index: 45; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--e3); padding: 8px;
  animation: h-rise 180ms var(--ease) both;
}
.org-switch .menu form { margin: 0; }
.org-switch .menu button {
  width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--r-xs);
  font-size: 14px; color: var(--ink-2); transition: background var(--t-fast);
}
.org-switch .menu button:hover { background: var(--surface-2); color: var(--ink); }
.org-switch .menu button.on { background: var(--brand-t); color: var(--brand-ink); font-weight: 600; }

/* ------------------------------------------------------------ invite rows */
.invite-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.invite-row:last-child { border-bottom: none; }
.invite-row .who { flex: 1; min-width: 200px; }
.invite-row .who b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.invite-row .who span { font-size: 13px; color: var(--ink-3); }
.invite-row .link {
  flex-basis: 100%; font-size: 13px; color: var(--ink-2); background: var(--surface-2);
  border: 1px dashed var(--line-2); border-radius: var(--r-xs); padding: 10px 14px;
  word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.invite-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------------------------------- gate & error pages */
.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: var(--canvas); }
.gate-card {
  width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 40px; box-shadow: var(--e2); text-align: center;
}
.gate-card .badge {
  width: 64px; height: 64px; border-radius: var(--r-lg); display: grid; place-items: center;
  margin: 0 auto 24px; border: none;
}
.gate-card .badge .ic { width: 30px; height: 30px; }
.gate-card .badge.warn { background: var(--warn-t); color: var(--warn-d) }
.gate-card .badge.bad  { background: var(--bad-t);  color: var(--bad-d) }
.gate-card .badge.info { background: var(--brand-t); color: var(--brand-d) }
.gate-card h1 { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 12px; }
.gate-card p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin-bottom: 12px; }
.gate-card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.gate-card .contact {
  font-size: 14px; color: var(--ink-3); margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* keep the older class name working */
.impersonate-bar {
  background: var(--violet-t); color: var(--violet-d); border-bottom: 1px solid var(--violet-line);
  font-size: 13px; padding: 12px 20px; display: flex; align-items: center;
  justify-content: center; gap: 12px; flex-wrap: wrap; font-weight: 500;
}
.impersonate-bar b { color: var(--violet-d); }

/* --------------------------------------------------------------- responsive
   The marketing pages are the only part of Hajiri most people meet on a phone,
   so they get real breakpoints rather than the desktop layout squeezed. Three
   widths, each with a job:

     1024px — the hero's two columns stop fitting side by side.
      900px — the nav's link row and the auto-fit grids need their own room.
      520px — phone: tighten spacing, soften type, make taps comfortable.

   The grid minimums below are wrapped in min(): `minmax(260px, 1fr)` overflows a
   320px viewport by 8px, and an overflowing hero is what makes the whole page
   scroll sideways on a small phone.
   ========================================================================= */

@media (max-width: 1024px) {
  .mkt-hero { grid-template-columns: 1fr; gap: 44px; padding: 56px 28px 40px; }
  .mkt-hero p.lede { max-width: none; }
  /* Alone in a full-width column the splash reads better taller than wide. */
  .mkt-splash { max-width: 620px; }
}

@media (max-width: 900px) {
  .mkt-hero { padding: 44px 24px 32px; }
  .mkt-honest { grid-template-columns: 1fr; }
  .mkt-section { margin-top: 56px; padding: 0 24px; }
  .mkt-section > h2 { font-size: 24px; }
  .mkt-cta { margin-top: 56px; padding: 0 24px; }
  .mkt-price { margin-top: 36px; padding: 0 24px; }
  .mkt-footer { padding: 32px 24px; margin-top: 56px; }
  .legal { margin: 40px auto; padding: 0 24px; }
  .gate-wrap { padding: 24px; }

  /* The brand and the link row can no longer share a single line: four links
     plus the wordmark need ~470px. Let it wrap and keep the row comfortably
     tappable instead of letting the links squeeze to nothing. */
  .mkt-nav { padding: 14px 24px; flex-wrap: wrap; gap: 12px 16px; }
  .mkt-nav .links { gap: 8px 18px; flex-wrap: wrap; font-size: 14px; }
  /* Taller tap target for the plain text links. Buttons are excluded: they set
     their own height and horizontal padding, and overriding it here collapsed
     the pill onto its own label. */
  .mkt-nav .links a:not(.btn) { padding: 6px 0; }
  /* The lockup still leads on a phone, just a step smaller so the wrapped
     second row stays on screen. */
  .mkt-nav a.brand .brand-aphd { height: 32px; }
  .mkt-nav a.brand .brand-hajiri .mark { width: 26px; height: 26px; }
  .mkt-steps { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
  .mkt-grid  { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
  .mkt-price { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

  /* Footer columns stack, so space-between would strand the links mid-page. */
  .mkt-footer .cols { flex-direction: column; gap: 24px; }
  .mkt-footer .flinks { gap: 8px 20px; }
}

/* -------------------------------------------------- phone menu (hamburger)
   Below ~760px the lockup and the three links stop sharing a line — together
   they want about 710px — and the wrapped second row reads like a header that
   broke rather than a layout that was chosen. On that width the links move into
   a dropdown behind a menu button, which is also where the tap targets get
   comfortable. `.open` and aria-expanded are set by initMktNav() in hajiri.js. */
@media (max-width: 760px) {
  .mkt-nav { position: relative; flex-wrap: nowrap; padding: 12px 20px; gap: 12px; }
  .mkt-toggle { display: inline-flex; }

  .mkt-nav .links {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
    z-index: var(--z-nav);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 10px; box-shadow: var(--e4);
  }
  .mkt-nav .links.open { display: flex; }
  .mkt-nav .links a:not(.btn) { padding: 12px; border-radius: var(--r-sm); font-size: 15px; }
  .mkt-nav .links a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
  .mkt-nav .links .btn { width: 100%; height: 44px; justify-content: center; margin-top: 6px; font-size: 14.5px; }
}

@media (max-width: 520px) {
  .mkt-hero { padding: 36px 18px 24px; gap: 32px; }
  .mkt-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .mkt-hero p.lede { font-size: 16px; margin-top: 16px; }
  .mkt-hero .cta { margin-top: 26px; }
  /* Full-width buttons: two side by side at this width are awkward to hit. */
  .mkt-hero .cta .btn { flex: 1 1 100%; justify-content: center; }
  .mkt-trust { gap: 12px 18px; margin-top: 26px; padding-top: 20px; }

  .mkt-splash { flex-direction: column; gap: 20px; padding: 22px; }
  .mkt-splash .ms-photo { flex: none; min-height: 150px; }
  /* The scan line animates 190px down; match it so it cannot run past the photo. */
  @keyframes h-scan {
    0%, 100% { transform: translateY(0); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(140px); }
  }
  .mkt-splash .ms-head { margin-bottom: 18px; padding-bottom: 16px; }
  .mkt-splash .ms-head h4 { font-size: 19px; }
  .mkt-splash .ms-time { font-size: 20px; }
  .mkt-splash .ms-foot { font-size: 12px; letter-spacing: .03em; }

  .mkt-section { margin-top: 44px; padding: 0 18px; }
  .mkt-section > h2 { font-size: 21px; }
  .mkt-section > p.sub { font-size: 15px; margin-bottom: 24px; }
  /* 16px deliberately matches theme.css's own .card at this width — .mkt-card
     is a .card first, and padding it back up here would undo that. */
  .mkt-step, .mkt-card { padding: 16px; }
  .mkt-honest .item { padding: 16px; }

  .mkt-cta { margin-top: 44px; padding: 0 18px; }
  .mkt-cta .inner { padding: 36px 20px; }
  .mkt-cta .cta .btn { flex: 1 1 100%; justify-content: center; }
  .mkt-price { padding: 0 18px; }
  .price-card .amt { font-size: 36px; }
  .price-note { margin-top: 24px; font-size: 13px; }

  .mkt-footer { padding: 28px 18px; margin-top: 44px; }
  .mkt-footer .flinks { font-size: 13.5px; }
  .legal { padding: 0 18px; font-size: 14.5px; }
  .legal h1 { font-size: 26px; }
  .gate-wrap { padding: 16px; }
  .gate-card { padding: 28px 22px; }
  .gate-card h1 { font-size: 22px; }
  .gate-card .actions .btn { flex: 1 1 100%; justify-content: center; }
}
