/* =========================================================
   dmarc.cc — Phase 2 Redesign
   Aesthetic: editorial skate-zine meets technical precision
   Mascot: Nox (halftone, black/cream/orange)
   ========================================================= */

/* ---- Tokens ------------------------------------------- */
:root {
  /* Brand anchor */
  --color-orange: #F97B22;
  --color-orange-deep: #E16A15;
  --color-cream: #F6F3ED;
  --color-cream-deep: #ECE6D8;
  --color-dark: #0D0D0D;
  --color-dark-soft: #1A1A1A;

  /* Status palette (per brief) */
  --color-mint: #7FD4A6;
  --color-mint-deep: #5BB888;
  --color-coral: #FF8B7A;
  --color-coral-deep: #E66E5D;
  --color-lavender: #B8A4E3;
  --color-sky: #7EC8E3;

  /* Text */
  --text-primary: #0D0D0D;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-on-dark: #F6F3ED;

  /* Surface */
  --surface-page: #F6F3ED;
  --surface-card: #FFFFFF;
  --surface-dark: #0D0D0D;

  /* Border */
  --border-subtle: rgba(13, 13, 13, 0.08);
  --border-medium: rgba(13, 13, 13, 0.16);
  --border-strong: rgba(13, 13, 13, 0.6);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-page);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 96px; /* space for sticky bar */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease-out-soft);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

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

::selection {
  background: var(--color-orange);
  color: var(--color-cream);
}

/* ---- Grain overlay ------------------------------------ */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---- Nav ---------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 237, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.nav__brand {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.nav__nox {
  width: 96px;
  height: 96px;
  display: block;
  flex-shrink: 0;
  margin: 0 0 -28px;
  object-fit: contain;
  pointer-events: none;
}

.brand-dot {
  color: var(--color-orange);
}

.nav__logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1;
  /* Image is 96px with ~10px transparent space below the wheels.
     Image overhang = -28px → layout bottom y=68; wheel ground at y≈86.
     Wordmark needs content-bottom at y=86 ⇒ margin-bottom = 68-86 = -18px. */
  margin-bottom: -18px;
}

.nav__sep {
  color: var(--text-muted);
  font-weight: 400;
}

.nav__by {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 14px;
}

.nav__sh {
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.nav__sh::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out-soft);
}

.nav__sh:hover::after { transform: scaleX(1); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  color: var(--text-secondary);
}

.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  background: var(--color-dark);
  color: var(--color-cream) !important;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: background 160ms var(--ease-out-soft), transform 160ms var(--ease-out-soft);
}

.nav__cta:hover {
  background: var(--color-orange);
  transform: translateY(-1px);
}

/* ---- Hero --------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-9) var(--space-5) var(--space-7);
  overflow: hidden;
}

.hero__dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13, 13, 13, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.hero__copy { opacity: 0; animation: rise 800ms var(--ease-out-soft) 100ms forwards; }

.hero__title {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-5);
  color: var(--text-primary);
}

.hero__title--accent {
  color: var(--color-orange);
  position: relative;
  display: inline-block;
}

.hero__title--accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 4px;
  height: 8px;
  background: var(--color-orange);
  opacity: 0.18;
  z-index: -1;
  transform: skewY(-1deg);
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  margin: 0 0 var(--space-6);
  max-width: 50ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__sub-line {
  display: block;
}

.hero__sub-line--action {
  color: var(--text-primary);
  font-weight: 500;
}

.hero__sub-line--assurance {
  color: var(--text-muted);
  font-size: 0.95em;
}

/* ---- Mascot ------------------------------------------- */
.hero__mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: drop-in 900ms var(--ease-bounce) 300ms forwards;
}

.nox {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(13, 13, 13, 0.12));
}

.nox--hero {
  animation: bob 5s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(127, 212, 166, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(127, 212, 166, 0.08); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Tool input --------------------------------------- */
.tool {
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.04), 0 12px 32px -8px rgba(13, 13, 13, 0.08);
  transition: border-color 200ms var(--ease-out-soft), box-shadow 200ms var(--ease-out-soft);
  display: grid;
  gap: var(--space-3);
  max-width: 560px;
}

.tool:focus-within {
  border-color: var(--color-orange);
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.04), 0 0 0 4px rgba(249, 123, 34, 0.12), 0 12px 32px -8px rgba(13, 13, 13, 0.12);
}

.tool__inputwrap { display: grid; gap: var(--space-2); }

.tool__input {
  width: 100%;
  min-height: 120px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: transparent;
  color: var(--text-primary);
  padding: var(--space-3);
}

.tool__input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.tool__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.tool__counter {
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 160ms var(--ease-out-soft);
}

.tool__counter.is-active {
  color: var(--color-orange);
}

.tool__counter.is-over {
  color: var(--color-coral-deep);
}

.tool__sep { color: var(--border-medium); }

.tool__example,
.tool__upload {
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--border-medium);
  text-underline-offset: 3px;
  transition: color 160ms, text-decoration-color 160ms;
}

.tool__example:hover,
.tool__upload:hover {
  color: var(--color-orange);
  text-decoration-color: var(--color-orange);
}

.tool__submit {
  background: var(--color-orange);
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 14px var(--space-5);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: background 160ms var(--ease-out-soft), transform 160ms var(--ease-out-soft), box-shadow 160ms var(--ease-out-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 12px -2px rgba(249, 123, 34, 0.4);
}

.tool__submit:hover {
  background: var(--color-orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 20px -2px rgba(249, 123, 34, 0.5);
}

.tool__submit:active {
  transform: translateY(0);
}

.tool__submit svg {
  transition: transform 200ms var(--ease-out-soft);
}

.tool__submit:hover svg { transform: translateX(3px); }

/* ---- Trust strip -------------------------------------- */
.trust-strip {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: var(--space-7) auto 0;
  padding: var(--space-5) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-3);
  border-top: 1px dashed var(--border-medium);
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.trust-strip__num {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-orange);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.trust-strip__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-strip__sep {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* ---- Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: background 160ms, color 160ms, transform 160ms, box-shadow 160ms;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-orange);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(249, 123, 34, 0.35);
}

.btn--primary:hover {
  background: var(--color-orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(249, 123, 34, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn--ghost:hover {
  background: var(--color-dark);
  color: var(--color-cream);
  border-color: var(--color-dark);
}

.btn--block {
  width: 100%;
}

/* ---- Section titles ----------------------------------- */
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 var(--space-6);
}

/* ---- Results ------------------------------------------ */
.results {
  background: var(--surface-card);
  padding: var(--space-8) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  animation: slide-up 500ms var(--ease-out-soft);
  scroll-margin-top: 80px;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.results__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.results__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.results__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.results__notice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  margin: 0 0 var(--space-4);
  background: var(--color-cream);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
/* `display: flex` above otherwise overrides the HTML `hidden` attribute
   the JS uses to toggle this notice — restore the default hidden behaviour. */
.results__notice[hidden] {
  display: none;
}
.results__notice a {
  color: var(--color-orange);
  font-weight: 600;
}
.results__notice a:hover {
  text-decoration: underline;
}
.results__notice-close {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.results__notice-close:hover {
  color: var(--text-primary);
  background: rgba(13, 13, 13, 0.06);
}

.results__title span {
  font-variant-numeric: tabular-nums;
  color: var(--color-orange);
}

.results__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--surface-card);
}

.results__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results__table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 13, 13, 0.015);
}

.results__table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.results__table tr:last-child td { border-bottom: none; }

.results__table tr {
  transition: background 120ms;
}

.results__table tbody tr:hover {
  background: rgba(249, 123, 34, 0.02);
}

.th--actions, .td--actions { text-align: right; }

.td--domain {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 13px;
}

.td--record {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Status pills */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status--ok {
  background: rgba(127, 212, 166, 0.16);
  color: var(--color-mint-deep);
}

.status--ok::before { background: var(--color-mint-deep); }

.status--warn {
  background: rgba(255, 139, 122, 0.18);
  color: var(--color-coral-deep);
}

.status--warn::before { background: var(--color-coral-deep); }

.status--bad {
  background: rgba(13, 13, 13, 0.06);
  color: var(--text-secondary);
}

.status--bad::before { background: var(--text-muted); }

/* Animated entrance for status pills */
.results__table tbody tr {
  opacity: 0;
  animation: fade-in 400ms var(--ease-out-soft) forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.report-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-medium);
  padding-bottom: 1px;
  transition: color 160ms;
  font-weight: 500;
  white-space: nowrap;
}

.report-link:hover { color: var(--color-orange); border-bottom-color: var(--color-orange); }

.results__cta {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-cream);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.results__cta p {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

/* ---- How section -------------------------------------- */
.how {
  padding: var(--space-9) var(--space-5);
}

.how__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.how__card {
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: transform 200ms var(--ease-out-soft), box-shadow 200ms var(--ease-out-soft), border-color 200ms;
}

.how__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(13, 13, 13, 0.12);
  border-color: var(--color-orange);
}

.how__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-orange);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
}

.how__card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}

.how__card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- More section ------------------------------------- */
.more {
  background: var(--color-dark);
  color: var(--text-on-dark);
  padding: var(--space-9) var(--space-5);
  position: relative;
  overflow: hidden;
}

.more::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(246, 243, 237, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

.more__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}

.more .section__title {
  color: var(--text-on-dark);
}

.more__lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 243, 237, 0.75);
  margin: 0 0 var(--space-5);
  max-width: 56ch;
}

.more__lede strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

.more__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.more .btn--ghost {
  color: var(--text-on-dark);
  border-color: rgba(246, 243, 237, 0.2);
}

.more .btn--ghost:hover {
  background: var(--color-cream);
  color: var(--color-dark);
  border-color: var(--color-cream);
}

.more__stats {
  display: grid;
  gap: var(--space-4);
}

.stat {
  padding: var(--space-5);
  background: rgba(246, 243, 237, 0.04);
  border: 1px solid rgba(246, 243, 237, 0.08);
  border-radius: var(--r-lg);
}

.stat__num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__num span {
  font-size: 0.6em;
  color: rgba(249, 123, 34, 0.7);
}

.stat__label {
  font-size: 13px;
  color: rgba(246, 243, 237, 0.6);
  letter-spacing: 0.01em;
}

/* ---- Footer ------------------------------------------- */
.footer {
  background: var(--color-cream-deep);
  padding: var(--space-8) var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: var(--space-7);
}

.footer__brand {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}

/* Footer Nox (80px wave) has ~4px transparent space below the feet.
   Lift the wordmark+attribution stack by that amount so attribution
   baseline sits on the visual ground line where the feet rest. */
.footer__brand > div {
  margin-bottom: 4px;
}

.footer__nox {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.footer__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__by {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-wrap: pretty;
}

.footer__by a {
  color: var(--color-orange);
  font-weight: 600;
}

.footer__by a:hover { text-decoration: underline; }

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-self: end;
  text-align: right;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--color-orange);
}

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  text-align: center;
}

.footer__nox-says {
  font-style: italic;
}

/* ---- Sticky bottom bar -------------------------------- */
.sticky-bar {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 400ms var(--ease-out-soft), transform 400ms var(--ease-out-soft);
}

.sticky-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-bar.is-hidden {
  display: none;
}

.sticky-bar__inner {
  pointer-events: auto;
  background: var(--color-dark);
  color: var(--color-cream);
  border-radius: var(--r-xl);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 720px;
  width: 100%;
  box-shadow: 0 12px 40px -8px rgba(13, 13, 13, 0.35), 0 1px 0 rgba(246, 243, 237, 0.08) inset;
  position: relative;
}

.sticky-bar__nox {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  margin-left: -8px;
}

.sticky-bar__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sticky-bar__copy strong {
  font-size: 14px;
  font-weight: 700;
}

.sticky-bar__copy span {
  font-size: 12px;
  color: rgba(246, 243, 237, 0.6);
}

.sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.sticky-bar__call {
  font-size: 13px;
  color: rgba(246, 243, 237, 0.7);
  font-weight: 500;
}

.sticky-bar__call:hover {
  color: var(--color-cream);
}

.sticky-bar__close {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 18px;
  color: rgba(246, 243, 237, 0.4);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms, background 160ms;
}

.sticky-bar__close:hover {
  color: var(--color-cream);
  background: rgba(246, 243, 237, 0.08);
}

/* ---- Modals ------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 200ms var(--ease-out-soft);
}

.modal__panel {
  position: relative;
  background: var(--surface-card);
  border-radius: var(--r-xl);
  padding: var(--space-7);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px -12px rgba(13, 13, 13, 0.35);
  animation: modal-in 320ms var(--ease-out-snap);
}
.modal__panel--narrow { max-width: 400px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: background 160ms, color 160ms;
}

.modal__close:hover {
  background: var(--color-cream-deep);
  color: var(--text-primary);
}

.modal__nox {
  width: 100px;
  height: auto;
  margin: 0 auto var(--space-3);
  display: block;
}

.modal__nox--lg {
  width: 160px;
}

.modal__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  text-align: center;
}

.modal__lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  text-align: center;
}

.modal__lede code {
  font-family: var(--font-mono);
  background: var(--color-cream);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--color-orange);
  font-weight: 600;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal__actions {
  display: flex;
  gap: var(--space-3);
  flex-direction: column;
}

.modal__fine {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  background: var(--surface-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(249, 123, 34, 0.12);
}

.field input.field__input--error,
.field textarea.field__input--error {
  border-color: #d3322a;
  box-shadow: 0 0 0 4px rgba(211, 50, 42, 0.10);
}

.field__error {
  font-size: 13px;
  color: #d3322a;
  margin: -4px 0 0;
  line-height: 1.4;
}

.field input[readonly] {
  background: var(--color-cream);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
}

.field--check {
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
}

.field--check input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-orange);
  margin: 0;
}

.field--check span {
  color: var(--text-secondary);
}

/* ---- Scan overlay ------------------------------------- */
.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(246, 243, 237, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.scan-overlay[hidden] { display: none; }

.scan-overlay__nox {
  width: 200px;
  height: auto;
  animation: scan-bob 1.6s ease-in-out infinite;
}

@keyframes scan-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.scan-overlay__copy {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.scan-overlay__dots {
  display: flex;
  gap: 6px;
}

.scan-overlay__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.scan-overlay__dots span:nth-child(2) { animation-delay: 0.2s; }
.scan-overlay__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.3); }
}

/* ---- Blog --------------------------------------------- */
.blog-hero {
  padding: var(--space-8) var(--space-5) var(--space-7);
  border-bottom: 1px solid var(--border-subtle);
}

.blog-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.blog-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}

.blog-hero__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 var(--space-4);
}

.blog-hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 60ch;
}

.blog {
  padding: var(--space-8) var(--space-5) var(--space-9);
}

.blog__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-6);
}

.post-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: transform 200ms var(--ease-out-soft), border-color 200ms var(--ease-out-soft), box-shadow 200ms var(--ease-out-soft);
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-orange);
  box-shadow: 0 16px 40px -12px rgba(13, 13, 13, 0.1);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.post-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(249, 123, 34, 0.1);
  color: var(--color-orange-deep);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.post-card__date {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.post-card__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(to right, var(--color-orange), var(--color-orange));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 240ms var(--ease-out-soft);
  padding-bottom: 2px;
}

@media (hover: hover) {
  .post-card__title a:hover {
    background-size: 100% 2px;
  }
}

.post-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.post-card__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-orange);
}

.post-card__more:hover {
  color: var(--color-orange-deep);
}

.post-card--featured {
  border: 1px solid var(--color-dark);
  background: var(--color-dark);
  color: var(--text-on-dark);
  padding: var(--space-7);
}

.post-card--featured .post-card__title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: var(--space-3);
}

.post-card--featured .post-card__title a {
  color: var(--text-on-dark);
}

.post-card--featured .post-card__excerpt {
  color: rgba(246, 243, 237, 0.7);
  font-size: 16px;
}

.post-card--featured .post-card__tag {
  background: rgba(249, 123, 34, 0.18);
  color: var(--color-orange);
}

.post-card--featured .post-card__date {
  color: rgba(246, 243, 237, 0.55);
}

.post-card--featured:hover {
  border-color: var(--color-orange);
  background: var(--color-dark);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

.is-current {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

/* ---- Status pages (404, maintenance) ------------------ */
.status-page {
  min-height: calc(100vh - 80px);
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
}

.status-page__nox {
  width: 240px;
  height: auto;
  margin-bottom: var(--space-3);
  filter: drop-shadow(0 12px 32px rgba(13, 13, 13, 0.12));
  animation: bob 5s ease-in-out infinite;
}

.status-page__code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin-bottom: var(--space-2);
}

.status-page__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  max-width: 14ch;
}

.status-page__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 0 var(--space-4);
}

.status-page__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Responsive --------------------------------------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero__mascot {
    /* Small Nox above the headline on mobile */
    order: -1;
    max-width: 140px;
    margin: 0 auto;
  }

  .nox--hero { max-width: 140px; }

  .hero { padding: var(--space-5) var(--space-4) var(--space-5); }

  .hero__title { font-size: clamp(32px, 7vw, 48px); }

  .more__inner {
    grid-template-columns: 1fr;
  }

  .more__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer__links {
    justify-self: start;
    text-align: left;
  }

  .sticky-bar__copy span { display: none; }

  .sticky-bar__call { display: none; }

  .nav__links a:not(.nav__cta) { display: none; }

  .nav__cta { padding: 6px 12px; font-size: 13px; }
}

@media (max-width: 600px) {
  .nav__by { display: none; }
  .nav__sep { display: none; }
  .nav__sh { display: none; }

  .nav__inner {
    padding: var(--space-3) var(--space-4);
  }

  .nav__nox {
    width: 72px;
    height: 72px;
    margin: 0 0 -18px;
  }

  .nav__logo {
    /* 72px image, ~7px below wheels, image overhang -18 → layout bottom 54,
       wheel ground at y≈64 ⇒ margin-bottom = 54-64 = -10px */
    margin-bottom: -10px;
  }

  .trust-strip {
    padding: var(--space-4) var(--space-4);
    margin-top: var(--space-5);
  }

  .trust-strip__sep { display: none; }

  .trust-strip__item {
    flex: 1 0 calc(50% - 8px);
  }

  .more__stats {
    grid-template-columns: 1fr;
  }

  .footer__links {
    justify-self: stretch;
    text-align: left;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .modal__panel {
    padding: var(--space-5);
  }

  .sticky-bar {
    bottom: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
  }

  .sticky-bar__inner {
    padding: var(--space-3);
  }

  .sticky-bar__nox { width: 44px; margin-left: -4px; }

  .results__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ---- Reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nox--hero, .scan-overlay__nox {
    animation: none !important;
  }
}

/* ---- Focus visible ------------------------------------ */
*:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---- DMARC hint (code snippet in lead modal) --------- */
.dmarc-hint {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-cream);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  padding: 10px 12px;
  color: var(--text-primary);
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow-x: auto;
}
.dmarc-hint strong {
  font-weight: 700;
}
#lead-domain-hint {
  color: var(--color-orange);
  font-weight: 600;
}
.field__help {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---- Turnstile widget container ---------------------- */
.cf-turnstile {
  margin: var(--space-2) 0;
  min-height: 65px;
}

/* ---- Results raw-record expansion -------------------- */
.results__table tbody tr.results__expand-row {
  background: var(--color-cream);
  cursor: default;
}
.results__table tbody tr.results__expand-row:hover {
  background: var(--color-cream);
}
.results__expand-row td {
  padding: var(--space-3) var(--space-4);
}
.results__raw {
  display: grid;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.results__raw-line {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-3);
  align-items: baseline;
}
.results__raw-label {
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  font-family: var(--font-sans);
}
.results__raw-value {
  word-break: break-all;
  white-space: pre-wrap;
}
.results__raw-value--empty {
  color: var(--text-muted);
  font-style: italic;
}
.results__expand-toggle {
  background: none;
  border: none;
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.results__expand-toggle:hover {
  text-decoration: underline;
}
.results__action-sep {
  color: rgba(13, 13, 13, 0.32);
  font-size: 12px;
  margin: 0 10px;
  user-select: none;
}

/* ---- Contact modal (cream-themed, email-as-hero) --- */
.modal__panel--contact {
  background: var(--color-cream);
  max-width: 480px;
  padding: var(--space-6) var(--space-6) var(--space-5);
}

.contact-modal__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 10px;
  text-align: center;
}
.contact-modal__lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
  text-align: center;
}

.contact-hero {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 20px;
  background: rgba(13, 13, 13, 0.05);
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: 12px;
  margin-bottom: var(--space-4);
}
.contact-hero__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.contact-hero__icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.contact-hero__email {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  user-select: all;
  word-break: break-all;
  line-height: 1.2;
}
.contact-hero__copy {
  flex-shrink: 0;
  background: var(--color-orange);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms var(--ease-out-soft), transform 160ms var(--ease-out-soft);
  min-height: 40px;
}
.contact-hero__copy:hover {
  background: var(--color-orange-deep);
  transform: translateY(-1px);
}
.contact-hero__copy.is-copied {
  background: #2f9d6b;
}
.contact-hero__copy.is-copied:hover {
  background: #2f9d6b;
  transform: none;
}
.contact-hero__copy-label {
  white-space: nowrap;
}

/* Outlined ghost variant for the mailto secondary CTA */
.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  font-weight: 600;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 160ms var(--ease-out-soft), color 160ms var(--ease-out-soft);
}
.btn--outline:hover {
  background: var(--color-dark);
  color: var(--color-cream);
}

.contact-modal__mailto {
  margin-top: 4px;
}

@media (max-width: 480px) {
  .modal__panel--contact {
    padding: var(--space-5);
  }
  .contact-modal__title { font-size: 24px; }
  .contact-modal__lede { font-size: 15px; }
  .contact-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .contact-hero__email { font-size: 19px; }
  .contact-hero__copy {
    width: 100%;
    padding: 12px;
    min-height: 44px;
    font-size: 15px;
  }
}

/* ---- Blog page (index — hero + posts share one column) --- */
.blog-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-9);
}
.blog-page__hero {
  padding-bottom: var(--space-7);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.blog-page__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin: 0 0 var(--space-3);
}
.blog-page__title {
  font-size: clamp(44px, 5.6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 var(--space-4);
  color: var(--text-primary);
}
.blog-page__sub {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 60ch;
}

/* ---- Blog list (inside .blog-page) ----------------- */
.blog-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-list__item + .blog-list__item {
  border-top: 1px solid var(--border-subtle);
}
.blog-list__link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--space-6) 0;
  transition: padding-left 200ms var(--ease-out-soft);
}
.blog-list__link:hover {
  padding-left: 4px;
}
.blog-list__link:hover .blog-list__title { color: var(--color-orange); }
.blog-list__link:hover .blog-list__more { color: var(--color-orange-deep); }
.blog-list__date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-list__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
  transition: color 160ms var(--ease-out-soft);
}
.blog-list__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
  max-width: 62ch;
}
.blog-list__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-orange);
  letter-spacing: -0.005em;
  transition: color 160ms var(--ease-out-soft);
}

/* ---- Post page ------------------------------------- */
.post {
  padding: var(--space-7) var(--space-5) var(--space-8);
}
.post__article {
  max-width: 720px;
  margin: 0 auto;
}
.post__breadcrumb {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--space-6);
  transition: color 160ms var(--ease-out-soft);
}
.post__breadcrumb:hover {
  color: var(--color-orange);
}
.post__header {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.post__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin: 0 0 var(--space-4);
}
.post__title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 var(--space-4);
  color: var(--text-primary);
}
.post__lede {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}

/* ---- Post body typography -------------------------- */
.post__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
}
.post__body > *:first-child { margin-top: 0; }
.post__body p {
  margin: 0 0 20px;
}
.post__body h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 56px 0 var(--space-4);
  color: var(--text-primary);
}
.post__body h2 + p { margin-top: 0; }
.post__body h3 {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 40px 0 var(--space-3);
  color: var(--text-primary);
}
.post__body a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.post__body a:hover {
  text-decoration-thickness: 2px;
}
.post__body strong {
  font-weight: 700;
  color: var(--text-primary);
}
.post__body em {
  font-style: italic;
}
.post__body ul, .post__body ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}
.post__body li {
  margin-bottom: var(--space-2);
}
.post__body li > p { margin-bottom: var(--space-2); }
.post__body blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--color-orange);
  background: var(--color-cream);
  font-style: italic;
  color: var(--text-secondary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--color-cream);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.post__body pre {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  background: var(--color-dark);
  color: var(--color-cream);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
.post__body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.post__body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-6) 0;
}
.post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 14px;
}
.post__body th, .post__body td {
  border: 1px solid var(--border-medium);
  padding: 8px 12px;
  text-align: left;
}
.post__body th {
  background: var(--color-cream);
  font-weight: 700;
}

/* ---- Post CTA card --------------------------------- */
.post__cta {
  margin: var(--space-7) 0 var(--space-5);
  padding: var(--space-5) var(--space-5);
  background: var(--color-cream);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-lg, 14px);
  text-align: left;
}
.post__cta--security {
  border-left: 4px solid var(--color-orange);
}
.post__cta--deliverability {
  border-left: 4px solid var(--color-dark);
}
.post__cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}
.post__cta-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}
.post__cta-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-orange);
  text-decoration: none;
  border-bottom: 1px solid var(--color-orange);
  padding-bottom: 1px;
  transition: color 160ms var(--ease-out-soft);
}
.post__cta-link:hover {
  color: var(--color-orange-deep);
  border-bottom-color: var(--color-orange-deep);
}
.post__back {
  margin: var(--space-6) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post__back a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 160ms var(--ease-out-soft);
}
.post__back a:hover {
  color: var(--color-orange);
}

@media (max-width: 600px) {
  .post { padding: var(--space-5) var(--space-4) var(--space-7); }
  .post__body { font-size: 16px; line-height: 1.65; }
  .post__body p { margin-bottom: 18px; }
  .post__body h2 { margin-top: 44px; }
  .blog-page { padding: var(--space-5) var(--space-4) var(--space-7); }
  .blog-page__title { font-size: 40px; }
  .blog-page__hero { padding-bottom: var(--space-5); margin-bottom: var(--space-4); }
  .blog-list__link { padding: var(--space-5) 0; }
  .blog-list__title { font-size: 22px; }
}

/* ---- Phase 3 — tier indicator + verify modal + toast --- */
.tier-indicator {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.5;
}
.tier-indicator a, .tier-indicator button.tier-indicator__link {
  color: var(--color-orange);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.tier-indicator a:hover, .tier-indicator button.tier-indicator__link:hover {
  text-decoration: underline;
}
.tier-indicator__email {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Verification code input — large monospace, centered */
.verify-code-input {
  font-family: var(--font-mono) !important;
  font-size: 24px !important;
  letter-spacing: 0.4em !important;
  text-align: center !important;
  padding: 14px 12px !important;
}

/* Toast — bottom-center, slides up */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: var(--color-dark);
  color: var(--color-cream);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px -8px rgba(13, 13, 13, 0.4);
  opacity: 0;
  transition: opacity 200ms var(--ease-out-soft), transform 200ms var(--ease-out-soft);
  max-width: calc(100vw - 32px);
  text-align: center;
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast--success { background: #2f9d6b; }
.toast--error { background: #d3322a; }

/* Verification-expired notice — sits inside the verify-to-unlock modal so
   the user can't miss the reason the upgrade prompt suddenly reappeared. */
.modal__notice {
  background: rgba(211, 50, 42, 0.10);
  border: 1px solid rgba(211, 50, 42, 0.35);
  color: #b02820;
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin: 0 0 var(--space-4);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}
.modal__notice[hidden] { display: none; }

