/* ============================================
   Two Horizons — UK to India pension lead site
   Tokens first, components read from tokens only.
   ============================================ */

:root {
  /* Light theme (default) */
  --ink: #16232f;
  --muted: #57626d;
  --paper: #edebe2;
  --surface: #ffffff;
  --navy: #1c3653;
  --navy-deep: #0e1e30;
  --saffron: #cc7a1e;
  --saffron-strong: #b5650f;
  --saffron-tint: #f2ddb8;
  --line: #d7d2c4;
  --focus: #2f6fb0;

  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --content-max: 1120px;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7e2d4;
    --muted: #9aa6b2;
    --paper: #0d1b29;
    --surface: #122539;
    --navy: #2a4d73;
    --navy-deep: #0a1420;
    --saffron: #e4a24c;
    --saffron-strong: #f0b366;
    --saffron-tint: #2a2214;
    --line: #24374c;
    --focus: #6fa8dc;
  }
}

:root[data-theme="dark"] {
  --ink: #e7e2d4;
  --muted: #9aa6b2;
  --paper: #0d1b29;
  --surface: #122539;
  --navy: #2a4d73;
  --navy-deep: #0a1420;
  --saffron: #e4a24c;
  --saffron-strong: #f0b366;
  --saffron-tint: #2a2214;
  --line: #24374c;
  --focus: #6fa8dc;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-inline: 0;
}

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 40px; }
}

img, svg { max-width: 100%; }

a { color: inherit; }

.skip a {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip a:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--saffron-strong); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.18; max-width: 34ch; }
h3 { font-size: 1.05rem; font-weight: 700; font-family: var(--font-body); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
}

p { max-width: 65ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--saffron-strong);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--saffron); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.btn-primary {
  background: var(--saffron);
  color: #201400;
}
.btn-primary:hover { background: var(--saffron-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-small { padding: 9px 16px; font-size: 0.88rem; }
.btn-full { width: 100%; justify-content: center; padding: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark { color: var(--saffron-strong); display: inline-flex; }

.site-nav {
  display: none;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

@media (min-width: 860px) {
  .site-nav { display: flex; align-items: center; }
}

/* ---------- Nav dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] { color: var(--ink); }
.nav-dropdown-trigger .chev { transition: transform 0.15s ease; }
.nav-dropdown-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-trigger .chev { transition: none; }
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(14, 30, 48, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu { transition: none; }
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 64px; }
@media (min-width: 860px) { .hero { padding-block: 84px 96px; } }

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-fineprint { font-size: 0.82rem; color: var(--muted); max-width: 44ch; margin: 0; }

.hero-diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.dg-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  fill: var(--ink);
}
.dg-sub {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--muted);
}
.dg-mid {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  fill: var(--navy);
}
/* ---------- Sections ---------- */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 28px; }

.section-inverse {
  background: var(--navy-deep);
  color: #f2efe4;
  border-top-color: transparent;
}
.section-inverse h2, .section-inverse h3 { color: #f7f4ea; }
.section-inverse p { color: #c3cbd3; }

.section-muted {
  background: var(--surface);
}

/* ---------- Ledger cards ---------- */
.card-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}
.ledger-card {
  background: var(--surface);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ledger-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--saffron-strong);
  margin: 0;
  text-transform: uppercase;
}
.ledger-card p:last-child { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #2a3d52;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--saffron);
  letter-spacing: 0.06em;
}
.steps h3 { color: #f7f4ea; }
.steps p { color: #c3cbd3; margin: 0; font-size: 0.92rem; }

/* ---------- Who / checklist ---------- */
.who-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .who-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.checklist li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--saffron-strong);
  border-radius: 4px;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--saffron-strong);
  border-bottom: 1.5px solid var(--saffron-strong);
  transform: rotate(-45deg);
}

/* ---------- Live news ---------- */
.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .news-grid { grid-template-columns: repeat(4, 1fr); }
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.news-card:hover { border-color: var(--saffron-strong); }
.news-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron-strong);
  margin: 0;
}
.news-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.news-time {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 4px;
}

.news-skeleton {
  height: 128px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--surface) 25%, var(--paper) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: news-pulse 1.4s ease-in-out infinite;
}
@keyframes news-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .news-skeleton { animation: none; }
}

.news-status {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 6px;
}
.news-status a { color: var(--navy); text-decoration: underline; }
:root[data-theme="dark"] .news-status a { color: var(--saffron); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-status a { color: var(--saffron); }
}

.news-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 22px;
  max-width: 68ch;
}

/* ---------- Blog preview + listing ---------- */
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head-row h2 { margin: 0; }

.post-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
.post-grid.post-grid-listing {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .post-grid.post-grid-listing { grid-template-columns: repeat(2, 1fr); }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover { border-color: var(--saffron-strong); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .post-card { transition: none; }
  .post-card:hover { transform: none; }
}
.post-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron-strong);
  margin: 0;
}
.post-card h3 { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.post-card p:not(.post-kicker) { color: var(--muted); font-size: 0.94rem; margin: 0; }
.post-read {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  padding-top: 6px;
}
:root[data-theme="dark"] .post-read { color: var(--saffron); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .post-read { color: var(--saffron); }
}

/* Blog listing hero */
.blog-hero { padding-block: 48px 8px; }
.blog-hero .eyebrow { margin-bottom: 10px; }

/* Article page */
.article-header { padding-block: 48px 8px; }
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.article-body { padding-block: 8px 64px; }
.article-body .wrap { max-width: 720px; }
.article-body h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.4rem; }
.article-body p { max-width: none; color: var(--ink); margin: 0 0 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-callout {
  border-left: 3px solid var(--saffron-strong);
  background: var(--saffron-tint);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.article-callout p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.back-link:hover { color: var(--ink); }
.article-cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--navy-deep);
  border-radius: 14px;
  color: #f2efe4;
}
.article-cta h3 { color: #f7f4ea; margin-bottom: 8px; }
.article-cta p { color: #c3cbd3; margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-weight: 600;
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--saffron-strong);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 20px; max-width: 68ch; }
.faq-answer p { color: var(--muted); margin: 0; }

/* ---------- Trust / compliance ---------- */
.trust-wrap p { color: var(--muted); }
.trust-wrap a { color: var(--navy); text-decoration: underline; }
:root[data-theme="dark"] .trust-wrap a { color: var(--saffron); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trust-wrap a { color: var(--saffron); }
}

/* ---------- Lead form ---------- */
.form-section { background: var(--navy-deep); border-top-color: transparent; }
.form-wrap {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .form-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
}
.form-intro h2 { color: #f7f4ea; }
.form-intro .lede { color: #c3cbd3; }
.form-intro .eyebrow { color: var(--saffron); }

.lead-form {
  background: var(--surface);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
}
.field-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .consent {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.optional { text-transform: none; letter-spacing: 0; }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
}
textarea { resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--muted);
}
.consent input { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.consent a { color: var(--navy); text-decoration: underline; }

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 0;
}
.form-status[data-state="ok"] { color: #2e7d4f; }
.form-status[data-state="err"] { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c3cbd3;
  padding-block: 40px 20px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #24374c;
}
.brand-footer { color: #f7f4ea; }
.footer-tag { margin: 6px 0 0; font-size: 0.9rem; color: #8fa0ac; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; align-items: flex-start; }
.footer-nav a { text-decoration: none; color: #c3cbd3; }
.footer-nav a:hover { color: #fff; }
.footer-legal { padding-top: 20px; }
.footer-legal p { max-width: 90ch; font-size: 0.78rem; color: #8493a0; }
