/* OkonomiDAM website. Studio-backdrop grey, graphite ink, one ultramarine accent (the Z axis);
   axis red and green only where axes are meant. Archivo at two widths: expanded for headings,
   normal for text. IBM Plex Mono only for real tool calls. */

@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo.woff2) format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url(fonts/plex-mono-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url(fonts/plex-mono-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #e9eae6;        /* cyclorama */
  --surface: #fafaf8;
  --ink: #23262b;       /* graphite */
  --ink-2: #4f555b;     /* secondary text, 7:1 on --bg */
  --line: #c4c7c2;
  --grey-card: #868b90; /* 18% grey: rules and ticks */
  --accent: #2f3fe0;    /* Z axis */
  --accent-hover: #2232c4;
  --axis-x: #e5484d;
  --axis-y: #3e9b4f;
  --console: #23262b;
  --console-ink: #e3e5e1;
  --console-dim: #9aa0a6;
  --console-tool: #a4adff;

  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.9rem); font-stretch: 122%; line-height: 1.02; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-stretch: 118%; line-height: 1.1; letter-spacing: -0.008em; }
h3 { font-size: 1.15rem; font-stretch: 112%; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* --- buttons --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-stretch: 108%; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-quiet { color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--bg); }

/* --- header ---------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-stretch: 118%; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.logo { width: 28px; height: 28px; flex: none; }
.top-nav { display: flex; gap: 24px; }
.top-nav a, .signin, .lang { color: var(--ink); text-decoration: none; font-weight: 500; }
.top-nav a:hover, .signin:hover, .lang:hover { color: var(--accent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.lang { color: var(--ink-2); font-size: 0.95rem; }

/* --- hero ------------------------------------------------------------------------------ */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(80px, 10vw, 144px); overflow-x: clip; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy h1 { grid-column: 1 / -1; max-width: 15em; }
.hero-copy .lead { margin-top: 0; }
.hero-copy .cta-block { padding-bottom: 6px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.note { margin-top: 16px; color: var(--ink-2); font-size: 0.95rem; }

.stage { position: relative; margin: 0; padding: 0 0 0 clamp(0px, 8vw, 120px); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -30px rgba(35,38,43,.35); }
.shot img { width: 100%; }
.shot-hero { max-width: none; }

/* The agent console: the one moment that moves. Lines appear in order once, on load. */
.console {
  position: absolute; left: 0; bottom: clamp(-48px, -3vw, -24px); width: min(460px, 88%);
  background: var(--console); color: var(--console-ink); border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(35,38,43,.55);
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5;
}
.console-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font); font-weight: 600; font-size: 0.9rem; }
.console-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--axis-y); box-shadow: 0 0 0 3px rgba(62,155,79,.25); }
.console-title { margin-left: auto; color: var(--console-dim); font-weight: 400; }
.console-log { list-style: none; margin: 0; padding: 14px 16px 16px; display: grid; gap: 6px; }
.console-log li { overflow-wrap: anywhere; animation: line-in 0.35s ease-out both; animation-delay: calc(0.5s + var(--i) * 0.55s); }
.log-say { font-family: var(--font); font-size: 0.9rem; color: #fff; padding-bottom: 6px; }
.log-call { color: var(--console-tool); }
.log-call::before { content: "› "; color: var(--console-dim); }
.log-result { color: var(--console-dim); padding-left: 14px; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- steps (a real sequence, so numbered) ---------------------------------------------- */
.steps { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.step-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step-list li { display: grid; gap: 12px; align-content: start; }
.step-n { font-size: 3.5rem; font-weight: 300; font-stretch: 125%; line-height: 1; color: var(--accent); }
.step-list p { color: var(--ink-2); max-width: 30em; }

/* --- feature rows ---------------------------------------------------------------------- */
.feature { padding-block: clamp(48px, 7vw, 96px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature:nth-child(even) .feature-inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text { display: grid; gap: 18px; }
.feature-text p { color: var(--ink-2); font-size: 1.1rem; max-width: 30em; }
.feature figure { margin: 0; }
.feature-mobile .feature-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.phone { justify-self: center; width: min(300px, 80%); padding: 10px; border-radius: 44px; background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(35,38,43,.55); }
.phone img { border-radius: 34px; }

/* --- agents band ----------------------------------------------------------------------- */
.agents { background: var(--console); color: var(--console-ink); padding-block: clamp(64px, 9vw, 128px); }
.agents h2 { color: #fff; }
.agents .lead { color: var(--console-ink); margin-top: 24px; }
.agents-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.endpoint { margin-top: 32px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); max-width: 100%; }
.endpoint span { font-weight: 700; font-stretch: 118%; font-size: 0.85rem; color: var(--console-dim); }
.endpoint code { font-family: var(--mono); color: var(--console-tool); font-size: 0.95rem; overflow-wrap: anywhere; }
.agent-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.agent-points li { position: relative; padding-left: 28px; line-height: 1.55; }
.agent-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border: 2px solid var(--console-tool); border-radius: 2px; transform: rotate(45deg); }

/* --- pricing: a seat scale, 1 to unlimited ----------------------------------------------- */
.pricing { padding-block: clamp(64px, 9vw, 128px); }
.pricing .lead { margin-top: 20px; }
.scale { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.scale::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); }
.stop { position: relative; padding: 36px 24px 0 0; display: grid; gap: 4px; align-content: start; }
.stop-tick { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.stop:not(.stop-free) .stop-tick { background: var(--accent); border-color: var(--accent); }
.stop h3 { font-size: 1.3rem; }
.stop-seats { color: var(--ink-2); }
.stop-price { margin-top: 18px; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; font-stretch: 118%; line-height: 1; font-variant-numeric: tabular-nums; }
.stop-per { color: var(--ink-2); font-size: 0.9rem; }
.pricing-notes { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: start; }
.storage-note { font-size: 1.2rem; line-height: 1.5; max-width: 32em; }
.pricing-notes ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 8px; grid-row: span 2; }
.pricing-notes .btn { justify-self: start; }

/* --- FAQ ------------------------------------------------------------------------------- */
.faq { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.faq-list { display: grid; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-stretch: 106%; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
.answer { padding-bottom: 22px; color: var(--ink-2); max-width: 38em; }

/* --- legal ----------------------------------------------------------------------------- */
.legal { padding-block: clamp(40px, 6vw, 80px); max-width: calc(46rem + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.25rem; font-stretch: 112%; margin-top: 36px; }
.legal p { margin-top: 12px; color: var(--ink-2); }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 8px; max-width: 46rem; }
.legal p, .legal li { max-width: 46rem; }
.draft { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 6px; background: #fff3c4; color: #5c4a00 !important; font-weight: 600; }
mark { background: #fff3c4; color: inherit; padding: 0 3px; border-radius: 3px; }

/* --- footer ---------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px; color: var(--ink-2); font-size: 0.95rem; }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot p { margin-top: 10px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; }

/* --- responsive ------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .top-nav { display: none; }
  .hero-inner, .feature-inner, .feature:nth-child(even) .feature-inner, .feature-mobile .feature-inner,
  .agents-inner, .faq-inner, .pricing-notes { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-text { order: 0; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 0; }
  .console { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 16px 0; }
  .step-list { grid-template-columns: minmax(0, 1fr); }
  .pricing-notes ul { grid-row: auto; }
}
@media (max-width: 720px) {
  .scale { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scale::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .stop { padding: 0 0 0 40px; }
  .stop-price { margin-top: 8px; }
  .signin { display: none; }
  .top-actions { gap: 14px; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .top-actions .btn-small { padding: 0 12px; font-size: 0.9rem; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .console-log li { animation: none; }
  summary::after { transition: none; }
}
