.hero { position: relative; padding-block: calc(var(--head-offset) + clamp(56px, 9vw, 128px)) clamp(64px, 8vw, 112px); isolation: isolate; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; mask-image: linear-gradient(180deg, black 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, black 55%, transparent 100%); }
.hero-backdrop::before { content: ""; position: absolute; top: -18vw; right: -10vw; width: 44vw; height: 44vw; min-width: 320px; min-height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--beam-core), var(--beam) 28%, transparent 62%); filter: blur(14px); }
.backdrop-beam { position: absolute; top: 4vw; right: 10vw; width: 180vmax; height: 180vmax; transform-origin: 100% 0; translate: var(--px, 0) var(--py, 0); rotate: 0deg; transition: translate .4s ease-out; background: conic-gradient(from 218deg at 100% 0, transparent 0deg, var(--beam) 10deg, var(--beam-core) 20deg, var(--beam) 30deg, transparent 44deg); animation: beam-sweep 4.2s cubic-bezier(.3, .05, .2, 1) both; }
@keyframes beam-sweep { from { rotate: -46deg; opacity: 0; } 30% { opacity: 1; } to { rotate: 0deg; } }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.hero-kicker { margin: 0 0 var(--space-4); color: var(--muted); font: italic 400 var(--step-1) / 1.3 var(--heading); }
.hero-title { max-width: 20ch; font-family: var(--display); font-size: var(--step-5); font-weight: 400; font-variation-settings: "SOFT" 60, "WONK" 1; letter-spacing: -0.02em; line-height: .98; text-wrap: balance; }
.hero-title span { display: block; }
.hero-lead { max-width: 44ch; margin-top: var(--space-5); color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.hero-lead span { display: block; text-wrap: balance; }
.hero-install { position: relative; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; margin-top: var(--space-6); }

.hero + .bay { padding-top: 0; }
.bay .section-title { max-width: 14ch; margin-bottom: var(--space-5); }
.bay-panel { background: none; border: 0; border-radius: 0; }
.bay-head, .bay-rows li { display: grid; grid-template-columns: 12px minmax(160px, 1fr) minmax(0, 2.2fr) minmax(0, 1.2fr) 128px; align-items: center; gap: 20px; }
.bay-head { padding: 0 0 10px; color: var(--muted); font: italic 400 15px / 1.4 var(--heading); }
.bay-head span:last-child { text-align: right; }
.bay-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.bay-rows li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.bay-name { display: grid; justify-items: start; gap: 8px; }
.bay-label { font: 400 var(--step-2) / 1.15 var(--heading); }
.bay-text { color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: balance; }
.bay-source { color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: balance; }
.bay-count { justify-self: end; display: grid; justify-items: end; color: var(--accent-text); font: 400 30px / 1.05 var(--heading); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.bay-count small { margin-top: 5px; color: var(--muted); font: 15px var(--body); }
.lamp-idle { border-color: var(--lamp-ring); background: var(--lamp-dim); }
.bay-tag { min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font: 500 15px / 1.4 var(--body); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.bay-tag:is(:hover, :focus-visible), .bay-optional.is-preview .bay-tag { border-color: var(--accent-edge); color: var(--accent-text); }
.bay-tag:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.bay-optional .bay-label, .bay-count-optional { color: var(--muted); }
.bay-optional.is-preview .lamp-idle { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--glow-soft), 0 0 20px 2px var(--glow); }
.bay-optional.is-preview .bay-count, .bay-optional.is-preview .bay-label { color: var(--accent-text); }
.bay-rows .bay-none { padding-block: 16px; }
.bay-none .bay-label { color: var(--muted); font-size: var(--step-1); }
.bay-none .bay-text { font-size: 15px; }
.bay-count-none { color: var(--muted); font: 15px / 1.4 var(--body); }
.bay-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; }
.bay-foot p { max-width: 55ch; font-size: 15px; text-wrap: balance; }
.bay-foot a { flex: none; font-size: 15px; }

.clearing { padding-top: 0; }
.clearing-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.clearing-intro h2 { font-size: var(--step-4); }
.clearing-intro p { max-width: 32ch; justify-self: end; color: var(--muted); font-size: var(--step-1); }
.clearing-stage { position: relative; isolation: isolate; }
.clearing-stage::before { content: ""; position: absolute; z-index: -1; inset: -10% -14%; background: radial-gradient(ellipse at 70% 20%, var(--beam), transparent 60%); filter: blur(40px); pointer-events: none; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.preview-caption { color: var(--muted); font: italic 400 15px var(--heading); }
.preview-switch { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px 8px 8px; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; font: 600 15px var(--body); cursor: pointer; transition: border-color .15s ease; }
.preview-switch:is(:hover, :focus-visible) { border-color: var(--brand); }
.preview-switch-track { position: relative; flex: none; width: 60px; height: 32px; border-radius: 99px; background: var(--well); border: 1px solid var(--line); }
.preview-switch-track::before { content: ""; position: absolute; top: 3px; left: 3px; height: 24px; width: 24px; border-radius: 50%; background: var(--cap); box-shadow: 0 1px 3px var(--shadow); transition: transform .25s ease, background .25s ease; }
.preview-switch[aria-pressed="true"] .preview-switch-track::before { transform: translateX(28px); background: var(--accent); }
.sample-browser { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); box-shadow: 0 40px 70px -45px var(--shadow); }
.sample-chrome { display: flex; align-items: center; gap: 20px; padding: 12px 20px; background: var(--raised); border-bottom: 1px solid var(--line); color: var(--muted); font: 15px var(--mono); }
.sample-dots { display: flex; gap: 5px; }
.sample-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line-strong); }
.sample-state { margin-left: auto; color: var(--accent-text); }
.sample-paper { padding: 26px 42px 36px; }
.sample-masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sample-masthead > span:first-child { font: 500 22px / 1.2 var(--heading); }
.sample-masthead > span:last-child { color: var(--muted); font-size: 15px; }
.sample-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 48px; padding-top: 26px; }
.sample-story h3 { font: 400 clamp(32px, 4.4vw, 54px) / 1.02 var(--heading); letter-spacing: -0.02em; text-wrap: auto; margin-top: 10px; }
.sample-section { color: var(--accent-text); font: italic 400 15px var(--heading); }
.sample-deck { max-width: 36ch; margin-top: 14px; color: var(--muted); font-size: 15px; }
.sample-window { position: relative; overflow: hidden; isolation: isolate; height: 200px; margin-top: 24px; background: var(--raised); border-radius: 3px; }
.window-sun { position: absolute; top: 25px; right: 22%; width: 66px; height: 66px; border-radius: 50%; background: var(--accent-hi); opacity: .75; }
.window-hill { position: absolute; z-index: 2; left: -10%; bottom: -160px; width: 100%; height: 250px; border-radius: 50%; background: var(--brand); transform: rotate(-12deg); opacity: .7; }
.window-hill-back { z-index: 1; left: 35%; bottom: -140px; transform: rotate(12deg); background: var(--muted); opacity: .5; }
.window-frame { position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, transparent 49%, var(--surface) 49%, var(--surface) 51%, transparent 51%), linear-gradient(180deg, transparent 46%, var(--surface) 46%, var(--surface) 50%, transparent 50%); box-shadow: inset 0 0 0 12px var(--surface); }
.window-vase { position: absolute; z-index: 4; width: 37px; height: 51px; bottom: 0; left: 13%; border-radius: 2px 2px 12px 12px; background: var(--accent); }
.window-leaf { position: absolute; z-index: 4; width: 40px; height: 62px; bottom: 40px; left: 13%; border-radius: 0 80% 0 80%; background: var(--brand); transform: rotate(-15deg); }
.sample-copy { display: grid; gap: 9px; margin-top: 24px; }
.sample-copy i { height: 5px; border-radius: 3px; background: var(--line); }
.sample-copy i:last-child { width: 72%; }
.sample-reading { border-top: 1px solid var(--line); padding-top: 18px; }
.sample-reading > span { color: var(--muted); font: italic 400 15px var(--heading); }
.sample-reading p { font: 400 18px / 1.25 var(--heading); padding-block: 18px; border-bottom: 1px solid var(--line); }
.sample-ad { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.sample-ad > div { min-height: 0; overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 20px; background: var(--raised); color: var(--muted); border: 1px dashed var(--line-strong); }
.sample-ad span:first-child { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.sample-ad b { font: 500 22px / 1.1 var(--heading); }
.sample-ad-pill { font-size: 15px; border: 1px solid var(--line-strong); border-radius: 99px; padding: 7px 12px; }
[data-preview-mode="page"] .sample-ad, [data-preview-mode="site"] .sample-ad, [data-preview-mode="paused"] .sample-ad { grid-template-rows: 1fr; opacity: 1; }
.sample-ad-banner > div { min-height: 0; padding-inline: 20px; }
.sample-ad-banner b { margin-block: 20px; }
.sample-ad-side > div { flex-direction: column; gap: 14px; }
.sample-ad-side b { margin-inline: 12px; text-align: center; }
.sample-ad-side span:first-child { margin-top: 22px; }
.sample-ad-side .sample-ad-pill { margin-bottom: 24px; }
.sample-ad-inline > div { justify-content: flex-start; gap: 14px; }
.sample-ad-inline b { margin-block: 20px; font-size: 16px; }
.preview-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 22px; }
.preview-pages > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 5px 12px; padding: 18px 24px; border-right: 1px solid var(--line); font-size: 15px; }
.preview-pages > div:first-child { padding-left: 0; }
.preview-pages > div:last-child { border: 0; padding-right: 0; }
.preview-pages small { grid-column: 2 / -1; color: var(--muted); font: 15px var(--mono); overflow-wrap: anywhere; }
.preview-pages b { grid-column: 3; grid-row: 1; color: var(--accent-text); font-size: 15px; font-weight: 500; }
.preview-pages .is-allowed b { color: var(--muted); }
.preview-controls { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; margin-top: 64px; }
.preview-control-copy h3 { font-size: var(--step-3); font-weight: 400; line-height: 1.08; }
.preview-control-copy p { max-width: 36ch; margin-top: 20px; color: var(--muted); }
.closer-link { display: inline-flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); font-weight: 600; text-decoration: none; margin-top: 24px; transition: border-color .2s, background .2s; }
.closer-link:is(:hover, :focus-visible) { border-color: var(--brand); background: var(--raised); }
.scope-choices { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.scope-choice { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; padding: 16px 14px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; font: 400 var(--step-1) var(--heading); cursor: pointer; transition: background .2s ease, padding .2s ease; }
.scope-choice small { grid-column: 1; color: var(--muted); font: 15px var(--body); }
.scope-choice .arrow { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.scope-choice:is(:hover, :focus-visible), .scope-choice[aria-pressed="true"] { background: var(--surface); padding-left: 20px; }
.scope-choice[aria-pressed="true"] { color: var(--accent-text); box-shadow: inset 2px 0 0 var(--accent); }
.preview-result { color: var(--text); font-size: 15px; margin-top: 18px; min-height: 42px; }
.preview-control-options > .small { font-size: 15px; margin-top: 5px; }

.get { padding-top: 0; }
.get-plate { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 48px; align-items: center; padding: clamp(28px, 4vw, 56px); isolation: isolate; overflow: hidden; }
.get-plate::before { content: ""; position: absolute; z-index: -1; top: -60%; right: -10%; width: 60%; height: 220%; background: radial-gradient(ellipse at 70% 50%, var(--beam), transparent 60%); filter: blur(30px); pointer-events: none; }
.get-copy h2 { font-size: var(--step-3); }
.get-copy p { margin-top: 16px; color: var(--muted); }
.get-install { position: relative; display: flex; justify-content: center; }
@media (max-width: 960px) {
  .bay-head { display: none; }
  .bay-rows li { grid-template-columns: 12px minmax(0,1fr) auto; gap: 12px 18px; }
  .bay-text { grid-column: 2; }
  .bay-source { grid-column: 2; }
  .bay-count { grid-column: 3; grid-row: 1 / 3; }
  .bay-foot { align-items: start; flex-direction: column; }
  .preview-controls { gap: 36px; }
  .sample-paper { padding: 24px; }
  .sample-layout { gap: 28px; }
  .preview-pages > div { padding-inline: 16px; }
  .preview-pages b { grid-row: 3; grid-column: 2; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(42px, 11.5vw, 64px); }
  .hero-lead { font-size: 18px; }
  .backdrop-beam { right: 0; top: 0; }
  .bay-label { font-size: 20px; }
  .bay-text { grid-column: 2 / -1; }
  .bay-source { grid-column: 2 / -1; }
  .bay-count { font-size: 24px; grid-row: 1; }
  .clearing-intro, .preview-controls, .get-plate { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .clearing-intro p { justify-self: start; font-size: 17px; }
  .preview-bar { align-items: start; flex-direction: column; gap: 8px; }
  .preview-switch { padding-inline: 8px 14px; }
  .sample-chrome { gap: 8px; padding-inline: 12px; font-size: 15px; }
  .sample-dots { display: none; }
  .sample-paper { padding: 20px 16px; }
  .sample-masthead > span:first-child { font-size: 19px; }
  .sample-masthead > span:last-child { display: none; }
  .sample-layout { grid-template-columns: minmax(0,1fr); }
  .sample-sidebar { display: none; }
  .sample-window { height: 170px; }
  .sample-ad-banner > div { gap: 10px; padding-inline: 10px; }
  .sample-ad-banner b { font-size: 19px; }
  .sample-ad-pill { display: none; }
  .preview-pages { gap: 12px; }
  .preview-pages > div { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; border: 0; font-size: 15px; }
  .preview-pages small { display: none; }
  .preview-pages .lamp { margin-bottom: 4px; }
  .preview-pages b { grid-row: auto; grid-column: 1; }
  .preview-controls { margin-top: 40px; }
  .get-install { justify-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  .backdrop-beam { rotate: 0deg; opacity: 1; }
}
