/* Jhen.digitals landing page. Mobile-first; system fonts only (no third-party requests). */

:root {
  --bg: #f7f6f2;
  --bg-alt: #efede6;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #565c6b;
  --line: #e2e0d8;
  --brand: #4338ca;
  --brand-hover: #3730a3;
  --brand-ink: #ffffff;
  --brand-soft: #eceefe;
  --accent: #d98a1c;
  --ok: #157f3b;
  --ok-soft: #e6f4ea;
  --err: #b42318;
  --err-soft: #fdecea;
  --pending: #8a5a00;
  --pending-soft: #fff4dc;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 8px 24px rgba(22, 24, 29, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #13161c;
    --surface: #181b22;
    --ink: #eceef2;
    --muted: #a3a9b7;
    --line: #2a2f3a;
    --brand: #8f8bff;
    --brand-hover: #a9a6ff;
    --brand-ink: #0f1115;
    --brand-soft: #1f2142;
    --accent: #f0b04d;
    --ok: #4ade80;
    --ok-soft: #12291b;
    --err: #f87171;
    --err-soft: #2d1414;
    --pending: #f5c56b;
    --pending-soft: #2a2110;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--accent); }
.wordmark-small { font-size: 1rem; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.nav-link { display: none; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-link:hover { color: var(--ink); }
@media (min-width: 768px) { .nav-link { display: inline; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--brand); color: var(--brand-ink);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--brand-hover); color: var(--brand-ink); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.65; cursor: progress; }
.button-small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--surface); color: var(--ink); }
.button-block { width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 56px;
  background:
    radial-gradient(600px 300px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(500px 280px at -10% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 56px; }
}
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
.lead { margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-actions .button { flex: 0 0 auto; } }
.disclosure-inline { margin-top: 20px; font-size: 0.875rem; color: var(--muted); max-width: 36em; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.hero-card-title { font-weight: 700; margin-bottom: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-soft);
  position: relative;
}
.check::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px;
  border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.hero-card-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; }
.section-sub { margin-top: 12px; color: var(--muted); }
.section-note { margin-top: 24px; font-size: 0.875rem; color: var(--muted); }

.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.info-card h3 { font-size: 1.1rem; }
.info-card.pending { border-style: dashed; }
.badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 10px; border-radius: 999px; background: var(--pending-soft); color: var(--pending);
}
.placeholder { color: var(--muted); font-size: 0.95rem; font-style: italic; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.step p { color: var(--muted); }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800;
}

/* Form */
.form-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.disclosure-box {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  font-size: 0.925rem; color: var(--muted);
}
.disclosure-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 20px;
}
@media (min-width: 640px) { .form-card { padding: 32px; } }
form { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 650; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 8px; }
input[type="text"], input[type="email"], select {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: 0.85rem; min-height: 0; }
.field-error:empty { display: none; }

.choice-grid { display: grid; gap: 10px; }
@media (min-width: 480px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); font-weight: 500; font-size: 0.925rem;
}
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
fieldset[aria-invalid="true"] .choice { border-color: var(--err); }

.consent { display: grid; gap: 4px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.925rem; }
.checkbox input { accent-color: var(--brand); width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
.hint { font-size: 0.85rem; color: var(--muted); }
.consent .hint { padding-left: 32px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.privacy-note { font-size: 0.85rem; color: var(--muted); }

.form-status { font-size: 0.925rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--err); background: var(--err-soft); padding: 10px 12px; border-radius: var(--radius-sm); }

.success { display: grid; gap: 14px; text-align: center; }
.success[hidden] { display: none; }
.success h3 { font-size: 1.5rem; }
.success h3:focus { outline: none; }
.success-icon {
  justify-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); position: relative;
}
.success-icon::after {
  content: ""; position: absolute; left: 21px; top: 13px; width: 12px; height: 22px;
  border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.link-text { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: grid; gap: 20px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr; } .footer-copy { grid-column: 1 / -1; } }
.footer-text { margin-top: 10px; color: var(--muted); font-size: 0.875rem; max-width: 44em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.925rem; align-content: start; }
@media (min-width: 768px) { .footer-links { flex-direction: column; gap: 8px; } }
.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* Privacy page */
.doc { max-width: 760px; padding: 48px 16px 72px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.draft-banner {
  margin: 16px 0 24px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--pending-soft); color: var(--pending); font-weight: 600; font-size: 0.925rem;
}
