/* ===================================================================
   DADBLOCK — Design tokens
   =================================================================== */

:root {
  /* ---- Light theme (default) ---- */
  --bg-primary: #F7F5F0;
  --bg-secondary: #EFEBE2;
  --bg-card: #FCFBF8;
  --text-primary: #1B1B18;
  --text-secondary: #55534B;
  --text-tertiary: #8A8778;
  --border-color: #DEDACC;
  --border-strong: #C9C4B2;

  --accent-sky: #38BDF8;
  --accent-blue: #1D4ED8;
  --accent-success: #10B981;
  --accent-danger: #EF4444;

  --shadow-soft: 0 1px 2px rgba(27, 27, 24, 0.04), 0 4px 12px rgba(27, 27, 24, 0.05);
  --shadow-hover: 0 2px 4px rgba(27, 27, 24, 0.06), 0 10px 24px rgba(27, 27, 24, 0.08);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg-primary: #14171C;
  --bg-secondary: #1B1F26;
  --bg-card: #1A1D23;
  --text-primary: #F2F0E9;
  --text-secondary: #ADA99C;
  --text-tertiary: #75726A;
  --border-color: #2C303A;
  --border-strong: #3A3F4B;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35);

  color-scheme: dark;
}

/* ===================================================================
   Reset
   =================================================================== */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

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

/* ===================================================================
   Background layers
   =================================================================== */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

[data-theme="dark"] #bg-canvas { opacity: 0.65; }

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

[data-theme="dark"] .grain-overlay { opacity: 0.04; }

main, header, footer { position: relative; z-index: 2; }

/* ===================================================================
   Typography helpers
   =================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.eyebrow.center { display: flex; justify-content: center; }

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-success) 20%, transparent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.section-title.center { text-align: center; }

/* ===================================================================
   Nav
   =================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
}

.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

[data-theme="dark"] .logo-mark { color: var(--accent-sky); }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding-top: 0.15rem;
}

.logo-text.small { font-size: 1.3rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: rotate(-8deg);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent-blue);
  color: #FCFBF8;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: color-mix(in srgb, var(--accent-blue) 90%, black);
}

.btn-primary:active { transform: translateY(0); }

.btn-nav {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
}

.btn-nav:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

[data-theme="dark"] .btn-nav:hover { color: var(--accent-sky); border-color: var(--accent-sky); }

.btn-large {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* ===================================================================
   Hero
   =================================================================== */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 1.75rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-bottom: 1.5rem;
}

.underline-accent {
  position: relative;
  color: var(--accent-blue);
  white-space: nowrap;
}

[data-theme="dark"] .underline-accent { color: var(--accent-sky); }

.underline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.11em;
  background: var(--accent-sky);
  opacity: 0.4;
  border-radius: 2px;
  z-index: -1;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; }

.hero-microcopy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ---- Hero console mock ---- */

.hero-console {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.console-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.console-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-left: 0.6rem;
  letter-spacing: 0.03em;
}

.console-body {
  padding: 1.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.console-line {
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.55rem;
}

.console-line .prompt { color: var(--text-tertiary); flex-shrink: 0; }
.console-line.safe .prompt { color: var(--accent-success); }
.console-line.danger .prompt { color: var(--accent-danger); }
.console-line.danger { color: var(--accent-danger); }

.console-line.typing { color: var(--text-primary); }
.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-sky);
}

@keyframes blink { 50% { opacity: 0; } }

/* ===================================================================
   Features
   =================================================================== */

.features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.75rem 6rem;
}

.features .section-title { margin: 0 auto 3.5rem; max-width: 34ch; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card-stamp {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .feature-icon { color: var(--accent-sky); }

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ===================================================================
   CTA
   =================================================================== */

.cta-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem 7rem;
}

.cta-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 4.5rem) 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-box .eyebrow { margin-bottom: 1rem; }
.cta-box .section-title { margin-bottom: 1rem; }

.cta-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 40ch;
  margin-bottom: 2.25rem;
}

/* ===================================================================
   Footer
   =================================================================== */

.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.25rem 1.75rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-align: center;
  flex: 1;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--text-primary); }

/* ===================================================================
   Scroll reveal base state (GSAP controls the animation in)
   =================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.no-js [data-reveal] { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .hero-console { transform: none; order: -1; max-width: 480px; }

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

  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 0.9rem 1.25rem; }
  .btn-nav { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===================================================================
   PRIVACY PAGE
   =================================================================== */

/* ---- Legal hero ---- */

.legal-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.75rem 1rem;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 0.9rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.legal-intro {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ---- Article shell ---- */

.legal-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* ---- Section block ---- */

.legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.legal-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.legal-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.legal-icon {
  width: 34px;
  height: 34px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

[data-theme="dark"] .legal-icon { color: var(--accent-sky); }

.legal-section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.legal-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: color-mix(in srgb, var(--accent-blue) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-blue) 30%, transparent);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

[data-theme="dark"] .legal-tag {
  color: var(--accent-sky);
  background: color-mix(in srgb, var(--accent-sky) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-sky) 32%, transparent);
}

.legal-tag-alt {
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.legal-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-section p + p { margin-top: 0.85rem; }

/* ---- Fact list (echoes the hero console's ✓ / ✕ readout) ---- */

.fact-list {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fact-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.fact-list li.yes::before {
  content: "✓";
  color: var(--accent-success);
  background: color-mix(in srgb, var(--accent-success) 14%, transparent);
}

.fact-list li.no::before {
  content: "✕";
  color: var(--accent-danger);
  background: color-mix(in srgb, var(--accent-danger) 12%, transparent);
}

.fact-list strong { color: var(--text-primary); font-weight: 700; }

/* ---- Subsections within Section 02 ---- */

.legal-subsection {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.legal-subsection:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.legal-subsection h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-footnote {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Closing promise box ---- */

.promise-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promise-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-blue);
  margin-bottom: 1.1rem;
}

[data-theme="dark"] .promise-icon { color: var(--accent-sky); }

.promise-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.promise-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-blue);
  transition: gap 0.2s ease, color 0.2s ease;
}

.back-home svg { width: 18px; height: 18px; }

[data-theme="dark"] .back-home { color: var(--accent-sky); }

.back-home:hover { gap: 0.75rem; }

/* ---- Responsive ---- */

@media (max-width: 560px) {
  .legal-section-head { align-items: flex-start; }
  .legal-num { order: 3; margin-left: auto; }
}




/* ===================================================================
   GOODBYE PAGE — additions
   =================================================================== */

/* ---- Hero ---- */
 
.goodbye-hero {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
 
.dot-neutral {
  background: var(--text-tertiary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-tertiary) 20%, transparent);
}
 
.goodbye-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 1.1rem;
}
 
.goodbye-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 46ch;
}
 
/* ---- Form section ---- */
 
.form-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.75rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
 
/* Tally renders its own form with dark text on a light background —
   it isn't theme-aware. Rather than fight that with a transparent
   embed (which goes unreadable in dark mode), we give it a fixed,
   deliberately light panel of its own. The surrounding frame still
   adapts to the site theme, so it reads as "a document sitting on
   the page" rather than a mismatched, blended element. */
.form-card {
  width: 100%;
  background: #FCFBF8;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  padding: 0;
}
 
/* Responsive, non-cropping iframe. Tally's embed.js listens for a
   postMessage from the form and resizes this element's height to match
   its real content — the min-height/100vh values below are just the
   sane fallback before that script finishes loading, so the form is
   never boxed into a fixed, scrollable crop. */
.form-card iframe {
  width: 100%;
  height: 100vh;
  min-height: 800px;
  border: none;
  display: block;
  background: #FCFBF8;
}
 
.form-footnote {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-tertiary);
  text-align: center;
}
 
.form-footnote a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
 
[data-theme="dark"] .form-footnote a { color: var(--accent-sky); }
 
/* ---- Responsive ---- */
 
@media (max-width: 560px) {
  .form-card iframe { min-height: 640px; }
}