/* tiller.run — landing styles
   Palette mirrors the app's globals.css (oklch). Dark by default.
   No CSS framework — vanilla, ~600 lines, ~12 KB minified. */

:root {
  /* same oklch values as web/src/app/globals.css dark theme */
  --bg:           oklch(0.16 0.005 285);
  --bg-elev:      oklch(0.18 0.006 285);
  --surface:      oklch(0.20 0.006 285);
  --surface-2:    oklch(0.24 0.007 285);
  --border:       oklch(0.30 0.008 285);
  --border-soft:  oklch(0.26 0.007 285);
  --fg:           oklch(0.95 0.005 285);
  --fg-muted:     oklch(0.70 0.008 285);
  --fg-subtle:    oklch(0.55 0.010 285);
  --accent:       oklch(0.72 0.18 32);
  --accent-fg:    oklch(0.18 0.005 285);
  --accent-glow:  oklch(0.72 0.18 32 / 0.18);
  --emerald:      oklch(0.78 0.16 160);
  --rose:         oklch(0.72 0.18 18);

  --max:          1180px;
  --gap-1:        0.5rem;
  --gap-2:        1rem;
  --gap-3:        1.5rem;
  --gap-4:        2rem;
  --gap-6:        3rem;
  --gap-8:        4rem;
  --gap-12:       6rem;

  --r-sm:         6px;
  --r-md:         10px;
  --r-lg:         14px;
  --r-xl:         20px;

  --ease-out:     cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* selection in brand colour */
::selection { background: var(--accent); color: var(--accent-fg); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }

img, svg { max-width: 100%; display: block; }

code, kbd, pre {
  font-family: "JetBrains Mono", ui-monospace, "Menlo", "Cascadia Code", monospace;
  font-size: 0.9em;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Layout ─────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

main { flex: 1; }

section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

section + section {
  border-top: 1px solid var(--border-soft);
}

/* ── Top nav ────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--border-soft); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--gap-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo svg {
  width: 30px;
  height: auto;
  color: var(--accent);
}
.logo span { transform: translateY(-1px); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  font-size: 0.93rem;
}
.nav-links a {
  color: var(--fg-muted);
  padding: 0.5rem 0.25rem;
  border-radius: var(--r-sm);
  transition: color 0.15s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--r-md);
  transition: filter 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.nav-cta:hover { filter: brightness(1.06); color: var(--accent-fg); }
.nav-cta:active { transform: translateY(1px); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  height: 70%;
  width: 70%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-top: 1.4rem;
  max-width: 17ch;
}
h1 .accent { color: var(--accent); }
h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.hero p.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 56ch;
}

.cta-row {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: filter 0.15s var(--ease-out), transform 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { filter: brightness(1.06); color: var(--accent-fg); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--fg); }

.hero-meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.86rem;
  color: var(--fg-subtle);
}
.hero-meta strong { color: var(--fg-muted); font-weight: 500; }

/* ── Hero visual / mockup ───────────────────────────── */

.hero-visual {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.05) inset,
    0 30px 80px -20px oklch(0 0 0 / 0.5),
    0 0 0 1px var(--border-soft);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 98%);
}
.hero-visual img { width: 100%; display: block; }

/* ── Logos / trust strip ────────────────────────────── */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
  padding-block: 3rem;
  color: var(--fg-subtle);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust-label { color: var(--fg-subtle); }
.trust strong { color: var(--fg-muted); font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }

/* ── Features grid ──────────────────────────────────── */

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p {
  margin-top: 1.1rem;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

.features {
  display: grid;
  gap: var(--gap-2);
  grid-template-columns: repeat(12, 1fr);
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.6rem 1.7rem;
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.feature:hover { border-color: var(--border); transform: translateY(-2px); }

.feature .ico {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature .ico svg { width: 20px; height: 20px; }

.feature h3 { margin-bottom: 0.55rem; }
.feature p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.55; margin: 0; }

.feature.span-6 { grid-column: span 6; }
.feature.span-4 { grid-column: span 4; }
.feature.span-12 { grid-column: span 12; }
@media (max-width: 920px) { .feature[class*="span-"] { grid-column: span 12; } }

/* ── How-it-works ───────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-3);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
}
.step h3 { margin-bottom: 0.6rem; padding-right: 2rem; }
.step p { color: var(--fg-muted); font-size: 0.94rem; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ── Demo / details ─────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split p { color: var(--fg-muted); }

.checklist {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  list-style: none;
  font-size: 0.95rem;
  color: var(--fg);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--surface-2);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6L5 8.5L9.5 4' stroke='%23cf6e3a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
ul.checklist { padding: 0; margin-top: 1.5rem; }

/* ── Pricing ────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-3);
}
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -32px var(--accent-glow);
}
.plan-name {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
}
.plan.featured .plan-name { color: var(--accent); }

.plan-price {
  margin-top: 0.85rem;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.plan-price small {
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.plan-soon {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.7rem;
  display: grid;
  gap: 0.6rem;
}
.plan-list li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.94rem;
  color: var(--fg-muted);
}
.plan-list li::before {
  content: "—";
  color: var(--fg-subtle);
  flex: none;
}

.plan .btn { margin-top: auto; align-self: flex-start; }

/* ── FAQ ────────────────────────────────────────────── */

.faq {
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding-block: 1.4rem;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--fg-subtle);
  font-weight: 300;
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }

.faq-item p {
  margin-top: 0.9rem;
  color: var(--fg-muted);
  font-size: 0.97rem;
  max-width: 60ch;
}

/* ── Footer ─────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 3.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:first-child { grid-column: span 2; }
}

.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin: 0 0 0.9rem;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-grid li a { color: var(--fg-muted); font-size: 0.93rem; }
.footer-grid li a:hover { color: var(--fg); }

.footer-tag {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin: 0.85rem 0 0;
  max-width: 36ch;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--fg-subtle);
}

/* ── Inline icons (SVG glyphs used in features) ─────── */
.glyph { display: inline-block; vertical-align: middle; }

/* ── Misc ───────────────────────────────────────────── */
.kbd {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  font-family: ui-monospace, monospace;
  font-size: 0.82em;
  color: var(--fg);
}

.muted { color: var(--fg-muted); }
.strike { color: var(--fg-subtle); text-decoration: line-through; }

/* ── Sub-page prose ────────────────────────────────── */

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.prose h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.6rem;
}
.prose .subtitle {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.018em;
}
.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}
.prose p, .prose li {
  font-size: 0.97rem;
  color: var(--fg);
  line-height: 1.65;
}
.prose p { margin-block: 0.85rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-block: 0.85rem; }
.prose li { margin-block: 0.35rem; color: var(--fg-muted); }
.prose li strong { color: var(--fg); font-weight: 500; }
.prose a { color: var(--accent); border-bottom: 1px dotted color-mix(in oklch, var(--accent) 50%, transparent); }
.prose a:hover { border-bottom-style: solid; }
.prose code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  overflow: auto;
  font-size: 0.86rem;
  line-height: 1.6;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin-block: 2.5rem;
}
.prose blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--fg-muted);
  font-style: italic;
}
.prose .meta {
  font-size: 0.85rem;
  color: var(--fg-subtle);
}
.coming-soon {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-block: 2rem;
}
.coming-soon h2 {
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.coming-soon p { color: var(--fg-muted); margin: 0 auto; max-width: 50ch; }
.coming-soon .ico {
  font-size: 2.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.6;
}
