/* =============================================================
   PARTNER-FACING PAGES: one neutral premium look (approved 2026-10-07)
   public/partner-pages.css

   Used by start.html, unsubscribe.html, directai-onepager.html and the
   agency's own reseller pages. Light grey page, white cards with soft depth,
   ONE accent colour. The accent is the agency's colour: the page sets the
   --accent-* variables from the brand lookup (see partner-pages.js).
   No brand typeface, no brand colour of ours, no third-party host.
   Inter is self-hosted; if the file is missing the system font is used.
   ============================================================= */

@font-face {
  font-family: "Inter";
  src: local("Inter"), url("/fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fixed greys, never from the agency. */
  --page: #f6f7f9; --card: #ffffff; --sunken: #f2f4f7;
  --line: #e6e8ec; --line-strong: #d5d9e0;
  --ink: #0e1116; --ink-2: #3d4450; --muted: #5f6672; --faint: #a3a9b3;
  /* Meaning colours, fixed. */
  --good: #15803d; --good-bg: #ecfdf3; --bad: #b42318; --bad-bg: #fef3f2;
  /* Accent roles: neutral slate until the page applies the agency's colour. */
  --accent: #334155; --accent-fill: #334155; --accent-on-fill: #ffffff;
  --accent-text: #334155; --accent-graphic: #334155; --accent-soft: #eff0f1; --accent-line: #c6cacf;
  --sh-1: 0 1px 2px rgba(16,24,40,.05), 0 0 0 1px rgba(16,24,40,.04);
  --sh-2: 0 1px 2px rgba(16,24,40,.06), 0 6px 16px rgba(16,24,40,.06);
  --sh-3: 0 2px 4px rgba(16,24,40,.04), 0 18px 40px rgba(16,24,40,.09);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; font-feature-settings: "tnum" 1; }
h1, h2, h3 { letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; }
h1 { font-size: 26px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.25; font-weight: 650; }
h3 { font-size: 16px; font-weight: 620; }
p { margin: 0 0 12px; }
a { color: var(--accent-text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.hidden { display: none !important; }
.wrap { max-width: 460px; margin: 0 auto; padding: 24px 16px 48px; }
.wrap.wide { max-width: 1040px; }
.wrap.mid { max-width: 760px; }

/* Focus: a clear 2px ring in the accent on everything you can tab to. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-graphic); outline-offset: 2px;
}

/* The agency mark: its logo, or a rounded square with the first letter. */
.brand { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 0 20px; font-weight: 650; font-size: 15px; color: var(--ink); }
.brand img { height: 32px; max-width: 160px; object-fit: contain; }
.mono { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-fill); color: var(--accent-on-fill); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }

.card { background: var(--card); border-radius: 16px; box-shadow: var(--sh-1); padding: 24px; }
.card.raised { box-shadow: var(--sh-3); border-radius: 20px; }

/* Forms: 16px text so phones do not zoom, 12px radius, labels always shown. */
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=tel], select {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; margin: 0 0 16px;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--accent-graphic); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--ink-2); margin: 4px 0 20px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-fill); flex: none; }

.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 16px; font-weight: 600; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; background: var(--accent-fill); color: var(--accent-on-fill); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px rgba(16,24,40,.12); }
.btn.block, form > button { width: 100%; }
.btn.soft { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.btn.danger { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1px #fecdca; }
.btn.small, button.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
button:disabled { opacity: .55; cursor: not-allowed; }

/* Messages: an icon-free tinted bar, colour plus words. */
.msg { margin: 14px 0 0; padding: 0; font-size: 14px; }
.msg.error, .msg.success { padding: 12px 14px; border-radius: 12px; }
.msg.error { color: var(--bad); background: var(--bad-bg); }
.msg.success { color: var(--good); background: var(--good-bg); }

@media (min-width: 720px) {
  h1 { font-size: 32px; }
  .wrap { padding-top: 48px; }
}
/* Dark mode, only on pages that opt in with <html class="auto-dark"> (start.html):
   the greys swap, and the agency colour's text/graphic/soft/line roles swap to the
   -d versions the server worked out for dark (src/report-accent.js). !important
   because applyAccent sets the roles inline. The logo sits on a white plate. */
@media screen and (prefers-color-scheme: dark) {
  :root.auto-dark {
    --page: #0b0d12; --card: #151820; --sunken: #1d212b; --line: #272c37; --line-strong: #363c49;
    --ink: #f2f4f7; --ink-2: #c9ced8; --muted: #9aa2b0; --faint: #6b7280;
    --good: #47cd89; --good-bg: rgba(71,205,137,.12); --bad: #f97066; --bad-bg: rgba(249,112,102,.12);
    --accent-text: var(--accent-text-d, #9aa2b0) !important; --accent-graphic: var(--accent-graphic-d, #9aa2b0) !important;
    --accent-soft: var(--accent-soft-d, #1d212b) !important; --accent-line: var(--accent-line-d, #363c49) !important;
    --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-3: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
  .auto-dark .brand img { background: #fff; padding: 4px 8px; border-radius: 8px; height: 40px; }
  .auto-dark .card.raised { box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
