/* Galley design system — paper white, ink black, hairline borders, 26px radii.
   Two voices: mono uppercase eyebrows + Charter/Georgia serif display; system sans body. */

:root {
  --paper: #fbfbf9;
  --ink: #141414;
  --ink-soft: #4a4a46;
  --hairline: #e3e3dd;
  --card-r: 26px;
  --serif: "Charter", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.brand span {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
}
.site-nav .nav-cta:hover { color: var(--paper); opacity: 0.85; }
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  display: block;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; }

/* ---------- Hero ---------- */

.hero { padding: 84px 0 40px; text-align: center; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.08;
  max-width: 17ch;
  margin: 0 auto 24px;
}
.hero h1 .caret {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--ink);
  vertical-align: -0.08em;
  margin-left: 4px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .lede {
  max-width: 56ch;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: 1.13rem;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-store { background: var(--ink); color: var(--paper); }
.btn-store:hover { opacity: 0.85; }
.cta-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------- Mock / demo stage ---------- */

.stage-section { padding: 40px 0 30px; }
.stage {
  border: 1px solid var(--hairline);
  border-radius: var(--card-r);
  background: #f4f4f0;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(20, 20, 20, 0.25);
}
.stage-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.stage-bar .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #c9c9c2; }
.stage-bar .url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 14px;
  text-align: center;
  background: #f4f4f0;
}
.stage-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  position: relative;
  min-height: 430px;
}

/* the fake document */
.doc-area { padding: 34px 40px; display: flex; justify-content: center; }
.doc {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 36px 38px;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}
.doc .doc-title {
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.doc .line {
  height: 9px;
  border-radius: 999px;
  background: #ecece6;
  margin: 12px 0;
}
.doc .line.w80 { width: 80%; }
.doc .line.w60 { width: 60%; }
.doc .marked {
  background: #e9e9e3;
  border-radius: 4px;
  padding: 1px 4px;
}
.doc .typed-wrap { margin-top: 14px; min-height: 5.2em; }
.doc .typed-caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--ink);
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}

/* circular edge button */
.edge-btn {
  position: absolute;
  right: 304px;
  top: 46px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(20, 20, 20, 0.5);
  z-index: 2;
}
.edge-btn img { width: 30px; height: 30px; border-radius: 8px; }

/* assistant panel */
.panel {
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  padding: 20px;
  gap: 12px;
}
.panel-head {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.bubble {
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 92%;
}
.bubble.user {
  background: var(--ink);
  color: var(--paper);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  border: 1px solid var(--hairline);
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-soft);
  background: #fff;
}
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel-foot {
  margin-top: auto;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: #fff;
}

@media (max-width: 820px) {
  .stage-body { grid-template-columns: 1fr; min-height: 0; }
  .doc-area { padding: 24px 18px 12px; }
  .panel { border-left: none; border-top: 1px solid var(--hairline); }
  .edge-btn { right: 14px; top: 20px; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  border: 1px solid var(--hairline);
  border-radius: var(--card-r);
  padding: 30px 30px 34px;
  background: #fff;
}
.feature .eyebrow { margin-bottom: 16px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
.feature p + p { margin-top: 10px; }

/* pricing */
.price-card {
  border: 1px solid var(--ink);
  border-radius: var(--card-r);
  background: #fff;
  padding: 46px 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.price-card .eyebrow { margin-bottom: 18px; }
.price-line {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 6px;
}
.price-sub { color: var(--ink-soft); margin-bottom: 26px; }
.price-points {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 30px;
  font-size: 0.96rem;
}
.price-points li { border-top: 1px solid var(--hairline); padding-top: 10px; }
.price-points li:first-child { border-top: none; padding-top: 0; }

/* FAQ */
.faq-list { max-width: 720px; }
.faq-list details {
  border-bottom: 1px solid var(--hairline);
}
.faq-list details:first-of-type { border-top: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: 20px 36px 20px 4px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink-soft);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .answer { padding: 0 4px 24px; color: var(--ink-soft); max-width: 62ch; }
.faq-list .answer a { color: var(--ink); }

/* bottom CTA */
.bottom-cta { text-align: center; padding: 30px 0 90px; }
.bottom-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.bottom-cta p { color: var(--ink-soft); margin-bottom: 30px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 44px 0 56px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 8px; }
.footer-brand span { font-family: var(--serif); font-size: 1rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* ---------- Legal pages ---------- */

.legal { padding: 70px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.legal .updated {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 1.45rem;
  margin: 42px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0 22px; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); }
