/* Kasauti by MannatAI: the public site.
   Palette from the Kasauti brand (stone and gold). Gold is only ever placed on the stone;
   on paper the accent is the darkened gold that reads at 4.8:1. Type: Fraunces for display,
   Plus Jakarta Sans for everything else, JetBrains Mono for small labels. */
:root {
  --paper: #f6f7f9; --white: #ffffff; --ink: #1f262e; --muted: #56606c; --soft: #8a949f;
  --line: #dde1e6; --line-strong: #c3cad3;
  --stone: #1f262e; --stone-deep: #0d1117; --stone-2: #2a323c; --rim: #6b7785;
  --gold: #e9b03c; --gold-bright: #f2c04e; --gold-ink: #98690f; --gold-tint: #fbf3e0;
  --on-stone: #f2f4f7; --on-stone-muted: #a3adb9;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px); --radius: 12px;
  --shadow: 0 1px 2px rgb(31 38 46 / 6%), 0 12px 32px rgb(31 38 46 / 8%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.015em; text-wrap: pretty; line-height: 1.08; }
h1 { font-size: clamp(42px, 6vw, 76px); font-variation-settings: "opsz" 144; letter-spacing: -0.025em; line-height: 1.0; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h2.sm { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font-family: var(--sans); font-weight: 700; font-size: 17px; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.on-stone :focus-visible, .top :focus-visible { outline-color: var(--gold-bright); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 16px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.on-stone .eyebrow { color: var(--gold-bright); }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 760px; }
.on-stone .lead { color: var(--on-stone-muted); }
.muted { color: var(--muted); }
.on-stone .muted { color: var(--on-stone-muted); }
.max { max-width: 720px; }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 10px; background: var(--stone); color: var(--white); font-size: 15px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-family: inherit; text-decoration: none; transition: background 0.15s, transform 0.15s, box-shadow 0.2s; }
.btn:hover { background: #333d49; color: var(--white); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn.gold { background: var(--gold-bright); color: var(--stone); }
.btn.gold:hover { background: #f6cf72; color: var(--stone); box-shadow: 0 0 32px rgb(242 192 78 / 35%); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--white); color: var(--ink); }
.on-stone .btn.ghost { color: var(--on-stone); border-color: rgb(242 244 247 / 35%); }
.on-stone .btn.ghost:hover { background: rgb(255 255 255 / 8%); color: var(--on-stone); border-color: var(--on-stone); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link svg { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgb(13 17 23 / 92%); backdrop-filter: blur(12px); color: var(--on-stone); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; padding: 0 var(--pad); max-width: 1320px; margin: 0 auto; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 600; }
.nav a { color: var(--on-stone-muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-stone); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--on-stone); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) var(--pad); }
.section.tight { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.inner { max-width: 1180px; margin: 0 auto; }
.inner.narrow { max-width: 820px; }
.on-stone { background: var(--stone); color: var(--on-stone); }
.on-stone.deep { background: linear-gradient(158deg, #1b212a 0%, #0f1319 100%); }
.on-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Cards */
.card { display: grid; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); align-content: start; }
.on-stone .card { background: rgb(255 255 255 / 4%); border-color: rgb(255 255 255 / 10%); }
.card h3 { font-size: 22px; }
.card .n { font-family: var(--mono); font-size: 12px; color: var(--gold-ink); letter-spacing: 0.12em; }
.on-stone .card .n { color: var(--gold-bright); }
.streak-dot { width: 44px; height: 32px; border-radius: 9px; background: var(--stone); position: relative; flex-shrink: 0; }
.streak-dot::after { content: ""; position: absolute; left: 9px; top: 15px; width: 26px; height: 4px; border-radius: 3px; background: var(--gold); transform: rotate(-22deg); }
.on-stone .streak-dot { background: var(--stone-2); box-shadow: inset 0 0 0 1.5px var(--rim); }
.on-stone .streak-dot::after { background: var(--gold-bright); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(84px, 13vw, 170px) var(--pad) clamp(72px, 10vw, 130px); }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .streak { stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 16px rgb(242 192 78 / 35%)); animation: draw 2.1s ease both; }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.hero-art .rub { stroke: #fff6d6; stroke-dasharray: 3 100; stroke-dashoffset: -97; opacity: 0; filter: drop-shadow(0 0 8px rgb(255 229 150 / 95%)) drop-shadow(0 0 20px rgb(242 192 78 / 70%)); animation: rub 2.1s ease both; }
@keyframes rub { 0% { stroke-dashoffset: 3; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -97; opacity: 0; } }
.hero-glow { position: absolute; right: 18%; top: -6%; width: min(52%, 560px); aspect-ratio: 1; pointer-events: none; background: radial-gradient(circle, rgb(242 192 78 / 30%) 0%, rgb(242 192 78 / 0%) 68%); opacity: 0.25; animation: glow 2.4s ease-out 1.3s both; }
@keyframes glow { 0% { opacity: 0; transform: scale(0.5); } 72% { opacity: 0.62; } 100% { opacity: 0.32; transform: scale(1); } }
.hero-in { position: relative; max-width: 820px; display: grid; gap: 22px; }
.hero-in > * { animation: rise 0.7s ease both; }
.hero-in > *:nth-child(2) { animation-delay: 0.06s; }
.hero-in > *:nth-child(3) { animation-delay: 0.12s; }
.hero-in > *:nth-child(4) { animation-delay: 0.18s; }
.hero-in > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 { color: var(--white); }
.hero .lead { color: #c9d1db; font-size: clamp(19px, 2.2vw, 24px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 10px; }
.proof li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-stone-muted); }
.proof li::before { content: ""; width: 18px; height: 4px; border-radius: 3px; background: var(--gold-bright); transform: rotate(-22deg); }
.hero.page { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero.page h1 { font-size: clamp(38px, 5vw, 64px); }

/* Steps and timeline */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--display); font-size: 30px; color: var(--soft); line-height: 1; padding-top: 2px; font-variation-settings: "opsz" 144; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step.gate { background: var(--gold-tint); margin: 0 -16px; padding: 22px 16px; border-radius: 10px; border-color: transparent; }
.step.gate .num { color: var(--gold-ink); }
.gate-tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-left: 10px; vertical-align: middle; }

/* Mocks: the product drawn in HTML, never screenshots */
.mock { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14.5px; }
.on-stone .mock { color: var(--ink); }
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 13px; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--stone); color: var(--gold-bright); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.ai-badge::before { content: ""; width: 10px; height: 3px; border-radius: 2px; background: var(--gold-bright); transform: rotate(-22deg); }
.quote { border-left: 3px solid var(--gold); padding: 6px 12px; background: var(--gold-tint); border-radius: 0 8px 8px 0; color: var(--ink); font-size: 14px; }
.cite { font-family: var(--mono); font-size: 11.5px; color: var(--gold-ink); }
.mock-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-actions span { border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.mock-actions span.primary { background: var(--stone); color: var(--white); border-color: var(--stone); }
.chat { display: grid; gap: 10px; }
.chat .msg { max-width: 92%; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.chat .msg.me { justify-self: end; background: var(--stone); color: var(--on-stone); border-color: var(--stone); }
.chat .who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.chat .msg.me .who { color: var(--on-stone-muted); }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--stone), var(--stone-2)); width: 0; transition: width 1.2s ease; }
.bar .fill.gold { background: var(--gold-ink); }
.is-in .bar .fill { width: var(--w); }
.bar b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--muted); }
.decision { display: grid; gap: 6px; font-size: 14px; }
.decision dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.decision dd { margin: 0 0 6px; }

/* Lists */
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 16px; border-radius: 5px; background: var(--stone); margin-top: 5px; position: relative; }
.checks li { position: relative; }
.checks li > span::before { content: ""; position: absolute; left: 4px; top: 11px; width: 14px; height: 3px; border-radius: 2px; background: var(--gold); transform: rotate(-22deg); }
.on-stone .checks li::before { background: var(--stone-2); box-shadow: inset 0 0 0 1.5px var(--rim); }
.on-stone .checks li > span::before { background: var(--gold-bright); }
.never li { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; }
.never li::before { margin-top: 8px; }
.never li > span::before { top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; font-weight: 600; }
.on-stone .chip { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 18%); color: var(--on-stone); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--paper); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; color: var(--muted); border-top: 0; }
.table td:first-child { font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Rings */
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ring { padding: 24px; border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--radius); display: grid; gap: 8px; background: rgb(255 255 255 / 3%); }
.ring .n { font-family: var(--mono); font-size: 12px; color: var(--gold-bright); letter-spacing: 0.12em; }
.ring h3 { font-size: 20px; }
.ring p { color: var(--on-stone-muted); font-size: 15px; }

/* Try it: the review-the-AI question */
.try { display: grid; gap: 18px; }
.try .scenario { padding: 18px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.try .ai-answer { padding: 18px; border-radius: 10px; border: 1px solid var(--line); display: grid; gap: 10px; }
.try .choices { display: flex; gap: 10px; flex-wrap: wrap; }
.try .reveal { padding: 18px; border-radius: 10px; background: var(--gold-tint); border: 1px solid #ecd9a6; display: grid; gap: 8px; }
.try .reveal[hidden] { display: none; }
.try .verdict { font-weight: 700; }
.timer { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.timer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-ink); }

/* Contact form */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink); min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--gold-tint); border: 1px solid #ecd9a6; }
.notice[hidden] { display: none; }

/* Footer */
.foot { background: var(--stone-deep); color: var(--on-stone-muted); padding: 56px var(--pad) 40px; border-top: 1px solid rgb(255 255 255 / 8%); }
.foot-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: 14.5px; }
.foot img { height: 40px; width: auto; margin-bottom: 14px; }
.foot h4 { color: var(--on-stone); font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--on-stone-muted); text-decoration: none; }
.foot a:hover { color: var(--on-stone); text-decoration: underline; }
.foot-base { max-width: 1180px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 10%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* Reveal on scroll */
/* Only once the script is running, and the script reveals everything after a moment regardless. */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .hero-art .rub { display: none; }
  .js .rv { opacity: 1; transform: none; }
  .is-in .bar .fill { transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .four { grid-template-columns: 1fr 1fr; }
  .rings { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* On a phone the streak runs behind the words, so it steps back. */
  .hero-art { opacity: 0.55; }
  .hero.page .hero-art { opacity: 0.4; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--stone-deep); padding: 8px 0 16px; border-bottom: 1px solid rgb(255 255 255 / 10%); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--pad); }
  .nav .btn { margin: 10px var(--pad) 0; }
  .menu-btn { display: inline-flex; }
  .two, .three, .four, .rings, .foot-in { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr; gap: 6px; }
  .step { grid-template-columns: 40px 1fr; gap: 12px; }
  .step .num { font-size: 24px; }
  .table td:first-child { white-space: normal; }
}
