/* CDL Agent — shared site system (Linear/Stripe/Resend-inspired dark) */
:root {
  --bg: #0b0d10;
  --bg-elevated: #11141a;
  --surface: #151921;
  --surface-hover: #1a1f2a;
  --border: rgba(240, 180, 41, 0.14);
  --border-strong: rgba(240, 180, 41, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --fg: #f4f1ea;
  --muted: #9a9488;
  --muted-bright: #c4bdb0;
  --amber: #f0b429;
  --amber-soft: rgba(240, 180, 41, 0.12);
  --ink: #1a1204;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 32px rgba(0,0,0,0.35);
  --max: 68rem;
  --measure: 40rem;
  --nav-h: 4rem;
  --space: 0.5rem;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}
body {
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(240, 180, 41, 0.07) 0%, transparent 55%),
    radial-gradient(600px 400px at 100% 0%, rgba(80, 60, 20, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0b0d10 0%, #07080a 100%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffc94a; }
strong { color: var(--fg); font-weight: 650; }

/* Layout shells */
.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}
.shell-narrow {
  width: min(var(--measure), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Sticky nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(11, 13, 16, 0.78);
  border-bottom: 1px solid var(--border-subtle);
}
.site-nav-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand:hover { color: var(--fg) !important; opacity: 0.92; }
.brand-mark {
  width: 1.35rem;
  height: 1.75rem;
  flex-shrink: 0;
  background: repeating-linear-gradient(180deg, var(--amber) 0 8px, transparent 8px 12px);
  border-radius: 2px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}
.nav-links a {
  color: var(--muted-bright);
  font-weight: 550;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  padding: 0.4rem 0.15rem;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem !important;
  background: var(--amber);
  color: var(--ink) !important;
  border-radius: 0.5rem;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
}
.nav-cta:hover { background: #ffc94a; color: var(--ink) !important; }

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

/* Type */
.kicker {
  color: var(--amber);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}
h1, h2, h3 {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 6.5vw, 3.35rem);
}
h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: -0.025em;
}
h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  color: var(--muted-bright);
  margin: 0 0 1.5rem;
  line-height: 1.5;
  max-width: 36rem;
}
p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.fine {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.addr { color: var(--fg); font-weight: 650; }

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.25rem 0 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: 0.6rem;
  letter-spacing: -0.015em;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 4px 16px rgba(240, 180, 41, 0.2);
}
.btn-primary:hover {
  background: #ffc94a;
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--amber);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}
.btn-ghost:hover {
  background: var(--amber-soft);
  color: #ffc94a;
  box-shadow: inset 0 0 0 1.5px var(--amber);
}
.btn-sm {
  min-height: 2.65rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.95rem;
}

/* Cards */
.card {
  padding: 1.5rem 1.4rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.card p:last-child { margin-bottom: 0; }

/* Sections */
.section {
  padding: 3.5rem 0 0;
}
.section-head {
  margin-bottom: 1.75rem;
}
.section-head .lede { margin-bottom: 0; }
.divider {
  height: 1px;
  background: var(--border-subtle);
  border: 0;
  margin: 3.5rem 0 0;
}

/* Grid */
.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}
.grid-2 {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem; }
}
.grid-tips {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-tips { grid-template-columns: repeat(2, 1fr); }
}

/* Step cards */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0;
}
.step-card h3 { margin-bottom: 0.4rem; }
.step-card p { font-size: 0.98rem; margin: 0; }

/* Tip link cards */
.tip-card {
  display: block;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.tip-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
  color: inherit !important;
}
.tip-card .kicker { margin-bottom: 0.5rem; font-size: 0.72rem; }
.tip-card h3 {
  color: var(--fg);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.tip-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 3.25rem 0 0.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding-top: 1rem;
  }
}
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.proof-strip li {
  color: var(--muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.proof-strip li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 99px;
  background: var(--amber);
  opacity: 0.85;
  flex-shrink: 0;
}

/* Phone / SMS mock — the product preview */
.phone {
  width: min(100%, 20.5rem);
  margin: 0 auto;
  border-radius: 1.65rem;
  background: #0e1014;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 24px 48px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.05) inset;
  overflow: hidden;
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #12151c;
}
.phone-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #f0b429 0%, #b8860b 100%);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
.phone-meta { min-width: 0; }
.phone-meta strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}
.phone-meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.phone-thread {
  padding: 1rem 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 17rem;
  background:
    radial-gradient(300px 180px at 50% 0%, rgba(240,180,41,0.05), transparent 70%),
    #0e1014;
}
.bubble {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--fg);
}
.bubble-in {
  align-self: flex-start;
  background: #1c2230;
  border-bottom-left-radius: 0.3rem;
}
.bubble-out {
  align-self: flex-end;
  background: #2a2314;
  border: 1px solid var(--border);
  border-bottom-right-radius: 0.3rem;
}
.bubble-time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.85;
}
.phone-compose {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem 0.9rem;
  border-top: 1px solid var(--border-subtle);
  background: #12151c;
}
.phone-input {
  flex: 1;
  min-height: 2.35rem;
  border-radius: 999px;
  background: #1a1f2a;
  border: 1px solid var(--border-subtle);
  color: var(--muted-bright);
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  display: flex;
  align-items: center;
}
.phone-send {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Ordered steps (article / lane-check) */
.steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}
.steps li {
  margin: 0 0 0.55rem;
  padding-left: 0.15rem;
}
.steps li::marker { color: var(--amber); font-weight: 700; }

/* Article */
.article main.shell-narrow,
main.article {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
}
.article h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.55rem);
}
.article h2 {
  margin-top: 1.85rem;
  font-size: 1.2rem;
}

/* CTA band */
.cta-band {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(240,180,41,0.08) 0%, transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band .actions { margin-bottom: 0.75rem; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 2.75rem;
}
.site-footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
}
.site-footer a {
  color: var(--muted-bright);
  font-weight: 550;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--amber); }
.site-footer .foot-note {
  width: 100%;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tip-card { transition: none; }
  .btn-primary:hover, .tip-card:hover { transform: none; }
}
