/* Open Wall Plan — site styles */
:root {
  --gypsum: #eef0ec;      /* drywall background */
  --sheet: #f8f9f6;       /* drawing sheet */
  --ink: #1b2a3a;         /* blueprint ink */
  --ink-2: #4b5a68;       /* secondary text */
  --rule: #cfd5d2;        /* drafting lines */
  --cable: #2f6fb0;       /* Cat6 blue, the accent */
  --cable-deep: #23578c;
  --pine: #b8925a;        /* framing lumber */
  --head: "Archivo", "Arial Narrow", sans-serif;
  --body: "Lora", Georgia, serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--gypsum); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
img, svg { max-width: 100%; }
a { color: var(--cable-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cable); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--head); font-stretch: 87.5%; line-height: 1.08; letter-spacing: -0.01em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--gypsum); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { font-family: var(--head); font-weight: 800; font-stretch: 87.5%; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; }
.logo small { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--ink-2); font-style: italic; letter-spacing: 0; }
.nav { display: flex; gap: 22px; align-items: center; font-family: var(--head); font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--cable-deep); text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 1.02rem; padding: 0.8em 1.3em; border-radius: 3px; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: transparent; line-height: 1.2; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--cable); border-color: var(--cable); color: #fff; }
.btn.primary:hover { background: var(--cable-deep); border-color: var(--cable-deep); }
.nav .btn { padding: 0.5em 0.95em; font-size: 0.95rem; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--ink-2); margin: 22px 0 30px; max-width: 34ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { font-size: 0.92rem; color: var(--ink-2); margin-top: 18px; }

.plan { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 16px 12px; position: relative; }
.plan-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--head); font-size: 0.95rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.plan-title b { color: var(--ink); font-weight: 700; }
.layers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.layer { font-family: var(--head); font-size: 0.92rem; border: 1.5px solid var(--rule); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 6px 12px 6px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.layer .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.layer[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.layer[aria-pressed="true"] .sw { background: var(--c); }
.plan svg { display: block; width: 100%; height: auto; }
.plan .g { transition: opacity 0.35s ease; }
.plan .g.off { opacity: 0; }
.plan-note { font-size: 0.86rem; color: var(--ink-2); margin: 10px 2px 0; }
@media (prefers-reduced-motion: reduce) { .plan .g { transition: none; } }

/* Sections */
section.band { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
section.band.dark { background: var(--ink); color: #e6ebef; border-top: 0; }
section.band.dark h2, section.band.dark h3 { color: #fff; }
section.band.dark p { color: #c4ced6; }
section.band.sheet { background: var(--sheet); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.12rem; margin-top: 14px; }
.dark .section-head p { color: #c4ced6; }

/* Timeline (a real sequence) */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--rule); counter-reset: none; }
.stages li { padding: 18px 16px 0 0; position: relative; font-size: 0.98rem; color: var(--ink-2); }
.stages li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--gypsum); border: 2px solid var(--rule); }
.stages li strong { display: block; font-family: var(--head); font-size: 1.12rem; color: var(--ink); margin-bottom: 4px; }
.stages li.open::before { background: var(--cable); border-color: var(--cable); }
.stages li.open strong { color: var(--cable-deep); }
.stages li.closed::before { background: var(--ink-2); border-color: var(--ink-2); }

/* Mistakes list */
.mistakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 8px; }
.mistakes div { border-top: 1px solid #33475a; padding: 18px 0 22px; }
.mistakes h3 { font-size: 1.2rem; margin-bottom: 6px; }
.mistakes p { margin: 0; font-size: 1rem; }
.dark .cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dark .btn { border-color: #fff; color: #fff; }
.dark .btn:hover { background: #fff; color: var(--ink); }
.dark .btn.primary { border-color: var(--cable); }

/* Offers */
.offers { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 0; border: 1px solid var(--rule); background: var(--sheet); border-radius: 4px; }
.offer { padding: 30px 28px 32px; display: flex; flex-direction: column; }
.offer + .offer { border-left: 1px solid var(--rule); }
.offer .price { font-family: var(--head); font-weight: 800; font-stretch: 87.5%; font-size: 2.6rem; line-height: 1; margin: 14px 0 6px; }
.offer .price span { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.offer .for { color: var(--ink-2); font-style: italic; margin-bottom: 16px; }
.offer ul { margin: 0 0 24px; padding-left: 1.1em; font-size: 0.99rem; }
.offer li { margin-bottom: 6px; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer.featured { background: #fff; box-shadow: inset 0 4px 0 var(--cable); }
.tiers { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 0.97rem; }
.tiers td { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.tiers td:last-child { text-align: right; font-family: var(--head); font-weight: 700; }
.addon { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--rule); font-size: 0.97rem; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--head); font-weight: 800; font-size: 2.4rem; color: var(--pine); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { font-size: 0.99rem; color: var(--ink-2); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.facts { border-left: 3px solid var(--pine); padding-left: 22px; }
.facts dt { font-family: var(--head); font-weight: 700; margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-family: var(--head); font-weight: 700; font-size: 1.15rem; padding: 14px 32px 14px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--cable); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

/* Blog cards on home and index */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { border-top: 2px solid var(--ink); padding-top: 16px; }
.post-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--cable-deep); text-decoration: underline; }
.post-card p { font-size: 0.99rem; color: var(--ink-2); }
.post-card .meta { font-size: 0.9rem; color: var(--ink-2); font-style: italic; }

/* Article */
.article { padding: clamp(40px, 7vw, 80px) 0; }
.article .wrap { max-width: 44rem; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.article .meta { color: var(--ink-2); font-style: italic; margin-bottom: 36px; }
.article h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.article ul, .article ol { padding-left: 1.2em; max-width: var(--measure); }
.article li { margin-bottom: 8px; }
.article .callout { background: var(--sheet); border-left: 3px solid var(--cable); padding: 18px 22px; margin: 32px 0; }
.article .callout p:last-child { margin-bottom: 0; }
.back { font-family: var(--head); display: inline-block; margin-bottom: 28px; }

/* Footer */
.site-foot { background: var(--ink); color: #b9c4cd; padding: 48px 0 40px; font-size: 0.95rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-foot a { color: #e6ebef; }
.site-foot .fine { max-width: 40rem; font-size: 0.88rem; color: #93a1ad; margin-top: 10px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .about { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .offer + .offer { border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr; }
  .mistakes { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--rule); margin-left: 7px; }
  .stages li { padding: 0 0 18px 24px; }
  .stages li::before { top: 4px; left: -8px; }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
}
