/* ==========================================================================
   DiskBroom — marketing site
   Orchard design system: warm paper, sage, calm risk shapes.
   ========================================================================== */

/* Self-hosted webfonts (variable, latin subset) — no third-party requests.
   Family names match the former Google Fonts setup, so the font stacks
   below and throughout the pages are unchanged. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #EFEAE0;
  --paper-raised: #F6F1E7;
  --paper-card: #FBF8F1;
  --paper-deep: #F2EDE1;
  --paper-tint: #F2F0E4;
  --ink: #2B2820;
  --ink-soft: #57523F;
  --ink-faint: #8A8474;
  --sage: #4F6A47;
  --sage-bright: #6E8B64;
  --sage-pale: #A9BFA0;
  --amber: #C79A3D;
  --terracotta: #B45938;
  --line: rgba(43, 40, 32, .14);
  --line-strong: rgba(43, 40, 32, .2);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(239, 234, 224, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.wordmark:hover { color: var(--ink); }

.shapes { display: flex; align-items: center; gap: 5px; }
.shape-circle { width: 11px; height: 11px; border-radius: 50%; background: var(--sage-bright); }
.shape-triangle {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid var(--amber);
}
.shape-diamond { width: 9px; height: 9px; background: var(--terracotta); transform: rotate(45deg); }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

.btn-nav {
  background: var(--ink);
  color: var(--paper-raised) !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 500;
}
.btn-nav:hover { background: #423E32; }

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

.hero { padding: 72px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sage);
  background: rgba(110, 139, 100, .14);
  border: 1px solid rgba(110, 139, 100, .3);
  border-radius: 20px;
  padding: 5px 13px;
  margin-bottom: 24px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-bright); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero .lede {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--sage);
  color: var(--paper-raised);
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 9px;
  box-shadow: 0 2px 0 rgba(43, 40, 32, .25);
  transition: background .15s ease;
}
.btn-primary:hover { background: var(--sage-bright); color: var(--paper-raised); }

.link-quiet {
  font-size: 14.5px;
  border-bottom: 1px solid rgba(79, 106, 71, .4);
  padding-bottom: 1px;
}

.hero-fineprint { margin-top: 26px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- App window mockup ---------- */

.app-frame { position: relative; }

.app-window {
  background: #FDFBF5;
  border: 1px solid rgba(43, 40, 32, .16);
  border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(43, 40, 32, .3);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(43, 40, 32, .09);
  background: #F6F2E8;
}
.titlebar .tl { width: 11px; height: 11px; border-radius: 50%; }
.titlebar .title { flex: 1; text-align: center; font-size: 12px; color: var(--ink-faint); font-weight: 500; }

.scan-body { padding: 16px 18px 6px; }
.scan-meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 10px; }
.scan-meta strong { color: var(--ink); }

.scan-rows { display: flex; flex-direction: column; gap: 6px; }

.scan-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: var(--paper-tint);
  border-radius: 8px;
  transition: outline-color .15s ease, background .15s ease;
  outline: 2px solid transparent;
}
.scan-row.highlight { background: #ECEADA; outline-color: rgba(110, 139, 100, .55); }

.scan-row .r-circle { width: 12px; height: 12px; border-radius: 50%; background: var(--sage-bright); flex: none; }
.scan-row .r-triangle {
  width: 0; height: 0; flex: none;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--amber);
}
.scan-row .r-diamond { width: 10px; height: 10px; background: var(--terracotta); transform: rotate(45deg); flex: none; margin: 1px; }

.scan-row .r-text { flex: 1; min-width: 0; }
.scan-row .r-name { font-size: 13px; font-weight: 600; }
.scan-row .r-note { font-size: 11.5px; color: var(--ink-faint); }
.scan-row .r-size { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

.confirm-sheet {
  margin: 12px 14px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 -8px 24px -14px rgba(43, 40, 32, .25);
}

@media (prefers-reduced-motion: no-preference) {
  .confirm-sheet {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease .3s, transform .6s ease .3s;
  }
  .confirm-sheet.in { opacity: 1; transform: none; }
}

.confirm-sheet .c-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.confirm-sheet .c-body { font-size: 12px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 12px; }
.confirm-sheet .c-actions { display: flex; gap: 8px; justify-content: flex-end; }

.chip {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 14px;
}
.chip-primary {
  font-weight: 600;
  color: var(--paper-raised);
  background: var(--sage);
  border-color: var(--sage);
}

.app-caption {
  position: absolute;
  right: -8px;
  bottom: -18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
}

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

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-bright);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

.section-lede { font-size: 16.5px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 40px; }

/* ---------- Demonstration ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.step {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 26px 28px;
}
.step .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sage-bright);
  margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.step p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.demo-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-faint);
  max-width: 68ch;
}

/* ---------- Risk system ---------- */

.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.risk-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  cursor: default;
  transition: border-color .15s ease, transform .15s ease;
}
.risk-card:hover { border-color: rgba(110, 139, 100, .5); transform: translateY(-2px); }

.risk-card .glyph { height: 34px; display: flex; align-items: center; margin-bottom: 16px; }
.glyph-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--sage-bright); }
.glyph-triangle {
  width: 0; height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid var(--amber);
}
.glyph-diamond { width: 21px; height: 21px; background: var(--terracotta); transform: rotate(45deg); margin-left: 3px; }

.risk-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 10px; }
.risk-card p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.risk-hint { margin-top: 20px; font-size: 14.5px; color: var(--ink-faint); }

/* ---------- Never (trust contract) ---------- */

.never { background: var(--ink); color: #D8D2C2; }
.never .kicker { color: var(--sage-pale); }
.never h2 { color: var(--paper); }
.never .section-lede { color: #B5AF9E; }

.never-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.never-list li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(239, 234, 224, .12);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: baseline;
}
.never-list li:last-child { border-bottom: none; }
.never-list .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sage-pale);
}
.never-list .vow { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--paper); line-height: 1.4; }
.never-list .why { font-size: 15.5px; color: #B5AF9E; margin-top: 6px; }

.never-verify {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 234, 224, .18);
  font-family: var(--mono);
  font-size: 13px;
  color: #B5AF9E;
}

/* ---------- Pricing ---------- */

.price-card {
  max-width: 520px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 44px;
  box-shadow: 0 16px 40px -28px rgba(43, 40, 32, .35);
}

.price-figure { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; }
.price-figure s { color: var(--ink-faint); font-size: 0.6em; font-weight: 400; }

.price-figure .once { font-size: 20px; color: var(--ink-faint); font-family: var(--sans); font-weight: 400; margin-left: 10px; }

.price-copy { font-size: 15.5px; color: var(--ink-soft); margin: 18px 0 26px; }

.price-includes { list-style: none; margin: 0 0 30px; padding: 0; font-size: 15px; color: var(--ink-soft); }
.price-includes li { padding: 6px 0 6px 26px; position: relative; }
.price-includes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage-bright);
}

.price-edge { margin-top: 22px; font-size: 14px; color: var(--ink-faint); font-style: italic; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--sage-bright);
  flex: none;
}
details[open] summary::after { content: "–"; }
details .answer { padding: 0 0 22px; font-size: 15.5px; color: var(--ink-soft); max-width: 64ch; }
details .answer p { margin: 0 0 12px; }
details .answer p:last-child { margin-bottom: 0; }

/* ---------- Download band ---------- */

.download-band { text-align: center; }
.download-band h2 { margin-bottom: 12px; }
.download-band .section-lede { margin: 0 auto 32px; }

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

.footer {
  border-top: 2px solid var(--ink);
  padding: 40px 0 64px;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
.footer .signoff { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .steps, .risk-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn-nav) { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 72px; }
  .never-list .vow { font-size: 18px; }
}

/* ---- Pricing: two-tier grid (added with the freemium model) ---- */
.price-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; max-width: 880px; }
.price-tier { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.price-card.price-free { background: transparent; border-style: dashed; }
.price-card.price-free .price-figure { color: var(--ink-soft); }
.btn-ghost {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  border: 1.5px solid var(--sage); color: var(--sage);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .15s ease;
}
.btn-ghost:hover { background: rgba(110, 144, 119, .1); }
.price-beta-note { margin-top: 26px; font-size: 14px; color: var(--ink-faint); max-width: 64ch; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Catalog guide pages ---------- */

.guide { max-width: 780px; }
.guide .crumbs { font-size: 13px; color: var(--ink-faint); margin: 36px 0 28px; }
.guide h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
  text-wrap: balance;
}
.guide-path { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); margin: 0 0 8px; word-break: break-all; }
.guide h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 40px 0 10px; }
.guide p { color: var(--ink-soft); font-size: 15.5px; }
.guide-steps { padding-left: 22px; color: var(--ink-soft); font-size: 15px; }
.guide-steps li { margin-bottom: 10px; }
.risk-line { display: flex; align-items: baseline; gap: 10px; }
.guide .mark { width: 13px; height: 13px; display: inline-block; flex: none; position: relative; top: 1px; }
.guide .mark-circle { border-radius: 50%; background: var(--sage-bright); }
.guide .mark-triangle { width: 0; height: 0; background: none; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 13px solid var(--amber); }
.guide .mark-diamond { background: var(--terracotta); transform: rotate(45deg); width: 11px; height: 11px; }
.guide .cat-note { font-size: 14.5px; color: var(--ink-faint); }
.guide-cta {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 40px 0;
}
.guide-cta p:first-child { margin-top: 0; }
.guide-cta .btn-primary { margin-bottom: 4px; }
.guide-siblings { padding-left: 20px; font-size: 14.5px; }
.guide-siblings li { margin-bottom: 6px; }
.guide-page section { padding: 24px 0 72px; }

/* Quiet structured-feedback line (FAQ, support, guides) */
.feedback-line { font-size: 14px; color: var(--ink-faint); margin-top: 28px; }
