/* Quanta — Marketing site styles
   Shared by all pages. Mirrors the in-app design system. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #F2EEE5;
  --paper: #F7F4ED;
  --surface: #FFFFFF;
  --surface-2: #ECE7DA;
  --surface-3: #E2DCCC;
  --ink: #1B1B17;
  --ink-2: #58554D;
  --ink-3: #918D82;
  --ink-4: #B8B3A4;
  --rule: #DCD6C6;
  --rule-soft: #E8E2D3;
  --accent: #C0561E;
  --accent-hi: #D86B2A;
  --accent-soft: #F2D9C2;
  --accent-tint: #FBEEDF;

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --ui: 'Geist', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Layout shell */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
nav.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px;
  max-width: 1240px; margin: 0 auto;
}
nav.top .wordmark {
  font-family: var(--display);
  font-style: italic; font-weight: 400;
  font-size: 28px; letter-spacing: -0.02em;
  color: var(--ink);
}
nav.top ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px;
}
nav.top ul a {
  font-size: 14px; color: var(--ink-2);
  font-weight: 500;
}
nav.top ul a:hover { color: var(--accent); }

/* Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

/* Display headings */
h1.display, h2.display, h3.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
h1.display { font-size: clamp(48px, 7.2vw, 92px); padding-bottom: 0.1em; }
h2.display { font-size: clamp(36px, 5.5vw, 64px); }
h3.display { font-size: clamp(24px, 3vw, 36px); }

.accent { color: var(--accent); }

/* Body copy */
.lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--ui);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); color: #FFF6EE; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
}
.btn.ghost:hover { border-color: var(--ink); }
.btn.amber { background: var(--accent); color: #FFF6EE; }
.btn.amber:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(1px); }

/* Store badges */
.store-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  border-radius: 16px;
  text-decoration: none;
  font-family: var(--ui);
  transition: background 0.18s ease;
}
.store-badge:hover { background: var(--accent); }
.store-badge .glyph {
  font-family: var(--display); font-style: italic;
  font-size: 32px;
  width: 32px; text-align: center;
}
.store-badge .lbl { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .lbl .top {
  font-size: 10px; opacity: 0.65;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.store-badge .lbl .bot {
  font-size: 17px; font-weight: 500;
  margin-top: 2px;
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 22px;
  padding: 28px;
}

/* Section heads */
section { padding: 80px 0; }
section .head { margin-bottom: 48px; max-width: 64ch; }
section .head .eyebrow { margin-bottom: 12px; }

/* Hero */
section.hero { padding: 60px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-text .eyebrow { margin-bottom: 18px; }
.hero-text .lede { margin: 64px 0 0; }
.hero-art {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 9/14;
}
.hero-art .phone {
  width: 78%;
  aspect-ratio: 402/874;
  background: var(--paper);
  border-radius: 38px;
  border: 1px solid var(--rule-soft);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.20),
    0 18px 36px rgba(0,0,0,0.12),
    inset 0 0 0 6px var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-art .phone .notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 26%; height: 4.2%; background: var(--ink); border-radius: 100px;
  z-index: 5;
}
.hero-art .phone img {
  position: absolute; inset: 6px; width: calc(100% - 12px); border-radius: 32px; object-fit: cover; object-position: top;
}
.hero-art .corner-mark {
  position: absolute;
  width: 32px; height: 32px;
  opacity: 0.4;
}
.hero-art .corner-mark.tl { top: 0; left: 0; border-top: 2px solid var(--ink-3); border-left: 2px solid var(--ink-3); }
.hero-art .corner-mark.tr { top: 0; right: 0; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); }
.hero-art .corner-mark.bl { bottom: 0; left: 0; border-bottom: 2px solid var(--ink-3); border-left: 2px solid var(--ink-3); }
.hero-art .corner-mark.br { bottom: 0; right: 0; border-bottom: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); }

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule-soft);
  border: 1px solid var(--rule-soft); border-radius: 18px;
  overflow: hidden;
}
.stat-strip .cell {
  background: var(--paper);
  padding: 28px 24px;
}
.stat-strip .num {
  font-family: var(--display); font-style: italic;
  font-size: 52px; line-height: 1;
  letter-spacing: -0.025em;
}
.stat-strip .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}

/* Categories grid (swatches) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-swatch {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}
.cat-swatch .ix {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.cat-swatch .nm {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--display); font-style: italic;
  font-size: 15px; color: var(--ink);
  line-height: 1;
}
.cat-swatch .ct {
  position: absolute; bottom: 10px; right: 10px;
  font-family: var(--mono); font-size: 9px;
  color: var(--ink-3);
}

/* Feature blocks */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 22px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature .glyph {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-family: var(--display); font-style: italic;
  font-size: 20px;
  margin-bottom: 8px;
}
.feature h3 {
  font-family: var(--display); font-style: italic;
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.feature p {
  margin: 0; color: var(--ink-2); font-size: 14px;
}

/* Screenshots gallery — horizontal scroll on mobile */
.shots-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.shots-row img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--rule-soft);
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper);
}
footer .row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
footer h4 {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
footer ul {
  list-style: none; padding: 0; margin: 0;
}
footer ul li { margin: 0 0 10px; }
footer ul a {
  font-size: 14px;
  color: var(--ink-2);
}
footer ul a:hover { color: var(--accent); }
footer .brand {
  font-family: var(--display); font-style: italic;
  font-size: 24px; color: var(--ink); margin-bottom: 8px;
}
footer .small {
  font-size: 13px; color: var(--ink-3);
  max-width: 32ch;
}
footer .copy {
  max-width: 1240px;
  margin: 56px auto 0;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* Long-form pages (terms, support, contact) */
.long-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}
.long-page .eyebrow { margin-bottom: 18px; }
.long-page h1.display { margin-bottom: 32px; }
.long-page h2 {
  font-family: var(--display);
  font-style: italic; font-weight: 400;
  font-size: 30px; letter-spacing: -0.02em;
  margin: 56px 0 14px;
  text-wrap: pretty;
}
.long-page h3 {
  font-family: var(--ui);
  font-size: 16px; font-weight: 600;
  margin: 32px 0 10px;
}
.long-page p, .long-page li {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}
.long-page ul, .long-page ol { padding-left: 22px; }
.long-page li { margin: 6px 0; }
.long-page .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.long-page strong { color: var(--ink); }
.long-page hr {
  border: none;
  border-top: 1px solid var(--rule-soft);
  margin: 56px 0;
}

/* Form */
.contact-form {
  display: grid; gap: 16px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 22px;
  padding: 28px;
  margin-top: 32px;
}
.field {
  display: grid; gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { min-height: 140px; }
.honeypot { position: absolute; left: -10000px; }
.contact-form button {
  justify-self: end;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .shots-row { grid-template-columns: repeat(2, 1fr); overflow-x: auto; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  footer .row { grid-template-columns: 1fr 1fr; }
  nav.top ul { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 540px) {
  .stat-strip .num { font-size: 38px; }
  .shots-row { grid-template-columns: 1fr; }
  footer .row { grid-template-columns: 1fr; }
}

/* Subtle paper grain — site-wide */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(rgba(27,23,19,0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.7;
}
body > * { position: relative; z-index: 2; }
