/* =========================================================================
   Talionix — Coming Soon
   Design system tokens + all component styles for index.php and privacy.php.
   Concept: Authoritative Blueprint (deep indigo nav, teal actions,
   cool near-white surface, Cormorant display + Plus Jakarta Sans UI).
   ========================================================================= */

:root {
  /* Surfaces */
  --surface-page:   #F9FAFB;
  --surface-raised: #FFFFFF;
  --surface-nav:    #1E1B4B;
  --surface-chip-blue: #EFF6FF;
  --surface-chip-grey: #F3F4F6;

  /* Borders */
  --border-subtle:  #D1D5DB;
  --border-default: #9CA3AF;

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #4B5563;
  --text-muted:     #808894;
  --text-inverse:   #FFFFFF;
  --text-chip-blue: #1E3A8A;
  --text-chip-grey: #374151;

  /* Action + status */
  --action-primary: #0F766E;
  --action-primary-hover: #115E59;
  --status-error:   #DC2626;

  /* Typography */
  --ff-display: "Cormorant Garamond", Georgia, serif;
  --ff-ui:      "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius-card: 4px;
  --radius-sharp: 0;

  /* Shadow */
  --shadow-card:
    0 1px 2px rgb(17 24 39 / .04),
    0 12px 32px -4px rgb(17 24 39 / .06);
  --shadow-focus-ring: 0 0 0 3px rgb(15 118 110 / .20);
}

/* ---------- Reset + base ---------- */

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--ff-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--action-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Screen-reader-only (for labels) */
.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;
}

/* ---------- Nav ---------- */

.nav {
  background: var(--surface-nav);
  color: var(--text-inverse);
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: clamp(24px, 4vw, 48px);
}

.nav__wordmark {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.4px;
  color: var(--text-inverse);
  text-decoration: none;
}
.nav__wordmark:hover { text-decoration: none; }

/* ---------- DS Alert / Banner (Info variant on confirmed.php) ----------
   Spec from docs/design/design-system.md (#15 Alert / Banner):
   "Full-width. 4px radius. Left accent border in status colour. Semantic bg tint."
   Sits below masthead, capped at content max-width. */

.alert-wrap {
  max-width: 1248px;
  margin: 24px auto 0;
  padding: 0 clamp(24px, 4vw, 48px);
}
.alert {
  border: 1px solid var(--border-subtle);
  border-left-width: 4px;
  border-radius: var(--radius-card);
  padding: 12px 16px;
  font-family: var(--ff-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}
.alert__text { margin: 0; }
.alert__text strong { font-weight: 600; margin-right: 4px; }

.alert--info {
  background: #EFF6FF;             /* status-info-subtle */
  border-color: #BFDBFE;           /* blue-200 */
  border-left-color: #2563EB;      /* status-info */
}
.alert--success {
  background: #CCFBF1;             /* status-success-subtle */
  border-color: #99F6E4;           /* teal-200 */
  border-left-color: #16A34A;      /* status-success */
}

/* ---------- Masthead strip ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.masthead__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
}
.masthead__item--accent { color: var(--action-primary); }
.masthead__item--center { color: var(--text-secondary); letter-spacing: 2.2px; }
.masthead__item--right  { color: var(--text-muted); }

.masthead__dot {
  width: 6px; height: 6px;
  background: var(--action-primary);
}
.masthead__dot--round { border-radius: 50%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Mobile-first: compact vertical padding.
     Tablet and desktop get bumped up via media queries below so there's
     proper breathing room between the masthead and the headline. */
  padding: 40px clamp(24px, 6vw, 96px) 56px;
  min-height: calc(100vh - 172px);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding-top: 72px; padding-bottom: 80px; }
}

@media (min-width: 1024px) {
  /* Desktop returns to the generous Figma rhythm. Page will scroll a touch
     on short 900px laptops — accepted trade-off for the breathing room. */
  .hero { padding-top: 104px; padding-bottom: 104px; }
}

.hero__content {
  max-width: 1248px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero__content {
    grid-template-columns: minmax(0, 620px) minmax(0, 568px);
    gap: 60px;
  }
}

/* Blueprint crosshair markers (hidden below desktop) */
.crosshair {
  display: none;
  position: absolute;
  width: 12px; height: 12px;
  z-index: 0;
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--action-primary);
}
.crosshair::before { /* horizontal tick */
  top: 50%; left: 0;
  width: 12px; height: 1px;
  transform: translateY(-50%);
}
.crosshair::after { /* vertical tick */
  top: 0; left: 50%;
  width: 1px; height: 12px;
  transform: translateX(-50%);
}
.crosshair--tl { top: 48px; left: 48px; }
.crosshair--tr { top: 48px; right: 48px; }
.crosshair--bl { bottom: 48px; left: 48px; }
.crosshair--br { bottom: 48px; right: 48px; }

/* (Horizon rule removed — footer's top border is the single horizontal divider.) */

@media (min-width: 1024px) {
  .crosshair { display: block; }
}

/* ---------- Left column ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--action-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  margin-bottom: 28px;
}
.eyebrow__sq {
  width: 6px; height: 6px;
  background: var(--action-primary);
}

.headline {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 104px);
  line-height: clamp(62px, 9vw, 100px);
  letter-spacing: -1.6px;
  color: var(--text-primary);
  margin: 0 0 36px;
}
.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--action-primary);
}

.subhead {
  font-family: var(--ff-ui);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 56ch;
}

/* ---------- Form (waitlist) ---------- */

.form-label {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: none; /* already uppercase in markup */
}

.form-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
@media (min-width: 640px) {
  .form-row { flex-direction: row; align-items: flex-start; gap: 12px; }
}

.input {
  font-family: var(--ff-ui);
  font-size: 14px;
  line-height: 18px;
  padding: 14px 14px 15px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  color: var(--text-primary);
  width: 100%;
  min-width: 0;
  transition: border-color 120ms, box-shadow 120ms;
}
@media (min-width: 640px) {
  .input { width: 340px; flex: 0 0 auto; }
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  outline: none;
  border-color: var(--action-primary);
  box-shadow: var(--shadow-focus-ring);
}
.input--error {
  border-color: var(--status-error);
}
.input--error:focus {
  border-color: var(--status-error);
  box-shadow: 0 0 0 3px rgb(220 38 38 / .18);
}

.btn {
  font-family: var(--ff-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: var(--action-primary);
  color: var(--text-inverse);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms, transform 80ms;
}
.btn:hover { background: var(--action-primary-hover); }
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-ring);
}
.btn:active { transform: translateY(1px); }
.btn[disabled],
.btn--disabled {
  background: #D1D5DB;
  color: #6B7280;
  cursor: not-allowed;
  pointer-events: none;
}

.form-error {
  margin-top: 8px;
  color: var(--status-error);
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- Verification Sent block ---------- */

.sent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--action-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.sent-body {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-primary);
  margin: 0 0 20px;
  max-width: 42em;
}
.sent-body .email {
  color: var(--action-primary);
  font-weight: 600;
}
.sent-body .line-2 { display: block; }

.sent-hint {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 20px;
}
.sent-hint__link {
  color: var(--action-primary);
  font-weight: 600;
  margin-left: 4px;
}

/* ---------- Right column: report preview ---------- */

.preview {
  width: 100%;
  max-width: 568px;
  /* visually align top with the headline block on desktop */
  margin-top: 0;
}
/* SVG is inlined into the page so its <text> nodes inherit Google Fonts.
   Override the SVG's hardcoded width/height so it scales with the container,
   preserving aspect ratio via its viewBox. */
.preview svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  overflow: visible; /* card shadows spill ~22px left/top; don't clip */
}
@media (min-width: 1024px) {
  .preview { justify-self: end; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.footer__link {
  color: var(--text-secondary);
}
.footer__link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.footer__socials {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 18px;
  min-height: 20px;
}
.footer__links {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 120ms;
}
.footer__social svg {
  width: 16px;
  height: 16px;
  display: block;
}
.footer__social:hover,
.footer__social:focus-visible {
  color: var(--action-primary);
  text-decoration: none;
  outline: none;
}

/* ---------- Privacy page ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 48px);
}
.prose h1 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.prose .prose__meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}
.prose h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 40px 0 16px;
}
.prose p, .prose li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.prose ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose a { color: var(--action-primary); }
.prose a:hover { text-decoration: underline; }

/* ---------- Small mobile tweaks ---------- */

@media (max-width: 639px) {
  .masthead__item--center { display: none; }
  .input { width: 100%; }
  .btn { width: 100%; }

  /* Tighten hero vertical padding on small screens — no need for the generous
     desktop breathing room when the viewport height itself is ~700-900px. */
  .hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .eyebrow { margin-bottom: 20px; }
  .headline { margin-bottom: 24px; }
  .subhead { margin-bottom: 28px; }
}
