/* ============================================================
   sacca.ai - Bay Area design system
   Crisp grotesk + mono labels, Momiji (#e2421f) accent on neutral,
   high-contrast dark hero. Tight radii, fine borders.
   ============================================================ */

:root {
  --forest: #211b17;       /* primary ink + dark sections */
  --forest-2: #18120e;     /* deepest */
  --bright: #e2421f;       /* Momiji - signature red-orange accent */
  --bright-hover: #c8381a;
  --mint: #f7ddc7;         /* warm light tint */
  --mint-soft: #fbeee3;
  --cream: #f6f4ee;        /* warm off-white ground */
  --paper: #ffffff;
  --ink-soft: #574a41;     /* muted text */
  --stone: #8a7d72;        /* secondary text */
  --line: #e7dfd2;
  --lilac: #f3e3a6;        /* accent tint */
  --sky: #f3c9a0;          /* accent tint */
  --peach: #ffc9a3;        /* accent tint */
  --accent: #c0381a;       /* deep momiji - readable accent on light */

  /* dark hero / header */
  --night: #100c0a;        /* near-black warm */
  --night-2: #1a1411;      /* raised surface */
  --on-night: #ece6df;     /* text on night */
  --night-muted: #9c8f85;  /* muted text on night */
  --hairline: rgba(255,255,255,.10);

  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Grotesk", sans-serif;

  --r-sm: 14px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 38px;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--forest);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--bright); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px rgba(226,66,31,.28); }
.btn--primary:hover { background: var(--bright-hover); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--forest-2); }
.btn--outline { background: transparent; color: var(--forest); border-color: var(--line); }
.btn--outline:hover { border-color: var(--forest); }
.btn--ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.4); }
.btn--light { background: var(--bright); color: #fff; }
.btn--light:hover { background: var(--bright-hover); }
.btn--full { width: 100%; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,244,238,.82);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--forest);
}
.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--forest);
}
.brand__dot { color: var(--accent); }
.brand__mark { width: 30px; height: 30px; display: inline-grid; place-items: center; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--forest); transition: color .2s; }
.site-nav a:hover { color: var(--accent); }
.site-nav .btn { padding: .55rem 1.1rem; font-size: .92rem; }
.site-nav .btn--primary { color: #fff; }
.site-nav .btn--primary:hover { color: #fff; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- hero (light, zen minimal) ---------- */
.hero {
  position: relative;
  background: var(--cream);
  padding: clamp(3.5rem, 9vw, 8rem) 0 clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }

.pill-tag {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.6rem;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 1.5rem;
  color: var(--forest);
}
h1 .hl { color: var(--accent); }
.hero__lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 2.2rem;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 1.8rem; color: var(--stone); font-size: .92rem; }

/* hero visual - one calm product card on cream, faint ensO behind */
.hero__visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}
.hero__visual::before { /* faint ensO motif (ma / negative space) */
  content: "";
  position: absolute;
  width: min(118%, 480px); aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23e2421f' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='214 38' transform='rotate(125 50 50)'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .14;
  z-index: 0;
  pointer-events: none;
}
.mock {
  position: relative;
  width: min(100%, 320px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(42,28,22,.18);
  padding: 1.3rem;
  z-index: 2;
}
.mock__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.mock__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--bright); display: grid; place-items: center; font-weight: 700; }
.mock__who { font-weight: 700; font-size: .95rem; }
.mock__who span { display: block; font-weight: 500; font-size: .8rem; color: var(--stone); }
.mock__live { margin-left: auto; font-size: .72rem; font-weight: 700; color: #c0381a; background: var(--mint-soft); padding: .25rem .55rem; border-radius: 999px; }
.bubble { background: var(--cream); border-radius: 14px; padding: .65rem .85rem; font-size: .9rem; margin-bottom: .55rem; }
.bubble--out { background: var(--mint); }
.mock__booked { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-weight: 700; color: var(--forest); }
.mock__booked .check { width: 22px; height: 22px; border-radius: 50%; background: var(--bright); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.chip {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(42,28,22,.16);
  padding: .6rem .85rem; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; gap: .45rem;
}
.chip--tl { top: 5%; left: 3%; }
.chip--br { bottom: 6%; right: 3%; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip .dot--g { background: var(--accent); }
.chip .dot--f { background: var(--forest); }
@media (max-width: 880px) { .chip--tl, .chip--br { display: none; } }

/* ---------- generic section ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--mint { background: var(--mint-soft); }
.section--forest { background: var(--forest); color: #fff; }
.sect-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sect-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
.section--forest .eyebrow { color: var(--bright); }
h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 .8rem;
}
.sect-sub { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.section--forest .sect-sub { color: #ecd7c7; }

/* ---------- products ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.prod-card {
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: transform .3s var(--ease);
  text-decoration: none;
}
.prod-card:hover { transform: translateY(-6px); }
.prod-card__tag { font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.prod-card h3 { font-weight: 700; font-size: 1.9rem; letter-spacing: -.02em; margin: .6rem 0 .2rem; }
.prod-card .tld { opacity: .55; font-weight: 700; }
.prod-card__line { margin: .9rem 0 0; font-size: 1.05rem; flex: 1; }
.prod-card__link { margin-top: 1.4rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.prod-card--mint { background: var(--mint); color: var(--forest); }
.prod-card--forest { background: var(--forest); color: #fff; }
.prod-card--forest .prod-card__link { color: var(--bright); }
.prod-card--lilac { background: var(--lilac); color: var(--forest); }
.prod-card__mockline {
  margin-top: 1.2rem; display: flex; gap: .4rem; flex-wrap: wrap;
}
.tagpill { font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.55); }
.prod-card--forest .tagpill { background: rgba(255,255,255,.14); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--bright); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 1.1rem; }
.step h3 { font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- services ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}
.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,28,22,.08); border-color: var(--bright); }
.svc__ic { width: 46px; height: 46px; border-radius: 14px; background: var(--mint-soft); display: grid; place-items: center; margin-bottom: 1rem; }
.svc__ic svg { width: 24px; height: 24px; }
.svc h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; margin: 0 0 .4rem; }
.svc p { margin: 0; color: var(--ink-soft); }

/* ---------- CTA / lead form ---------- */
.cta__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta__inner h2 { color: #fff; }
.cta__sub { color: #ecd7c7; font-size: 1.15rem; margin: 0 auto 2.5rem; max-width: 46ch; }

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--wide { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label { font-size: .85rem; font-weight: 700; color: var(--bright); }
label .opt { font-weight: 500; color: #b6a08f; }
input, select, textarea {
  font-family: var(--sans); font-size: 1rem;
  color: var(--forest); background: #fff;
  border: 2px solid transparent; border-radius: var(--r-sm);
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
input::placeholder, textarea::placeholder { color: #b09a8c; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--bright);
  box-shadow: 0 0 0 4px rgba(226,66,31,.30);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23163300' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
.form-actions { display: flex; flex-direction: column; gap: .9rem; }
.form-note { margin: 0; font-size: .95rem; min-height: 1.2em; color: #ecd7c7; }
.form-note.ok { color: var(--bright); }
.form-note.err { color: #ffb4a3; }
.lead-form.is-sending .btn__label::after { content: "…"; }
@media (max-width: 560px) { .lead-form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--forest-2); color: #ecd7c7; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.foot__top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.foot__brand .brand { color: #fff; }
.foot__brand p { margin: .6rem 0 0; max-width: 32ch; color: #cbb4a4; }
.foot__cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.foot__col h4 { color: #fff; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .9rem; }
.foot__col a { display: block; text-decoration: none; color: #cbb4a4; margin-bottom: .55rem; transition: color .2s; }
.foot__col a:hover { color: var(--bright); }
.foot__legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem; color: #a8917f;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- brand wordmark stays together ---------- */
.brand__word { white-space: nowrap; }

/* ---------- hero scene: cycle through all three products ---------- */
.scene { position: absolute; inset: 0; }
.scene__card {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  animation: show3 13.5s var(--ease) infinite;
}
.scene__card--1 { animation-delay: 0s; }
.scene__card--2 { animation-delay: 4.5s; }
.scene__card--3 { animation-delay: 9s; }
@keyframes show3 {
  0%   { opacity: 0; transform: translateY(18px) scale(.97); }
  3%   { opacity: 1; transform: none; }
  30%  { opacity: 1; transform: none; }
  34%  { opacity: 0; transform: translateY(-18px) scale(.97); }
  100% { opacity: 0; }
}

/* teleprompter mock (Lettermaps) */
.tele {
  height: 150px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.tele__lines { animation: telescroll 9s linear infinite; }
.tele__lines p { margin: 0 0 .6rem; font-size: .98rem; color: var(--stone); line-height: 1.45; }
.tele__lines p.cur { color: var(--forest); font-weight: 700; }
@keyframes telescroll {
  from { transform: translateY(10px); }
  to   { transform: translateY(-48%); }
}
.mock__live--rec { color: #b23b2e; background: #f7e4e1; }

/* focus mock (ChakraFocus) */
.focus { text-align: center; padding-top: .3rem; }
.focus__ring {
  width: 116px; height: 116px; border-radius: 50%;
  margin: 0 auto .9rem; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--accent) 0% 66%, var(--mint) 66% 100%);
  animation: focusfill 6s var(--ease) infinite alternate;
}
.focus__ring::before { content: ""; position: absolute; inset: 11px; background: #fff; border-radius: 50%; }
.focus__time { position: relative; font-weight: 700; font-size: 1.5rem; color: var(--forest); }
.focus__task { font-weight: 700; color: var(--forest); }
.focus__steps { display: flex; gap: .5rem; justify-content: center; margin-top: .85rem; }
.focus__steps span { font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.focus__steps .done { background: var(--mint-soft); color: var(--stone); text-decoration: line-through; }
.focus__steps .now { background: var(--mint); color: var(--forest); }
@keyframes focusfill {
  from { background: conic-gradient(var(--accent) 0% 58%, var(--mint) 58% 100%); }
  to   { background: conic-gradient(var(--accent) 0% 72%, var(--mint) 72% 100%); }
}

/* respect reduced motion: hold the first product, no cycling/scrolling */
@media (prefers-reduced-motion: reduce) {
  .scene__card { animation: none; opacity: 0; }
  .scene__card--1 { opacity: 1; }
  .tele__lines, .focus__ring { animation: none; }
}
