/* LittleQuants — shared styles (header, footer, base, forms, sections)
   Page-specific styles live in each page's <style> block. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; min-width: 0; }

:root {
  --paper:  #fafaf7;
  --grid:   rgba(66,133,244,0.10);
  --grid2:  rgba(66,133,244,0.05);
  --ink:    #1a1a1a;
  --ink-2:  #3c4043;
  --mist:   #5f6368;
  --rule:   #e3e5e8;
  --blue:   #1a73e8;
  --blue-l: #4285F4;
  --red:    #d93025;
  --yell:   #FBBC04;
  --green:  #188038;
  --card:   #ffffff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 8px 28px rgba(0,0,0,.06);
  --max: 1120px;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid2) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 2px; border-radius: 4px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.hdr { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 24px; }
.hdr-logo img { height: 46px; width: auto; }
.hdr nav { margin-left: auto; }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; }
.hdr-nav a {
  display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.hdr-nav a:hover { background: rgba(26,115,232,.07); color: var(--blue); }
.hdr-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.hdr-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .hdr-nav, .hdr .hdr-cta { display: none; }
  .site-header.open .hdr-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 10px 16px 16px; gap: 2px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .site-header.open .hdr-nav a { padding: 12px; font-size: 1rem; }
  .site-header.open .hdr-nav .nav-cta-mobile { display: block; }
}
.nav-cta-mobile { display: none; }
.nav-cta-mobile a { background: var(--blue); color: #fff !important; text-align: center; margin-top: 6px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 999px;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1765cc; box-shadow: 0 4px 16px rgba(26,115,232,.35); transform: translateY(-1px); }
.btn-ghost { color: var(--blue); background: transparent; border-color: rgba(26,115,232,.35); }
.btn-ghost:hover { background: rgba(26,115,232,.06); }

/* ── SECTIONS ── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.white { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kicker { font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 14px; text-wrap: balance; }
.lede { font-size: 1.06rem; color: var(--mist); max-width: 620px; margin-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── FORMS ── */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.form .opt { font-weight: 400; color: var(--mist); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1.5px solid var(--rule); border-radius: 10px; background: #fff;
  font: 16px var(--sans); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,232,.15); outline: none; }
.form .btn { width: 100%; border-radius: 10px; }
.form-note { font-size: .82rem; color: var(--mist); text-align: center; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.form-msg { display: none; border-radius: 10px; padding: 16px; font-size: .95rem; }
.form-msg.ok { display: block; background: #e6f4ea; color: #0d652d; }
.form-msg.err { display: block; background: #fce8e6; color: #a50e0e; }
.form.sent { display: none; }

/* ── FAQ ── */
.faq { max-width: 760px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); font-size: .97rem; }

/* ── FOOTER ── */
.site-footer { background: #fff; border-top: 1px solid var(--rule); padding: 48px 0 28px; font-size: .92rem; }
.ftr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .ftr { grid-template-columns: 1fr; gap: 24px; } }
.ftr-logo { display: inline-block; }
.ftr-logo img { height: 90px; width: auto; margin-bottom: 10px; }
.ftr .ftr-slogan { font-weight: 700; font-size: 1.05rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); max-width: none !important; }
.ftr .ftr-slogan span { color: var(--yell); margin: 0 .15em; }
@media (max-width: 760px) { .ftr-logo img { height: 76px; } .ftr-slogan { font-size: .95rem; } }
.ftr p { color: var(--mist); max-width: 340px; }
.ftr h3 { font-size: .85rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.ftr ul { list-style: none; display: grid; gap: 6px; }
.ftr a { color: var(--ink-2); text-decoration: none; }
.ftr a:hover { color: var(--blue); text-decoration: underline; }
.ftr-base { max-width: var(--max); margin: 32px auto 0; padding: 18px 24px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--mist); font-size: .82rem; }
.ftr-base a { color: var(--mist); }

.hdr-nav a.lang-switch { border: 1.5px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; margin-left: 4px; }
.hdr-nav a.lang-switch:hover { border-color: var(--blue); }
@media (max-width: 900px) { .site-header.open .hdr-nav a.lang-switch { border: 0; margin: 0; } }
