/*
 * Marketing polish layer — shared design elevation across all marketing pages
 * (landing, about, docs, privacy, terms). Load AFTER sandshade.css.
 *
 * Keeps the whole marketing surface in one language: the confident type
 * scale, the ledger dot-grid texture, card hover interactions, the rotating
 * brand ornament, and reduced-motion safety. Page-specific composition
 * (hero scenes, the dark trust chapter, bento) stays inline on the landing
 * page — this file is only the parts every page shares.
 */

/* ── Confident display type ─────────────────────────────────────────────── */
.page-header h1,
.about-hero-split h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.heading-lg { letter-spacing: -0.045em; }

/* ── Ledger dot-grid texture (for page headers / hero areas) ────────────── */
.dotgrid-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13, 13, 13, 0.06) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 40% 10%, black 22%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 80% at 40% 10%, black 22%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Soft brand glows ───────────────────────────────────────────────────── */
.brand-glow {
  position: absolute;
  width: 55%; height: 130%;
  background: radial-gradient(ellipse, rgba(10, 104, 71, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.brand-glow.warm {
  background: radial-gradient(ellipse, rgba(198, 161, 102, 0.08) 0%, transparent 70%);
}

/* ── Rotating line-blossom ornament ─────────────────────────────────────── */
.blossom-ornament {
  position: absolute;
  width: 320px; height: 320px;
  opacity: 0.07;
  animation: ornament-spin 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.blossom-ornament.on-dark { opacity: 0.10; }
@keyframes ornament-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Card hover micro-interactions ──────────────────────────────────────── */
.value-card,
.card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 104, 71, 0.25);
}
.value-card:hover .value-icon {
  background: rgba(10, 104, 71, 0.14);
  border-color: rgba(10, 104, 71, 0.3);
}

/* Docs sidebar links get a smoother, more tactile hover */
.doc-nav a { transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }

/* Pause the capability marquee when a reader hovers to actually read it */
.marquee-track:hover { animation-play-state: paused; }

/* ── Reduced-motion safety ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .blossom-ornament { animation: none; }
  .value-card, .card { transition: none; }
}


/* ── Active nav link (scroll-spy) ───────────────────────────────────────── */
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* ── Keyboard focus states (accessibility) ──────────────────────────────── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Don't show the ring on mouse click, only keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ── Mobile footer (shared) ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
    padding: 2.5rem var(--gutter) 3rem;
  }
  footer > div:first-child { align-items: center; }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    max-width: 300px;
  }
  .footer-links a { font-size: 0.85rem; padding: 0.25rem 0; }
  .footer-right { text-align: center; }
}

/* ── Opaque mobile header (no ghost-through on scroll) ───────────────────── */
@media (max-width: 640px) {
  nav, nav.scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ── FAQ accordions (shared) ─────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; cursor: pointer; font-size: 0.95rem; font-weight: 600;
  color: var(--text); user-select: none;
}
.faq-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.2s, transform 0.25s; font-size: 1rem;
  color: var(--text-secondary); margin-top: 1px;
}
.faq-item.open .faq-icon { background: var(--accent); color: white; transform: rotate(45deg); border-color: var(--accent); }
.faq-answer { display: none; padding-top: 0.875rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }


/* ── Blossom doodle texture (brand-kit sakura mark, scattered & faint) ───── */
/* Apply .doodle-bg to a section for a soft branded background texture. The
   pattern is a tiled SVG of line-only blossoms + lone petals; opacity is
   kept very low so it reads as texture, never clutter. A radial mask fades
   it toward the edges so content stays clean. */
.doodle-bg { position: relative; }
.doodle-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22300%22%20viewBox%3D%220%200%20300%20300%22%3E%3Cg%20transform%3D%22translate%2858%2062%29%20rotate%2812%29%20scale%280.62%29%20translate%28-40%20-40%29%22%20fill%3D%22none%22%20stroke%3D%22%230A6847%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%280%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%2872%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28144%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28216%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28288%2040%2040%29%22%2F%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2240%22%20r%3D%222.4%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28210%2040%29%20rotate%28130%29%20scale%280.5%29%20translate%28-40%20-40%29%22%20fill%3D%22none%22%20stroke%3D%22%230A6847%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28250%20150%29%20rotate%2820%29%20scale%280.46%29%20translate%28-40%20-40%29%22%20fill%3D%22none%22%20stroke%3D%22%230A6847%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28120%20210%29%20rotate%28-18%29%20scale%280.5%29%20translate%28-40%20-40%29%22%20fill%3D%22none%22%20stroke%3D%22%230A6847%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%280%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%2872%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28144%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28216%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28288%2040%2040%29%22%2F%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2240%22%20r%3D%222.4%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2840%20200%29%20rotate%28205%29%20scale%280.44%29%20translate%28-40%20-40%29%22%20fill%3D%22none%22%20stroke%3D%22%230A6847%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28245%20262%29%20rotate%2840%29%20scale%280.4%29%20translate%28-40%20-40%29%22%20fill%3D%22none%22%20stroke%3D%22%230A6847%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%280%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%2872%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28144%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28216%2040%2040%29%22%2F%3E%3Cpath%20d%3D%22M40%2040%20C32%2036%2027.5%2024%2033%2013.5%20C35.2%208.5%2039%208.5%2040%2014.5%20C41%208.5%2044.8%208.5%2047%2013.5%20C52.5%2024%2048%2036%2040%2040%20Z%22%20transform%3D%22rotate%28288%2040%2040%29%22%2F%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2240%22%20r%3D%222.4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 300px 300px;
  opacity: 0.05;
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 40%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 120% 100% at 50% 40%, black 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.doodle-bg > * { position: relative; z-index: 1; }
/* Slightly stronger on dark surfaces (sand-toned blossoms show fainter). */
.doodle-bg.on-alt::before { opacity: 0.06; }
