/* Newsfable — editorial design system
 * Palette drawn from the Newsfable logo:
 *   navy ink #0e1a3a, accent gradient #3b5bff → #7c5cff, paper cream #fbfaf5
 */

:root {
  color-scheme: light;

  --ink: #0e1a3a;
  --ink-soft: #1c2a5e;
  --ink-faded: #2e3a64;
  --paper: #fbfaf5;
  --paper-tint: #f3efe5;
  --paper-warm: #f7f2e6;
  --line: #e6e1d2;
  --line-soft: #efeada;
  --muted: #5d6580;
  --muted-soft: #8a91a8;

  --blue: #3b5bff;
  --violet: #7c5cff;
  --accent: #3b5bff;
  --accent-ink: #2240e6;
  --gradient: linear-gradient(135deg, #3b5bff 0%, #7c5cff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59, 91, 255, 0.10), rgba(124, 92, 255, 0.10));
  --gradient-wash: linear-gradient(135deg, rgba(59, 91, 255, 0.05), rgba(124, 92, 255, 0.05));

  --success: #0b7a3b;
  --success-bg: #ecfaf1;
  --warn: #8a5a0a;
  --warn-bg: #fdf6e3;
  --danger: #b42318;
  --danger-bg: #fef2f0;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 0 rgba(14, 26, 58, 0.04), 0 1px 3px rgba(14, 26, 58, 0.03);
  --shadow-hover: 0 8px 24px rgba(14, 26, 58, 0.08);
  --shadow-lift: 0 18px 48px rgba(14, 26, 58, 0.12);

  --font-serif: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 245, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner,
.shell,
.footer-inner {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 32px;
  width: auto;
}
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a,
.nav button {
  color: var(--muted);
  background: transparent;
  border: 0;
  font: 500 14px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover,
.nav button:hover { color: var(--ink); background: var(--paper-tint); }
.nav .button.primary {
  color: #fff;
  background: var(--ink);
  border: 0;
  padding: 10px 16px;
  margin-left: 6px;
}
.nav .button.primary:hover { background: var(--ink-soft); color: #fff; }

/* ===== Shell ===== */
.shell { padding: 44px 0 80px; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 500;
}
h1 { font-size: 40px; line-height: 1.08; margin: 0 0 12px; }
h2 { font-size: 28px; line-height: 1.18; margin: 0 0 14px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
p  { margin: 0 0 14px; }
.muted { color: var(--muted); }
.lede { font-size: 18px; color: var(--muted); line-height: 1.6; }

.eyebrow {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: inline-block;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 36px; }

/* ===== Buttons ===== */
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: 500 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s, color 0.15s;
}
.button:hover { background: var(--paper-tint); border-color: #d4cdb8; color: var(--ink); }
.button.primary,
button.primary,
input[type="submit"].primary {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.button.primary:hover,
button.primary:hover { background: var(--ink-soft); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 26, 58, 0.20); }
.button.accent,
button.accent {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}
.button.accent:hover,
button.accent:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 92, 255, 0.32); }
.button.ghost,
button.ghost { background: transparent; border-color: var(--line); }
.button.ghost:hover,
button.ghost:hover { background: var(--paper-tint); }
.button.danger,
button.danger { color: var(--danger); border-color: #f1c3bc; background: transparent; }
.button.danger:hover,
button.danger:hover { background: var(--danger-bg); border-color: #e8a89e; color: var(--danger); }
.button.sm,
button.sm { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.button.lg,
button.lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }

form.inline { display: inline; margin: 0; }

/* ===== Cards & panels ===== */
.panel,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.panel-lg { padding: 36px; }

.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)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ===== Forms ===== */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field-hint { color: var(--muted); font-size: 13px; }
label { font: 600 14px/1.4 var(--font-sans); color: var(--ink); }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 15px/1.5 var(--font-sans);
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 255, 0.18);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 0;
}
.check-row input { width: auto; min-height: auto; accent-color: var(--accent); }

.form-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.form-section:last-of-type { border-bottom: 0; padding-bottom: 8px; }
.form-section-title {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin-bottom: 0;
}
.form-section-title h3 { margin: 0; font-size: 18px; }
.form-section-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-section-grid { margin-top: 18px; }

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th {
  color: var(--muted);
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paper-tint);
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.12s; }
tbody tr:hover td { background: rgba(243, 239, 229, 0.45); }
td a { color: var(--ink); font-weight: 600; }
td a:hover { color: var(--accent); }

/* ===== Notices ===== */
.notice {
  border: 1px solid #e8d49e;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.notice.success { border-color: #b6e2c8; background: var(--success-bg); color: var(--success); }
.notice.info {
  border-color: rgba(59, 91, 255, 0.22);
  background: var(--gradient-wash);
  color: var(--ink);
}
.notice strong { color: inherit; }

/* ===== Status pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-sans);
  background: var(--paper-tint);
  color: var(--muted);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.active { background: rgba(11, 122, 59, 0.10); color: var(--success); }
.pill.paused { background: rgba(138, 90, 10, 0.10); color: var(--warn); }
.pill.deleted { background: rgba(180, 35, 24, 0.10); color: var(--danger); }

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty h2 { margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 36rem; margin: 0 auto 22px; }
.empty .glyph {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gradient-soft);
  display: grid;
  place-items: center;
  color: var(--violet);
  font: 600 22px/1 var(--font-serif);
  font-style: italic;
}

/* ===== Landing — hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0 64px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -200px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.12), transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-soft);
  color: var(--ink-faded);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  font-weight: 400;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-trust {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-trust .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-soft);
}

/* Email-preview card */
.preview-stack {
  position: relative;
  padding: 14px 14px 0 0;
}
.preview-stack::after {
  content: "";
  position: absolute;
  inset: 28px 0 0 28px;
  background: var(--gradient);
  opacity: 0.10;
  border-radius: 20px;
  z-index: 0;
}
.preview-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px 28px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-0.3deg);
}
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 16px;
}
.preview-meta .from { display: inline-flex; align-items: center; gap: 8px; }
.preview-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.preview-subject {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  font-weight: 500;
}
.preview-item {
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}
.preview-item:first-of-type { border-top: 0; padding-top: 4px; }
.preview-item .show {
  font: 700 11px/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 4px;
}
.preview-item .title {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.32;
  color: var(--ink);
  margin: 2px 0 6px;
  font-weight: 500;
}
.preview-item .desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 8px;
}
.preview-time {
  display: inline-block;
  font: 11px/1 var(--font-mono);
  color: var(--ink-faded);
  background: var(--paper-tint);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ===== Section structure ===== */
.section { padding: 64px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-size: 38px;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  line-height: 1.1;
}
.section-head p { font-size: 17px; color: var(--muted); margin: 0; }

.divider-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin: 60px auto 40px;
  color: var(--muted);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 580px;
}
.divider-rule::before,
.divider-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.step .step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* ===== Mode cards ===== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mode-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 92, 255, 0.32);
}
.mode-card .mode-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--violet);
  font-size: 14px;
  margin-bottom: 10px;
}
.mode-card h3 { font-size: 18px; margin: 0 0 6px; }
.mode-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ===== CTA card ===== */
.cta-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(124, 92, 255, 0.42), transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(59, 91, 255, 0.34), transparent 55%);
  opacity: 0.9;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  color: #fff;
  font-size: 42px;
  letter-spacing: -0.025em;
  margin: 0 auto 14px;
  max-width: 22ch;
  line-height: 1.08;
}
.cta-card p {
  color: rgba(255, 255, 255, 0.74);
  max-width: 38rem;
  margin: 0 auto 28px;
  font-size: 17px;
}
.cta-card .button {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
  font-weight: 600;
}
.cta-card .button:hover { background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.cta-card .button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.cta-card .button.ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 80px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer .brand { font-size: 16px; }
.footer .brand img { height: 24px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

/* ===== Auth screen ===== */
.auth-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  padding: 24px 0;
}
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}
.auth-card h1 { font-size: 30px; margin-bottom: 8px; text-align: center; }
.auth-card .lede { text-align: center; margin-bottom: 24px; font-size: 15px; }
.auth-card form .field { margin-bottom: 6px; }
.auth-card .toolbar { margin-top: 18px; justify-content: center; }
.auth-card .alt {
  text-align: center;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
.auth-card .alt a { color: var(--ink); font-weight: 600; }

/* ===== Message screen ===== */
.message-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  padding: 24px 0;
}
.message-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.message-card .glyph {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient-soft);
  display: grid;
  place-items: center;
}
.message-card .glyph svg { width: 28px; height: 28px; color: var(--violet); }
.message-card h1 { font-size: 28px; margin-bottom: 10px; }
.message-card p { color: var(--muted); margin: 0 auto 24px; max-width: 36rem; }

/* ===== Long-form legal / prose ===== */
.legal {
  max-width: 720px;
  margin: 0 auto;
}
.legal .page-head { margin-bottom: 28px; }
.legal h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 24px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-faded);
}
.legal ul, .legal ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal ul li, .legal ol li { margin-bottom: 6px; }
.legal .toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 32px;
}
.legal .toc h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 12px;
}
.legal .toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 28px;
}
.legal .toc li {
  margin-bottom: 4px;
  break-inside: avoid;
  font-size: 14px;
}
.legal .effective {
  display: inline-block;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .legal .toc ol { columns: 1; }
}

/* ===== Code / pre ===== */
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--ink);
  color: #d4d7e3;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow: auto;
  font: 13px/1.55 var(--font-mono);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; }
  .preview-card { transform: none; }
  .preview-stack { padding: 0; }
  .preview-stack::after { display: none; }
  .steps, .modes-grid { grid-template-columns: 1fr 1fr; }
  .form-section-title { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 720px) {
  .nav { gap: 0; }
  .nav a, .nav button { padding: 8px 10px; font-size: 13px; }
  .brand { font-size: 18px; }
  .brand img { height: 28px; }
  h1 { font-size: 32px; }
  .grid-3, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .steps, .modes-grid { grid-template-columns: 1fr; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .cta-card { padding: 44px 24px; }
  .cta-card h2 { font-size: 30px; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 28px; }
}

/* ===== Loading indicators ===== */
.nf-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  width: 0;
  background: var(--gradient);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: width 200ms ease, opacity 200ms ease;
}
.nf-progress.active {
  opacity: 1;
  width: 85%;
  transition: width 8s cubic-bezier(0.1, 0.6, 0.2, 1);
}
.nf-progress.done {
  width: 100%;
  opacity: 0;
  transition: width 120ms ease, opacity 220ms ease 90ms;
}
button.is-loading,
.button.is-loading {
  position: relative;
  color: transparent !important;
  text-shadow: none !important;
  pointer-events: none;
  cursor: default;
}
button.is-loading::after,
.button.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid var(--button-spinner, var(--ink));
  border-top-color: transparent;
  animation: nf-spin 0.7s linear infinite;
}
button.primary, .button.primary,
button.accent, .button.accent { --button-spinner: #ffffff; }
button.danger, .button.danger { --button-spinner: var(--danger); }
@keyframes nf-spin { to { transform: rotate(360deg); } }
