/* Infill — workshop palette: graphite, hot-end orange, teal for money you keep. */

:root {
  color-scheme: light dark;

  /* Brand palette (identical in both appearances) */
  --orange: #FF8A3D;
  --teal: #2DD4BF;
  --amber: #FBBF24;
  --violet: #A58BFA;
  --graphite: #0E1116;

  /* Light appearance */
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #EEF0F4;
  --text: #0E1116;
  --muted: #5A6472;
  --border: #DFE3E9;
  --accent-text: #A64C08;
  --pos-text: #0C7466;
  --on-accent: #1A0E04;
  --shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 10px 30px rgba(14, 17, 22, .07);
  --hero-glow: radial-gradient(70% 55% at 50% 0%, rgba(255, 138, 61, .13), transparent 70%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1116;
    --surface: #171B22;
    --surface-2: #1E232C;
    --text: #ECEFF3;
    --muted: #98A2B0;
    --border: #272D38;
    --accent-text: #FF8A3D;
    --pos-text: #2DD4BF;
    --on-accent: #0E1116;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 34px rgba(0, 0, 0, .38);
    --hero-glow: radial-gradient(70% 55% at 50% 0%, rgba(255, 138, 61, .16), transparent 70%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-text); }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 760px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

/* ---------- Type ---------- */

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 44ch;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .75em;
}

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

.fineprint {
  font-size: .875rem;
  color: var(--muted);
}

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

.hero {
  position: relative;
  padding: 56px 0 24px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.hero h1 { max-width: 15ch; }

.hero h1 .cut {
  color: var(--accent-text);
  display: block;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .95rem;
  background: var(--orange);
  color: var(--on-accent);
  border: 1px solid transparent;
}

.badge.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-accent);
  opacity: .55;
}

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

section { padding: 44px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.section-head { max-width: 60ch; margin-bottom: 28px; }

/* ---------- Cost breakdown demo ---------- */

.demo { margin-top: 34px; }

.demo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.demo-head .title { font-weight: 650; }

.bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 18px;
}

.bar span { display: block; height: 100%; }

.rows { list-style: none; margin: 0; padding: 0; }

.rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
}

.rows li:last-child { border-bottom: 0; }

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.rows .label { flex: 1; }

.rows .value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.totals {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.totals .big {
  font-size: 1.15rem;
  font-weight: 700;
}

.totals .profit { color: var(--pos-text); }

/* ---------- Numbered feature blocks ---------- */

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  background: color-mix(in srgb, var(--orange) 16%, transparent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}

.compare {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: .93rem;
}

.compare > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
}

.compare .right {
  background: var(--surface-2);
  background: color-mix(in srgb, var(--teal) 14%, var(--surface-2));
  box-shadow: inset 2px 0 0 var(--teal);
}

.compare .k { color: var(--muted); }

.compare .right .k { color: var(--text); font-weight: 600; }

.compare .v { font-weight: 700; white-space: nowrap; }

.compare .right .v { color: var(--pos-text); }

/* ---------- Who's asking ---------- */

.who {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 26px;
}

.who .card { padding: 18px; }

.who h3 { margin-bottom: .35em; font-size: 1rem; }

.who p { margin: 0; font-size: .92rem; color: var(--muted); }

.who .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

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

.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 26px;
}

.plan { display: flex; flex-direction: column; }

.plan.pro { border-color: var(--orange); }

.plan .price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 4px 0 2px;
}

.plan .price small {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: normal;
}

.plan ul {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: .95rem;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: .5em;
  background: var(--muted);
}

.plan.pro li::before { background: var(--orange); }

.plan .note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  color: var(--muted);
}

.plan.pro .note { color: var(--accent-text); font-weight: 600; }

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

.faq { display: grid; gap: 14px; margin-top: 26px; }

.faq h3 { margin-bottom: .4em; }

.faq p:last-child { margin-bottom: 0; }

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

.legal { padding: 40px 0 8px; }

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal h2:first-of-type { margin-top: 1.2em; }

.legal ul { padding-left: 1.15em; margin: 0 0 1em; }

.legal li { margin-bottom: .4em; }

.legal .card { margin: 1.5em 0; }

.updated {
  font-size: .875rem;
  color: var(--muted);
  margin-top: -.5em;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 32px 0 44px;
  font-size: .9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a { color: var(--muted); text-decoration: none; }

.footer-links a:hover { color: var(--text); text-decoration: underline; }

.site-footer p { margin: 0 0 .5em; }

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

@media (min-width: 700px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .who { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 84px 0 32px; }
  .hero-icon { width: 96px; height: 96px; }
  section { padding: 60px 0; }
  .card { padding: 26px; }
}

@media (min-width: 940px) {
  .who { grid-template-columns: repeat(4, 1fr); }
}

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