/* Signup Sheets for Gmail — shared site styles (personas, hubs, sub-pages)
   Palette per SPEC §8: warm paper bg, sky-deep primary, apricot + sage accents. */

/* Feather icons — inherit color from container, align with surrounding text */
.feather { stroke: currentColor; vertical-align: -2px; }
.point .ic .feather { width: 22px; height: 22px; }
.howto-step .n .feather { width: 16px; height: 16px; stroke-width: 2.5; }
.example-when .feather { width: 14px; height: 14px; }

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

:root {
  --ink: #181622;
  --ink-soft: #474455;
  --muted: #8a86a0;
  --line: #e6e4ef;
  --bg: #f7f6fb;
  --sky: #e9e7f4;
  --sky-deep: #635ca0;
  --apricot: #fde3c2;
  --apricot-deep: #d98a3d;
  --sage: #e4efe3;
  --sage-deep: #6fa87b;
  --red: #b53f30;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Google Sans", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ─── NAV ─────────────────────────────────────────────────────── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  position: sticky; top: 0;
  background: rgba(249, 248, 243, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  z-index: 20;
  border-bottom: 1px solid rgba(16,19,18,0.05);
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em;
}
.site-logo .logo-mark { width: 30px; height: 30px; border-radius: 7px; display: block; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.site-logo .fg { color: var(--muted); font-weight: 500; }
.site-nav-links { display: flex; align-items: center; gap: 22px; }
.site-nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav-links a:hover { color: var(--ink); }

/* ─── BUTTONS — pill-ish 10px radius per design system ────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s cubic-bezier(.22,.61,.36,1), background .15s, border-color .15s, color .15s, box-shadow .18s ease;
  font-family: inherit;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-primary { background: var(--sky-deep); color: #fff; }
.btn-primary:hover { background: #544f92; transform: translateY(-1.5px); box-shadow: 0 12px 28px -12px rgba(63,126,194,.55); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #263029; transform: translateY(-1.5px); box-shadow: 0 12px 28px -12px rgba(16,19,18,.45); }
.btn-dark:active { transform: translateY(0); box-shadow: none; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1.5px); box-shadow: 0 10px 24px -14px rgba(16,19,18,.25); }
.btn-outline:active { transform: translateY(0); box-shadow: none; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

::selection { background: var(--sky); color: var(--ink); }

/* ─── BREADCRUMBS ─────────────────────────────────────────────── */
.crumbs {
  max-width: 920px; margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px; color: var(--muted);
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 6px; opacity: .5; }

/* ─── HERO (compact for sub-pages) ────────────────────────────── */
.page-hero {
  position: relative;
  text-align: center;
  padding: 64px 24px 56px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 380px at 18% 0%, var(--sky) 0%, transparent 60%),
    radial-gradient(500px 400px at 92% 30%, var(--apricot) 0%, transparent 60%);
  z-index: -1;
}
.page-hero .eyebrow {
  display: inline-block;
  background: #fff; border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.page-hero h1 .accent {
  position: relative; display: inline-block;
  padding: 0 6px;
}
.page-hero h1 .accent::before {
  content: ""; position: absolute; inset: 10% -4% 10% -4%;
  background: var(--sky); border-radius: 12px; z-index: -1;
}
.page-hero h1 .accent.apricot::before { background: var(--apricot); }
.page-hero h1 .accent.sage::before { background: var(--sage); }

.answer-block {
  max-width: 620px; margin: 0 auto 28px;
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Staggered hero entrance (subpages) — skipped when reduced motion is set */
@keyframes page-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero .eyebrow, .page-hero h1,
  .page-hero .answer-block, .page-hero .hero-ctas {
    animation: page-hero-rise .6s cubic-bezier(.22,.61,.36,1) both;
  }
  .page-hero .eyebrow { animation-delay: .04s; }
  .page-hero h1 { animation-delay: .12s; }
  .page-hero .answer-block { animation-delay: .22s; }
  .page-hero .hero-ctas { animation-delay: .32s; }
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
section { padding: 72px 24px; }
section.tinted { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.section-title { text-align: center; font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--ink-soft); font-size: 16px; max-width: 560px; margin: 0 auto 48px; }

/* ─── EXAMPLE SHEET CARDS (persona pages) ─────────────────────── */
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.example {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.example:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -28px rgba(16,19,18,.18); }
.example-header {
  background: var(--sky-deep); color: #fff;
  padding: 16px 20px;
}
.example-header.apricot { background: var(--apricot-deep); }
.example-header.ink { background: var(--ink); }
.example-header .label {
  color: rgba(255,255,255,.6);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 6px; font-weight: 600;
}
.example-header .q {
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35;
}
.example-header .meta { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; }
.example-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

/* Slot rows with fill bars — sage fill on line track; apricot when full */
.example-slot {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 13px;
  background: #fff;
}
.example-slot .slot-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13.5px; color: var(--ink);
  margin-bottom: 7px;
}
.example-slot .slot-top .count { font-size: 11.5px; font-weight: 600; color: var(--sage-deep); white-space: nowrap; }
.example-slot .slot-bar { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.example-slot .slot-fill { height: 100%; background: var(--sage-deep); border-radius: 999px; }
.example-slot.full .slot-top .count { color: var(--apricot-deep); }
.example-slot.full .slot-fill { background: var(--apricot-deep); }
.example-when {
  font-size: 12.5px; color: var(--muted);
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fcfbf6;
}
.example-when strong { color: var(--ink-soft); }
.tpl-chip {
  display: inline-block;
  background: var(--sky); color: #454081;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  margin-right: 6px; vertical-align: 1px;
}

/* ─── KEY-POINTS GRID ─────────────────────────────────────────── */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.point {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.point:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -28px rgba(16,19,18,.18); }
.point .ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 14px;
}
.point:nth-child(1) .ic { background: var(--sky); color: #454081; }
.point:nth-child(2) .ic { background: var(--apricot); color: #9c6222; }
.point:nth-child(3) .ic { background: var(--sage); color: #46754f; }
.point:nth-child(4) .ic { background: var(--sky); color: #454081; }
.point h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.point p { color: var(--ink-soft); font-size: 14.5px; }

/* ─── HUBS / SIBLING LINKS ────────────────────────────────────── */
.hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.hub-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, border-color .15s, box-shadow .15s ease;
  display: block;
}
.hub-card:hover { transform: translateY(-2px); border-color: var(--sky-deep); box-shadow: 0 24px 40px -28px rgba(16,19,18,0.18); }
.hub-card .hub-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-bottom: 10px;
}
.hub-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.hub-card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.hub-card .arrow { font-size: 13.5px; color: var(--sky-deep); font-weight: 600; }
.hub-card .arrow::after { content: " →"; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15.5px; font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 21px; line-height: 1; font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ─── STEP CARDS (HowTo) ──────────────────────────────────────── */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.howto-step {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.howto-step:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -28px rgba(16,19,18,.18); }
.howto-step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sky); color: var(--ink);
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.howto-step:nth-child(2) .n { background: var(--apricot); }
.howto-step:nth-child(3) .n { background: var(--sage); }
.howto-step:nth-child(4) .n { background: var(--sky); }
.howto-step h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.01em; }
.howto-step p { color: var(--ink-soft); font-size: 14.5px; }

/* ─── CTA BAND ────────────────────────────────────────────────── */
.cta-band {
  background: var(--ink); color: #fff;
  text-align: center; padding: 56px 24px;
}
.cta-band h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 15.5px; max-width: 520px; margin: 0 auto 24px; }
.cta-band .btn-dark { background: #fff; color: var(--ink); }
.cta-band .btn-dark:hover { background: #eef0ea; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-outline:hover { border-color: #fff; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.55);
  padding: 48px 24px 32px; text-align: center; font-size: 13px;
}
.site-footer .footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 15px;
  margin-bottom: 14px; text-decoration: none;
}
.site-footer .footer-logo .logo-mark { width: 28px; height: 28px; border-radius: 7px; display: block; object-fit: cover; }
.site-footer .footer-links {
  margin-bottom: 14px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
}
.site-footer .footer-links a { color: rgba(255,255,255,.6); text-decoration: none; }
.site-footer .footer-links a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover,
  .example:hover, .point:hover, .howto-step:hover, .hub-card:hover { transform: none; }
}

@media (max-width: 760px) {
  .site-nav { padding: 14px 18px; }
  .site-nav-links { gap: 14px; }
  .site-nav-links a:not(.btn) { display: none; }
  .page-hero { padding: 48px 18px 40px; }
  section { padding: 52px 18px; }
  .crumbs { padding: 16px 18px 0; }
}
