/* AnojKit site. Direction: "The product performs" (taste-skill seed 12472142), brand colours kept from the app. */
:root {
  --bg: #0d0e12;
  --surface: #15171d;
  --surface-2: #1c1f27;
  --surface-3: #262a35;
  --ink: #eef0f3;
  --muted: #a4a9b4;
  --accent: #2f8cff;
  --accent-ink: #061226;
  --ok: #3fbf7f;

  /* Five sizes for the whole page. */
  --step-small: 15px;
  --step-body: 17px;
  --step-lead: 26px;
  --step-title: 40px;
  --step-head: clamp(40px, 4.4vw, 64px);

  --margin: clamp(16px, 2.4vw, 32px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Switzer", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); letter-spacing: -0.01em; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
b { font-weight: 500; }
.muted { color: var(--muted); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 12px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.wrap { padding: 0 var(--margin); max-width: 1440px; margin: 0 auto; }
h2 { font-size: var(--step-head); }
.section-sub { font-size: var(--step-body); max-width: 52ch; margin-top: 16px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: var(--step-body); text-decoration: none; transition: transform .15s var(--ease), background-color .15s; }
.btn:hover { background: #4b9cff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--accent-ink); color: var(--ink); }
.btn-ink:hover { background: #0e1d38; }
.text-link { font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link span { transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: clamp(72px, 10vh, 120px); }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: var(--step-body); }
.mark img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: var(--step-small); }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: var(--step-small); }
.hero-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 4vw, 72px); align-items: center; min-height: calc(100svh - 88px - 120px); }
.hero h1 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.hero-sub { margin-top: 24px; font-size: var(--step-body); line-height: 1.55; max-width: 40ch; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-media { position: relative; padding-bottom: 56px; }
.hero-shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.hero-shot img { width: 100%; height: auto; animation: drift 18s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.045); } }

/* A real piece of the chat, laid over the screenshot's lower-left corner. */
.peek { position: absolute; left: -32px; bottom: 0; width: min(420px, 80%); background: var(--surface-2); border-radius: var(--radius); padding: 18px; font-size: 13px; letter-spacing: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); /* taste-skill-ignore: inside a data-ui fragment that floats over the picture */ }
.ui-row { display: flex; align-items: center; gap: 8px; color: #c5c9d2; }
.ui-row + .ui-row { margin-top: 10px; }
.ui-user { justify-content: flex-end; }
.ui-bubble { background: var(--surface-3); color: var(--ink); border-radius: 14px; padding: 7px 12px; }
.ui-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.ui-dot.ok { background: var(--ok); }
.ui-pointer { position: absolute; right: 72px; top: 22px; width: 14px; height: 20px; background: var(--ink); clip-path: polygon(0 0, 0 78%, 26% 60%, 46% 100%, 60% 94%, 40% 56%, 76% 56%); animation: point 4s var(--ease) infinite; }
@keyframes point { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-26px, 6px); } }

/* ---------- Showcase: live demo ---------- */
.showcase { padding: clamp(120px, 15vh, 200px) 0; }
.showcase .wrap { max-width: 1440px; }
.demo { margin-top: 40px; display: grid; grid-template-columns: 62fr 38fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; min-height: 620px; font-size: 14px; letter-spacing: 0; }
.demo-stage { position: relative; background: #08090c; }
.demo-stage canvas { width: 100%; height: 100%; display: block; }
.demo-readout { position: absolute; left: 16px; bottom: 14px; right: 16px; color: #c5c9d2; font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.demo-readout .warn { color: #e0a83a; }
.demo-readout .bad { color: #ff7b72; }
.demo-controls { padding: 20px 32px; background: var(--surface-2); display: flex; flex-direction: column; justify-content: center; }
.ctl { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 16px; min-height: 56px; color: #d5d8de; cursor: pointer; font-size: var(--step-small); }
.ctl output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctl:has(.toggle) { grid-template-columns: 120px 1fr; }
.ctl:has(.toggle) .toggle { justify-self: end; }
.swatches { display: flex; gap: 8px; grid-column: 2 / 4; justify-content: flex-end; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--ink); } /* taste-skill-ignore: inside a data-ui fragment */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--ink); }
.toggle { -webkit-appearance: none; appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); position: relative; cursor: pointer; transition: background-color .2s; margin: 0; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease); }
.toggle:checked { background: var(--accent); }
.toggle:checked::after { transform: translateX(16px); }
.demo-foot { margin-top: 20px; max-width: 60ch; }

/* ---------- How it works: four fields ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { position: relative; min-height: 520px; padding: 28px; display: flex; flex-direction: column; }
.f1 { background: #101217; }
.f2 { background: #181b22; }
.f3 { background: #22262f; }
.f4 { background: #2e3340; }
.field h2 { font-size: var(--step-lead); position: absolute; top: 28px; left: 28px; right: 28px; }
.card { position: absolute; top: 38%; left: 50%; width: 260px; margin-left: -130px; background: var(--bg); border-radius: var(--radius); padding: 16px; font-size: 14px; letter-spacing: 0; transition: transform .15s var(--ease); }
.field:hover .card { transform: translateY(-6px); }
.card-title { font-weight: 500; margin-bottom: 8px; }
.card-line { display: flex; align-items: center; gap: 8px; color: #d5d8de; line-height: 1.5; }
.card-line + .card-line { margin-top: 4px; }
.card-line.muted { color: var(--muted); }
.clause { margin-top: auto; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; max-width: 14ch; }

/* ---------- The app: crossfading screenshots ---------- */
.screens { padding: clamp(96px, 12vh, 160px) 0; }
.screens-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.screens-list { list-style: none; padding: 0; margin: 40px 0 0; }
.screens-list button { all: unset; display: block; cursor: pointer; padding: 14px 0 14px 18px; position: relative; width: 100%; box-sizing: border-box; }
.screens-list button::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: var(--surface-3); transition: background-color .3s; }
.screens-list b { display: block; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; color: var(--muted); transition: color .3s; }
.screens-list span { display: block; color: var(--muted); max-width: 44ch; margin-top: 4px; }
.screens-list li.on button::before { background: var(--accent); }
.screens-list li.on b, .screens-list button:hover b { color: var(--ink); }
.screens-list button:focus-visible { outline-offset: -2px; }
.screens-frame { margin: 0; position: relative; aspect-ratio: 1440 / 900; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.screens-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.screens-frame img.on { opacity: 1; }

/* ---------- Features: panel with margin notes ---------- */
.plate { padding: clamp(120px, 15vh, 200px) 0; background: var(--surface); }
.plate-grid { display: grid; grid-template-columns: 1fr 380px 1fr; gap: clamp(24px, 4vw, 64px); position: relative; }
.plate-h { grid-column: 1 / -1; font-size: var(--step-head); margin-bottom: 8px; max-width: 14ch; }
.notes { position: relative; min-height: 640px; }
.note { all: unset; box-sizing: border-box; position: absolute; top: var(--top); left: 0; right: 0; cursor: pointer; transition: transform .2s var(--ease); }
.notes-l .note { text-align: right; }
.notes-l .note span { margin-left: auto; }
.note b { display: block; font-size: var(--step-body); font-weight: 500; }
.note span { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 4px; line-height: 1.45; max-width: 28ch; }
.note:hover b, .note:focus-visible b, .note.on b { color: var(--accent); }
.note:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.panel { background: #181818; border-radius: var(--radius); padding: 14px 0; min-height: 700px; font-size: 13px; letter-spacing: 0; color: #cccccc; }
.p-part { padding: 10px 16px; transition: opacity .25s; }
.p-part.on { background: #24282f; box-shadow: inset 3px 0 0 var(--accent); } /* taste-skill-ignore: inside a data-ui fragment */
.p-title { font-size: 11.5px; color: #bbbbbb; margin-bottom: 10px; }
.p-label { font-size: 12px; color: #9a9a9a; margin-bottom: 8px; }
.p-select { background: #313131; border: 1px solid #3c3c3c; border-radius: 4px; padding: 6px 10px; display: flex; justify-content: space-between; color: #e0e0e0; } /* taste-skill-ignore: inside a data-ui fragment */
.p-select + .p-btn { margin-top: 10px; }
.p-item { padding: 6px 10px; border-radius: 4px; color: #d0d0d0; }
.p-item.sel { background: #37373d; color: #fff; }
.p-btn { background: #0078d4; color: #fff; text-align: center; padding: 8px; border-radius: 4px; }
.p-btn.ghost { background: #2b2b2b; color: #e0e0e0; }
.p-check { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.p-link { color: #4daafc; padding: 4px 0; }
.p-toggle { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.p-box { width: 14px; height: 14px; border: 1px solid #6b6b6b; border-radius: 3px; } /* taste-skill-ignore: inside a data-ui fragment */

/* ---------- FAQ ---------- */
.faq { padding: clamp(120px, 15vh, 200px) 0; }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-h { font-size: var(--step-head); max-width: 8ch; }
.faq-list { display: grid; gap: 8px; }
details { background: var(--surface); border-radius: var(--radius); transition: background-color .25s; }
summary { list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; position: relative; font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
summary::after { transform: rotate(90deg); }
details[open] { background: var(--accent); color: var(--accent-ink); }
details[open] summary::after { transform: rotate(0deg); }
details:not([open]) summary:hover { background: var(--surface-2); border-radius: var(--radius); }
details p { padding: 0 24px 24px; font-size: var(--step-body); max-width: 52ch; line-height: 1.55; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 0; overflow: hidden; }
.cta-row { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: 12px; margin: 0 -40px; }
.cta-side, .cta-main { height: 360px; border-radius: var(--radius); overflow: hidden; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }
.cta-flat { background: var(--surface-2); }
.cta-main { background: var(--accent); color: var(--accent-ink); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-text { display: flex; flex-direction: column; align-items: flex-start; }
.cta-shot { margin: 0; border-radius: var(--radius); overflow: hidden; }
.cta-shot img { width: 100%; height: auto; }
.cta-main h2 { font-size: var(--step-title); max-width: 18ch; }
.cta-main p { font-size: var(--step-body); margin: 14px 0 26px; max-width: 48ch; }
.cta-main .cta-meta { margin: 14px 0 0; font-size: var(--step-small); }

/* ---------- Footer ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px; padding: 120px var(--margin) 30px; font-size: var(--step-small); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.foot-r { text-align: right; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero-shot img { animation: none; }
  .screens-frame img { transition: none; }
  .ui-pointer { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero h1 { max-width: 12ch; }
  .peek { left: 16px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .screens-grid { grid-template-columns: 1fr; }
  .plate-grid { grid-template-columns: 1fr 360px; }
  .notes-l { order: 2; }
  .notes { min-height: 0; display: grid; gap: 20px; align-content: start; }
  .note { position: static; width: auto; }
  .notes-l .note { text-align: left; }
  .plate-grid .panel { grid-row: 2 / span 2; grid-column: 2; }
  .notes-l { grid-column: 1; grid-row: 2; }
  .notes-r { grid-column: 1; grid-row: 3; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .topbar { height: 72px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-actions { gap: 16px; }
  .hero-media { padding-bottom: 0; }
  .peek { position: relative; left: auto; width: auto; margin: -24px 12px 0; }
  .demo { grid-template-columns: 1fr; min-height: 0; }
  .demo-stage { aspect-ratio: 4 / 3; }
  .ctl { min-height: 52px; grid-template-columns: 100px 1fr 34px; }
  .flow { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 40px 20px; }
  .field h2 { order: -2; }
  .field h2 { position: static; margin-bottom: 8px; }
  .clause { order: -1; margin: 0; }
  .card { position: static; margin: 32px 0 0; }
  .plate-grid { grid-template-columns: 1fr; }
  .plate-grid .panel { grid-row: auto; grid-column: auto; min-height: 0; }
  .notes-l, .notes-r { grid-column: auto; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-h { position: static; max-width: none; }
  summary { min-height: 64px; }
  details p { padding: 0 20px 20px; }
  .cta-row { grid-template-columns: 1fr 1fr; margin: 0 var(--margin); gap: 6px; }
  .cta-main { grid-column: 1 / -1; grid-row: 1; height: auto; min-height: 300px; padding: 28px 24px; }
  .cta-main { grid-template-columns: 1fr; gap: 24px; }
  .cta-main h2 { font-size: var(--step-lead); }
  .cta-side { height: 120px; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding: 20svh var(--margin) 24px; }
  .foot nav { flex-wrap: wrap; }
  .foot-r { text-align: left; }
}
