/* Caliper360 marketing site. Colours and type follow the app's design brief
   (claude/design-brief.md in the Caliper360 project). Site-only additions:
   larger headline sizes and page sections. */

:root {
  --page: #FFFFFF;
  --frame: #F7F6F3;
  --frame-line: #E8E6E1;
  --line: #E7E9ED;
  --row-line: #EEF0F3;
  --control: #DADDE3;
  --text: #151A21;
  --text-2: #5F6673;
  --text-3: #4B5260;
  --muted: #9AA1AC;
  --frame-label: #716D66;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --link: #1D4ED8;
  --price: #15803D;
  --note-bg: #EEF3FE;
  --tag-bg: #E3EDFF;
  --tag-text: #1F4FA3;
  --error-bg: #FEF2F2;
  --error-text: #991B1B;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mark: "Jost", "Inter", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Wordmark: lowercase, Jost, "caliper" 500 + "360" 300, all black */
.wordmark {
  font-family: var(--font-mark);
  font-size: 26px;
  letter-spacing: -0.012em;
  color: #000;
  text-decoration: none;
  line-height: 1;
}
.wordmark .wm-a { font-weight: 500; }
.wordmark .wm-b { font-weight: 300; }
.wordmark-sm { font-size: 20px; }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn:focus-visible, input:focus-visible, summary:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 18px;
}
h1 { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 22px; }
.lede { font-size: 19px; color: var(--text-3); line-height: 1.55; margin-bottom: 28px; }

/* Waitlist form */
.waitlist { display: flex; gap: 10px; max-width: 480px; }
.waitlist-center { margin: 0 auto; }
.waitlist input {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px;
  border: 1px solid var(--control); border-radius: 999px;
  font: 400 15px var(--font); color: var(--text); background: #fff;
}
.waitlist input:focus { border-color: var(--accent); }
.waitlist input::placeholder { color: var(--muted); }
.form-note { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.form-note.is-ok { color: var(--price); }
.form-note.is-error { color: var(--error-text); }

/* Product preview */
.preview {
  margin: 0; border: 1px solid var(--frame-line); border-radius: 14px; overflow: hidden;
  background: var(--frame);
  box-shadow: 0 1px 2px rgba(21,26,33,.04), 0 8px 24px rgba(21,26,33,.07), 0 24px 48px -12px rgba(37,99,235,.08);
  font-variant-numeric: tabular-nums;
}
.preview-band { display: flex; align-items: flex-end; gap: 24px; padding: 20px 22px 18px; }
.pv-label { font-size: 12px; color: var(--frame-label); margin-bottom: 2px; }
.pv-price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--price); line-height: 1.1; }
.pv-split { display: flex; gap: 18px; padding-left: 20px; border-left: 1px solid var(--frame-line); padding-bottom: 3px; }
.pv-split div { display: flex; flex-direction: column; font-size: 12px; color: var(--frame-label); }
.pv-split b { font-size: 14px; font-weight: 600; color: var(--text); }
.preview-body { background: #fff; border-top-left-radius: 16px; padding: 22px 22px 8px; }
.pv-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.tag { font-size: 12px; font-weight: 500; background: var(--tag-bg); color: var(--tag-text); padding: 2px 8px; border-radius: 4px; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pv-table th { font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pv-table td { padding: 11px 0; border-bottom: 1px solid var(--row-line); }
.pv-table tr:last-child td { border-bottom: 0; }
.pv-table td:first-child { font-weight: 500; }
.pv-table th:not(:first-child), .pv-table td:not(:first-child) { text-align: right; }
.preview figcaption { background: #fff; font-size: 12px; color: var(--muted); padding: 8px 22px 16px; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-frame { background: var(--frame); border-top-color: var(--frame-line); }
.section h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px; max-width: 760px; }
.section .narrow h2 { margin-bottom: 28px; }
.section .narrow > p { font-size: 17px; color: var(--text-3); }
.center h2 { margin-left: auto; margin-right: auto; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps p, .feature p { color: var(--text-3); font-size: 15px; margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--note-bg); color: var(--accent-hover);
  font-weight: 600; font-size: 14px; margin-bottom: 16px;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--frame-line); border: 1px solid var(--frame-line); border-radius: 10px; overflow: hidden; }
.feature { background: #fff; padding: 28px; }

/* FAQ */
details { border-bottom: 1px solid var(--frame-line); }
details:first-of-type { border-top: 1px solid var(--frame-line); }
summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-size: 17px; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-weight: 400; font-size: 22px; color: var(--text-2);
}
details[open] summary::after { content: "\2212"; }
details p { color: var(--text-3); padding-bottom: 20px; margin: 0; }

/* Final CTA */
.cta .lede { margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: 14px; color: var(--text-2); }
.footer-inner p.muted { margin-left: auto; color: var(--muted); }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 28px; margin-bottom: 28px; }
  .steps, .features { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 60px; }
  .wordmark { font-size: 23px; }
  h1 { font-size: 36px; }
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
  .preview-band { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pv-split { border-left: 0; padding-left: 0; }
  .feature { padding: 22px; }
  .footer-inner p.muted { margin-left: 0; }
}
