/* Clara landing — same Krea-derived system as the panel (gaston/web theme.css):
   #101010 canvas, #1a1a1a cards, #262626 tiles, 16px radii, white primary buttons,
   one brand colour (violet #7c5cff) used sparingly. No framework, no build step. */

:root {
  --bg: #101010;
  --surface: #1a1a1a;
  --tile: #262626;
  --tile-2: #303030;
  --border: rgba(255, 255, 255, .08);
  --text: #fafafa;
  --dim: #a3a3a3;
  --mute: #737373;
  --brand: #7c5cff;
  --brand-soft: rgba(124, 92, 255, .16);
  --r: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.defs { position: absolute; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: opacity .15s ease, background .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--text); color: #0a0a0a; }
.btn.primary:hover { opacity: .88; }
.btn.ghost { background: var(--tile); color: var(--text); }
.btn.ghost:hover { background: var(--tile-2); }
.btn.ghost.on-light { background: rgba(0, 0, 0, .06); color: #0a0a0a; }
.btn.ghost.on-light:hover { background: rgba(0, 0, 0, .1); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15.5px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px; padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.brand.small { font-size: 16px; gap: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r); font-size: 14.5px; color: var(--dim); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; gap: 8px; }

main > section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ---------- hero: Krea's light dot-grid stage ---------- */
.hero {
  margin-top: 12px !important;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  padding: clamp(56px, 9vw, 120px) 24px clamp(48px, 7vw, 96px);
  border-radius: var(--r-lg);
  background-color: #f5f5f5;
  background-image: radial-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px);
  background-size: 16px 16px;
  color: #0a0a0a;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07);
  font-size: 13.5px; font-weight: 500;
}
.hero h1 { margin: 0; font-size: clamp(38px, 6.2vw, 76px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; }
.lede { margin: 0; max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(0, 0, 0, .6); }

.prompt {
  display: flex; align-items: center; gap: 10px;
  width: min(680px, 100%); padding: 8px; margin-top: 6px;
  border-radius: 999px; background: #fff; text-align: left;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 56px -22px rgba(0, 0, 0, .35);
}
.prompt-plus, .prompt-send {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.prompt-plus { background: #f4f4f5; color: #3f3f46; font-size: 22px; }
.prompt-send { background: #0a0a0a; color: #fff; }
.prompt-text { flex: 1; min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--brand); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hero .btn.primary { background: #0a0a0a; color: #fff; }
.hero-note { margin: 0; font-size: 13.5px; color: rgba(0, 0, 0, .5); }

/* ---------- big media card ---------- */
.media { margin-top: 14px !important; }
.media-card, .card { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.media-card img { width: 100%; aspect-ratio: 2040 / 1290; object-fit: cover; object-position: top; }
.media-card figcaption, .card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(20px, 4vw, 44px);
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 20%, rgba(0, 0, 0, 0));
}
.media-card figcaption { padding-top: 140px; background: linear-gradient(to top, #101010 30%, rgba(16, 16, 16, .85) 55%, rgba(16, 16, 16, 0)); }
.media-card h2 { margin: 0; font-size: clamp(24px, 3.6vw, 44px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.media-card p { margin: 8px 0 0; color: var(--dim); max-width: 560px; }

/* ---------- sections ---------- */
.section { margin-top: clamp(72px, 9vw, 120px) !important; }
.section.narrow { max-width: 820px; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sechead h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; }
.secsub { margin: -8px 0 22px; color: var(--dim); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 190px; padding: 20px; border-radius: var(--r-md);
  background: var(--tile); transition: background .15s ease;
}
.tile:hover { background: var(--tile-2); }
.tile.flat { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.tile h3 { margin: auto 0 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--mute); font-size: 14.5px; }
.ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
/* tile colours as classes, not inline style="": the CSP keeps style-src without 'unsafe-inline' */
.c-blue { background: #3b82f6; } .c-violet { background: #7c5cff; } .c-rose { background: #f43f5e; }
.c-amber { background: #f59e0b; } .c-teal { background: #14b8a6; } .c-sky { background: #0ea5e9; }
.ico svg { width: 20px; height: 20px; }

/* ---------- carousel (Krea media rail) ---------- */
.arrows { display: flex; gap: 6px; }
.arrow {
  width: 36px; height: 36px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); cursor: pointer;
  box-shadow: 0 0 0 1px var(--border); transition: background .15s;
}
.arrow:hover { background: var(--tile); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82%);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; transition: transform .4s ease; }
.card:hover img { transform: scale(1.02); }
.card figcaption { padding: 22px; }
.card h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.card p { margin: 4px 0 0; color: var(--dim); font-size: 14.5px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--border);
}
.plan.best { box-shadow: 0 0 0 1.5px var(--brand), 0 30px 80px -40px var(--brand); }
.plan h3 { margin: 0; font-size: 16px; font-weight: 500; color: var(--dim); }
.price { margin: 8px 0 0; color: var(--mute); }
.price span { font-family: "Geist Mono", ui-monospace, monospace; font-size: 40px; font-weight: 500; letter-spacing: -.04em; color: var(--text); }
.save { margin: 0; color: #a594ff; font-size: 14px; }
.plan .btn { margin-top: 18px; }
.badge {
  position: absolute; top: 18px; right: 18px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--brand-soft); color: #c4b8ff;
}

/* ---------- FAQ (native details) ---------- */
details { border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--border); margin-bottom: 8px; }
summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16.5px; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--mute); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 20px; color: var(--dim); }

/* ---------- final CTA + footer ---------- */
.final {
  margin-top: clamp(80px, 10vw, 140px) !important;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  padding: clamp(48px, 8vw, 96px) 24px; border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 50% 0%, rgba(124, 92, 255, .22), transparent 60%), var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.final h2 { margin: 0; font-size: clamp(30px, 4.6vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.foot {
  width: min(var(--max), calc(100% - 40px)); margin: 48px auto 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--mute); font-size: 13.5px;
}
.foot a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .tiles, .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-cta .ghost { display: none; }
  .tiles, .plans { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .ico { margin-bottom: 14px; }
  .prompt-text { font-size: 15px; }
  .media-card figcaption { position: static; background: none; padding: 20px; }
  .media-card p { color: var(--dim); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
