/* auriga2google shared shell (nav, backdrop, footer) + home page.
   Loaded after style.css; overrides its tokens so the other pages follow the palette. */
:root {
  --ground: #f4f1ea;          /* very light beige */
  --ground-deep: #e9e4d8;
  --ink: #172033;             /* navy ink */
  --ink-soft: #4a5468;
  --blue: #1f5fd1;            /* the one expressive colour: actions */
  --blue-press: #174aa6;
  --glass: rgba(250, 248, 243, 0.62);
  --glass-strong: rgba(250, 248, 243, 0.82);
  --radius: 28px;             /* panels; controls are fully round */
  --edge: clamp(16px, 4vw, 48px);
  --font-main: 'Figtree', system-ui, sans-serif;
  --google-blue: var(--blue);
  --google-blue-hover: var(--blue-press);
  --bg-color: var(--ground);
  --text-primary: var(--ink);
  --text-muted: var(--ink-soft);
}

body {
  font-family: var(--font-main);
  color: var(--ink);
  padding-bottom: 0;
  font-size: 17px;
  line-height: 1.55;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ground) url('/static/img/bg.jpeg') center / cover no-repeat;
}
.backdrop::after { /* flat beige scrim so text stays readable over the image */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 234, 0.4);
}

a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ── Nav ─────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px var(--edge);
}
.site-logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-logo img { display: block; height: 64px; width: auto; margin: -16px -18px -16px -30px; } /* png has wide transparent padding */
.site-links { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--blue); }

/* ── Home ────────────────────────────────────────── */
#app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--edge);
  overflow: visible;
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-radius: var(--radius);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 32px 0 64px;
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 32px;
}
.hero-text { padding: clamp(24px, 3vw, 48px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); max-width: 34em; margin: 0 0 28px; }
.hero-logos { display: flex; gap: 20px; align-items: center; margin: 0; }
.hero-logos img { height: 40px; width: auto; }

.panel { padding: clamp(24px, 3vw, 40px); }
.panel h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 20px; }
.panel form { display: grid; gap: 8px; }
.panel label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.panel input {
  font: inherit;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 999px;
  padding: 13px 20px;
  width: 100%;
  min-width: 0;
}
.panel input:focus { outline: 3px solid var(--blue); outline-offset: 1px; }

.cta {
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.panel form .cta { margin-top: 16px; }
.cta:hover { background: var(--blue-press); }
.cta:active { transform: scale(0.98); }
.cta:disabled { opacity: 0.6; cursor: wait; }
.cta-quiet { background: var(--ground-deep); color: var(--ink); min-height: 46px; padding: 0 20px; }
.cta-quiet:hover { background: #ddd6c6; }

.note { font-size: 15px; color: var(--ink-soft); margin: 8px 0 0; }
.msg { min-height: 1.5em; margin: 8px 0 0; font-weight: 600; }
.msg:empty { min-height: 0; margin: 0; }
.msg.is-error { color: #b3261e; }

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 0 0 24px;
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.copy-row { display: flex; gap: 8px; margin: 12px 0; }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; }
.link {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

/* Inner pages (settings, docs, credits) */
#app > section + section { margin-top: 24px; }
.page-head { padding: clamp(24px, 4vw, 56px); margin: 16px 0 24px; }
.page-head h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
}
.page-head .lead { margin: 0; }
.page-head .msg { margin-top: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.toc a { font-weight: 600; }
.doc { padding: clamp(24px, 4vw, 56px); scroll-margin-top: 24px; }
.doc h2, .panel h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 16px; }
.doc p, .doc li { max-width: 68ch; }
.doc p, .doc ol { margin: 0 0 14px; }
.doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc code { font-size: 0.9em; color: var(--ink); background: var(--ground-deep); padding: 1px 6px; border-radius: 6px; }
#app > section:last-child { margin-bottom: clamp(64px, 10vw, 140px); }

.type-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
}
.type-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.type-name { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.type-name input { width: 20px; height: 20px; accent-color: var(--blue); }
.swatch { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.type-row select {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
}

/* Folds (details) */
.fold { margin-top: 16px; }
.fold summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); transition: transform 0.2s; }
.fold[open] summary::after { transform: rotate(45deg); }
.fold p { margin: 0 0 12px; max-width: 62ch; }

/* How it works */
.band {
  padding: clamp(32px, 5vw, 64px);
  margin-top: clamp(64px, 10vw, 140px);
}
.band h2, .faq h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 32px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding-left: 1.2em;
}
.steps li { padding-left: 4px; }
.steps li::marker { font-weight: 800; color: var(--blue); }
.steps strong { display: block; font-size: 20px; margin-bottom: 6px; }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
  margin: clamp(64px, 10vw, 140px) 0;
}
.faq-list { padding: 12px clamp(24px, 3vw, 40px); }
.faq-list .fold { margin: 0; }
.faq-list .fold + .fold { margin-top: 4px; }

/* ── Footer (morgan v2 pattern) ──────────────────── */
.site-foot {
  background: var(--ground);
  text-align: center;
  padding: 72px var(--edge) 32px;
  overflow: hidden;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-bottom: 40px;
}
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--blue); }
.site-foot .pierref-review-widget { max-width: 520px; margin: 0 auto 40px; }
.foot-word {
  font-size: clamp(56px, 15vw, 220px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--blue);
  margin: 0;
}
.foot-copy { font-size: 14px; color: var(--ink-soft); margin: 24px 0 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .faq { grid-template-columns: 1fr; gap: 16px; }
  .type-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* copy-as-md button is fixed bottom-left; on phones it covered the main action: put it after the footer */
  .copy-md-btn { position: static !important; display: block !important; margin: 0 auto 24px !important; }
}
@media (max-width: 480px) {
  .site-links a { font-size: 15px; }
  .site-logo { font-size: 0; }
  .site-logo img { height: 56px; }
  .copy-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
