/* DynaCarta site. Plain CSS, no build step. Colors are tokens; dark mode redefines them. */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f3;
  --surface: #ffffff;
  --ink: #15161a;
  --ink-soft: #3d3f46;
  --muted: #6c6f77;
  --line: #e6e6e2;
  /* The brand's colours (brand/brand-guidelines.txt): Electric Indigo and Deep Black. */
  --brand-accent: #4f46e5;
  --brand-ink: #0a0a0d;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eef0fe;
  --amber: #b45309;
  --amber-soft: #fdf2e2;
  --add: #15803d;
  --add-soft: #e8f6ec;
  --del: #b91c1c;
  --del-soft: #fdecec;
  --grid-dot: #dcdcd6;
  --shadow: 0 24px 60px -24px rgba(20, 22, 30, .28);
  --shadow-soft: 0 8px 28px -14px rgba(20, 22, 30, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012; --bg-alt: #15171a; --surface: #1b1d21; --ink: #eeefef; --ink-soft: #c9cacd;
    --muted: #8d9097; --line: #2a2d32; --accent: #818cf8; --accent-ink: #0a0a0d; --accent-soft: #1d2040;
    --brand-accent: #818cf8; --brand-ink: #ffffff;
    --amber: #f59e0b; --amber-soft: #33240c; --add: #4ade80; --add-soft: #10291a; --del: #f87171;
    --del-soft: #331516; --grid-dot: #2a2d32; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --shadow-soft: 0 8px 28px -14px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012; --bg-alt: #15171a; --surface: #1b1d21; --ink: #eeefef; --ink-soft: #c9cacd;
  --muted: #8d9097; --line: #2a2d32; --accent: #818cf8; --accent-ink: #0a0a0d; --accent-soft: #1d2040;
    --brand-accent: #818cf8; --brand-ink: #ffffff;
  --amber: #f59e0b; --amber-soft: #33240c; --add: #4ade80; --add-soft: #10291a; --del: #f87171;
  --del-soft: #331516; --grid-dot: #2a2d32; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --shadow-soft: 0 8px 28px -14px rgba(0, 0, 0, .6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons and small parts */
/* The primary button is the brand's indigo (brand/brand-guidelines.txt); it glows a little when pointed at. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s, opacity .15s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.accent-text { color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: .02em; margin-bottom: 12px; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 18px auto 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag.live { background: var(--accent-soft); color: var(--accent); }
.tag.soon { background: var(--amber-soft); color: var(--amber); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.chip.ok { background: var(--ink); color: var(--bg); box-shadow: none; }
.pill { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-left: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* The light/dark switch (motion.js switches it): the moon in the light look, the sun in the dark. */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.theme-toggle:hover { color: var(--ink); background: var(--bg-alt); }
/* The icon: in the light look a crescent moon (the body, with a circle cut from it); in the dark
   the cut slides away, the body shrinks to a sun and its rays turn in. */
.theme-icon { overflow: visible; }
.theme-icon__body { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.theme-icon__cut { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.theme-icon__rays { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transform-origin: 12px 12px; transform: rotate(-60deg) scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
:root[data-theme="dark"] .theme-icon__body { transform: scale(.56); }
:root[data-theme="dark"] .theme-icon__cut { transform: translate(9px, -9px); }
:root[data-theme="dark"] .theme-icon__rays { transform: none; opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon__body { transform: scale(.56); }
  :root:not([data-theme="light"]) .theme-icon__cut { transform: translate(9px, -9px); }
  :root:not([data-theme="light"]) .theme-icon__rays { transform: none; opacity: 1; }
}
.theme-toggle:active .theme-icon { transform: scale(.9); }
/* Counting figures keep their width as they count. */
[data-count] { font-variant-numeric: tabular-nums; }

/* Hero */
.hero { padding: 84px 0 24px; text-align: center; overflow: hidden; }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 640px; margin: 22px auto 0; }
.waitlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px auto 0; max-width: 520px; position: relative; }
.waitlist input[type="email"] { flex: 1 1 240px; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 15px var(--font); }
.waitlist input[type="email"]::placeholder { color: var(--muted); }
/* Turnstile's spot: empty unless Cloudflare needs the person to click. */
.turnstile { flex-basis: 100%; display: flex; justify-content: center; }
.turnstile:empty { display: none; }
.form-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.form-note.ok { color: var(--accent); font-weight: 600; }
.form-note.err { color: var(--del); }
.hero-visual { margin-top: 64px; }

/* App window mock */
.window { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-title { color: var(--muted); font-weight: 600; }
.window-tabs { margin-left: auto; display: flex; gap: 4px; }
.window-tabs b { font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 8px; font-size: 12px; }
.window-tabs b.on { background: var(--accent-soft); color: var(--accent); }
.canvas { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; grid-template-rows: auto auto; gap: 28px 4%; padding: 32px 4%; min-height: 330px; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px); background-size: 18px 18px; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.links path { fill: none; stroke: var(--muted); stroke-width: .35; opacity: .5; vector-effect: non-scaling-stroke; }
.links path.hot { stroke: var(--accent); opacity: .9; stroke-dasharray: 4 3; }
.proj { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-soft); font-size: 12.5px; align-self: start; }
.p-web { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.p-api { grid-column: 2; grid-row: 1; }
.p-mob { grid-column: 2; grid-row: 2; }
.p-db { grid-column: 3; grid-row: 1; }
.proj-head { display: flex; align-items: center; gap: 7px; font-weight: 650; margin-bottom: 8px; }
.proj-head em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: auto; font-size: 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ts { background: #3b82f6; } .dot.py { background: #eab308; } .dot.dart { background: #06b6d4; } .dot.sql { background: #a855f7; }
.file { font-family: var(--mono); font-size: 11.5px; padding: 6px 8px; border-radius: 7px; background: var(--bg-alt); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file.hot { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.ai-box { grid-column: 4; grid-row: 1 / span 2; align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-soft); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.ai-q { background: var(--bg-alt); border-radius: 10px; padding: 9px 10px; font-weight: 550; }
.ai-step { color: var(--ink-soft); padding-left: 20px; position: relative; }
.ai-step::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); }
.ai-step.done::before { background: var(--accent); border-color: var(--accent); }
.ai-step.live::before { border-color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.ai-step code { font-size: 11.5px; }
.ai-actions { margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ai-actions .muted { margin-left: auto; font-size: 11.5px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .ai-step.live::before { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

/* Sections */
.section { padding: 104px 0; }
.alt { background: var(--bg-alt); }
.section h2 { max-width: 760px; }
.center h2 { margin: 0 auto; }
#canvases h2, #canvases .sub, #canvases .eyebrow { text-align: center; margin-left: auto; margin-right: auto; }

.pipeline { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: none; }
.pipeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pipeline li.now { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; background: var(--bg-alt); line-height: 1; padding: 2px 0; }
.step-n { font: 600 12px var(--mono); color: var(--muted); }
.pipeline b { font-size: 1.05rem; }

/* Feature blocks */
.feature { padding: 88px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-copy h2 { margin: 16px 0 18px; }
.feature-copy p { color: var(--ink-soft); font-size: 1.08rem; max-width: 460px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; text-align: left; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3.5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.mock { background: var(--bg-alt); border-radius: calc(var(--radius) + 6px); padding: clamp(18px, 4vw, 40px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; font-size: 14px; }
.card-head, .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.card-head { border-bottom: 1px solid var(--line); }
.card-foot { border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.counts b { font: 600 12px var(--mono); }
.add { color: var(--add); } .del { color: var(--del); }
.diff pre { margin: 0; padding: 12px 0; font-size: 12.5px; line-height: 1.8; overflow-x: auto; }
.diff pre > span { display: inline; }
.diff .ln { display: inline-block; width: 40px; padding-right: 10px; text-align: right; color: var(--muted); user-select: none; }
.diff pre .add:not(.ln) { background: var(--add-soft); }
.diff pre .del:not(.ln) { background: var(--del-soft); }
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > :last-child { margin-left: auto; }
.check { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); flex: none; position: relative; }
.check.on { background: var(--accent); box-shadow: none; }
.check.on::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 4px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.who { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.who.agent { background: var(--accent-soft); color: var(--accent); }
.who.you { background: var(--amber-soft); color: var(--amber); }
.status.live { font-size: 12px; font-weight: 600; color: var(--add); }
.status.live::before { content: "● "; }
.ico { width: 18px; text-align: center; color: var(--muted); flex: none; }
.state { font-size: 12.5px; color: var(--muted); }
.state.ready { color: var(--accent); font-weight: 600; }
.state.wait { color: var(--amber); font-weight: 600; }
.spark { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.spark-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.spark-head b { color: var(--ink); }
.spark svg { width: 100%; height: 48px; margin: 8px 0; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tile { padding: 16px; display: grid; gap: 4px; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile b { font-size: 1.25rem; letter-spacing: -0.02em; }

/* Modes, options, pricing */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; text-align: left; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 6px; }
.mode span { color: var(--muted); font-size: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.opt, .price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.opt p { color: var(--ink-soft); font-size: 15px; }
.opt.featured, .price.featured { box-shadow: inset 0 0 0 1.5px var(--accent); }
.price-note { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--accent); }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 16px; margin: 44px 0 20px; text-align: left; }
.amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.amount span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-sub { margin-top: -6px; color: var(--muted); font-size: 14px; }
.price .ticks { margin: 4px 0 22px; }
.price .btn { margin-top: auto; }
.pillars { margin-top: 0; }
.pillars p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }
.closing { padding-bottom: 120px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-inner > :last-child { margin-left: auto; }
.footer a { color: var(--muted); }
.small-logo { font-size: 15px; }
/* The logo (brand/03, 04 inline), its two colours from the tokens above. */
.logo svg { display: block; }
.brand__accent { fill: var(--brand-accent); }
.brand__ink { fill: var(--brand-ink); }
.brand__accent-stroke { stroke: var(--brand-accent); }
.brand__ink-stroke { stroke: var(--brand-ink); }

/* Smaller screens */
@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pipeline li { flex-direction: row; align-items: center; }
  .pipeline li .tag { margin-left: auto; }
  .pipeline li:not(:last-child)::after { content: "↓"; right: auto; left: 22px; top: auto; bottom: -11px; transform: none; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature-grid.flip .feature-copy { order: 0; }
  .canvas { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
  .links { display: none; }
  .p-web { grid-column: 1; grid-row: 1; }
  .p-api { grid-column: 2; grid-row: 1; }
  .p-mob { grid-column: 1; grid-row: 2; }
  .p-db { grid-column: 2; grid-row: 2; }
  .ai-box { grid-column: 1 / span 2; grid-row: 3; }
  .window-tabs { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; margin-right: 0; }
  /* The logo, the switch and the button fit on one row on a phone. */
  .nav-inner { gap: 10px; }
  .nav .logo svg { width: 146px; height: auto; }
  .nav .btn-small { padding: 0 14px; }
  .hero { padding-top: 56px; }
  .section { padding: 72px 0; }
  .feature { padding: 64px 0; }
  .three, .prices { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .canvas { grid-template-columns: 1fr; }
  .p-web, .p-api, .p-mob, .p-db, .ai-box { grid-column: 1; grid-row: auto; }
  .p-mob, .p-db { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile + .tile { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner > :last-child { margin-left: 0; }
}
