/* PlanShot site — drafting-table design language (matches the app).
   Paper surfaces, ink text, blueprint-blue accent, hairline discipline,
   IBM Plex Sans for words / IBM Plex Mono for every number. */

:root {
  --paper: #faf8f4;
  --sheet: #ffffff;
  --ink: #1a1d21;
  --ink-secondary: #565b63;
  --ink-muted: #8a8f98;
  --hairline: #e5e1d8;
  --sunken: #f1eee7;
  --accent: #2b5ce6;
  --accent-soft: #e9eefc;
  --navy: #141b45;
  --navy-deep: #0c102e;
  --on-ink: #ffffff;
  --cyan: #29b6d8;
  --indigo: #4353d6;
  --violet: #8a5cf2;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --measure: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--sunken);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 5px;
}

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  color: var(--ink-secondary);
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.badge-soon {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-secondary);
  background: var(--sunken);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: #000; text-decoration: none; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--sunken); text-decoration: none; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.btn[aria-disabled="true"]:hover { background: var(--ink); }

/* ---------- section header: label + dimension-tick rule ---------- */

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.section-head .label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  position: relative;
}
.section-head .rule::before,
.section-head .rule::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--hairline);
}
.section-head .rule::before { left: 0; }
.section-head .rule::after { right: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background-image:
    linear-gradient(to right, rgba(43, 92, 230, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 92, 230, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero .lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 44ch;
  margin-bottom: 30px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.hero .req {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* the drawing sheet */
.sheet-card {
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 18px 44px -22px rgba(20, 27, 69, 0.28);
  padding: 14px;
}
.sheet-card svg { display: block; width: 100%; height: auto; }

/* wall draw-on (one orchestrated moment) */
.walls path,
.walls line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s ease-out forwards;
}
.plan-fills, .plan-labels, .plan-dims, .plan-doors, .plan-windows, .plan-titleblock {
  opacity: 0;
  animation: fadein 0.6s ease-out forwards;
}
.plan-fills { animation-delay: 0.15s; }
.plan-windows, .plan-doors { animation-delay: 0.9s; }
.plan-labels { animation-delay: 1.05s; }
.plan-dims { animation-delay: 1.2s; }
.plan-titleblock { animation-delay: 1.35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .walls path, .walls line { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .plan-fills, .plan-labels, .plan-dims, .plan-doors, .plan-windows, .plan-titleblock {
    animation: none; opacity: 1;
  }
}

/* ---------- spec strip ---------- */

.spec-strip {
  border-bottom: 1px solid var(--hairline);
  background: var(--sheet);
}
.spec-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-secondary);
}
.spec-strip span b { color: var(--ink); font-weight: 500; }

/* ---------- sections ---------- */

.section { padding: 76px 0; }
.section + .section { border-top: 1px solid var(--hairline); }

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.step .num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-secondary); }

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 26px;
}
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-secondary); }
.feature .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* pricing */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
}
.tier {
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 30px;
}
.tier h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.tier ul { list-style: none; }
.tier li {
  font-size: 15px;
  color: var(--ink-secondary);
  padding: 5px 0 5px 26px;
  position: relative;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.tier-pro { background: var(--ink); border-color: var(--ink); }
.tier-pro h3 { color: var(--on-ink); }
.tier-pro li { color: rgba(255, 255, 255, 0.82); }
.tier-pro li::before { color: #7fa4ff; }
.tier .price-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 18px;
}
.tier-pro .price-note { color: rgba(255, 255, 255, 0.55); }

.accuracy-note {
  margin-top: 30px;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 68ch;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 40px;
}
.site-footer .wrap {
  padding-top: 52px;
  padding-bottom: 44px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-ink);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}
.footer-tag { font-size: 14.5px; margin-bottom: 28px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  margin-bottom: 28px;
}
.footer-links a { color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover { color: var(--on-ink); }
.footer-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

/* ---------- document pages (privacy / terms / support) ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}
.doc h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.doc .updated {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 36px;
}
.doc h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 38px 0 12px;
}
.doc p, .doc li { color: var(--ink-secondary); font-size: 15.5px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc .callout {
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 15px;
  color: var(--ink-secondary);
}

/* FAQ (support page) */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .site-nav a:not(.badge-soon) { display: none; }
  .hero h1 { font-size: 32px; }
}
