/* ===========================================================
   HubbardAI — hubbardai.com
   Single stylesheet. Dark default, light theme via [data-theme].
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:            #0A0C10;
  --bg-alt:        #0D1016;
  --surface:       #12161E;
  --surface-2:     #171C26;
  --border:        #222937;
  --border-strong: #2E3749;
  --text:          #E9EDF5;
  --text-2:        #B6C0D0;
  --muted:         #8593A8;
  --accent:        #6C9BFF;
  --accent-ink:    #0A0C10;
  --accent-soft:   rgba(108,155,255,.12);
  --accent-2:      #2DD4A7;
  --accent-2-soft: rgba(45,212,167,.12);
  --danger:        #FF7A7A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 32px -12px rgba(0,0,0,.65);
  --shadow-lg: 0 30px 70px -28px rgba(0,0,0,.8);
  --ring: 0 0 0 3px rgba(108,155,255,.38);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --wrap: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:            #FFFFFF;
  --bg-alt:        #F6F8FC;
  --surface:       #FFFFFF;
  --surface-2:     #F3F6FB;
  --border:        #E3E9F2;
  --border-strong: #CBD5E6;
  --text:          #0C1119;
  --text-2:        #3A465A;
  --muted:         #5A6982;
  --accent:        #2F62E8;
  --accent-ink:    #FFFFFF;
  --accent-soft:   rgba(47,98,232,.09);
  --accent-2:      #0E9C77;
  --accent-2-soft: rgba(14,156,119,.10);
  --danger:        #C63434;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-md: 0 14px 34px -16px rgba(16,24,40,.28);
  --shadow-lg: 0 32px 70px -30px rgba(16,24,40,.35);
  --ring: 0 0 0 3px rgba(47,98,232,.26);
  color-scheme: light;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 6vw, 4.1rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); letter-spacing: -.028em; }
h3 { font-size: 1.16rem; }
h4 { font-size: .95rem; }
p  { margin: 0 0 1.05em; color: var(--text-2); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 820px; }
.section { padding-block: var(--sec-y); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-sub { font-size: 1.05rem; color: var(--muted); margin: 0; }

.kicker {
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .85rem; font-weight: 500;
}
.body-lg { font-size: 1.06rem; color: var(--text-2); }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .split-wide { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: 0 14px 34px -12px var(--accent); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; transition: border-color .18s, color .18s, background .18s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-size: 1.12rem; }
.brand-accent { color: var(--accent); }

.nav { display: none; align-items: center; gap: 1.9rem; }
.nav a { color: var(--text-2); font-size: .93rem; font-weight: 500; position: relative; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); }
.nav a:not(.btn).active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav .nav-cta { color: var(--accent-ink); }
.nav .nav-cta:hover { color: var(--accent-ink); }
.header-actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle { position: relative; }
.nav-toggle .bar {
  position: absolute; left: 11px; width: 18px; height: 1.8px; border-radius: 2px;
  background: currentColor; transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle .bar:nth-child(1) { top: 13px; }
.nav-toggle .bar:nth-child(2) { top: 19px; }
.nav-toggle .bar:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 940px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 939px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem var(--pad) 1.5rem;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav a:not(.btn).active::after { display: none; }
  .nav .nav-cta { margin-top: 1.1rem; border-bottom: none; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-layer {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-a { width: 620px; height: 420px; top: -180px; left: -120px; background: var(--accent); opacity: .22; }
.glow-b { width: 520px; height: 380px; top: -120px; right: -140px; background: var(--accent-2); opacity: .16; }
:root[data-theme="light"] .glow-a { opacity: .16; }
:root[data-theme="light"] .glow-b { opacity: .12; }

.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  padding: .4rem .85rem; border-radius: 999px; margin: 0 0 1.5rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-2-soft); }
.hero h1 { margin-bottom: 1.15rem; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--text-2); max-width: 63ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }

.hero-points { display: grid; gap: .7rem; max-width: 60ch; }
.hero-points li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: .96rem; }
.hero-points strong { color: var(--text); font-weight: 600; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- Stats ---------- */
.stat-row {
  position: relative; z-index: 1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
@media (min-width: 800px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 1.5rem 1.4rem; }
.stat-num {
  display: block; font-size: clamp(1.7rem, 3.4vw, 2.25rem); font-weight: 700;
  letter-spacing: -.03em; color: var(--text); margin-bottom: .3rem;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .84rem; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .55rem; color: var(--text); }
.card p { font-size: .95rem; margin-bottom: 1.1rem; }
.card-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.card-ico svg { width: 21px; height: 21px; }
.card-accent .card-ico { background: var(--accent-2-soft); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 24%, transparent); }
.card-list { display: grid; gap: .45rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-list li { font-size: .87rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.card-accent .card-list li::before { background: var(--accent-2); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.1rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem; position: relative;
}
.step-num {
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: .9rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .92rem; }
.step-out {
  margin: 1rem 0 0; padding-top: .95rem; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
}
.step-out span {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: .3rem;
}

/* ---------- Platform panel ---------- */
.pill-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill {
  font-size: .82rem; padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface);
}
.pill-on { border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); color: var(--accent-2); background: var(--accent-2-soft); }

.stack-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.panel-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.panel-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.panel-bar span:nth-child(1) { background: #FF6057; }
.panel-bar span:nth-child(2) { background: #FFBD2E; }
.panel-bar span:nth-child(3) { background: #28CA42; }
.panel-bar em { font-family: var(--mono); font-style: normal; font-size: .78rem; color: var(--muted); margin-left: .5rem; }
.stack-body { padding: 1.4rem; display: grid; gap: 1.35rem; }
.stack-group h4 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .7rem; font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span {
  font-family: var(--mono); font-size: .78rem; padding: .3rem .65rem;
  border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-2);
  transition: border-color .18s, color .18s;
}
.chips span:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Tiers ---------- */
.tiers { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.9rem 1.6rem; display: flex; flex-direction: column;
}
.tier-featured {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 46%);
}
@media (min-width: 900px) { .tier-featured { transform: translateY(-10px); } }
.tier-flag {
  position: absolute; top: -12px; left: 1.6rem;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem .75rem; border-radius: 999px;
}
.tier h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.tier-price { font-family: var(--mono); font-size: .88rem; color: var(--accent); margin-bottom: .9rem; }
.tier-price span { color: var(--muted); }
.tier-desc { font-size: .95rem; margin-bottom: 1.3rem; }
.tier-list { display: grid; gap: .6rem; margin-bottom: 1.7rem; padding-top: 1.25rem; border-top: 1px solid var(--border); flex: 1; }
.tier-list li { font-size: .9rem; color: var(--text-2); padding-left: 1.6rem; position: relative; }
.tier-list li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4 10-10' fill='none' stroke='%236C9BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px 10px no-repeat;
}
:root[data-theme="light"] .tier-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4 10-10' fill='none' stroke='%232F62E8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- About values ---------- */
.value-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.8rem; }
@media (min-width: 620px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
.value { padding-left: 1rem; border-left: 2px solid var(--border-strong); }
.value h4 { color: var(--text); margin-bottom: .25rem; }
.value p { font-size: .9rem; margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-weight: 600; font-size: 1rem; color: var(--text); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .22s ease, border-color .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 1.3rem 1.25rem; }
.faq-body p { margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -140px; right: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  opacity: .14; pointer-events: none;
}
@media (min-width: 900px) { .contact-card { grid-template-columns: 1fr 1fr; } }
.contact-copy { position: relative; }
.contact-meta { display: grid; gap: .95rem; margin-top: 1.8rem; }
.contact-meta li { font-size: .95rem; color: var(--text-2); }
.contact-meta span {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .15rem;
}

.contact-form { position: relative; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: var(--r-md);
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238593A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--bg);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.err { margin: 0; font-size: .8rem; color: var(--danger); min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); }
.form-note.ok { color: var(--accent-2); font-weight: 600; }
.form-note.bad { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: clamp(2.8rem, 5vw, 4rem); }
.footer-inner { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1.2fr 2fr; gap: 3rem; } }
.footer-brand p { font-size: .92rem; color: var(--muted); max-width: 34ch; margin-top: .9rem; }
.footer-brand .brand-mark { color: var(--text-2); }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h4 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .9rem; font-weight: 500;
}
.footer-cols a { display: block; color: var(--text-2); font-size: .9rem; padding: .22rem 0; }
.footer-cols a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  margin-top: clamp(2.2rem, 4vw, 3rem); padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
}
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--muted); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,.8,.3,1), transform .6s cubic-bezier(.22,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-bg, .contact-form, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Sub-pages (legal, 404) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .6rem; }
.page-hero p { color: var(--muted); margin: 0; }
.prose { padding-block: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: .97rem; color: var(--text-2); }
.prose ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.05em; display: grid; gap: .4rem; }
.prose ul li { padding-left: .2rem; }
.prose .note {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--r-md);
  padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted);
}
.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 5rem; }
.center-page .code { font-family: var(--mono); font-size: 4.5rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: .6rem; }
