/* Anantgo — site styles. One file, no dependencies. */
:root {
  --navy: #0b1f4b;
  --blue: #1437a6;
  --red: #c8151b;
  --gold: #b8892a;
  --gold-soft: #e7d7ae;
  --ink: #101a33;
  --muted: #4b566f;
  --line: #e6e2d8;
  --paper: #ffffff;
  --tint: #f8f6f1;
  --radius: 14px;
  --wrap: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.nav-toggle { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 16px; }
.site-nav.open { display: block; }
.site-nav a { display: block; padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--tint); }
.site-nav a:last-child { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.no-js .site-nav { display: block; position: static; border: 0; padding: 0; }
.no-js .nav-toggle { display: none; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; gap: 30px; padding: 0; border: 0; background: transparent; }
  .site-nav a { padding: 6px 0; border: 0; font-size: 0.97rem; position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Sections */
section { padding: 68px 0; }
@media (min-width: 820px) { section { padding: 104px 0; } }
.tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.lede { font-size: clamp(1.06rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 44em; }
.section-head { margin-bottom: 40px; max-width: 46em; }

/* Hero */
.hero { padding: 54px 0 70px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(560px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-logo { width: min(440px, 80%); margin: 0 auto 30px; }
.hero h1 { max-width: 17em; margin-left: auto; margin-right: auto; }
.hero .lede { margin: 0 auto 30px; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 1.15rem; margin-bottom: 18px; }
@media (min-width: 820px) { .hero { padding: 84px 0 110px; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-row.left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid var(--navy); transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .grid.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.product { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; overflow: hidden; }
.product::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--gold), var(--red)); }
a.product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11, 31, 75, 0.45); border-color: var(--gold-soft); color: inherit; }
.product .more { margin-top: auto; padding-top: 18px; color: var(--blue); font-weight: 600; }
.badge { display: inline-block; align-self: flex-start; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--gold-soft); color: #7a5a14; background: #fbf6e8; margin-bottom: 16px; }
.product.soon { border-style: dashed; background: transparent; }
.product.soon::before { display: none; }
.product.soon h3 { color: var(--muted); }

.principle { border: 0; border-top: 1px solid var(--gold); border-radius: 0; padding: 22px 0 0; background: transparent; }
.principle .num { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 10px; display: block; }

.feature svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }

/* Product page */
.page-hero { padding: 52px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .page-hero { padding: 84px 0 84px; } }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.notice { border: 1px solid var(--gold-soft); background: #fbf6e8; border-radius: var(--radius); padding: 18px 20px; color: #5c4510; font-size: 0.98rem; }
.notice strong { color: #4a370b; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Legal / prose */
.prose { padding: 46px 0 80px; }
.prose h1 { margin-bottom: 0.3em; }
.prose h2 { font-size: 1.4rem; margin-top: 2.1em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.08rem; margin-top: 1.5em; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--navy); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Contact placeholder */
.contact-placeholder { border: 1px dashed #c9c2b0; border-radius: var(--radius); padding: 24px 22px; background: var(--tint); margin-top: 18px; }
.contact-placeholder .soon-line { font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.contact-placeholder fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; opacity: 0.55; }
.contact-placeholder label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.contact-placeholder input, .contact-placeholder textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfc9ba; border-radius: 10px; background: #fff; width: 100%; color: var(--muted); }
.contact-placeholder button { font: inherit; font-weight: 600; min-height: 48px; border-radius: 999px; border: 1px solid #b9b3a4; background: #e9e5da; color: #6d6756; padding: 10px 24px; justify-self: start; cursor: not-allowed; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d2e8; padding: 54px 0 30px; font-size: 0.95rem; }
.site-footer a { color: #e8ecf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold-soft); }
.site-footer h2 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.copyright { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #a9b4d0; font-size: 0.88rem; }

/* Subtle motion (only when JS is on and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product { transition: none; }
}

/* A single leftover card in a three-column grid spans the full row */
@media (min-width: 720px) { .grid.three > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; } }
