/* ============================================================
   Humanish Intelligence — homepage styles
   Type: Hanken Grotesk (sans) + Newsreader (serif italic accents)
   ============================================================ */

:root {
  --bg:        #FAF8F3;
  --bg-panel:  #F1EDE4;
  --bg-deep:   #1E1C18;
  --ink:       #1C1A17;
  --ink-2:     #5C554C;
  --ink-3:     #8A8377;
  --line:      rgba(28, 26, 23, 0.10);
  --line-2:    rgba(28, 26, 23, 0.16);

  /* accent (default: balance green) */
  --accent:      oklch(0.55 0.095 156);
  --accent-soft: oklch(0.55 0.095 156 / 0.10);
  --accent-deep: oklch(0.42 0.085 156);
  --on-accent:   #FAF8F3;

  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 14px;
  --r-lg: 22px;
}

[data-accent="clay"] {
  --accent:      oklch(0.585 0.115 47);
  --accent-soft: oklch(0.585 0.115 47 / 0.10);
  --accent-deep: oklch(0.46 0.10 47);
}
[data-accent="indigo"] {
  --accent:      oklch(0.52 0.11 268);
  --accent-soft: oklch(0.52 0.11 268 / 0.10);
  --accent-deep: oklch(0.40 0.10 268);
}
[data-accent="ink"] {
  --accent:      oklch(0.30 0.012 80);
  --accent-soft: oklch(0.30 0.012 80 / 0.08);
  --accent-deep: oklch(0.22 0.01 80);
}

[data-serif="off"] .ac { font-family: var(--font-sans); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

* { box-sizing: border-box; }
/* during initial load, suppress transitions so theme application (accent etc.)
   snaps to its final value instead of animating — and can never freeze mid-transition
   on a hidden/throttled tab or during an export. Lifted by JS once tweaks are applied. */
html.preload *, html.preload *::before, html.preload *::after { transition: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* accent word */
.ac {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; flex: none;
  position: relative; overflow: hidden;
}
.brand .mark::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  clip-path: polygon(0 58%, 28% 44%, 50% 60%, 74% 36%, 100% 52%, 100% 100%, 0 100%);
}
.brand .mark::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); position: relative; z-index: 1;
  margin-top: -8px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15.5px; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 600;
  padding: 11px 20px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 14px 7px 11px; border: 1px solid var(--line-2); border-radius: 100px;
  background: color-mix(in srgb, var(--bg-panel) 60%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1.hero-h {
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 800;
  margin: 26px 0 0; max-width: 14ch; text-wrap: balance;
}
.hero-sub {
  margin: 28px 0 0; max-width: 50ch;
  font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-3); }

.hero-visual {
  margin-top: clamp(48px, 7vw, 84px);
  position: relative;
}

/* ---------- placeholders ---------- */
.ph {
  position: relative; border-radius: var(--r); overflow: hidden;
  background-color: var(--bg-panel);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 11px,
    color-mix(in srgb, var(--ink) 5%, transparent) 11px 12px
  );
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph .ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3);
  background: var(--bg); padding: 6px 11px; border-radius: 100px; border: 1px solid var(--line);
}

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 10vw, 130px); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep);
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
h2.sec-h {
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 800; margin: 18px 0 0; max-width: 18ch; text-wrap: balance;
}
.sec-lead { margin: 20px 0 0; font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); max-width: 46ch; }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg-panel) 45%, transparent); }
.trust-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: 30px; }
.trust-label { font-size: 14px; color: var(--ink-3); max-width: 22ch; }
.stats { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.stat .n { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .n .ac { font-size: 0.7em; }
.stat .l { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; }

/* ---------- product blocks ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.product + .product { margin-top: clamp(72px, 11vw, 150px); }
.product.flip .p-copy { order: 2; }
.product-tag {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
}
.product-tag .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; }
.product-tag .ic span { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.product-tag .cat {
  font-weight: 600; font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2);
  text-transform: none; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 100px;
  background: color-mix(in srgb, var(--bg-panel) 55%, transparent);
}
.p-copy h3 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 16px 0 0; max-width: 16ch; text-wrap: balance; }
.p-copy p.lead { margin: 18px 0 0; color: var(--ink-2); font-size: 18.5px; max-width: 44ch; }
.feat-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 16.5px; color: var(--ink); }
.feat-list .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin-top: 1px; }
.feat-list .ck svg { width: 12px; height: 12px; }
.p-copy .btn { margin-top: 30px; }

/* phone mock */
.phone {
  width: min(300px, 78%); aspect-ratio: 9 / 19; margin-inline: auto;
  border-radius: 38px; background: var(--bg-deep); padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(28,26,23,.4), 0 0 0 1px rgba(28,26,23,.06);
}
.phone .screen { width: 100%; height: 100%; border-radius: 28px; }
.dash { aspect-ratio: 4 / 3.05; width: 100%; border-radius: var(--r-lg); box-shadow: 0 40px 80px -40px rgba(28,26,23,.35); }
.p-media { position: relative; }
.p-media .badge {
  position: absolute; bottom: 18px; left: 18px; z-index: 2;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; box-shadow: 0 14px 30px -16px rgba(28,26,23,.4); max-width: 220px;
}
.p-media .badge .t { font-size: 13px; font-weight: 700; }
.p-media .badge .d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- approach ---------- */
.approach { background: var(--bg-deep); color: var(--bg); }
.approach .kicker { color: color-mix(in srgb, var(--accent) 75%, white); }
.approach .kicker::before { background: color-mix(in srgb, var(--accent) 75%, white); }
.approach h2.sec-h { color: var(--bg); }
.approach .sec-lead { color: rgba(250,248,243,.62); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.value { border: 1px solid rgba(250,248,243,.14); border-radius: var(--r-lg); padding: 30px; background: rgba(250,248,243,.025); }
.value .vn { font-family: var(--font-serif); font-style: italic; font-size: 21px; color: color-mix(in srgb, var(--accent) 72%, white); }
.value h4 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 0; }
.value p { color: rgba(250,248,243,.6); font-size: 16px; margin: 12px 0 0; }

/* ---------- quote ---------- */
.quote-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
blockquote.q {
  margin: 0; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.025em;
  font-weight: 500; max-width: 20ch; text-wrap: balance;
}
blockquote.q .ac { color: var(--accent-deep); }
.q-by { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.q-by .av { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.q-by .nm { font-weight: 700; font-size: 15px; }
.q-by .rl { font-size: 14px; color: var(--ink-2); }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-lg); padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
  background: color-mix(in srgb, var(--on-accent) 10%, transparent);
}
.cta-band h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0; max-width: 16ch; }
.cta-band h2 .ac { color: var(--on-accent); }
.cta-band p { margin: 16px 0 0; color: color-mix(in srgb, var(--on-accent) 82%, transparent); font-size: 18px; max-width: 38ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; z-index: 1; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-ghost { color: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 40%, transparent); }
.cta-band .btn-ghost:hover { border-color: var(--on-accent); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 120px); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: clamp(48px, 6vw, 72px); }
.foot .brand { margin-bottom: 16px; }
.foot-blurb { color: var(--ink-2); font-size: 15.5px; max-width: 30ch; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 16px; font-weight: 700; }
.foot-col a, .foot-col .li { display: block; color: var(--ink-2); font-size: 15.5px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); transition: all .2s; }
.socials a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* force-snap: paints regardless of whether a transition can tick (hidden tabs, exports) */
.reveal.shown { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .product, .cta-band, .foot-top { grid-template-columns: 1fr; }
  .product.flip .p-copy { order: 0; }
  .values { grid-template-columns: 1fr; }
  .foot-top { gap: 30px; }
  .trust-in { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .stats { gap: 26px; }
  .hero-actions { gap: 11px; }
}
