/* ============================================================
   TABIN Public Website — Shared Design System
   Forced light mode. Green accent.
   No framework. Pure static CSS.
   ============================================================ */

/* ---------- Brand tokens ---------- */
:root {
  /* Core brand accent — green */
  --tabin-accent: #14E1AA;
  --tabin-accent-dark: #10b98d;
  --tabin-accent-soft: #d7faef;
  --tabin-accent-tint: #effdf9;

  /* Wordmark / text */
  --tabin-charcoal: #262626;
  --tabin-ink: #21211C;

  /* Named palette from tailwind config */
  --tabin-lemon: #f2fdaf;
  --tabin-lime: #ebf2c3;
  --tabin-mist: #c9d1d3;
  --tabin-fog: #d4d6d7;
  --tabin-ice: #eceff0;

  /* Surfaces — always light */
  --bg: #ffffff;
  --bg-alt: #f7f8f9;
  --bg-card: #ffffff;
  --border: #e6e8ea;
  --border-soft: #eef0f2;
  --text: #32333b;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;

  /* Status (restrained) */
  --success: #14E1AA;
  --success-soft: #ecfdf3;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --neutral-accent: #6b7280;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(38, 38, 38, 0.05);
  --shadow: 0 2px 8px rgba(38, 38, 38, 0.08);
  --shadow-lg: 0 8px 30px rgba(38, 38, 38, 0.10);

  /* Layout */
  --maxw: 1120px;
  --maxw-prose: 760px;
  --space: clamp(1rem, 4vw, 2rem);
  --header-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  /* Force light color-scheme so form controls and scrollbars stay light */
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--tabin-accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--tabin-accent-dark); }
img, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}
.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tabin-ink);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-lockup:hover { color: var(--tabin-ink); }
.brand-lockup .logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-lockup .logo-type {
  height: 22px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }
.site-nav a.active { color: var(--tabin-accent); background: var(--tabin-accent-soft); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.2s; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--space) 1rem;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0.5rem; border-radius: var(--radius-sm); }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 2.5rem 0 1.5rem;
}
.site-footer .container { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-brand .brand-lockup { font-size: 1rem; margin-bottom: 0.4rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; max-width: 280px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem 2rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.3rem 0;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-bottom p { color: var(--text-subtle); font-size: 0.8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--tabin-accent); outline-offset: 2px; }

.btn-primary {
  background: var(--tabin-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--tabin-accent-dark); color: #fff; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-alt); color: var(--text); border-color: var(--text-subtle); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-alt); }

.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--tabin-accent-soft);
  color: var(--tabin-accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--tabin-ink);
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 1.2rem;
}
.hero .subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--tabin-ink);
  margin-bottom: 0.6rem;
}
.section .section-sub { color: var(--text-muted); margin-bottom: 2rem; }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--tabin-accent-soft);
  color: var(--tabin-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Standalone payment pages (no header/footer) ---------- */
.standalone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) var(--space);
  background: var(--bg);
}
.standalone-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
}
.standalone-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2.5rem;
  color: var(--tabin-ink);
  font-weight: 600;
  font-size: 1.1rem;
}
.standalone-logo .logo-mark { width: 28px; height: 28px; }
.standalone-logo .logo-type { height: 20px; width: auto; }
.standalone-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.standalone-icon.success { background: var(--success-soft); color: var(--success); }
.standalone-icon.neutral { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.standalone-icon svg { width: 28px; height: 28px; }
.standalone-card h1 { font-size: 1.5rem; font-weight: 700; color: var(--tabin-ink); margin-bottom: 0.75rem; }
.standalone-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 0.5rem; }
.standalone-card .note { font-size: 0.85rem; color: var(--text-subtle); margin-top: 1.5rem; }
.standalone-card .actions { margin-top: 2rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Legal / prose pages ---------- */
.legal-header {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 2.5rem;
}
.legal-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: var(--tabin-ink); letter-spacing: -0.02em; }
.legal-header .meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }

.legal-body h2 { font-size: 1.25rem; font-weight: 600; margin: 2.5rem 0 0.75rem; color: var(--text); }
.legal-body h3 { font-size: 1.05rem; font-weight: 600; margin: 1.8rem 0 0.5rem; color: var(--text); }
.legal-body p { margin-bottom: 1rem; color: var(--text); }
.legal-body ul { margin: 0.5rem 0 1.2rem; padding-left: 1.3rem; }
.legal-body li { margin-bottom: 0.4rem; color: var(--text); }
.legal-body strong { color: var(--text); }
.legal-body code { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 0.1rem 0.35rem; font-size: 0.88em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.placeholder {
  display: inline-block;
  background: var(--tabin-accent-tint);
  color: var(--tabin-accent-dark);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-weight: 600;
  border: 1px dashed var(--tabin-accent);
}
.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.legal-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 0.6rem; }
.legal-toc ol { padding-left: 1.3rem; }
.legal-toc li { margin-bottom: 0.3rem; font-size: 0.9rem; }
.legal-toc a { color: var(--text); }
.legal-toc a:hover { color: var(--tabin-accent); }

/* ---------- Support page ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.support-contact {
  background: var(--tabin-accent-tint);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.support-contact h3 { color: var(--text); margin-bottom: 0.5rem; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: 0.6rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 16px; height: 16px;
  border: 2px solid var(--tabin-accent);
  border-radius: 4px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-muted); }
.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;
}
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--tabin-accent); color: #fff;
  padding: 8px 16px; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; color: #fff; }


/* ============================================================
   TABIN MAIN-SITE VISUAL ALIGNMENT — v14
   Visual authority: tabin.html
   Keeps all secondary pages structurally separate.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Momo+Trust+Display&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --black: #0a0a0a;
  --ink: #1c1c1c;
  --mid: #6b6b6b;
  --light: #a8a8a8;
  --rule: #e5e5e5;
  --off: #f7f7f5;
  --white: #ffffff;

  --purple: #8F5CEE;
  --lime: #C1EA0B;
  --pink: #FFCBEF;
  --cyan: #10EAF0;
  --orange: #FF6316;
  --pk2: #F38DA7;
  --blue: #0439F9;
  --red: #E53E7A;

  --display: 'Momo Trust Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  /* Map old secondary-page variables onto the main site system. */
  --tabin-accent: var(--purple);
  --tabin-accent-dark: #7445d4;
  --tabin-accent-soft: rgba(143, 92, 238, .10);
  --tabin-accent-tint: rgba(143, 92, 238, .055);
  --tabin-charcoal: var(--ink);
  --tabin-ink: var(--ink);

  --bg: var(--white);
  --bg-alt: var(--off);
  --bg-card: var(--white);
  --border: var(--rule);
  --border-soft: var(--rule);
  --text: var(--ink);
  --text-muted: var(--mid);
  --text-subtle: var(--light);
  --success: var(--purple);
  --success-soft: rgba(143, 92, 238, .10);

  --font: var(--sans);
  --header-h: 62px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.035);
  --shadow: 0 8px 28px rgba(10,10,10,.06);
  --shadow-lg: 0 18px 60px rgba(10,10,10,.09);
}

html { background: var(--white); }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

main { padding-top: var(--header-h); }

a { color: var(--purple); }
a:hover { color: #7445d4; }

/* Main-site nav feel */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  max-width: none;
  padding-left: 48px;
  padding-right: 48px;
}

.brand-lockup {
  gap: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
}

.brand-lockup .logo-mark { width: 27px; height: 27px; }
.brand-lockup .logo-type { height: 21px; }

.site-nav { gap: 18px; }

.site-nav a {
  padding: 8px 0;
  border-radius: 0;
  color: var(--mid);
  font-size: .85rem;
  font-weight: 400;
  background: transparent !important;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a.active {
  color: var(--purple);
  background: transparent;
}

/* Typography */
.hero h1,
.legal-header h1,
.standalone-card h1,
.section h2,
.legal-body h2 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.025em;
}

.legal-header h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 1;
}

.legal-header {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.legal-header .meta {
  color: var(--mid);
  font-weight: 300;
  margin-top: .8rem;
}

.legal-body {
  padding-bottom: 6rem;
}

.legal-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.1;
  margin-top: 3.3rem;
}

.legal-body h3,
.card h3,
.support-contact h3 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 500;
}

.legal-body p,
.legal-body li,
.card p,
.support-contact p {
  color: var(--mid);
  font-weight: 300;
  line-height: 1.8;
}

.legal-body strong { color: var(--ink); font-weight: 500; }

/* Quiet, editorial cards like the main site */
.card,
.legal-toc,
.support-contact {
  border: 1px solid var(--rule);
  box-shadow: none;
}

.card {
  border-radius: 20px;
  padding: 28px;
}

.card:hover {
  border-color: rgba(143,92,238,.55);
  box-shadow: none;
}

.legal-toc {
  background: var(--off);
  border-radius: 18px;
}

.legal-toc h2 {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light);
}

.legal-toc a { color: var(--mid); font-weight: 400; }
.legal-toc a:hover { color: var(--purple); }

.support-contact {
  background: rgba(143,92,238,.055);
  border-color: rgba(143,92,238,.16);
  border-radius: 20px;
}

.feature-icon {
  background: rgba(143,92,238,.10);
  color: var(--purple);
  border-radius: 12px;
}

/* Buttons follow main website */
.btn {
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.01em;
  padding: 12px 24px;
}

.btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(143,92,238,.28);
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
}

.placeholder {
  background: rgba(143,92,238,.06);
  border: 1px dashed rgba(143,92,238,.45);
  color: #7445d4;
  font-weight: 500;
}

/* Payment pages */
.standalone {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 55%, rgba(143,92,238,.08) 100%),
    var(--white);
}

.standalone-card h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.standalone-card p { color: var(--mid); font-weight: 300; line-height: 1.7; }

.standalone-icon.success {
  background: rgba(143,92,238,.10);
  color: var(--purple);
}

/* Footer mirrors main site's dark footer */
.site-footer {
  background: #0b0b09;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 44px 0;
}

.site-footer .brand-lockup { color: #fff; }
.site-footer .logo-type { filter: brightness(0) invert(1); }

.footer-brand p,
.footer-links a {
  color: rgba(255,255,255,.28);
  font-weight: 400;
}

.footer-links a:hover { color: rgba(255,255,255,.72); }

.footer-bottom {
  border-top-color: rgba(255,255,255,.06);
}

.footer-bottom p { color: rgba(255,255,255,.16); }

/* Accessibility */
.skip-link {
  background: var(--purple);
  color: #fff;
}

@media (max-width: 960px) {
  .site-header .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    top: 62px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--rule);
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-nav a {
    padding: .75rem .2rem;
  }

  .nav-toggle {
    border-color: var(--rule);
    border-radius: 100px;
  }

  .legal-header {
    padding-top: 3rem;
  }
}
