:root {
  --orange: #C85C19;
  --orange-light: #e07a3a;
  --orange-dark: #a54a12;
  --charcoal: #1f1d1b;
  --charcoal-2: #2a2724;
  --ink: #f4efe9;
  --muted: #b8afa6;
  --line: #3a3531;
  --ok: #6fbf73;
  --warn: #e0a640;
  --err: #e26d5a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--charcoal);
  color: var(--ink);
  line-height: 1.55;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding-top: 4px;
}
.top-stripe { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--orange); z-index: 10; }
a { color: var(--orange-light); }
a:hover { color: #f0975c; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
code { background: var(--charcoal-2); padding: .1em .35em; border-radius: 4px; font-size: .95em; }

.site-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand-mark { width: 30px; height: 30px; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.button { color: #fff; }

/* Mobile nav: hidden on desktop, shown at <=640px (see media query). */
.nav-mobile { display: none; }

.site-main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.site-main.home { max-width: none; padding: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.site-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--muted); margin-right: 1rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; }
.footer-mark { width: 34px; height: 34px; display: block; }

.button {
  display: inline-block; background: var(--orange); color: #fff; border: 0; border-radius: var(--radius);
  padding: .7rem 1.2rem; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--orange-dark); color: #fff; }
.button.small { padding: .45rem .9rem; font-size: .9rem; }
.button.ghost { background: transparent; border: 1px solid var(--orange); color: var(--ink); }
.button.ghost:hover { background: rgba(200, 92, 25, .12); color: #fff; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--orange-light); cursor: pointer; font: inherit; }
.link-button.danger { color: var(--err); }
.link-button[disabled] { opacity: .45; cursor: not-allowed; }
.inline-form { display: inline; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: .75rem; }
.fine { font-size: .9rem; color: var(--muted); }
.hint { font-weight: 400; color: var(--muted); font-size: .9em; }
.kicker { color: var(--orange-light); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }

/* Homepage: full-bleed hero with the editor shot. */
.hero {
  text-align: center; padding: 4.5rem 0 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(200, 92, 25, .28), transparent 70%),
    linear-gradient(180deg, #24211e 0%, var(--charcoal) 60%);
}
.hero-mascot { display: block; width: 120px; height: 120px; margin: 0 auto 1.5rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.02em; max-width: 860px; margin: 0 auto 1.25rem; }
.hero .lead { font-size: 1.25rem; max-width: 760px; margin-bottom: 1.75rem; }
.hero .fine { margin-top: .5rem; }
.hero .fine code { font-size: .9em; }
.hero-shot { padding-top: 3rem; padding-bottom: 0; }
.hero-shot .shot { margin-bottom: -1px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* Editor screenshot frame. The SVG carries the orange title bar and 4px stripe. */
.shot {
  margin: 0; background: #15130f; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(200, 92, 25, .15);
}
.shot img { display: block; width: 100%; height: auto; }

/* Four numbered pillars under the hero. */
.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 2rem; padding-bottom: 2rem; }
.pillar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.pillar-list li { display: flex; flex-direction: column; gap: .25rem; }
.pillar-list .num { color: var(--orange); font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.pillar-list strong { font-size: 1.05rem; }
.pillar-list li > span:last-child { color: var(--muted); font-size: .95rem; }

/* Alternating copy + shot rows. */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
.row + .row { border-top: 1px solid var(--line); }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .row-copy { grid-column: 2; grid-row: 1; }
.row.flip .row-shot { grid-column: 1; grid-row: 1; }
.row h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.015em; margin-bottom: 1rem; }
.row-copy p { color: var(--muted); font-size: 1.05rem; }
.row-copy .kicker { margin-bottom: .5rem; }
.row-shot { min-width: 0; }

.bill { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bill-row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); font-size: 1.02rem; }
.bill-row:first-child { border-top: 0; }
.bill-row span:first-child { color: var(--muted); }
.bill-row span:last-child { text-align: right; }
.bill-row.total { background: rgba(200, 92, 25, .12); }
.bill-row.total span { color: var(--ink); font-weight: 700; }
.bill-row.total span:last-child { color: var(--ok); }

.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.route-node { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.route-node strong { font-size: 1.1rem; }
.route-node span { color: var(--muted); font-size: .95rem; }
.route-node.you { border-color: var(--orange); }
.route-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--muted); font-size: .8rem; text-align: center; }
.route-arrow svg { display: block; }
.route-note { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--radius); padding: .9rem 1.25rem; color: var(--muted); font-size: .95rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.route-note strong { color: var(--ink); }

.feature-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; }
.feature-grid li { color: var(--muted); font-size: .95rem; }
.feature-grid strong { display: block; color: var(--ink); margin-bottom: .15rem; }

/* "Why switch?" closing panel: Pumpkin's own advantages, no comparison table. */
.why { padding-top: 5rem; padding-bottom: 5rem; }
.why-inner {
  background:
    radial-gradient(ellipse 65% 90% at 50% -20%, rgba(200, 92, 25, .22), transparent 70%),
    var(--charcoal-2);
  border: 1px solid var(--line); border-radius: 16px; padding: 3rem;
}
.why h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.015em; margin-bottom: .5rem; }
.why-lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin-bottom: 0; }
.why-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.why-list li { display: flex; flex-direction: column; gap: .3rem; }
.why-list strong { font-size: 1.05rem; }
.why-list span { color: var(--muted); font-size: .98rem; }

.cta-band { text-align: center; border-top: 1px solid var(--line); padding-top: 4rem; padding-bottom: 5rem; }
.cta-band h2 { font-size: 1.8rem; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 1.5rem; }

.page-head { margin-bottom: 1.5rem; }
.page-head .lead { margin-left: 0; }

/* Pricing gets the same orange-wash page head as the home hero. */
.site-main.pricing { max-width: none; padding: 0; }
.pricing-hero {
  text-align: center; padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(200, 92, 25, .28), transparent 70%),
    linear-gradient(180deg, #24211e 0%, var(--charcoal) 60%);
}
.pricing-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.pricing-hero .lead { max-width: 60ch; }
.pricing-body { padding-top: 3.5rem; padding-bottom: 4.5rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; margin-bottom: 3.5rem; }
.plan {
  background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 2rem; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.plan.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 24px 60px rgba(0, 0, 0, .45); }
.plan h2 { font-size: 1.3rem; }
.plan .price { font-size: 3rem; font-weight: 700; margin: .25rem 0 1.25rem; }
.plan .price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 1.2rem; margin: 0 0 1.75rem; flex: 1; }
.plan li { margin-bottom: .5rem; }
.plan .button { text-align: center; }

.your-bill {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; align-items: start;
  border-top: 1px solid var(--line); padding-top: 3rem; margin-bottom: 3.5rem;
}
.your-bill-copy p { color: var(--muted); max-width: 60ch; }

.faq dt { font-weight: 600; margin-top: 1rem; max-width: 60ch; }
.faq dd { margin: .25rem 0 0; color: var(--muted); max-width: 60ch; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose ul { padding-left: 1.2rem; }

/* Short form pages (login, signup, forgot, reset, invite, consent, message,
   error): a centered panel that sits in the remaining viewport instead of
   clinging to the top of a tall empty page. */
.form-page {
  max-width: 460px; margin: 0 auto; width: 100%;
  background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 2rem;
}
.site-main:has(> .form-page) { display: flex; flex-direction: column; }
.site-main:has(> .form-page) .form-page { margin: auto; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.inline-stack { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  background: #15130f; color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .75rem; font-size: 1rem; font-family: inherit; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
fieldset.choice { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
fieldset.choice legend { padding: 0 .4rem; font-weight: 600; }
label.radio { flex-direction: row; align-items: center; gap: .6rem; font-weight: 400; }
input[type=radio] { accent-color: var(--orange); }
.alt { margin-top: 1.25rem; color: var(--muted); }

.alert { border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid; }
.alert.error { border-color: var(--err); color: #ffd9d2; background: rgba(226, 109, 90, .12); }
.alert.ok { border-color: var(--ok); color: #d9f2da; background: rgba(111, 191, 115, .12); }
.alert.warn { border-color: var(--warn); color: #f7e6c4; background: rgba(224, 166, 64, .12); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.card { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.cards .card { margin-bottom: 0; }
.status { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.status.ok { background: rgba(111, 191, 115, .18); color: var(--ok); }
.status.off { background: rgba(184, 175, 166, .18); color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.table td.actions { white-space: nowrap; }
.table td.actions form { display: inline; margin-right: .75rem; }
.scopes { padding-left: 1.2rem; }

@media (max-width: 900px) {
  .pillar-list { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .row.flip .row-copy { grid-column: auto; grid-row: 1; }
  .row.flip .row-shot { grid-column: auto; grid-row: 2; }
  /* Compact vertical route: short dashed orange connector, no rotated arrow. */
  .route { grid-template-columns: 1fr; gap: .75rem; }
  .route-arrow { flex-direction: row; align-items: center; justify-content: flex-start; gap: .75rem; padding-left: 1.1rem; }
  .route-arrow svg { display: none; }
  .route-arrow::before { content: ""; display: block; width: 0; height: 30px; border-left: 2px dashed var(--orange); }
  .your-bill { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .hero { padding-top: 3rem; }
  .hero-mascot { width: 104px; height: 104px; margin-bottom: 1.25rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero-shot { padding-top: 2rem; }
  .pillar-list { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .bill-row { flex-direction: column; gap: .25rem; }
  .bill-row span:last-child { text-align: left; }
  .table td.actions { white-space: normal; }

  /* Mobile nav: brand + compact CTA + a native details menu. No JavaScript. */
  .site-nav { display: none; }
  .brand { font-size: 1.1rem; gap: .45rem; flex-shrink: 0; min-width: 0; }
  .brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
  .nav-mobile { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
  .nav-mobile .button.small { white-space: nowrap; flex-shrink: 0; }
  .nav-menu summary {
    list-style: none; display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); font-weight: 600; cursor: pointer; user-select: none;
  }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .menu-icon {
    position: relative; display: inline-block; flex-shrink: 0;
    width: 16px; height: 2px; background: var(--ink);
  }
  .menu-icon::before, .menu-icon::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 2px;
    background: var(--ink); transform-origin: center;
    transition: transform .15s ease, top .15s ease;
  }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .nav-menu[open] .menu-icon { background: transparent; }
  .nav-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .nav-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .menu-close-label { display: none; }
  .nav-menu[open] .menu-open-label { display: none; }
  .nav-menu[open] .menu-close-label { display: inline; }
  .nav-menu-list {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    display: none; flex-direction: column;
    background: var(--charcoal-2); border-bottom: 1px solid var(--line);
    padding: .25rem 1.5rem .75rem;
  }
  .nav-menu[open] .nav-menu-list { display: flex; }
  .nav-menu-list a, .nav-menu-list .link-button {
    display: flex; align-items: center; width: 100%; min-height: 44px;
    border-top: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-size: 1.05rem; text-align: left;
  }
  .nav-menu-list a:first-child { border-top: 0; }
  .nav-menu-list a.active { color: var(--orange-light); }
  .nav-menu-list .inline-form { display: block; }

  /* Shot slots: crop the mock window to its top-left so it reads as a
     deliberate crop on a phone, not a tiny full window. The SVG files and
     paths stay in place for real captures to replace later. */
  .shot img { height: 240px; object-fit: cover; object-position: top left; }
  .hero-shot .shot img { height: 260px; }

  .why { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .why-inner { padding: 2rem 1.5rem; }
  .why-list { grid-template-columns: 1fr; }

  .pricing-hero { padding: 3rem 0 2.5rem; }
  .pricing-body { padding-top: 2.5rem; padding-bottom: 3rem; }
  .plan { padding: 1.5rem; }

  .form-page { padding: 1.5rem 1.25rem; }

  .site-footer { flex-direction: column; gap: .25rem; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1.25rem; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .nav-mobile { gap: .5rem; }
}
