/* Solid Plan Co. — shop. Same system as the plan viewers: navy #21325D + red #911727 on ivory, Archivo only. */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --navy: #21325D; --navy-deep: #111B36; --red: #911727; --red-hover: #7A1321;
  --ivory: #F5F1E8; --paper: #FFFDF8; --ink: #1B2440; --ink-2: #566079; --line: #DCD6CA; --field-line: #8C8880;
  --sky: #C9D6E6; --blue: #2F7DF0; --hl-ink: #1D4FA8; --ok: #2E7D4F; --warn: #B4540F;
  --sh-1: 0 1px 3px rgba(17, 27, 54, .10); --sh-2: 0 2px 8px rgba(17, 27, 54, .10); --sh-3: 0 12px 32px rgba(17, 27, 54, .16);
  --r-sm: 6px; --r: 10px; --r-lg: 12px;
  --wrap: 1180px; --gut: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 12px; color: var(--navy); }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 850; text-transform: uppercase; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0 0 14px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; display: block; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 60ch; }
.note { font-size: 15px; color: var(--ink-2); }

/* blueprint band: two-level grid that fades toward the left, over a navy gradient (same as the viewers) */
.bp { color: #fff; background:
    linear-gradient(90deg, rgba(17,27,54,1) 0%, rgba(17,27,54,0) 50%),
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, #111B36 0%, #21325D 75%); }
.bp h1, .bp h2, .bp h3 { color: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--red); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: block; margin-left: -1.2%; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 12px; border-radius: var(--r-sm); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.10); color: #fff; }
.cartlink { gap: 8px; }
.cartlink svg { width: 22px; height: 22px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.badge[hidden] { display: none; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: var(--r-sm); min-height: 44px; padding: 0 12px; font: inherit; font-weight: 600; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--navy-deep); padding: 8px var(--gut) 16px; border-bottom: 3px solid var(--red); }
  .nav.open { display: flex; }
  .logo img { height: 24px; }
}

/* buttons: one red per view */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 2px solid var(--navy); background: transparent; color: var(--navy); font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn.solid { background: var(--navy); color: #fff; }
.btn.solid:hover { background: var(--navy-deep); }
.btn.light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.light:hover { background: #fff; color: var(--navy); }
.btn.block { width: 100%; }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--red); }

/* hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { color: var(--sky); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); background: #E8E5DE; }
.hero-art .tag { position: absolute; left: 14px; bottom: 14px; background: rgba(17,27,54,.88); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 15px; color: var(--sky); padding: 0; list-style: none; }
.trust li::before { content: "✓"; color: #fff; font-weight: 800; margin-right: 6px; }
@media (max-width: 860px) { .hero { padding: 36px 0 44px; } .hero .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* sections */
.sec { padding: 64px 0; }
.sec.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 32px; }
@media (max-width: 760px) { .sec { padding: 44px 0; } }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps3 li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; }
.sec.alt .steps3 li { background: var(--ivory); }
.steps3 li::before { counter-increment: s; content: counter(s); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-1); transition: box-shadow .15s, transform .15s; position: relative; }
.card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.card .ph { aspect-ratio: 6 / 5; background: #E8E5DE; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .code { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card .cfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-weight: 850; font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.price s { font-weight: 500; font-size: 16px; color: var(--ink-2); margin-left: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #E6ECF6; color: var(--hl-ink); }
.pill.red { background: #F6E3E5; color: var(--red); }

/* bundle rows */
.bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard { border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); background: var(--paper); position: relative; }
.bcard.feature { border: 2px solid var(--navy); box-shadow: var(--sh-2); }
.bcard .price { font-size: 34px; }
.bcard ul { margin: 6px 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.bcard .btn { margin-top: auto; }
.bcard h3 a { color: var(--navy); text-decoration: none; }
.progress { height: 8px; border-radius: 4px; background: #E6E1D6; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--navy); }
@media (max-width: 960px) { .bundles { grid-template-columns: 1fr; } }

/* compare */
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare td:nth-child(2) { font-weight: 600; color: var(--navy); }
.compare tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; color: var(--navy); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2.2px solid var(--navy); border-bottom: 2.2px solid var(--navy); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 28px; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }

/* plan page */
.crumbs { font-size: 15px; padding: 18px 0 0; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.pp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 20px 0 48px; align-items: start; }
.gallery .main { border-radius: var(--r-lg); overflow: hidden; background: #E8E5DE; border: 1px solid var(--line); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; width: 96px; background: #E8E5DE; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.buy h1 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 8px; }
.buy .tag { font-size: 19px; color: var(--ink-2); margin-bottom: 18px; }
.buy .pricebox { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 16px; }
.buy .pricebox .price { font-size: 38px; }
.buy .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.facts div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.included { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.included li { padding-left: 30px; position: relative; }
.included li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 14px; height: 8px; border-left: 2.4px solid var(--ok); border-bottom: 2.4px solid var(--ok); transform: rotate(-45deg); }
.sticky-buy { position: sticky; top: 84px; }
.bundle-hint { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--navy); border-radius: var(--r); font-size: 16px; background: #EEF2F8; }
@media (max-width: 900px) { .pp { grid-template-columns: 1fr; gap: 24px; } .sticky-buy { position: static; } }

/* demo configurator */
.demo { display: grid; grid-template-columns: 1.5fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--sh-2); }
.demo-stage { position: relative; min-height: 440px; background:
  linear-gradient(rgba(33,50,93,.10) 1px, transparent 1px) 0 0 / 80px 80px,
  linear-gradient(90deg, rgba(33,50,93,.10) 1px, transparent 1px) 0 0 / 80px 80px,
  linear-gradient(rgba(33,50,93,.045) 1px, transparent 1px) 0 0 / 16px 16px,
  linear-gradient(90deg, rgba(33,50,93,.045) 1px, transparent 1px) 0 0 / 16px 16px, #F3EFE5; }
.demo-stage canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; touch-action: none; }
.demo-stage .dims { position: absolute; left: 14px; top: 14px; background: rgba(255,253,248,.94); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; font-weight: 700; color: var(--navy); box-shadow: var(--sh-1); }
.demo-stage .dims small { display: block; font-weight: 500; color: var(--ink-2); font-size: 14px; }
.demo-stage .hint { position: absolute; right: 14px; bottom: 12px; font-size: 13px; color: var(--ink-2); background: rgba(255,253,248,.85); padding: 4px 8px; border-radius: var(--r-sm); }
.demo-stage .status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ink-2); }
.demo-panel { padding: 24px; display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--line); }
.demo-panel h3 { margin: 0; }
.field label, .field .lbl { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.field output { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 800; }
.field input[type=range] { width: 100%; accent-color: var(--navy); height: 32px; }
.field select { width: 100%; min-height: 48px; border: 1.5px solid var(--field-line); border-radius: var(--r); padding: 0 12px; font: inherit; background: #fff; color: var(--ink); }
.seg { display: flex; border: 1.5px solid var(--field-line); border-radius: var(--r); overflow: hidden; }
.seg button { flex: 1; min-height: 44px; border: 0; background: #fff; font: inherit; font-weight: 600; font-size: 15px; color: var(--navy); cursor: pointer; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.readout div { background: var(--ivory); border-radius: var(--r); padding: 10px 12px; }
.readout dt { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.readout dd { margin: 0; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.locked { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.locked b { color: var(--ink); }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } .demo-stage { min-height: 340px; } .demo-panel { border-left: 0; border-top: 1px solid var(--line); } }

/* cart */
.cartgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; padding: 28px 0 64px; }
.lines { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { border-radius: var(--r-sm); background: #E8E5DE; }
.line .nm { font-weight: 700; color: var(--navy); }
.line .sub { font-size: 15px; color: var(--ink-2); }
.line .warn { font-size: 15px; color: var(--warn); margin-top: 4px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 84px; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 850; font-size: 20px; color: var(--navy); }
.empty { text-align: center; padding: 48px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (max-width: 900px) { .cartgrid { grid-template-columns: 1fr; } .summary { position: static; } .line { grid-template-columns: 72px 1fr; } .line .act { grid-column: 2; } }

/* checkout */
.cobox { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; padding: 28px 0 64px; align-items: start; }
.bump { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; border: 2px dashed var(--navy); border-radius: var(--r); padding: 14px; background: #EEF2F8; margin-top: 12px; cursor: pointer; }
.bump input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); }
.bump b { color: var(--navy); }
.bump .bp-price { font-weight: 800; color: var(--navy); }
.frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-height: 420px; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); margin-top: 12px; }
@media (max-width: 900px) { .cobox { grid-template-columns: 1fr; } }

/* notices */
.notice { border-radius: var(--r); padding: 14px 16px; border: 1px solid; font-size: 16px; }
.notice.info { background: #EEF2F8; border-color: #B7C5DD; }
.notice.warn { background: #FBF0E6; border-color: #E5BC93; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--navy-deep); color: #fff; padding: 14px 18px; border-radius: var(--r); box-shadow: var(--sh-3); z-index: 50; display: flex; gap: 14px; align-items: center; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: #fff; font-weight: 700; }

/* legal */
.legal { max-width: 820px; padding: 28px 0 64px; }
.legal h2 { font-size: 24px; margin-top: 34px; }
.legal h3 { margin-top: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 10px 0 18px; }
.legal td, .legal th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper); }
.page-head { padding: 40px 0 36px; }
.page-head p { color: var(--sky); margin: 0; }

/* footer */
.foot { border-top: 3px solid var(--red); padding: 44px 0 28px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot .fh { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot p { color: var(--sky); }
.foot .legalline { border-top: 1px solid rgba(255,255,255,.16); margin-top: 28px; padding-top: 18px; color: var(--sky); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.foot .logo img { height: 32px; margin-bottom: 14px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }
