/* ==========================================================================
   Atlista — Amazon Advertising freelance services
   Single stylesheet. No external fonts, no trackers, no dependencies.
   ========================================================================== */

:root {
  /* Brand.
     600/500/400 are the display tones — fills, gradients, large type.
     700/800 exist for SMALL text: #f97316 on white is only 2.9:1 and #ea580c
     3.9:1, both under the 4.5:1 AA floor for body-size text. Use 700 on white
     or as a fill behind white text, 800 on the orange-50 tint. */
  --orange-800: #9a3412;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --orange-50:  #fff7ed;

  /* Neutrals (warm) */
  --ink:        #1c1917;
  --ink-soft:   #44403c;
  --muted:      #6b6461;
  --line:       #ecdfd4;
  --line-soft:  #f5ece4;
  --surface:    #ffffff;
  --canvas:     #fffbf7;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --shell: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange-700); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--ink); font-weight: 650; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding: clamp(56px, 8vw, 104px) 0; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 247, .88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .95rem;
  font-weight: 550;
}
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--orange-600); text-decoration: none; }

@media (max-width: 780px) {
  .nav { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: .97rem;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  /* #cf4a09 is the BRIGHTEST orange that still clears 4.5:1 against white
     (4.53:1), so the label passes AA for normal text across the whole gradient
     while the button still reads orange. Measured alternatives: #f97316 = 2.8:1,
     #ea580c = 3.6:1 (both fail); --orange-800 passes but goes visibly brown. */
  background: linear-gradient(180deg, #cf4a09, var(--orange-700));
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(207, 74, 9, .5);
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(234, 88, 12, .6); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--orange-400); color: var(--orange-600); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 6vw, 82px); padding-bottom: clamp(48px, 6vw, 82px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: .45em; }

.hero-lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 33em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Portrait.
   The source PNG already carries its own white photo frame and soft shadow on a
   transparent background, so this wrapper adds NO frame, padding, shadow, rotation
   or crop — any of those would double the framing that is already in the image.
   It does add the orange brand accent behind it, which the image does not contain. */
.portrait { position: relative; justify-self: center; width: 100%; max-width: 440px; margin: 0; }

.portrait::before {
  content: "";
  position: absolute;
  inset: 4% -6% 2% -4%;
  background: radial-gradient(115% 95% at 32% 28%, var(--orange-100), rgba(255, 237, 213, 0) 70%);
  border-radius: 46% 54% 52% 48% / 48% 46% 54% 52%;
  z-index: 0;
}

.portrait-frame { position: relative; z-index: 1; }
.portrait-frame img { width: 100%; height: auto; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Keep the portrait small enough that the headline still lands above the fold. */
  .portrait { order: -1; max-width: 250px; }
}

/* ---------- Trust strip ---------- */

.trust {
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 26px 0;
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  font-size: .92rem;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 9px; }
.trust svg { flex: none; color: var(--orange-500); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--orange-50);
  color: var(--orange-600);
  border: 1px solid var(--orange-100);
  margin-bottom: 18px;
}

/* Feature list inside cards */
.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: .95rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-400);
}
.ticks li:last-child { margin-bottom: 0; }

/* ---------- Scope table (read vs write) ---------- */

.scope-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

table.scope { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
table.scope th, table.scope td { padding: 15px 20px; text-align: left; vertical-align: top; }
table.scope thead th {
  background: var(--orange-50);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
table.scope tbody tr + tr td { border-top: 1px solid var(--line-soft); }
table.scope td:first-child { color: var(--ink); font-weight: 600; width: 30%; }
table.scope td { color: var(--muted); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill-read  { background: #eef6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.pill-write { background: var(--orange-50); color: var(--orange-800); border: 1px solid var(--orange-100); }

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative;
  padding-left: 62px;
  min-height: 44px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-600));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 16px -8px rgba(234,88,12,.6);
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* ---------- Pricing ---------- */

.price-hero {
  background: linear-gradient(160deg, #fff 0%, var(--orange-50) 100%);
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  box-shadow: 0 20px 46px -34px rgba(234, 88, 12, .5);
}
.price-hero .from {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
.price-hero .amount {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 10px 0 4px;
}
.price-hero .amount small {
  display: block;
  font-size: .85rem;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 8px;
}
.price-hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 56ch;
  margin: 18px auto 26px;
}

/* ---------- Data & security ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel h3 svg { color: var(--orange-500); flex: none; }

/* ---------- Sub-heading inside a section ----------
   Used for headings that introduce a block partway down a section. Carries its
   own generous top margin so a preceding card grid or table can never collide
   with it — do not hand-tune this with inline margins per instance. */
.subhead {
  font-size: 1.22rem;
  /* Deliberately large: this heading belongs to the block BELOW it, so the gap
     above must clearly exceed the 22px below, or it reads as a caption on the
     card grid above instead. */
  margin: clamp(64px, 7vw, 96px) 0 22px;
}
.subhead:first-child { margin-top: 0; }

/* ---------- Small utilities ----------
   These exist as classes rather than inline style attributes on purpose: the CSP
   sets style-src 'self' with no 'unsafe-inline', so an inline style="" attribute
   is silently dropped in production. Never reintroduce one. */
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.note-under { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.footer-tagline { margin-bottom: .6em; }
.footer-address { margin-bottom: 0; }
.callout-noscript { margin-top: 26px; }

/* ---------- Quote configurator ----------
   Structure follows the pattern the client asked for: one bordered card with a
   dark header bar, an icon+label per question, sliders showing a band in an
   inset panel, flag buttons, goal cards, then contact fields and a single CTA.
   The visual language stays this site's own (warm tints, rounded corners,
   orange) rather than the reference's navy/gold with square corners. */

.quote-card {
  margin-top: clamp(34px, 4vw, 52px);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -50px rgba(28, 25, 23, .4);
}

.quote-head {
  background: var(--ink);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.5vw, 38px);
}
.quote-head h3 { margin: 0 0 6px; color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.quote-head p { margin: 0; color: #b9b2ad; font-size: .95rem; }

.quote-body {
  display: grid;
  gap: clamp(30px, 3.4vw, 42px);
  padding: clamp(24px, 3.5vw, 38px);
}

/* Question block */
.qq { border: 0; margin: 0; padding: 0; min-width: 0; }
.qq-label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.qq-ico {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--orange-800);
}
.qq-ico svg { width: 16px; height: 16px; }

/* Slider in an inset panel */
.range-panel {
  background: var(--canvas);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.6vw, 26px) 16px;
}
.range-value {
  display: block;
  text-align: center;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
/* Until the visitor moves the slider, its position is not their answer. */
.range-value.is-unset {
  font-size: .92rem;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--muted);
  font-variant-numeric: normal;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 7px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--orange-500) 0 var(--pct, 0%), var(--line) var(--pct, 0%) 100%);
  cursor: grab;
}
/* Until it is touched the slider position is not an answer, so the filled part
   stays neutral — an orange fill would read as a value the visitor never gave. */
.slider.is-untouched {
  background: linear-gradient(90deg,
    #ddd0c4 0 var(--pct, 0%), var(--line-soft) var(--pct, 0%) 100%);
}
.slider.is-untouched::-webkit-slider-thumb { border-color: #b8a99c; }
.slider.is-untouched::-moz-range-thumb { border-color: #b8a99c; }
.slider:active { cursor: grabbing; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--orange-700);
  box-shadow: 0 3px 10px -2px rgba(28, 25, 23, .3);
  cursor: grab;
}
.slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border: 3.5px solid var(--orange-700);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px -2px rgba(28, 25, 23, .3);
  cursor: grab;
}
.slider::-moz-range-track { background: transparent; }
.slider:focus { outline: none; }
.slider:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 5px; }

.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}

/* Marketplace flag buttons */
.flags { display: flex; flex-wrap: wrap; gap: 9px; }
.flag { position: relative; display: block; }
.flag input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.flag span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: .92rem;
  font-weight: 550;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.flag i { font-style: normal; font-size: 1.05rem; line-height: 1; }
.flag:hover span { border-color: var(--orange-400); }
.flag input:checked + span {
  border-color: var(--orange-500);
  background: var(--orange-50);
  color: var(--orange-800);
  font-weight: 650;
}
.flag input:focus-visible + span { outline: 3px solid var(--orange-400); outline-offset: 2px; }

/* Primary-goal cards */
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
@media (max-width: 700px) { .goals { grid-template-columns: 1fr; } }

.goal { position: relative; display: block; }
.goal input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.goal-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  height: 100%;
  padding: 17px 42px 17px 17px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease,
              box-shadow .15s ease, transform .15s ease;
}
.goal:hover .goal-box { border-color: var(--orange-400); transform: translateY(-1px); }
.goal input:checked + .goal-box {
  border-color: var(--orange-500);
  background: var(--orange-50);
  box-shadow: 0 10px 26px -16px rgba(234, 88, 12, .6);
}
.goal input:focus-visible + .goal-box { outline: 3px solid var(--orange-400); outline-offset: 2px; }

.goal-ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--orange-800);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.goal-ico svg { width: 18px; height: 18px; }
.goal input:checked + .goal-box .goal-ico {
  background: var(--orange-700);
  border-color: var(--orange-700);
  color: #fff;
}
.goal-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.goal-title { font-size: .97rem; font-weight: 620; color: var(--ink); line-height: 1.3; }
.goal-sub { font-size: .84rem; color: var(--muted); line-height: 1.45; }

.goal-mark {
  position: absolute;
  top: 13px; right: 13px;
  width: 21px; height: 21px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange-700);
  color: #fff;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s ease, transform .18s cubic-bezier(.3, 1.5, .5, 1);
}
.goal-mark svg { width: 11px; height: 11px; }
.goal input:checked + .goal-box .goal-mark { opacity: 1; transform: scale(1); }

/* Text fields (shared by both forms) */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields-1 { grid-template-columns: 1fr; }
.field { min-width: 0; }
.field-full { margin-top: 16px; }
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: .83rem;
  font-weight: 650;
  color: var(--ink);
}
.field-label em { font-style: normal; font-weight: 500; font-size: .94em; color: var(--muted); }

.input {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.input::placeholder { color: #b3aba6; }
.input:hover { border-color: #e2d0c1; }
.input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3.5px var(--orange-100);
}
textarea.input { resize: vertical; min-height: 94px; line-height: 1.55; }

/* Submit area */
.quote-foot { border-top: 1px solid var(--line-soft); padding-top: clamp(20px, 2.6vw, 26px); }
.btn-wide { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.quote-foot .btn-sm { width: 100%; margin-top: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.form-status { margin: 13px 0 0; font-size: .87rem; line-height: 1.6; color: var(--muted); }
.form-status:empty { margin: 0; }
.form-status-error { color: #b91c1c; font-weight: 600; }
.form-fineprint { margin: 12px 0 0; font-size: .82rem; line-height: 1.6; color: var(--muted); }

/* ---------- Contact section ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-lede { color: var(--muted); font-size: 1.04rem; max-width: 34em; }

.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 13px; font-size: .95rem; color: var(--muted); }
.contact-list strong { color: var(--ink); font-size: .88rem; font-weight: 650; }
.contact-ico {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--orange-800);
}
.contact-ico svg { width: 17px; height: 17px; }

.contact-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 34px);
  box-shadow: 0 26px 60px -46px rgba(28, 25, 23, .34);
}
.contact-card .btn-wide { margin-top: 20px; }

@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9b2ad;
  padding: 52px 0 34px;
  font-size: .92rem;
}
.site-footer a { color: #e8e2dd; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #332f2c;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }

.footer-legal {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: .86rem;
  color: #8d8681;
}

.disclaimer {
  margin-top: 18px;
  font-size: .82rem;
  line-height: 1.6;
  color: #8d8681;
  max-width: 78ch;
}

/* ---------- Legal / prose pages ---------- */

.legal { padding-top: clamp(44px, 6vw, 72px); }
.prose { max-width: 76ch; }
.prose h1 { margin-bottom: .3em; }
.prose .updated {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 2.4em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--line);
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}
.prose h3 { font-size: 1.06rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th, .prose td { padding: 12px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.prose th { background: var(--orange-50); color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange-500);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 1.6em;
  font-size: .96rem;
}
.callout p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--orange-800);
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .93rem;
  font-weight: 600;
  margin-bottom: 26px;
}

/* ---------- Utilities / a11y ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
