/* Warm dark-orange landing page. Accent colors come from Site:AccentFrom / AccentTo via --accent-1 / --accent-2. */
:root {
  --bg: #24160f;
  --bg-2: #4a2a1a;
  --ink: #fff4ec;
  --muted: #e0c9bb;
  --faint: #a88d7e;
  --line: rgba(255, 214, 184, 0.16);
  --card: rgba(66, 38, 24, 0.55);
  --error: #ffb4a1;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent-1) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--accent-1); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Background glow + grain ---------- */
.glow { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.glow span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  will-change: transform;
}
.glow__a {
  width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.glow__b {
  width: 55vmax; height: 55vmax; right: -20vmax; top: 10vmax;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.glow__c {
  width: 45vmax; height: 45vmax; left: 20vmax; bottom: -30vmax;
  background: radial-gradient(circle, #ffb347 0%, transparent 65%);
  opacity: 0.35;
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, -4vmax, 0) scale(0.92); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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)'/%3E%3C/svg%3E");
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent-1) 60%, transparent);
}
.logo__text { font-family: var(--display); font-style: italic; font-size: 1.55rem; letter-spacing: 0.01em; line-height: 1; }
.badge {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}

/* ---------- Main ---------- */
.main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 11vh, 120px) 0 56px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-1);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-1) 70%, transparent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.headline {
  margin: 0; max-width: 14ch;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.9rem, 9vw, 6.4rem); line-height: 0.98; letter-spacing: -0.02em;
  text-wrap: balance;
}
.headline em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent-1) 10%, #ffc46b 55%, var(--accent-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}

.lead {
  max-width: 36rem; margin: 28px 0 0; color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.15rem); text-wrap: pretty;
}

/* ---------- Signup card ---------- */
.card {
  width: 100%; max-width: 540px; margin-top: 44px; padding: 28px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 22px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  scroll-margin-top: 24px;
}

.signup__title { margin: 0 0 16px; font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }

.signup__row { display: flex; gap: 10px; }

.input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(20, 10, 4, 0.3); border: 1px solid var(--line); border-radius: 14px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--faint); }
.input:focus {
  border-color: color-mix(in srgb, var(--accent-1) 80%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-1) 22%, transparent);
}
.input--error { border-color: var(--error); }

.button {
  height: 52px; padding: 0 22px; flex-shrink: 0;
  font: inherit; font-size: 0.98rem; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: 0; border-radius: 14px; cursor: pointer;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent-1) 80%, transparent);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.button:hover { filter: brightness(1.08); box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--accent-1) 95%, transparent); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.consent {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px;
  font-size: 0.86rem; line-height: 1.5; color: var(--muted); cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 20px; height: 20px; margin: 1px 0 0;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 6px;
  background: rgba(20, 10, 4, 0.3); cursor: pointer; display: grid; place-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.consent input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0);
  transition: transform 0.12s;
}
.consent input:checked { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); border-color: transparent; }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }

.error { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--error); }
.error:empty { display: none; }
.field-validation-valid { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding: 6px 4px; }
.thanks__icon {
  display: inline-grid; place-content: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 30px -4px color-mix(in srgb, var(--accent-1) 80%, transparent);
}
.thanks h2 { margin: 0 0 6px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.9rem; }
.thanks p { margin: 0; color: var(--muted); }

/* ---------- Features ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 24px 0 72px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--line);
}
.feature { padding: 28px 26px; background: rgba(48, 28, 18, 0.72); }
.feature h3 {
  margin: 0 0 8px; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.45rem; line-height: 1.2;
}
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Simple text pages ---------- */
.prose { max-width: 640px; margin: 0 auto; padding: clamp(32px, 8vh, 80px) 0 72px; }
.prose--center { text-align: center; }
.prose h1 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.05; margin: 0 0 20px; }
.prose h2 { font-size: 1.05rem; margin: 34px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose form { margin: 24px 0; }
.back { display: inline-block; margin-top: 28px; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  padding: 24px; font-size: 0.82rem; color: var(--faint);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--muted); }
.footer__dot { opacity: 0.6; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .topbar { padding: 18px 16px; }
  .main { padding: 0 16px; }
  .card { padding: 20px; border-radius: 18px; }
  .signup__row { flex-direction: column; }
  .input { flex: none; width: 100%; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .glow span, .pulse { animation: none; }
}
