/* ==========================================================================
   MRK Outreach — marketing site design system
   Rebuilt from the six mockups in Desktop/Outreach HOmepage Design/.
   One token block; every page composes the components below.
   ========================================================================== */

:root {
  /* Brand — matched to audit.mohibraiskhan.com (--primary #5B50E1) ------ */
  --g-700: #3F37B8;
  --g-600: #4F46E5;          /* audit --primary-600 */
  --g-500: #5B50E1;          /* audit --primary */
  --g-400: #6D5CE7;          /* light end of audit --primary-grad */
  --g-100: #EFEDFD;          /* audit --violet-soft */
  --g-050: #F7F6FE;
  --red:   #EF4444;          /* audit --crit */

  /* Ink — audit --ink / --ink-2 / --ink-3 -------------------------------- */
  --ink:    #191A2C;
  --ink-2:  #5C5E74;
  --ink-3:  #9598AC;
  --ink-4:  #B0B2C4;

  /* Surfaces — audit --bg / --panel / --panel-soft / --line -------------- */
  --bg:        #FFFFFF;
  --bg-soft:   #F6F7FB;
  --bg-mock:   #F9FAFD;
  --panel:     #FFFFFF;
  --line:      #ECEDF3;
  --line-2:    #E4E6EF;

  /* Status (used in the dashboard mockups) — audit --info/--warn/--good -- */
  --blue:   #3B82F6;
  --amber:  #F59E0B;
  --violet: #8B5CF6;
  --rose:   #EF4444;
  --good:   #16A34A;

  /* Shape ---------------------------------------------------------------- */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(20,20,40,.04);
  --shadow:    0 1px 2px rgba(20,20,40,.04), 0 4px 16px rgba(20,20,40,.05);
  --shadow-lg: 0 18px 50px rgba(30,25,90,.12);

  /* Rhythm --------------------------------------------------------------- */
  --wrap: 1180px;
  --nav-h: 72px;
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 15.5px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.022em;
  line-height: 1.18;
  font-weight: 800;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sec { padding: 76px 0; }
.sec-soft { background: var(--bg-soft); }
.center { text-align: center; }

/* Typography scale --------------------------------------------------------- */
.h1 { font-size: clamp(34px, 4.6vw, 52px); }
.h2 { font-size: clamp(27px, 3.1vw, 36px); }
.h3 { font-size: 19px; font-weight: 700; letter-spacing: -.014em; }
.lead { font-size: 16.5px; color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.tiny  { font-size: 12.5px; }
.grn { color: var(--g-500); }

/* Eyebrow pill ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g-100); color: var(--g-600);
  font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(14,138,63,.13);
}
.kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--g-500);
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--g-500); color: #fff; }
.btn-primary:hover { background: var(--g-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-4); }
.btn-onDark { background: #fff; color: var(--g-700); }
.btn-onDark:hover { background: var(--g-050); }
.btn-onDarkGhost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-onDarkGhost:hover { background: rgba(255,255,255,.12); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* Link with arrow ---------------------------------------------------------- */
.arw {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g-500); font-weight: 600; font-size: 14px;
}
.arw:hover { color: var(--g-600); }
.arw svg { transition: transform .15s; }
.arw:hover svg { transform: translateX(3px); }

/* Focus visibility ----------------------------------------------------------
   Buttons and links had no focus style at all, so keyboard users could not see
   where they were (WCAG 2.4.7). :focus-visible keeps the ring off mouse clicks. */
:focus-visible {
  outline: 2px solid var(--g-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.btn:focus-visible, .nav a:focus-visible, .arw:focus-visible,
.burger:focus-visible, .faq-q:focus-visible, .chip:focus-visible,
.ftab:focus-visible, .seg-link:focus-visible, .logo:focus-visible {
  outline: 2px solid var(--g-500);
  outline-offset: 3px;
}
.btn-primary:focus-visible { outline-color: var(--ink); }

/* Skip link — first tab stop, visible only when focused. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--g-500); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  /* Deliberately not transitioned: a skip link that animates into view can
     stay hidden wherever animations are throttled or disabled. */
}
.skip-link:focus { top: 12px; }

/* Header ------------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 30px; height: var(--nav-h); }
.nav { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
}
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--g-500); font-weight: 600; }
.hdr-cta { display: flex; align-items: center; gap: 16px; }
.hdr-cta .login { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.hdr-cta .login:hover { color: var(--ink); }

/* Logo lockup — the real mark plus a wordmark, same construction as
   audit.mohibraiskhan.com (34px image, 10px gap, 16px/800 text, accent span). */
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.logo b {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.01em;
  white-space: nowrap;
}
.logo b span { color: var(--g-500); }
.logo.on-dark b { color: #fff; }
.logo.on-dark b span { color: rgba(255,255,255,.8); }

/* Section heading ---------------------------------------------------------- */
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 12px; }

/* Cards -------------------------------------------------------------------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
}
.card-hover { transition: box-shadow .18s, border-color .18s, transform .18s; }
.card-hover:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }

.itile {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--g-100); color: var(--g-500);
  display: grid; place-items: center; margin-bottom: 16px;
}
.itile svg { width: 20px; height: 20px; }

/* Grids -------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }

/* Checklist ---------------------------------------------------------------- */
.checks { display: grid; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); }
.checks svg { flex: none; width: 16px; height: 16px; color: var(--g-500); margin-top: 2px; }
.checks-row { display: flex; flex-wrap: wrap; gap: 22px; }
.checks-row li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-3); }
.checks-row svg { width: 15px; height: 15px; color: var(--g-500); flex: none; }

/* Stat strip --------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  overflow: hidden;
}
.stats.s4 { grid-template-columns: repeat(4, 1fr); }
/* In a hero column there is not room for four across without clipping the
   labels, so the same four stats sit 2x2. */
.stats.g2x2 { grid-template-columns: 1fr 1fr; }
.stats.g2x2 .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stats.g2x2 .stat:nth-child(odd) { border-left: 0; }
.stat { display: flex; align-items: center; gap: 12px; padding: 20px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-ico { width: 26px; height: 26px; color: var(--g-500); flex: none; }
.stat-ico svg { width: 100%; height: 100%; }

/* Wrapper for an icon that should fill a sized box rather than sit at 1em. */
.ico { display: inline-block; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; }
.stat-n { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.stat-l { font-size: 12px; color: var(--ink-3); }
.stars { color: #F5B301; letter-spacing: 1px; font-size: 12px; }

/* CTA band ----------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(102deg, var(--g-700), var(--g-500) 62%, var(--g-400));
  border-radius: var(--r-lg); color: #fff;
  padding: 30px 34px; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-band h3 { color: #fff; font-size: 22px; margin-bottom: 5px; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 14px; }
.cta-band .rocket {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.15); display: grid; place-items: center;
}
.cta-band .rocket svg { width: 26px; height: 26px; color: #fff; }
.cta-band .grow { flex: 1 1 240px; }
.cta-band .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .checks-row li { color: rgba(255,255,255,.9); }
.cta-band .checks-row svg { color: rgba(255,255,255,.85); }

/* Footer ------------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--line); padding: 52px 0 26px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.ftr h4 { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 14px; font-family: "Inter", sans-serif; }
.ftr ul { display: grid; gap: 9px; }
.ftr ul a { font-size: 13.5px; color: var(--ink-3); }
.ftr ul a:hover { color: var(--g-500); }
.ftr-blurb { font-size: 13.5px; color: var(--ink-3); max-width: 250px; margin: 14px 0 18px; }
.socials { display: flex; gap: 9px; }
.socials a {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--ink-3);
}
.socials a:hover { color: var(--g-500); border-color: var(--g-500); }
.socials svg { width: 14px; height: 14px; }
.ftr-btm {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line);
  text-align: center; font-size: 12.5px; color: var(--ink-4);
}

/* ==========================================================================
   Dashboard mockup — built in markup, not a screenshot, so it stays crisp
   and can be reused at any size. Scaled with the --mk multiplier.
   ========================================================================== */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  font-size: 9px; line-height: 1.45; color: var(--ink-2);
  /* The mockup has a floor below which its tables stop being legible. Let it
     scroll inside its own box on narrow screens; the page never scrolls
     sideways because of it. */
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;              /* decorative: no scrollbar chrome */
}
.mock::-webkit-scrollbar { display: none; }
/* 560px keeps the tables legible and still fits the hero column at desktop,
   so the scroll only ever engages on narrow screens. */
.mock-body { display: grid; grid-template-columns: 108px 1fr; min-height: 340px; min-width: 560px; }
/* Only the panels holding a data table need a legibility floor; the small
   single-metric widgets shrink to whatever card they sit in. */
.mock > .mock-panel { min-width: 0; }
.mock > .mock-panel:has(table) { min-width: 430px; }
.mock-rail { background: #fff; border-right: 1px solid var(--line); padding: 12px 8px; }
.mock-rail .logo { gap: 5px; }
.mock-rail .logo img { height: 15px; }
.mock-rail .logo b { font-size: 8.5px; }
.mock-nav { margin-top: 14px; display: grid; gap: 2px; }
.mock-nav i {
  display: flex; align-items: center; gap: 6px; font-style: normal;
  padding: 5px 7px; border-radius: 6px; color: var(--ink-3); font-size: 8.5px;
}
.mock-nav i.on { background: var(--g-100); color: var(--g-600); font-weight: 600; }
.mock-nav i b { width: 4px; height: 4px; border-radius: 1px; background: currentColor; opacity: .55; }
.mock-main { padding: 12px 13px; background: var(--bg-mock); }
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.mock-top h5 { font: 700 12px/1.2 "Plus Jakarta Sans", sans-serif; color: var(--ink); margin: 0 0 2px; }
.mock-top p { font-size: 7.5px; color: var(--ink-4); }
.mock-chip {
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px;
  font-size: 7.5px; color: var(--ink-3); background: #fff;
}
.mock-chip.green { background: var(--g-500); color: #fff; border-color: var(--g-500); }

.mock-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 10px; }
.mock-kpi { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; }
.mock-kpi .l { font-size: 6.8px; color: var(--ink-4); margin-bottom: 2px; }
.mock-kpi .v { font: 800 12px/1.1 "Plus Jakarta Sans", sans-serif; color: var(--ink); }
.mock-kpi .d { font-size: 6.5px; color: var(--g-500); font-weight: 600; }

.mock-cols { display: grid; grid-template-columns: 1.75fr 1fr; gap: 9px; }
.mock-panel { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; }
.mock-panel h6 { font: 700 8.5px/1.2 "Inter", sans-serif; color: var(--ink); margin: 0 0 7px; }

.mock-legend { display: flex; gap: 9px; margin-bottom: 5px; }
.mock-legend span { display: flex; align-items: center; gap: 4px; font-size: 6.5px; color: var(--ink-4); }
.mock-legend i { width: 7px; height: 2px; border-radius: 2px; display: block; }

.mock-donut { display: flex; align-items: center; gap: 11px; }
.mock-donut .ring {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--g-500) 0 50%, var(--amber) 50% 75%, var(--blue) 75% 92%, #E4E7EC 92% 100%);
  display: grid; place-items: center; position: relative;
}
.mock-donut .ring::after {
  content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%;
}
.mock-donut .ring b {
  position: relative; z-index: 1; font: 800 12px/1 "Plus Jakarta Sans", sans-serif; color: var(--ink);
}
.mock-donut .ring b em { display: block; font: 400 5.5px/1.4 "Inter", sans-serif; color: var(--ink-4); font-style: normal; }
.mock-donut ul { display: grid; gap: 4px; flex: 1; }
.mock-donut li { display: flex; align-items: center; gap: 5px; font-size: 6.8px; color: var(--ink-3); }
.mock-donut li i { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.mock-donut li s { margin-left: auto; text-decoration: none; color: var(--ink-4); }

.mock-tbl { width: 100%; border-collapse: collapse; font-size: 7px; }
.mock-tbl th {
  text-align: left; font-size: 6px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600; padding: 0 0 5px;
}
.mock-tbl td { padding: 5px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.mock-tbl .dom { display: flex; align-items: center; gap: 5px; }
.mock-tbl .av {
  width: 13px; height: 13px; border-radius: 4px; background: var(--g-100);
  color: var(--g-600); font-size: 5.5px; font-weight: 700;
  display: grid; place-items: center; flex: none;
}
.pill {
  display: inline-block; padding: 1.5px 6px; border-radius: 999px;
  font-size: 6px; font-weight: 600;
}
.pill.ok   { background: var(--g-100); color: var(--g-600); }
.pill.warn { background: #FEF3C7; color: #B45309; }
.pill.info { background: #DBEAFE; color: #1D4ED8; }
.pill.mut  { background: #F2F4F7; color: var(--ink-3); }

.bar { height: 3px; border-radius: 2px; background: #EDF0F3; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--g-500); border-radius: 2px; }

/* Inline SVG line chart sizing */
.spark { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Page-specific pieces
   ========================================================================== */

/* Hero --------------------------------------------------------------------- */
.hero { padding: 58px 0 46px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 46px; align-items: center; }
/* Sized so "Build Better Backlinks." holds one line, as in the mockup. */
.hero h1 { margin: 18px 0 18px; font-size: clamp(30px, 3.4vw, 41px); }
.hero .lead { max-width: 460px; margin-bottom: 26px; }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

/* Feature tabs (features page) --------------------------------------------- */
.ftabs {
  display: flex; gap: 4px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r); padding: 7px; overflow-x: auto;
}
.ftab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 15px; border-radius: var(--r-sm); border: 0; background: transparent;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
}
.ftab svg { width: 16px; height: 16px; }
.ftab.on { background: var(--g-100); color: var(--g-600); font-weight: 600; }

/* Alternating feature rows -------------------------------------------------- */
.frow {
  display: grid; grid-template-columns: 1fr 1.55fr; gap: 34px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; margin-bottom: 20px;
}
.frow.flip { grid-template-columns: 1.55fr 1fr; }
.frow.flip .frow-copy { order: 2; }
.frow h3, .frow .frow-h { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; }
.frow .checks { margin: 16px 0 18px; }

/* Steps --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.step { text-align: center; padding: 0 8px; position: relative; }
.step-ico {
  width: 62px; height: 62px; border-radius: var(--r); background: var(--g-050);
  border: 1px solid var(--g-100); margin: 0 auto 16px;
  display: grid; place-items: center; position: relative;
}
.step-ico svg { width: 26px; height: 26px; color: var(--g-500); }
.step-n {
  position: absolute; top: -9px; left: -9px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--g-500); color: #fff;
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}
.step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 7px; font-family: "Inter", sans-serif; }
.step p { font-size: 13px; color: var(--ink-3); }
.step::after {
  content: ""; position: absolute; top: 31px; right: -6px; width: 12px; height: 0;
  border-top: 1.5px dashed var(--line-2);
}
.step:last-child::after { display: none; }

/* Testimonials -------------------------------------------------------------- */
.quote { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.quote p { font-size: 14px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.who { display: flex; align-items: center; gap: 10px; }
.who .av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--g-100); color: var(--g-600);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.who b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.who span { font-size: 12.5px; color: var(--ink-3); }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.dots i.on { background: var(--g-500); width: 20px; border-radius: 999px; }

/* Pricing ------------------------------------------------------------------- */
.bill-toggle {
  display: inline-flex; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 4px; gap: 2px;
}
.bill-toggle button {
  border: 0; background: transparent; padding: 8px 26px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.bill-toggle button.on { background: var(--g-100); color: var(--g-600); font-weight: 600; }

/* Trial banner — the "no credit card" card above the plans, mirroring the
   audit tool's pricing page. */
.trial-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--g-050); border: 1px solid var(--g-100);
  border-radius: var(--r-lg); padding: 20px 24px;
}
.trial-banner .tb-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: #fff; border: 1px solid var(--g-100);
  display: grid; place-items: center; color: var(--g-500);
}
.trial-banner .tb-ico svg { width: 22px; height: 22px; }
.trial-banner .tb-copy { flex: 1 1 260px; }
.trial-banner .tb-copy b { display: block; font-size: 16px; color: var(--ink); font-weight: 700; }
.trial-banner .tb-copy p { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.trial-banner .tb-checks { gap: 18px; }
.trial-banner .tb-cta { flex: none; }

/* "Save 20%" chip inside the yearly toggle button. */
.save-pill {
  display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px;
  background: var(--g-100); color: var(--g-600); font-size: 11.5px; font-weight: 700;
}
.bill-toggle button.on .save-pill { background: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; position: relative;
}
.plan.pop { border-color: var(--g-500); box-shadow: 0 12px 30px rgba(14,138,63,.11); }
.plan-tag {
  position: absolute; inset: -1px -1px auto -1px; height: 30px;
  background: var(--g-500); color: #fff; border-radius: var(--r) var(--r) 0 0;
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.plan.pop { padding-top: 46px; }
.plan-head { display: flex; gap: 12px; margin-bottom: 20px; }
.plan-head .itile { margin: 0; }
.plan-head h3 { font-size: 17px; margin-bottom: 4px; }
.plan-head p { font-size: 13px; color: var(--ink-3); }
.price { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 38px; color: var(--ink); letter-spacing: -.03em; }
.price span { font-size: 14.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .bill { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 18px; }
.plan .checks { margin-top: 20px; }
.plan-note {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-4); display: flex; align-items: center; gap: 6px;
}

.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cmp th, .cmp td { padding: 13px 18px; font-size: 13.5px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.cmp tbody th svg { width: 16px; height: 16px; color: var(--ink-4); flex: none; }
.cmp .hl { background: var(--g-050); }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }

/* Logo bar ------------------------------------------------------------------ */
.logobar { display: flex; align-items: center; justify-content: center; gap: 46px; flex-wrap: wrap; }
.logobar span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 17px;
  color: var(--ink-3); opacity: .75;
}
.logobar svg { width: 20px; height: 20px; }

/* FAQ ----------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; border: 0; background: transparent; text-align: left;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.faq-q svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--ink-2); }
.faq-item.open .faq-a { display: block; }

/* Integrations -------------------------------------------------------------- */
.int-row { display: grid; grid-template-columns: 220px repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.int-cat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.int-cat h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 7px; font-family: "Inter", sans-serif; color: var(--ink); }
.int-cat p { font-size: 12.5px; color: var(--ink-3); }
.int {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column;
}
.int-logo {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  margin-bottom: 12px; font-weight: 800; font-size: 15px; color: #fff;
}
.int h5 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 5px; }
.int p { font-size: 12.5px; color: var(--ink-3); flex: 1; margin-bottom: 12px; }

/* Integration availability badges -------------------------------------------- */
.int-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.int-badge svg { width: 12px; height: 12px; }
.int-badge.live { background: var(--g-100); color: var(--g-600); }
.int-badge.soon { background: #F2F4F7; color: var(--ink-3); }
.int.soon { opacity: .82; }
.int.soon .int-logo { filter: grayscale(1); }

/* Resources ----------------------------------------------------------------- */
.searchbox { position: relative; max-width: 420px; }
.searchbox input {
  width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0 44px 0 16px; font: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff;
}
.searchbox input::placeholder { color: var(--ink-4); }
.searchbox input:focus { outline: 2px solid var(--g-100); border-color: var(--g-500); }
.searchbox svg { position: absolute; right: 15px; top: 15px; width: 17px; height: 17px; color: var(--ink-4); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm);
  padding: 10px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.chip svg { width: 16px; height: 16px; color: var(--ink-3); }
.chip.on { background: var(--g-500); border-color: var(--g-500); color: #fff; }
.chip.on svg { color: #fff; }

.tagpill {
  display: inline-block; padding: 4px 10px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tp-green  { background: var(--g-100); color: var(--g-600); }
.tp-violet { background: #F3EEFE; color: #6D28D9; }
.tp-amber  { background: #FEF3C7; color: #B45309; }
.tp-blue   { background: #DBEAFE; color: #1D4ED8; }
.tp-rose   { background: #FFE4E6; color: #BE123C; }

.post { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-thumb { height: 108px; display: grid; place-items: center; background: var(--g-050); }
.post-thumb svg { width: 46px; height: 46px; color: var(--g-400); opacity: .85; }
.post-b { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.post-b h4 { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 9px 0 7px; font-family: "Inter", sans-serif; }
.post-b p { font-size: 12.8px; color: var(--ink-3); flex: 1; }
.post-meta { font-size: 12px; color: var(--ink-4); margin-top: 12px; }

.newsletter {
  background: var(--g-050); border: 1px solid var(--g-100); border-radius: var(--r-lg);
  padding: 26px 30px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.newsletter .nl-ico {
  width: 52px; height: 52px; border-radius: 50%; background: var(--g-100);
  display: grid; place-items: center; flex: none;
}
.newsletter .nl-ico svg { width: 24px; height: 24px; color: var(--g-500); }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input {
  height: 44px; width: 230px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0 14px; font: inherit; font-size: 14px; background: #fff;
}
.nl-form input:focus { outline: 2px solid var(--g-100); border-color: var(--g-500); }

/* Article ------------------------------------------------------------------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-4); }
.crumbs a:hover { color: var(--g-500); }
.crumbs svg { width: 13px; height: 13px; }

.art-grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
/* Grid and flex items default to a min-width of auto, so an item with wide
   content (the mockups, whose tables have a legibility floor) drags its track
   wider than the container and scrolls the whole page sideways. Every wrapper
   that can hold a mockup opts out of that. */
.art-grid > *, .hero-grid > *, .sticky > *, .frow > *, .auth > *, .auth-r > *,
.grid > *, .plans > *, .steps > *, .int-row > *,
.card, .mock, [data-mockup], #int-mock { min-width: 0; }
/* An implicit auto track sizes to min-content too — pin it to the container. */
.sticky { grid-template-columns: minmax(0, 1fr); }
.mock-thumb { width: 100%; }

/* The dashboard mockup shown as a small thumbnail inside a narrow card. */
.mock-thumb {
  height: 158px; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--r); background: #fff;
}
.mock-thumb .mock {
  width: 560px; border: 0; box-shadow: none; border-radius: 0; overflow: hidden;
  transform: scale(.46); transform-origin: top left;
}
.prose h2 { font-size: 21px; margin: 30px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; font-size: 15px; line-height: 1.75; }
.prose a { color: var(--g-500); font-weight: 500; }
.pull {
  border-left: 3px solid var(--g-500); background: var(--g-050);
  border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; margin: 22px 0;
  display: flex; gap: 14px;
}
.pull svg { width: 22px; height: 22px; color: var(--g-400); flex: none; }
.pull b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.pull span { font-size: 13.5px; color: var(--ink-3); }
.tipbox {
  border: 1px solid var(--line); border-radius: var(--r); padding: 15px 18px;
  display: flex; gap: 12px; margin: 18px 0; background: #fff; font-size: 14px;
}
.tipbox svg { width: 19px; height: 19px; color: var(--g-500); flex: none; margin-top: 1px; }

.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; }
.toc h4 { font-size: 14.5px; margin-bottom: 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; counter-reset: t; }
.toc a { font-size: 13.5px; color: var(--ink-3); display: block; padding-left: 13px; border-left: 2px solid var(--line); }
.toc a.on, .toc a:hover { color: var(--g-500); border-color: var(--g-500); font-weight: 500; }
.sticky { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; }

.share { display: flex; gap: 8px; }
.share a {
  width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--g-050); color: var(--g-600); border: 1px solid var(--g-100);
}
.share a:hover { background: var(--g-100); }
.share svg { width: 15px; height: 15px; }

.rel { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rel:first-of-type { border-top: 0; }
.rel-th { width: 62px; height: 46px; border-radius: 7px; background: var(--g-050); display: grid; place-items: center; flex: none; }
.rel-th svg { width: 20px; height: 20px; color: var(--g-400); }
.rel h5 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 4px 0 3px; line-height: 1.4; }

/* Login --------------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1fr 1.05fr; min-height: calc(100vh - var(--nav-h)); }
.auth-l { display: grid; place-items: center; padding: 46px 24px; }
.auth-r { background: var(--bg-soft); border-left: 1px solid var(--line); padding: 46px 40px; }
.auth-card {
  width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: var(--r-sm); padding: 4px; gap: 3px; margin: 22px 0 18px; }
.seg button {
  border: 0; background: transparent; border-radius: 6px; padding: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.seg button svg { width: 15px; height: 15px; }
.seg button.on { background: #fff; color: var(--g-600); font-weight: 600; box-shadow: var(--shadow-sm); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-4); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.inp { position: relative; }
.inp input {
  width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0 40px 0 40px; font: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.inp input:focus { outline: 2px solid var(--g-100); border-color: var(--g-500); }
/* The leading icon is injected inside a span, so match both shapes. */
.inp > svg, .inp > span > svg {
  position: absolute; left: 14px; top: 14px;
  width: 16px; height: 16px; color: var(--ink-4);
}
.inp .eye { position: absolute; right: 12px; top: 11px; border: 0; background: none; padding: 4px; color: var(--ink-4); }
.inp .eye svg { width: 16px; height: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cbx { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.cbx input { width: 17px; height: 17px; accent-color: var(--g-500); }
.trustbox {
  border: 1px solid var(--line); border-radius: var(--r); padding: 15px;
  display: flex; gap: 12px; margin-top: 22px; background: var(--bg-soft);
}
.trustbox svg { width: 19px; height: 19px; color: var(--g-500); flex: none; margin-top: 2px; }
.trustbox b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.trustbox p { font-size: 12.5px; color: var(--ink-3); }
.auth-feats { display: grid; gap: 4px; margin-top: 26px; }
.auth-feat { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.auth-feat:last-child { border-bottom: 0; }
.auth-feat .itile { margin: 0; width: 44px; height: 44px; }
.auth-feat h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; font-family: "Inter", sans-serif; }
.auth-feat p { font-size: 13.5px; color: var(--ink-3); }

/* Inline field validation ---------------------------------------------------- */
.field-err {
  margin-top: 6px; font-size: 12.5px; color: #C0362C; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 5px;
}
/* `display:flex` out-specifies the UA rule for [hidden], so an empty error slot
   would still paint its warning glyph. */
.field-err[hidden] { display: none; }
/* Literal glyph rather than a CSS hex escape — the escape was silently
   mangled once already, and this cannot be. */
.field-err::before { content: "⚠"; font-size: 11px; line-height: 1.3; }
.field-err .lnk-fix {
  border: 0; background: none; padding: 0; font: inherit;
  color: var(--g-600); font-weight: 600; text-decoration: underline; cursor: pointer;
}
.inp input.invalid, input.invalid {
  border-color: #E0857D;
}
.inp input.invalid:focus, input.invalid:focus {
  outline-color: #FBE3E1; border-color: #C0362C;
}

/* Connection status row (login card: Gmail connected / not) ------------------ */
.conn-row {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft);
}
.conn-row.ok   { background: var(--g-050); border-color: var(--g-100); }
.conn-row.warn { background: #FEF8EC; border-color: #F5E3B3; }
.conn-row > span { flex: none; color: var(--ink-3); }
.conn-row.ok > span   { color: var(--g-500); }
.conn-row.warn > span { color: #B45309; }
.conn-row > span svg { width: 18px; height: 18px; }
.conn-row b { font-size: 13.5px; color: var(--ink); }
.conn-row p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* Plan gating --------------------------------------------------------------- */
.plan-chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--g-100); color: var(--g-600); font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(14,138,63,.14);
}
.plan-chip.trial { background: #FEF3C7; color: #92610B; border-color: #F5E3B3; }

.trial-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--g-050); border: 1px solid var(--g-100);
  border-radius: var(--r); padding: 15px 18px; margin-bottom: 22px;
}
.trial-strip.warn { background: #FEF8EC; border-color: #F5E3B3; }
.trial-strip .ts-ico { color: var(--g-500); flex: none; }
.trial-strip.warn .ts-ico { color: #B45309; }
.trial-strip .ts-ico svg { width: 20px; height: 20px; }
.trial-strip > div { flex: 1 1 240px; }
.trial-strip b { font-size: 14.5px; color: var(--ink); }
.trial-strip p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* Shown in place of a feature the current plan does not include. */
.gate-panel {
  text-align: center; padding: 26px 20px; background: var(--bg-soft);
  border-radius: var(--r); height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gate-panel .gate-ico {
  width: 40px; height: 40px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-4); margin-bottom: 13px;
}
.gate-panel .gate-ico svg { width: 19px; height: 19px; }
.gate-panel h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; font-family: "Inter", sans-serif; }
.gate-panel p { font-size: 13px; color: var(--ink-3); margin-bottom: 15px; max-width: 240px; }

/* Segmented control rendered as links (signup/login switch). */
.seg-link {
  border: 0; background: transparent; border-radius: 6px; padding: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.seg-link svg { width: 15px; height: 15px; }
.seg-link.on { background: #fff; color: var(--g-600); font-weight: 600; box-shadow: var(--shadow-sm); }

/* Checkout ------------------------------------------------------------------ */
.pay-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 26px; align-items: start; }
.pay-grid > * { min-width: 0; }

.stripe-field {
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 14px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.stripe-field.StripeElement--focus { border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100); }
.stripe-field.StripeElement--invalid { border-color: var(--red); }

.notice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  background: #FFF8E6; border: 1px solid #F5E3B3; border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 13px; color: #7A5B10;
}
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.notice code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

.pay-err {
  margin: 4px 0 14px; padding: 11px 13px; border-radius: var(--r-sm);
  background: #FDECEA; border: 1px solid #F5C6C2; color: #A32117; font-size: 13.5px;
}

.sum-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; font-size: 14px; color: var(--ink-2);
}
.sum-row b { color: var(--ink); font-weight: 600; }
.sum-row b em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.sum-row.grn b { color: var(--g-500); }
.sum-row.total {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 13px;
  font-size: 15px;
}
.sum-row.total b { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 19px; }

.trial-box {
  display: flex; gap: 11px; margin-top: 16px; padding: 14px;
  background: var(--g-050); border: 1px solid var(--g-100); border-radius: var(--r);
}
.trial-box .tb2-ico { color: var(--g-500); flex: none; }
.trial-box .tb2-ico svg { width: 19px; height: 19px; }
.trial-box b { font-size: 13.5px; color: var(--ink); }
.trial-box p { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

.trust-row { display: flex; gap: 11px; padding: 9px 0; }
.trust-row + .trust-row { border-top: 1px solid var(--line); }
.trust-row .tr-ico { color: var(--g-500); flex: none; }
.trust-row .tr-ico svg { width: 18px; height: 18px; }
.trust-row b { display: block; font-size: 13.5px; color: var(--ink); }
.trust-row small { font-size: 12px; color: var(--ink-3); }

@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }

/* Decorative dotted path ---------------------------------------------------- */
.dotpath { position: absolute; pointer-events: none; opacity: .5; }

/* ==========================================================================
   Mobile navigation
   The nav rail collapses below 1080px, so there has to be something to
   collapse INTO. Burger + slide-down panel, keyboard and screen-reader
   reachable, closed on Escape / outside click / link activation.
   ========================================================================== */
.burger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); padding: 0;
}
.burger:hover { border-color: var(--ink-4); }
.burger span {
  position: relative; display: block; width: 17px; height: 1.7px;
  border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background-color .12s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.7px;
  border-radius: 2px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mnav {
  display: none; position: fixed; left: 0; right: 0; top: var(--nav-h);
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; z-index: 59;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(16,24,40,.10);
  padding: 10px 0 max(18px, env(safe-area-inset-bottom));
}
.mnav.open { display: block; }
/* Scoped to the direct link children so it cannot repaint the .btn CTAs
   below — .mnav a would otherwise out-specify .btn-primary and grey out
   the button label. */
.mnav > .wrap > a {
  display: flex; align-items: center; min-height: 52px;
  padding: 0 4px; font-size: 16px; font-weight: 500; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.mnav > .wrap > a.on { color: var(--g-500); font-weight: 600; }
.mnav .mnav-cta { display: grid; gap: 10px; padding-top: 18px; }
.mnav .mnav-cta .btn { min-height: 48px; font-size: 15px; }
.mnav-backdrop {
  display: none; position: fixed; inset: var(--nav-h) 0 0; z-index: 58;
  background: rgba(15,23,40,.35);
}
.mnav-backdrop.open { display: block; }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   Cross-device behaviour
   ========================================================================== */

/* Anchors must clear the sticky header, or a TOC jump lands under it. */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Lift effects are for pointers. On touch they latch on after a tap and
   look broken, so they are gated rather than global. */
@media (hover: none) {
  .card-hover:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .arw:hover svg { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Wide content scrolls inside its own box; the page never scrolls sideways. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .cmp { min-width: 620px; }

/* The pricing FAQ was laid out with an inline grid-template-columns, which no
   media query could reach — it collapsed the answer column to 2px on a phone. */
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }

/* ==========================================================================
   Breakpoints
   1080  tablet landscape / small laptop — nav collapses
    900  tablet portrait
    680  large phone
    480  phone
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid, .art-grid, .auth { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .auth-r { border-left: 0; border-top: 1px solid var(--line); }
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .int-row { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr 1fr; }
  .frow, .frow.flip { grid-template-columns: 1fr; }
  .frow.flip .frow-copy { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .step::after { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats.s4, .stats.g2x2 { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }

  /* Swap the desktop rail for the burger. Login moves into the panel, so the
     header keeps just the logo, the primary CTA and the menu button. */
  .nav { display: none; }
  .burger { display: inline-flex; margin-left: 0; }
  .hdr-cta { gap: 10px; margin-left: auto; }
  .hdr-cta .login { display: none; }
  .hdr-in { gap: 12px; }

  /* The sidebar stops being a sidebar, so sticky has nothing to stick to. */
  .sticky { position: static; }
  .art-grid { gap: 28px; }
}

@media (max-width: 900px) {
  .sec { padding: 58px 0; }
  .sec-head { margin-bottom: 34px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  /* Lead with the recommended plan when they are stacked. */
  .plan.pop { order: -1; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .int-row { grid-template-columns: 1fr; }
  .int-cat { display: flex; align-items: flex-start; gap: 14px; }
  .int-cat .itile { margin-bottom: 0; }
  .newsletter { gap: 18px; }
  .nl-form input { width: 100%; flex: 1 1 200px; }
  .cta-band { padding: 26px; gap: 20px; }
}

@media (max-width: 900px) {
  .trial-banner { padding: 18px; }
  .trial-banner .tb-cta { width: 100%; }
}
@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  .trial-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .trial-banner .tb-checks { flex-direction: column; gap: 8px; }
  .wrap { padding-inline: max(18px, env(safe-area-inset-left)); }
  .sec { padding: 46px 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .stats, .stats.s4, .stats.g2x2 { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 14px; }
  .stat + .stat { border-left: 0; }
  .stats > .stat { border-top: 1px solid var(--line); }
  .stats > .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats > .stat:nth-child(-n+2) { border-top: 0; }
  .stats.g2x2 .stat:nth-child(-n+2) { border-bottom: 0; }

  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; row-gap: 24px; }
  .step { display: grid; grid-template-columns: 62px 1fr; gap: 16px; align-items: start; text-align: left; }
  .step-ico { margin: 0; }

  .hero { padding: 34px 0 30px; }
  .hero-acts { gap: 10px; }

  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-band .acts { width: 100%; }
  .cta-band .acts .btn { flex: 1 1 auto; }

  .frow { padding: 20px; }
  .frow h3 { font-size: 20px; }
  .faq-q { font-size: 14px; padding: 15px 16px; }
  .card { padding: 18px; }

  /* iOS Safari zooms the page when a focused input is under 16px. The
     component selectors are listed explicitly because .inp input etc.
     out-specify a bare element selector. */
  input, select, textarea,
  .inp input, .searchbox input, .nl-form input { font-size: 16px; }
  .searchbox input, .nl-form input, .inp input { height: 48px; }


  /* Horizontal scroller for the filter rows instead of a wrapped pile. */
  .chips, .ftabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .chips { margin-inline: -18px; padding-inline: 18px; }
  .chips::-webkit-scrollbar, .ftabs::-webkit-scrollbar { display: none; }
  .chip, .ftab { flex: 0 0 auto; }
}

@media (max-width: 480px) {
  .g4, .g5 { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .h1 { font-size: clamp(28px, 8vw, 34px); }
  .h2 { font-size: clamp(23px, 6.4vw, 28px); }
  .hero h1 { font-size: clamp(28px, 8vw, 34px); }
  .lead { font-size: 15.5px; }
  .hero-acts { flex-direction: column; align-items: stretch; }
  .hero-acts .btn { width: 100%; }
  .cta-band .acts { flex-direction: column; align-items: stretch; }
  /* Mark only on small phones — room for the CTA and the menu button. */
  .logo img { height: 30px; }
  .logo b { display: none; }
  .auth-card { padding: 22px 18px; }
  .newsletter { padding: 20px; }
  .nl-form { width: 100%; }
  .nl-form .btn { width: 100%; }
}

/* Short landscape phones: a sticky header eats most of the viewport. */
@media (max-height: 460px) and (orientation: landscape) {
  .hdr { position: static; }
  .mnav, .mnav-backdrop { top: 0; }
}

/* ==========================================================================
   Touch targets
   Gated on "the nav has collapsed OR the pointer is coarse" rather than on a
   phone width — a 768px tablet is a finger device, and so is a touch laptop.
   ========================================================================== */
@media (max-width: 1080px), (pointer: coarse) {
  /* A blurred sticky header repaints the whole strip on every scroll frame.
     It is cheap on a desktop GPU and expensive on a phone — and in testing it
     dropped the composited layer entirely. Opaque below the breakpoint. */
  .hdr { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }

  .btn-sm { height: 42px; padding: 0 16px; }
  .bill-toggle button { min-height: 44px; padding: 0 24px; }
  .seg button { min-height: 44px; }
  .inp .eye { min-width: 40px; min-height: 40px; }
  .chip, .ftab { min-height: 44px; }
  .socials a, .share a { width: 40px; height: 40px; }
  .mnav > .wrap > a { min-height: 48px; }
  .faq-q { min-height: 52px; }
  .arw { min-height: 40px; }
  .dots i { min-height: 10px; }
  .searchbox input, .nl-form input, .inp input { height: 48px; }
  input, select, textarea,
  .inp input, .searchbox input, .nl-form input { font-size: 16px; }
}
