/* ==========================================================================
   Reels Downloader — stylesheet

   Spacing method: GAP ONLY.
   No element carries a margin. Every container holding more than one child is
   a flex/grid container and spaces its children with `gap`. Padding is used
   only for space *inside* a box (section bands, cards, buttons, container
   inset) — never to push two elements apart.

   Text colour: #000 and #fff only. No greys, no opacity on text.

   Spacing scale : 4 8 10 12 14 18 20 22 24 26 32 36 44 48 52 56 64 72 104
   Type scale    : 13 14 15 17 19 22 26 32 40 52
   ========================================================================== */

:root {
  /* Instagram palette. --primary is the solid fallback used for text, icons
     and borders (a gradient cannot colour text directly); --brand-grad is the
     real thing, used wherever a background is being painted. */
  --primary:       #D62976;
  --primary-hover: #B81F62;
  --primary-soft:  #FDE9F2;
  --brand-grad: radial-gradient(circle at 30% 107%,
                  #FEDA75 0%, #FA7E1E 5%, #D62976 45%, #962FBF 60%, #4F5BD5 90%);

  --bg:            #FFFFFF;
  --bg-alt:        #FDF7FA;
  --bg-lavender:   #FCE7F0;

  --heading:       #000000;
  --body:          #000000;
  --muted:         #000000;

  --border:        #F3DCE7;
  --border-strong: #E7B9CE;

  --r:      16px;
  --r-lg:   22px;
  --r-pill: 999px;

  --shadow:    0 1px 2px rgba(150, 30, 90, .06);
  --shadow-md: 0 6px 20px rgba(150, 30, 90, .09);
  --shadow-lg: 0 18px 44px rgba(150, 30, 90, .12);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 160ms;

  /* Single source of truth for body copy. Every paragraph, list item,
     table cell and content link uses this - nothing sets its own size. */
  --fs-body: 1.0625rem;   /* 17px */

  --container: 1200px;
  --gutter: 24px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Spacing is the parent's job, via gap — nothing carries a margin */
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 0; list-style: none; }

img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.15rem, 1.5rem + 2.8vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.15rem + .85vw, 1.85rem); line-height: 1.25; }
h3 { font-size: 1.1875rem; line-height: 1.35; }
strong { color: var(--heading); font-weight: 700; }

kbd {
  font: inherit; font-size: .84em; font-weight: 600;
  background: var(--primary-soft); color: #000;
  border-radius: 6px; padding: .1em .45em; white-space: nowrap;
}

/* ---------- Links: smooth underline. Buttons, brand and nav never underline ---------- */
a { color: #000; text-decoration: none; }
a:not(.btn):not(.brand) {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 260ms var(--ease);
}
a:not(.btn):not(.brand):hover { background-size: 100% 1px; }
/* Buttons and the brand are already excluded by the :not() above — do NOT add
   `a.btn` here: at 0,1,1 it outranks `.btn-primary` (0,1,0) and would wipe out
   the button's gradient. Only nav links need an explicit opt-out, and this
   matches the underline rule's specificity (0,2,1) while coming later. */
.site-header .nav a { background-image: none; white-space: nowrap; }
.nav-contact { display: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); background-image: var(--brand-grad);
  color: #fff; padding: 14px 22px; font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }

/* Each section stacks its blocks with gap */
.section > .container { display: flex; flex-direction: column; gap: 52px; }
/* A closing call to action is one block - head and buttons belong together */
.section--cta { padding: 72px 0; }
.section--cta > .container { gap: 28px; align-items: center; }

.section-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.section-head.center { align-items: center; text-align: center; }
.section-head p { font-size: var(--fs-body); }

.eyebrow {
  align-self: flex-start;
  background: #fff; color: #000;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 7px 16px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.section-head.center .eyebrow,
.hero-inner .eyebrow { align-self: center; }

/* ---------- Buttons ---------- */
.btn {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 54px; padding: 15px 30px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-body); line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.btn-primary { background: var(--primary); background-image: var(--brand-grad);
               background-size: 220% 220%; background-position: 0% 100%; color: #fff;
               transition: background-position 320ms var(--ease), filter var(--dur) ease; }
.btn-primary:hover { color: #fff; background-position: 60% 40%; filter: saturate(1.12); }
.btn-ghost { background: transparent; color: #000; border-color: #000; }
.btn-ghost:hover { background: var(--primary-soft); color: #000; }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px;
}
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-name { font-size: 1.0625rem; font-weight: 800; color: #000; letter-spacing: -.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 10px 15px; border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 600; color: #000;
  transition: background-color var(--dur) ease;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-soft); }
.header-cta { min-height: 46px; padding: 12px 22px; font-size: .9375rem; }

/* Dropdown menus: hover or click on wide screens, an accordion inside the drawer */
.nav-group { position: relative; display: flex; }
/* Keeps the menu open while the pointer crosses the gap under the button. */
.nav-group::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .9375rem; font-weight: 600; color: #000;
  background: none; border: 0; padding: 10px 14px; border-radius: var(--r-pill); cursor: pointer;
  transition: background-color var(--dur) ease;
}
.nav-top svg { width: 14px; height: 14px; transition: transform var(--dur) ease; }
.nav-top:hover, .nav-group:hover .nav-top, .nav-group.is-open .nav-top { background: var(--primary-soft); }
.nav-group:hover .nav-top svg, .nav-group.is-open .nav-top svg { transform: rotate(180deg); }
.nav-top:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 40; display: none;
  flex-direction: column; gap: 2px; width: 320px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: nav-drop 170ms var(--ease);
}
/* Little arrow pointing back at the button it belongs to. */
.nav-menu::before {
  content: ""; position: absolute; top: -7px; left: 24px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg); border-radius: 3px 0 0 0;
}
.nav-group:hover .nav-menu, .nav-group.is-open .nav-menu { display: flex; }
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.site-header .nav-item {
  display: flex; align-items: flex-start; gap: 11px; white-space: normal;
  padding: 10px 11px; border-radius: 13px;
  transition: background-color var(--dur) ease;
}
.site-header .nav-item:hover { background: var(--bg-alt); }
.site-header .nav-item[aria-current="page"] { background: var(--primary-soft); }
.nav-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: #000;
}
.nav-item[aria-current="page"] .nav-ico { background: #fff; }
.nav-ico svg { width: 17px; height: 17px; }
.nav-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-text strong { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.nav-text span { font-size: .8125rem; line-height: 1.35; }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: 0 0 46px;
  align-items: center; justify-content: center;
  background: var(--primary-soft); color: #000;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.site-header.nav-open .nav-toggle .ico-close { display: block; }
.site-header.nav-open .nav-toggle .ico-menu { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-lavender); padding: 72px 0 0; }
.hero > .container { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.hero-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  max-width: 780px; text-align: center;
}
.hero h1 span { color: #000; }
.hero-sub { font-size: var(--fs-body); max-width: 580px; }

.tool { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 660px; }
.tool-form {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 8px 8px 12px;
  box-shadow: var(--shadow-md);
}
.tool-form:focus-within { border-color: var(--primary); }
.tool-input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: var(--fs-body); color: #000; padding: 13px 12px;
}
.tool-input::placeholder { color: #000; }
.tool-note { font-size: var(--fs-body); }
.tool-status {
  display: none; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: var(--r);
  font-size: var(--fs-body); border: 1px solid transparent; color: #000;
}
.tool-status.is-shown { display: flex; }
.tool-status.is-error { background: #fff; border-color: #000; }
.tool-status.is-ok { background: #fff; border-color: var(--border-strong); }

/* ---------- Result preview ---------- */
.tool-result { display: none; width: 100%; }
.tool-result.is-shown { display: block; }

.preview {
  display: grid; grid-template-columns: 148px 1fr; gap: 22px; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-md);
}
.preview-media {
  aspect-ratio: 9 / 16; overflow: hidden; align-self: start;
  border-radius: var(--r); background: #0F0B22; border: 1px solid var(--border);
}
.preview-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.preview-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.preview-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.preview-eyebrow svg { width: 15px; height: 15px; color: var(--primary); flex: 0 0 15px; }
.preview-author { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-body); }
.preview-author svg { width: 18px; height: 18px; color: var(--primary); flex: 0 0 18px; }
.preview-caption {
  font-size: var(--fs-body); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.preview-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-meta li {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 5px 13px; font-size: .8125rem; font-weight: 600;
}
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-actions .btn { min-height: 48px; padding: 13px 22px; font-size: .9375rem; }
.preview-hint { font-size: var(--fs-body); }

/* Facebook / YouTube result: details on top, a grid of qualities below */
.preview.is-video { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.vhead { display: flex; align-items: flex-start; gap: 16px; }
.vthumb {
  flex: 0 0 120px; width: 120px; aspect-ratio: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #000;
  background: var(--bg-lavender); border: 1px solid var(--border); border-radius: var(--r);
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb svg { width: 28px; height: 28px; }
.vinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.preview.is-video .preview-eyebrow,
.preview.is-video .preview-author { justify-content: flex-start; }
.preview.is-video .preview-meta { justify-content: flex-start; }

.quality-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quality {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px 12px 12px 14px; min-width: 0;
}
/* An odd option out (usually Audio only) takes the whole last row instead of leaving a hole. */
.quality:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quality-info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left; }
.quality-info strong { font-size: 1rem; line-height: 1.2; white-space: nowrap; }
.quality-size { font-size: .8125rem; overflow-wrap: anywhere; }
.quality-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.qtag {
  font-size: .6875rem; font-weight: 700; line-height: 1.3; color: #000; white-space: nowrap;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 2px 8px;
}
.tool-result .quality .btn { flex: 0 0 auto; width: auto; min-height: 40px; padding: 9px 14px; font-size: .875rem; }

@media (max-width: 640px) {
  .preview.is-video { padding: 14px; }
  .vhead { gap: 12px; }
  .vthumb { flex-basis: 88px; width: 88px; }
  .preview.is-video .preview-caption { font-size: .9375rem; }
  .quality-list { grid-template-columns: 1fr; }
  /* The hero stretches every button inside the tool on phones; quality rows keep a compact one. */
  .tool-result .quality .btn { width: auto; flex: 0 0 auto; }
  .quality-info { flex: 1 1 auto; }
}

/* Button busy state */
.btn.is-busy { pointer-events: none; }
.spinner {
  width: 17px; height: 17px; flex: 0 0 17px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 16px;
  font-size: .8438rem; font-weight: 600; color: #000;
}
.chips svg { width: 14px; height: 14px; color: var(--primary); flex: 0 0 14px; }

.hero-media { width: 100%; }
.hero-media .browser {
  max-width: 900px; margin-inline: auto;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0;
}
.hero-media .browser-body {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 56px;
}

/* ---------- Mockups (pure CSS) ---------- */
.browser {
  background: #221B45; border-radius: var(--r-lg); padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 5px 8px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.24); }
.browser-bar .url {
  flex: 1; height: 26px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13);
  display: flex; align-items: center; padding: 0 13px;
  color: #fff; font-size: .7rem; font-weight: 500;
}
.browser-body {
  border-radius: var(--r); background: #0F0B22;
  padding: 46px 28px; display: flex; flex-direction: column;
  align-items: center; gap: 15px; justify-content: center;
}
.bh { height: 12px; width: 46%; border-radius: 6px; background: #fff; }
.bs { height: 7px; width: 32%; border-radius: 4px; background: rgba(255,255,255,.28); }
.bfield {
  width: 100%; max-width: 400px; height: 50px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px;
}
.bfield .txt { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); }
.bfield .go {
  height: 38px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--primary); background-image: var(--brand-grad);
  display: flex; align-items: center; color: #fff; font-size: .74rem; font-weight: 700;
}

.phone {
  width: 268px; height: 542px; flex: 0 0 auto;
  background: #221B45; border-radius: 38px; padding: 9px;
  border: 1px solid rgba(255,255,255,.13); box-shadow: var(--shadow-lg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 30px; overflow: hidden;
  background: #0F0B22; display: flex; flex-direction: column;
}
.notch {
  position: absolute; top: 10px; left: 50%; translate: -50% 0;
  width: 70px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); z-index: 3;
}
.scr { flex: 1; padding: 30px 15px 15px; display: flex; flex-direction: column; gap: 10px; }
.sline { height: 6px; border-radius: 4px; background: rgba(255,255,255,.2); }
.stitle { height: 10px; width: 60%; border-radius: 5px; background: #fff; }
.w80 { width: 80%; } .w55 { width: 55%; }
.sfield {
  height: 42px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
}
.sfield .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.sfield .txt { height: 5px; width: 56%; border-radius: 3px; background: rgba(255,255,255,.45); }
.sbtn {
  height: 42px; border-radius: var(--r-pill);
  background: var(--primary); background-image: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .76rem; font-weight: 700;
}
.sopt {
  height: 44px; border-radius: 12px; padding: 0 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-size: .72rem; font-weight: 600;
}
.sopt.on { background: rgba(214,41,118,.32); border-color: var(--primary); }
.sopt svg { width: 15px; height: 15px; }

/* ---------- Platform strip ---------- */
.platforms { padding: 56px 0; background: #fff; border-bottom: 1px solid var(--border); }
.platforms > .container { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.platforms > .container > p { font-size: var(--fs-body); font-weight: 600; }
.plist { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 52px; }
.plist li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: var(--fs-body); }
.plist svg { width: 23px; height: 23px; flex: 0 0 23px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 30px; box-shadow: var(--shadow); height: 100%;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card p { font-size: var(--fs-body); }
.itile {
  width: 52px; height: 52px; border-radius: 13px; flex: 0 0 52px;
  background: var(--primary-soft); color: #000;
  display: flex; align-items: center; justify-content: center;
}
.itile svg { width: 24px; height: 24px; }

/* ==========================================================================
   Split — media column is wider than the text column and matches its height
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1.18fr; gap: 48px; align-items: stretch; }
.split.is-flipped { grid-template-columns: 1.18fr 1fr; }
.split.is-flipped .split-text { order: 2; }
.split.is-flipped .media { order: 1; }

.split-text { display: flex; flex-direction: column; justify-content: center; gap: 26px; align-items: flex-start; }
.split-text h3 { font-size: 1.375rem; }
.split-text ul { display: flex; flex-direction: column; gap: 12px; }
.split-text ul li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-body); }
.split-text ul svg { width: 20px; height: 1.7em; flex: 0 0 20px; color: var(--primary); }

.media {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--bg-lavender);
  display: flex; align-items: center; justify-content: center;
  padding: 48px; min-height: 100%; overflow: hidden;
}

/* A stack of topic blocks inside one column */
.topics { display: flex; flex-direction: column; gap: 0; width: 100%; }
.topic { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; }
.topic + .topic { border-top: 1px solid var(--border); }
.topic h3 { font-size: 1.1875rem; }
.topic p { font-size: var(--fs-body); }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; width: 100%; }
.steps li { display: flex; gap: 18px; padding: 18px 0; }
.steps li + li { border-top: 1px solid var(--border); }
.snum {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: var(--r-pill);
  background: var(--primary-soft); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9688rem;
}
.steps li > div { display: flex; flex-direction: column; gap: 5px; }
.steps p { font-size: var(--fs-body); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 24px; font-weight: 700; font-size: var(--fs-body); color: #000;
  border-radius: var(--r);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: 0 0 auto; color: #000;
  font-size: 1.4rem; font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease); }
.faq-item[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { padding: 0 24px 22px; font-size: var(--fs-body); }

/* ==========================================================================
   Footer — violet CTA band, then a dark block
   ========================================================================== */
.site-footer { display: flex; flex-direction: column; }

/* CTA: full-width violet band, impossible to miss */
.footer-cta-band { background: var(--primary); background-image: var(--brand-grad); color: #fff; }
.footer-cta-band > .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px; padding-block: 72px;
}
.footer-cta-copy { display: flex; flex-direction: column; gap: 12px; }
.footer-cta-copy h2 { color: #fff; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.footer-cta-copy p { color: #fff; font-size: var(--fs-body); max-width: 48ch; }
.footer-cta-band .btn { background: #fff; color: #000; }
.footer-cta-band .btn:hover { background: var(--primary-soft); color: #000; }

/* Main block: dark ground, white text */
.footer-body { background: #12101F; color: #fff; }
.footer-body a { color: #fff; }

.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-block: 56px; }
.footer-about { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-about p { font-size: var(--fs-body); max-width: 34ch; color: #fff; }

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h3 { color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer-col a { font-size: var(--fs-body); font-weight: 500; }

.footer-platforms { display: flex; flex-direction: column; gap: 9px; }
.footer-platforms span {
  font-size: .6875rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
}
.footer-platforms ul { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-platforms li {
  border: 1px solid #2A2440; border-radius: var(--r-pill);
  padding: 5px 12px; font-size: .8125rem; font-weight: 500; color: #fff;
}

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding-block: 26px; font-size: var(--fs-body); color: #fff;
  border-top: 1px solid #2A2440;
}


/* ==========================================================================
   Content pages — breadcrumb, page hero, prose, callout, TOC, tables, forms
   Same visual language as the home page: soft pink, rounded, gap spacing.
   ========================================================================== */

.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumb .container { display: flex; padding-block: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-body); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb [aria-current="page"] { font-weight: 700; }

.page-hero { background: var(--bg-lavender); padding: 56px 0; }
.page-hero > .container { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.page-hero h1 span { color: #000; }
.page-hero p { font-size: var(--fs-body); }

/* Article body: one flex column, everything spaced by gap */
.prose { display: flex; flex-direction: column; gap: 44px; width: 100%; }
.prose-block { display: flex; flex-direction: column; gap: 16px; }
.prose ul, .prose ol, .article ul, .article ol {
  display: flex; flex-direction: column; gap: 10px; padding-left: 1.25em;
}
.prose ul, .article ul { list-style: disc; }
.prose ol, .article ol { list-style: decimal; }
.prose li::marker, .article li::marker { color: #000; }
.prose a { font-weight: 600; }

.updated {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: var(--fs-body); padding-bottom: 20px; border-bottom: 1px solid var(--border);
}

.callout {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--primary-soft); border: 1px solid var(--border-strong);
  border-radius: var(--r); padding: 22px 24px;
}

.toc {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px 26px; box-shadow: var(--shadow);
}
.toc h2 { font-size: var(--fs-body); padding-top: 0; }
.toc ol { display: flex; flex-direction: column; gap: 9px; padding-left: 1.2em; list-style: decimal; }
.toc a { font-weight: 500; }

.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r); background: #fff;
}
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: var(--fs-body); }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--fs-body); }
.field input, .field select, .field textarea {
  font: inherit; color: #000; background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--r);
  padding: 14px 16px; min-height: 52px; width: 100%;
  transition: border-color var(--dur) ease;
}
.field textarea { min-height: 110px; resize: vertical; }
/* The native select arrow differs per browser and is grey on every one of them,
   so it is hidden and replaced with our own black chevron. */
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field select::-ms-expand { display: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: -2px; border-color: var(--primary);
}
.field-hint { font-size: var(--fs-body); }

/* FAQ page: questions grouped under headings */
.faq-group { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.faq-group h2 { font-size: 1.375rem; }

/* Two-column article layout: sticky aside beside the prose */
.article { display: flex; flex-direction: column; gap: 40px; width: 100%; }


@media (max-width: 640px) {
  .page-hero { padding: 48px 0; }
  .prose { gap: 18px; }
  .callout { padding: 18px; }
  .toc { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  table { min-width: 460px; }
  th, td { padding: 11px 14px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .split, .split.is-flipped { grid-template-columns: 1fr; gap: 32px; }
  .split.is-flipped .split-text { order: 1; }
  .split.is-flipped .media { order: 2; }
  .media { min-height: 400px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-cta-band > .container { align-items: flex-start; }
}

/* Six nav items need the menu button sooner than two did: below this width
   they wrap onto a second line before the 900px toggle would have fired. */
@media (max-width: 1000px) {
  .site-header .container { position: relative; }
  .nav {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r);
    padding: 12px; box-shadow: var(--shadow-lg);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a { padding: 13px 15px; border-radius: 10px; }
  /* In the drawer a dropdown becomes a section that opens in place. */
  .nav-group { display: block; }
  .nav-top { width: 100%; justify-content: space-between; padding: 13px 15px; border-radius: 10px; }
  .nav-menu {
    position: static; width: auto; padding: 2px 0 6px 0;
    border: 0; box-shadow: none; background: none; animation: none;
  }
  .nav-menu::before { display: none; }
  .nav-group::after { display: none; }
  .site-header .nav-item { padding: 11px 12px; }
  .nav-group:hover .nav-menu { display: none; }
  .nav-group.is-open .nav-menu { display: flex; }
  .nav-menu a { white-space: normal; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-contact { display: block; }
  .header-right { gap: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand-logo { height: 36px; }
  body { font-size: 16px; }

  .section { padding: 64px 0; }
  .section > .container { gap: 36px; }

  .hero { padding: 56px 0 0; }
  .hero > .container { gap: 44px; }

  .preview { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .preview-media { max-width: 180px; margin-inline: auto; }
  .preview-body { text-align: center; align-items: center; }
  .preview-meta, .preview-actions, .preview-eyebrow { justify-content: center; }
  .preview-actions .btn { width: 100%; }
  .tool-form { flex-direction: column; align-items: stretch; gap: 8px; border-radius: var(--r); padding: 10px; }
  .tool-input { text-align: center; padding: 12px; }
  .tool-form .btn { width: 100%; }

  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .media { padding: 26px; min-height: 340px; border-radius: var(--r); }
  .phone { width: 210px; height: 428px; }
  .browser-body { padding: 32px 18px; }

  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
  .plist { gap: 14px 30px; }

  .footer-cta-band > .container { padding-block: 48px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
  .footer-platforms { display: flex; flex-direction: column; gap: 9px; }
.footer-platforms span {
  font-size: .6875rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
}
.footer-platforms ul { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-platforms li {
  border: 1px solid #2A2440; border-radius: var(--r-pill);
  padding: 5px 12px; font-size: .8125rem; font-weight: 500; color: #fff;
}

.footer-bottom { padding-block: 22px; }
}

@media (max-width: 380px) {
  .phone { width: 190px; height: 386px; }
}

/* ---------- Feedback box (bottom-right, built by assets/js/feedback.js) ---------- */
.fb {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.fb > * { pointer-events: auto; }

.fb-launch {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: .9375rem; font-weight: 700; color: #fff;
  background: var(--primary); background-image: var(--brand-grad);
  border: 0; border-radius: var(--r-pill); padding: 13px 20px 13px 17px;
  box-shadow: var(--shadow-lg); cursor: pointer;
  transition: transform var(--dur) var(--ease), filter var(--dur) ease;
}
.fb-launch:hover { transform: translateY(-2px); filter: saturate(1.12); }
.fb-launch:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.fb-launch svg { width: 20px; height: 20px; flex: 0 0 20px; }

.fb-panel {
  width: 310px; max-width: calc(100vw - 48px);
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; color: #000;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  animation: fb-in 220ms var(--ease);
}
.fb-panel[hidden] { display: none; }
@keyframes fb-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.fb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fb-head-copy { display: flex; flex-direction: column; gap: 2px; }
.fb-title { font-size: 1rem; line-height: 1.3; }
/* The box is small chrome, not page copy, so it runs below the 17px body size on purpose. */
.fb-panel p { font-size: .875rem; line-height: 1.45; }

.fb-close {
  flex: 0 0 30px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: #000;
  border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
  transition: border-color var(--dur) ease;
}
.fb-close:hover { border-color: var(--border-strong); }
.fb-close svg { width: 15px; height: 15px; }

.fb-vote {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 8px 8px 12px;
}
.fb-panel .fb-vote-q { font-size: .875rem; font-weight: 700; }
.fb-thumbs { display: flex; gap: 6px; flex: 0 0 auto; }
.fb-thumb {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000; border: 1px solid var(--border-strong); border-radius: 50%;
  cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) ease;
}
.fb-thumb:hover { transform: translateY(-1px); border-color: #000; }
.fb-thumb:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.fb-thumb svg { width: 16px; height: 16px; }
.fb-thumb[aria-pressed="true"] {
  color: #fff; border-color: transparent;
  background: var(--primary); background-image: var(--brand-grad);
}

.fb-form, .fb-done { display: flex; flex-direction: column; gap: 10px; }
.fb-form[hidden], .fb-done[hidden] { display: none; }
/* Scoped to the box so the contact page form keeps its full size. */
.fb-form .field { gap: 5px; }
.fb-form .field label { font-size: .875rem; }
.fb-form .field input, .fb-form .field textarea {
  font-size: .9375rem; min-height: 40px; padding: 8px 12px; border-radius: 12px;
}
.fb-form .field textarea { min-height: 72px; }
.fb-submit, .fb-again { width: 100%; min-height: 42px; padding: 10px 18px; font-size: .9375rem; }

.fb-status { min-height: 0; }
.fb-status:empty { display: none; }
.fb-status.is-error {
  border: 1px solid #000; border-radius: 12px; padding: 8px 12px; background: #fff;
}

.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .fb { right: 16px; bottom: 16px; left: 16px; }
  .fb-panel { width: 100%; max-width: none; padding: 16px; }
  .fb-launch { padding: 12px 18px 12px 15px; }
  /* While the panel is open on a phone the launcher only duplicates Close. */
  .fb.is-open .fb-launch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
