/* Jaylee landing page. One stylesheet, no build step.
   Colours are the oklch values from the design, unchanged. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212, U+2215;
}

:root {
  --accent: oklch(0.52 0.11 200);
  --accent-hover: oklch(0.42 0.11 200);
  --accent-soft: oklch(0.72 0.07 200);
  --ink: oklch(0.22 0.02 245);
  --ink-body: oklch(0.45 0.02 245);
  --ink-soft: oklch(0.5 0.02 245);
  --ink-muted: oklch(0.62 0.015 245);
  --bg: oklch(0.955 0.02 245);
  --surface: #fff;
  --line: oklch(0.88 0.02 245);
  --line-faint: oklch(0.94 0.012 245);
  --dark: oklch(0.22 0.02 245);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  /* Work Sans's latin subset is 49 KB — variable or static, Google serves the
     same file — which alone would blow the page budget. The serif headings are
     the distinctive part of the design; at 15-16px body sizes the system UI
     stack is near-indistinguishable and costs nothing. */
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  --wrap: 1080px;
  --r: 14px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); margin: 0 0 12px; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
}

h3 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 14px; color: var(--ink-body); text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* The sticky header must not cover an anchor target. */
.section, .band, [id] { scroll-margin-top: 84px; }

.section { padding: 72px 24px; }

.sub { color: var(--ink-soft); margin: -4px 0 28px; font-size: 17px; }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.955 0.02 245 / 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-faint);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }

.brand__tile {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: inline-grid; place-items: center;
  font-family: var(--serif); font-size: 15px;
}

.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--ink-body); font-size: 15px; }
.site-header nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .site-header nav a:not(.btn) { display: none; }
}

/* --------------------------------------------------------------- hero -- */

.hero { padding: 56px 0 64px; }

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 44px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 12px;
}

.lede { font-size: 17.5px; color: var(--ink-body); max-width: 34em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

.fineprint { font-size: 13.5px; color: var(--ink-muted); margin: 0; }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 11px;
  font-size: 15.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { min-height: 40px; padding: 0 15px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------- chat -- */

.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 48px -34px oklch(0.3 0.035 245 / 0.5);
}

.chat__head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line-faint); }
.chat__head strong { display: block; font-size: 14.5px; }
.chat__head small { color: var(--ink-muted); font-size: 12.5px; }

.chat__avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}

.chat__meta, .chat__foot {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
  text-align: center; margin: 12px 0;
}

.bubble {
  max-width: 86%; margin: 0 0 8px; padding: 10px 14px;
  background: oklch(0.96 0.008 245);
  border-radius: 16px 16px 16px 4px;
  font-size: 14.5px; line-height: 1.45; color: var(--ink);
}

.bubble--client {
  margin-left: auto; background: var(--accent); color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.slots { margin-top: 10px; }

.slot {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 50px; padding: 8px 14px; margin-bottom: 7px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px;
}
.slot b { font-weight: 600; }
.slot small { color: var(--ink-muted); }
.slots .chat__foot { margin-bottom: 0; }

/* -------------------------------------------------------------- bands -- */

.band { background: var(--dark); color: oklch(0.92 0.012 245); padding: 68px 0; }
.band h2, .band h3 { color: #fff; }
.band p, .band dd { color: oklch(0.82 0.015 245); }
.band a { color: var(--accent-soft); }

.band--soft { background: var(--surface); color: var(--ink); }
.band--soft h2, .band--soft h3 { color: var(--ink); }
.band--soft p, .band--soft dd { color: var(--ink-body); }

/* -------------------------------------------------------------- grids -- */

.grid { display: grid; gap: 26px; margin: 30px 0 0; padding: 0; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plain { list-style: none; }
.grid p { margin: 0; font-size: 15px; }

.steps { list-style: none; counter-reset: none; }
.step__n {
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 9px; background: oklch(0.93 0.03 200); color: var(--accent);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
}

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; align-items: start; }
.split--form { align-items: start; }

.rules { background: oklch(0.97 0.012 245); border-radius: var(--r); padding: 22px 24px; }
.rules dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; }
.rules dt { font-weight: 600; font-size: 14px; white-space: nowrap; }
.rules dd { margin: 0; font-size: 14px; color: var(--ink-body); }

@media (max-width: 520px) {
  .rules dl { grid-template-columns: 1fr; gap: 2px; }
  .rules dd { margin-bottom: 10px; }
}

/* -------------------------------------------------------------- plans -- */

.plans { margin-top: 30px; }

.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan p { font-size: 15px; }

.price { font-family: var(--serif); margin: 6px 0 10px; }
.price b { font-size: 38px; font-weight: 400; color: var(--ink); }
.price span { font-family: var(--ui); font-size: 14px; color: var(--ink-muted); }

.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: oklch(0.93 0.03 200); border-radius: 6px; padding: 3px 7px;
  margin-left: 6px; vertical-align: middle; font-weight: 500;
}

.calc { margin-top: 26px; padding: 16px 20px; background: oklch(0.97 0.012 245); border-radius: var(--r); font-size: 15px; }
.calc strong { color: var(--ink); }

/* ---------------------------------------------------------------- faq -- */

.faq { margin-top: 26px; max-width: 760px; }

.faq details { border-bottom: 1px solid oklch(0.35 0.02 245); padding: 4px 0; }

.faq summary {
  cursor: pointer; list-style: none;
  padding: 15px 30px 15px 0; position: relative;
  font-size: 16.5px; font-weight: 500; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--accent-soft);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 30px 16px 0; margin: 0; font-size: 15.5px; }

/* --------------------------------------------------------------- form -- */

.trial { list-style: none; padding: 0; margin: 22px 0 0; }
.trial li { margin-bottom: 14px; font-size: 15px; color: var(--ink-body); }
.trial b { display: block; color: var(--ink); font-size: 13px; }

.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }

.formcard label {
  display: block; margin-bottom: 5px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}

.formcard input, .formcard textarea {
  width: 100%; margin-bottom: 14px;
  min-height: 50px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: oklch(0.98 0.008 245);
  font-family: inherit;
  /* 16px minimum, or iOS zooms the page on focus and wrecks the layout. */
  font-size: 16px;
  color: var(--ink);
}
.formcard textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.formcard input:focus, .formcard textarea:focus { border-color: var(--accent); outline: none; }
.formcard input[aria-invalid='true'] { border-color: oklch(0.55 0.14 25); }

/* Off-screen rather than display:none — some bots skip hidden inputs. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formerror { margin-top: 12px; font-size: 14px; color: oklch(0.5 0.14 25); }

.formdone { text-align: center; padding: 12px 0; }
.formdone .check {
  width: 40px; height: 40px; margin: 0 auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  background: oklch(0.94 0.05 150); color: oklch(0.4 0.1 150); font-size: 19px;
}

/* ------------------------------------------------------------- footer -- */

.site-footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-inner p { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-inner nav a { color: var(--ink-body); }
