:root {
  --ink: #17211d;
  --muted: #5f6c66;
  --cream: #f3efe6;
  --paper: #fffdf8;
  --orange: #ff6b35;
  --orange-dark: #d94d1c;
  --sage: #ccd8c8;
  --green: #29463b;
  --line: rgba(23, 33, 29, .16);
  --shadow: 0 24px 70px rgba(35, 45, 39, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #126bdb; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 94px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.05em; text-decoration: none; }
.brand em { color: var(--orange); font-style: normal; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--orange); transform: rotate(-3deg); }
.brand-mark i { position: relative; width: 19px; height: 14px; border: 3px solid white; border-top: 0; }
.brand-mark i::before { content: ""; position: absolute; width: 13px; height: 13px; left: 0; top: -8px; border: 3px solid white; border-right: 0; border-bottom: 0; transform: rotate(45deg); }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover { color: var(--orange-dark); }
nav a[aria-current="page"] { color: var(--orange-dark); }
.nav-cta { padding: 11px 18px; border: 1px solid var(--ink); border-radius: 99px; }
.mobile-menu { display: none; position: relative; z-index: 20; }
.mobile-menu summary { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 99px; cursor: pointer; list-style: none; font-weight: 700; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 230px; padding: 10px; display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.mobile-menu-panel a { padding: 10px 12px; border-radius: 10px; }
.mobile-menu-cta { background: var(--ink); color: white; text-align: center; }

.hero { min-height: 650px; padding: 65px 0 100px; display: grid; grid-template-columns: 1.04fr .96fr; gap: 70px; align-items: center; }
.eyebrow, .section-index { margin: 0 0 20px; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.04; letter-spacing: -.055em; }
h1 { margin-bottom: 0; font-size: clamp(55px, 7vw, 90px); }
h1 em, .closing h2 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 99px; font-weight: 750; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--ink); color: white; box-shadow: 0 12px 28px rgba(23,33,29,.18); }
.button-primary:hover { background: var(--green); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.text-link { font-weight: 720; text-decoration: none; border-bottom: 1px solid var(--line); }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 42px 0 0; padding: 0; color: var(--muted); font-size: 12px; list-style: none; }
.trust-list li::before { content: "✓"; margin-right: 8px; color: var(--orange-dark); font-weight: 900; }
.hero-board { position: relative; min-height: 490px; display: grid; place-items: center; border: 1px solid rgba(41,70,59,.2); border-radius: 36px; background-color: #dbe2d6; background-image: linear-gradient(rgba(41,70,59,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(41,70,59,.1) 1px, transparent 1px); background-size: 28px 28px; overflow: hidden; }
.plan-card { width: 64%; min-height: 330px; padding: 30px; transform: rotate(-3deg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan-card p { margin: 0; color: var(--muted); font-size: 13px; }
.plan-card > strong { display: block; margin: 3px 0; font-size: 33px; letter-spacing: -.04em; }
.plan-card > span { color: var(--orange-dark); font-size: 12px; font-weight: 700; }
.mini-plan { height: 190px; margin-top: 20px; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; border: 2px solid var(--ink); }
.mini-plan i { border: 1px solid var(--ink); }
.mini-plan i:first-child { grid-row: span 2; }
.result-chip { position: absolute; min-width: 150px; padding: 16px 20px; background: var(--ink); color: white; border-radius: 18px; box-shadow: var(--shadow); }
.result-chip span, .result-chip small { display: block; color: #cfd8d3; font-size: 11px; }
.result-chip strong { display: block; font-size: 22px; }
.chip-one { left: 2%; bottom: 11%; transform: rotate(4deg); }
.chip-two { right: 2%; top: 13%; transform: rotate(3deg); background: var(--orange); }
.grid-label { position: absolute; color: var(--green); font: 700 11px ui-monospace, monospace; }
.label-x { top: 12px; left: 50%; }
.label-y { left: 8px; top: 50%; transform: rotate(-90deg); }
.flow { margin-bottom: 130px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow article { padding: 28px 30px; display: flex; gap: 18px; }
.flow article + article { border-left: 1px solid var(--line); }
.flow article > span { color: var(--orange-dark); font: 700 11px ui-monospace, monospace; }
.flow strong { font-size: 19px; }
.flow p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.section-heading { margin-bottom: 50px; display: grid; grid-template-columns: 1fr .7fr; gap: 80px; align-items: end; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(40px, 5vw, 66px); }
.section-heading > p { margin: 0; color: var(--muted); }
.calculator-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.calculator-card { padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 15px 50px rgba(35,45,39,.06); }
.calculator-card.featured { border-top: 5px solid var(--orange); }
.card-heading { min-height: 90px; display: flex; justify-content: space-between; gap: 20px; }
.card-heading p { margin: 0 0 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.card-heading h3 { margin-bottom: 0; font-size: 28px; }
.card-badge { align-self: start; padding: 6px 10px; background: #ffe0d5; color: #a4350f; border-radius: 99px; font-size: 11px; font-weight: 800; }
.calculator { display: grid; gap: 16px; }
.calculator label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.input-wrap { min-height: 50px; padding: 0 15px; display: flex; align-items: center; gap: 8px; background: #f5f2eb; border: 1px solid transparent; border-radius: 12px; }
.input-wrap:focus-within { border-color: var(--orange); background: white; }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.input-wrap b { color: var(--muted); font-size: 12px; white-space: nowrap; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calculator button { min-height: 51px; margin-top: 5px; border: 0; border-radius: 12px; background: var(--orange); color: #20140f; font-weight: 800; cursor: pointer; }
.calculator button:hover { background: #ff8052; }
.result { margin-top: 18px; padding: 18px; display: grid; gap: 4px; background: #e8eee4; border-left: 4px solid var(--green); border-radius: 12px; }
.result strong { font-size: 22px; }
.result span { color: var(--muted); font-size: 13px; }

.design-section { width: calc(100% + 80px); margin-left: -40px; padding: 110px 40px; background: var(--green); color: white; border-radius: 38px; }
.section-heading-light > p, .section-heading-light .section-index { color: #cbd9d2; }
.preview-label { margin: 0; color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.design-library-card { padding: 44px; display: block; background: #ecf0e8; color: var(--ink); border-radius: 26px; text-decoration: none; }
.design-library-card > div { max-width: 720px; }
.design-library-card h3 { margin: 8px 0 16px; font-size: clamp(30px, 4vw, 48px); }
.design-library-card p:not(.preview-label) { margin: 0 0 28px; color: var(--muted); }
.design-library-card strong { color: var(--orange-dark); }
.design-library-card:hover { background: white; }

.closing { padding: 100px 0 130px; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { margin-bottom: 36px; font-size: clamp(55px, 8vw, 104px); }
footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.brand-footer { color: var(--ink); }

@media (max-width: 900px) {
  .site-header > nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-board { min-height: 440px; }
  .flow, .calculator-grid, .section-heading { grid-template-columns: 1fr; }
  .flow article + article { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading { gap: 22px; }
  .design-section { width: 100%; margin-left: 0; }
  footer { flex-wrap: wrap; padding: 35px 0; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 78px; }
  .hero { min-height: 0; padding: 45px 0 75px; gap: 45px; }
  h1 { font-size: 52px; }
  .hero-board { min-height: 360px; }
  .plan-card { width: 74%; min-height: 270px; padding: 22px; }
  .mini-plan { height: 145px; }
  .result-chip { min-width: 128px; padding: 12px 15px; }
  .flow { margin-bottom: 90px; }
  .calculator-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .design-section { padding: 80px 20px; border-radius: 26px; }
  .design-library-card { padding: 24px 20px; }
  .closing { padding: 80px 0 100px; }
  footer p:nth-child(2) { width: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
