/* UnlistIndia v0 — style.css
   Derived from the design playbook + brief: clean, light, trustworthy.
   Warm paper background, ink text, ONE accent (deep teal = safe/verified).
   60-30-10: paper 60 / white cards 30 / teal accent 10.
   Mobile-first, compact, max 2 typefaces (system stack only — self-hosted,
   zero third-party requests). */

:root {
  --paper: #FBFAF7;
  --card: #FFFFFF;
  --ink: #16130E;
  --muted: #6B645A;
  --line: #E8E2D8;
  --accent: #0F766E;
  --accent-dark: #0B5A53;
  --accent-soft: #E6F2F0;
  --warn-bg: #FDF3E7;
  --warn-ink: #7A4A12;
  --good: #0F766E;
  --radius: 12px;
  --maxw: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 750; margin-top: 2.2em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
small, .small { font-size: 0.88rem; color: var(--muted); }
strong { font-weight: 700; }
code { background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.9em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.wordmark { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark b { color: var(--accent); font-weight: 800; }
.site-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 8px 10px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }

/* Hero */
.hero { padding: 44px 0 8px; }
.kicker {
  display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 120ms ease-out, background 150ms ease-out;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.trust-row { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; padding: 0; list-style: none; }
.trust-row li { margin: 0; }
.trust-row li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ShinyText — slow sheen across the hero headline (approved micro-interaction) */
.shiny {
  background: linear-gradient(100deg, var(--ink) 40%, var(--accent) 50%, var(--ink) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }

/* Countdown strip */
.countdown {
  margin: 26px 0 0; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.countdown .num { font-size: 1.9rem; font-weight: 800; color: var(--accent-dark); line-height: 1; white-space: nowrap; }
.countdown .num small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; }
.countdown p { margin: 0; flex: 1; min-width: 220px; }

/* Hand-drawn divider (no marquee, human-feeling) */
.divider { display: block; margin: 34px auto 6px; width: 120px; height: 12px; color: var(--accent); opacity: 0.55; }

/* Cards + grids */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 0 0 14px;
}
.card h3 { margin-top: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); }
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; margin-left: 6px;
  vertical-align: middle; white-space: nowrap;
}
.badge.warn { color: var(--warn-ink); background: var(--warn-bg); }
.meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.6em; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.2em; margin-bottom: 0.9em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05em;
  width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 0.85rem; font-weight: 700; text-align: center; line-height: 1.5em;
}

/* Honesty / warning boxes */
.note {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1em;
}
.note.warn { border-left-color: #B45309; background: var(--warn-bg); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

/* Forms */
.field { margin: 0 0 12px; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 48px; padding: 10px 14px; font-size: 1rem;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font-family: inherit;
}
input[type="email"]:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); }
.form-msg { margin: 10px 0 0; font-weight: 600; }
.form-msg.ok { color: var(--accent-dark); }
.form-msg.err { color: #B91C1C; }

/* Tracker */
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0%; transition: width 300ms ease-out; }
.tracker-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tracker-row .t-name { font-weight: 700; flex: 1; min-width: 140px; }
.tracker-row .t-name a { color: var(--ink); text-decoration: none; }
.tracker-row .t-name a:hover { color: var(--accent-dark); }
.status-btn {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: #fff; font: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--muted); position: relative; overflow: visible;
}
.status-btn[data-state="submitted"] { border-color: #D97706; color: #92400E; background: #FFFBEB; }
.status-btn[data-state="confirmed"] { border-color: #2563EB; color: #1E40AF; background: #EFF6FF; }
.status-btn[data-state="gone"] { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.status-btn:hover { border-color: var(--accent); }

/* Copyable prompt / letter blocks */
.copybox {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; overflow-x: auto;
}
.copybox pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; font-size: 0.92rem; line-height: 1.55; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-btn {
  margin-top: 10px; min-height: 44px; padding: 8px 16px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--accent); background: #fff; color: var(--accent-dark);
  font: inherit; font-size: 0.9rem; font-weight: 700;
}
.copy-btn:hover { background: var(--accent-soft); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 10px; }
details summary { font-weight: 700; cursor: pointer; min-height: 24px; }
details summary::-webkit-details-marker { color: var(--accent); }
details p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-bottom: 12px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }

/* ClickSpark particles */
.spark {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 999;
  animation: spark-fly 500ms ease-out forwards;
}
@keyframes spark-fly {
  to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

@media (max-width: 560px) {
  h1 { font-size: 1.75rem; }
  .site-nav a { padding: 8px 8px; }
  .countdown .num { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shiny { animation: none; background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
  * { transition: none !important; animation-duration: 0.01ms !important; }
}
