/* ============================================================
   Nanu marketing site — design tokens
   Concept: "Built on patterns." Nanu's own product is grounded in
   repetitive-pattern recognition (the entry requirement for its
   first learners, and the literal technique behind Beadwork
   Academy). The bead-row motif that recurs through this site is
   not decoration bolted onto a template — it's the same visual
   language the product teaches.

   Committed single-theme, light, blue accents (not auto dark
   mode) — the palette is three shades of blue rather than three
   hues, so the bead-row rhythm still reads as pattern/variation
   while staying inside one deliberate color family.
   ============================================================ */

:root {
  /* ---- color: light, blue-tinted neutrals ---- */
  --ink: #10202f;
  --ink-soft: #4f6478;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --line: #d7e2ee;

  /* three shades of blue, kept under the original token names so
     every nth-child/data-accent reference below still resolves */
  --teal: #1b5fa8;       /* medium blue — primary */
  --teal-soft: #e2ecf7;
  --coral: #0b3d66;      /* deep navy — secondary */
  --coral-soft: #e1e7ee;
  --ochre: #2f86c7;      /* bright sky blue — tertiary */
  --ochre-soft: #e5f1fa;

  --focus: #1b5fa8;

  /* ---- type ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- scale ---- */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-2xl: 96px;
  --space-3xl: 144px;

  --container: 1140px;
  --prose: 640px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--teal-soft); color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}

p { margin: 0 0 1em; max-width: var(--prose); }
p:last-child { margin-bottom: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 720px) {
  .wrap { padding: 0 var(--space-lg); }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--space-sm);
  display: inline-block;
}

/* ============================================================
   Bead-row motif — the recurring structural device
   ============================================================ */

.bead-row {
  display: flex;
  gap: 10px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bead-row li {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.bead-row li:nth-child(3n+1) { background: var(--teal); }
.bead-row li:nth-child(3n+2) { background: var(--coral); }
.bead-row li:nth-child(3n+3) { background: var(--ochre); }

.bead-divider {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: var(--space-2xl) 0 0;
  margin-bottom: calc(var(--space-2xl) * -1 + var(--space-xl));
  justify-content: center;
}
.bead-divider span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  opacity: 0.85;
}
.bead-divider span:nth-child(3n+1) { background: var(--teal); }
.bead-divider span:nth-child(3n+2) { background: var(--coral); }
.bead-divider span:nth-child(3n+3) { background: var(--ochre); }

/* ============================================================
   Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  gap: 3px;
}
.brand-mark span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.brand-mark span:nth-child(1) { background: var(--teal); }
.brand-mark span:nth-child(2) { background: var(--coral); }
.brand-mark span:nth-child(3) { background: var(--ochre); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15.5px;
  font-weight: 700;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: var(--space-md) 0;
}
.mobile-panel.is-open { display: block; }
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 17px;
}
.mobile-panel a { text-decoration: none; color: var(--ink); }
@media (min-width: 900px) { .mobile-panel { display: none !important; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark { background: var(--paper); color: var(--ink); }
.btn-on-dark:hover { background: var(--ochre-soft); }

.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: var(--space-md);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
#hero-canvas { width: 100%; height: 100%; display: block; }

/* ============================================================
   Page hero (secondary pages, no canvas)
   ============================================================ */

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.page-hero .hero-lede { margin-top: var(--space-sm); }

/* ============================================================
   Sections
   ============================================================ */

section { padding: var(--space-2xl) 0; }
section.tight { padding: var(--space-xl) 0; }
.section-head { max-width: 720px; margin-bottom: var(--space-xl); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { font-size: 19px; color: var(--ink-soft); margin-top: var(--space-sm); }

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-ink {
  background: var(--ink);
  color: var(--paper);
  border: none;
}
.band-ink .eyebrow { color: var(--ochre); }
.band-ink .ink-soft-on-dark { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* ============================================================
   Grids & cards
   ============================================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.persona-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.persona-card:hover { transform: translateY(-3px); border-color: var(--accent, var(--teal)); }
.persona-card[data-accent="teal"] { --accent: var(--teal); }
.persona-card[data-accent="coral"] { --accent: var(--coral); }
.persona-card[data-accent="ochre"] { --accent: var(--ochre); }

.persona-card .tag {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent, var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
}
.persona-card h3 { font-size: 22px; }
.persona-card p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }
.persona-card .go { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--accent, var(--teal)); }

/* ============================================================
   Stat row
   ============================================================ */

.stat-row {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border-top: 3px solid var(--teal);
  padding-top: var(--space-sm);
}
.stat:nth-child(4n+2) { border-color: var(--coral); }
.stat:nth-child(4n+3) { border-color: var(--ochre); }
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat .l { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }

/* ============================================================
   Timeline (Our Story)
   ============================================================ */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 var(--space-xl) var(--space-lg);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--paper);
}
.timeline li:nth-child(3n+2)::before { background: var(--coral); }
.timeline li:nth-child(3n+3)::before { background: var(--ochre); }
.timeline .when {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.timeline h3 { font-size: 22px; margin-bottom: 8px; }
.timeline p { color: var(--ink-soft); }

/* ============================================================
   Pull quote
   ============================================================ */

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  max-width: 780px;
  font-weight: 500;
}
.pull-quote span { color: var(--teal); }
.pull-quote-attr {
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Forms
   ============================================================ */

.form-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: repeat(2, 1fr); } }

label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: var(--space-md); }
.field-note { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

.honeypot { position: absolute; left: -9999px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============================================================
   Utility
   ============================================================ */

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.max-prose { max-width: var(--prose); }
.list-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.list-check li { padding-left: 32px; position: relative; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.list-check li::after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
