@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist+Mono:wght@400;500;600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --paper:        #faf9f7;
  --paper-warm:   #f4f1ec;
  --surface:      #ffffff;
  --ink:          #1a1916;
  --ink-mid:      #4a4844;
  --ink-soft:     #7a7875;
  --rule:         #dedad4;
  --rule-strong:  #c5c0b8;

  /* Per-product accent — Amp violet */
  --accent:       #5b3fd4;
  --accent-dim:   #4530aa;
  --accent-bg:    #f0ecff;
  --accent-pill:  rgba(91,63,212,0.16);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body:    "DM Sans", "Avenir Next", system-ui, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --shadow-sm:    0 1px 3px rgba(26,25,22,0.05), 0 4px 12px rgba(26,25,22,0.06);
  --shadow-md:    0 2px 6px rgba(26,25,22,0.06), 0 10px 28px rgba(26,25,22,0.09);
  --shadow-lg:    0 4px 12px rgba(26,25,22,0.07), 0 20px 48px rgba(26,25,22,0.11);
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

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

a {
  color: inherit;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.05em 0.32em;
  color: var(--ink-mid);
}

/* ─── Layout shell ────────────────────────────────────────── */
.page-bg { display: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: min(1040px, 100% - 40px);
  margin: 0 auto;
}

/* ─── Breadcrumb nav ──────────────────────────────────────── */
.breadcrumb {
  border-bottom: 1px solid var(--rule);
  background: rgba(250,249,247,0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.breadcrumb .shell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.breadcrumb a {
  font-weight: 500;
  color: var(--ink-mid);
  transition: color 0.15s ease;
}
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: start;
}

.hero-copy {
  animation: rise-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* ── Chip row ── */
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 0.65rem;
  border-radius: 5px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chip-kicker {
  background: var(--accent-bg);
  border-color: var(--accent-pill);
  color: var(--accent-dim);
}

/* ── App icon placeholder ── */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--accent-bg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.hero-brand-glyph {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  user-select: none;
}

/* ── Headings ── */
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem);
  line-height: 1.04;
  margin-bottom: 0.85rem;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.hero-summary {
  font-size: 0.98rem;
  color: var(--ink-mid);
  max-width: 58ch;
  margin-bottom: 1.4rem;
  line-height: 1.7;
}

/* ── Bullet list ── */
.hero-points {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-mid);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── CTA row ── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91,63,212,0.22);
}
.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 12px 28px rgba(91,63,212,0.28);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--rule-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}

.hero-note {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ─── Hero panel (right side cards) ─────────────────────────*/
.hero-panel {
  display: grid;
  gap: 0.85rem;
  animation: rise-in 520ms 60ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.status-card {
  border-top: 3px solid var(--accent);
}

.status-kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.status-card h2 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.status-card > p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.status-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-top: 0.9rem;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.84rem;
  color: var(--ink-mid);
}
.status-list li:last-child { border-bottom: none; padding-bottom: 0; }
.status-list strong { color: var(--ink); font-weight: 600; }

/* ── Brew card ── */
.brew-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.brew-card > p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}

.brew-block {
  background: var(--ink);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.brew-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #d4d0c8;
  line-height: 1.5;
}

.brew-line .prompt {
  color: var(--accent);
  user-select: none;
  margin-right: 0.4rem;
}

.brew-line .cmd {
  color: #f0ede6;
}

/* ─── Sections ────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.section-toned {
  background: var(--paper-warm);
}

.section-head {
  max-width: 600px;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.1rem);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

/* ─── 3-column grids ──────────────────────────────────────── */
.workflow-grid,
.surface-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.workflow-grid .card h3,
.surface-grid .card h3,
.privacy-grid .card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.workflow-grid .card p,
.surface-grid .card p,
.privacy-grid .card p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  margin: 0;
  line-height: 1.62;
}

/* ── Surface label ── */
.surface-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.surface ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-mid);
}

/* ─── Install grid (2-col: macOS + Homebrew) ──────────────── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.install-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.install-card > p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

.code-block {
  background: var(--ink);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.code-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #d4d0c8;
  line-height: 1.5;
}

.code-line .prompt {
  color: var(--accent);
  user-select: none;
  margin-right: 0.4rem;
  opacity: 0.8;
}

.code-line .cmd { color: #f0ede6; }
.code-line .comment { color: #7a7875; }

.install-note {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.install-note a {
  color: var(--accent);
  font-weight: 600;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.faq-item[open] { border-color: var(--accent-pill); }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item > p {
  margin: 0.75rem 0 0;
  font-size: 0.91rem;
  color: var(--ink-mid);
  line-height: 1.66;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
}

.footer .shell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer a {
  color: var(--ink-mid);
  font-weight: 600;
}

.footer a:hover { color: var(--accent); }

/* ─── Animation ───────────────────────────────────────────── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { display: grid; grid-template-columns: repeat(2, 1fr); }
  .workflow-grid,
  .surface-grid,
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .workflow-grid,
  .surface-grid,
  .privacy-grid,
  .hero-panel { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
}

@media (max-width: 480px) {
  .hero-chip-row { gap: 0.35rem; }
  .shell { width: min(100%, 100% - 32px); }
}

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