/* Product story pages. Same look as the Prime scroll prototype: black, Apple-style type, logo red. */

.story {
	--bg: #000;
	--text: #f5f5f7;
	--muted: #a1a1a6;
	--line: #2a2a2e;
	--panel: #111114;
	--accent: #f80000;
	--accent-text: #ff4d40;
	--stock: #d9dce1;
	--stiff: #e0a23a;
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.story *, .story *::before, .story *::after { box-sizing: border-box; }
.story a { color: inherit; }
.story img, .story video { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* Nav */
.story-nav { position: sticky; top: 0; z-index: 50; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-bar .story-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .story-nav { top: 46px; } }
.brand { white-space: nowrap; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; font-size: 15px; }
.brand span { color: var(--accent); }
.brand-logo { display: inline-flex; align-items: center; }
.story .brand-logo img { height: 32px; width: auto; }
.story-footer .brand-logo img { height: 36px; }
.story-nav nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.story-nav nav a { text-decoration: none; color: var(--muted); }
.story-nav nav a:hover { color: var(--text); }
.story-nav .buy { white-space: nowrap; background: var(--accent); color: #fff; font-weight: 600; padding: 7px 14px; border-radius: 980px; }
.story-nav .buy span { opacity: .8; font-weight: 500; margin-left: 4px; }
.story-nav .buy .woocommerce-Price-amount { color: #fff; }

/* Type */
.eyebrow { color: var(--accent-text); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.story h1 { font-size: clamp(44px, 9vw, 96px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 700; }
.story h2 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 700; }
.lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); max-width: 680px; margin: 0 0 28px; }
.cta { display: inline-block; background: var(--accent); color: #fff !important; font-weight: 600; text-decoration: none; padding: 13px 24px; border-radius: 980px; }
.cta-2 { display: inline-block; margin-left: 16px; color: var(--accent-text) !important; text-decoration: none; }
.cta-2:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 52px); display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 75%); }
.hero-copy { position: relative; padding: 0 0 clamp(40px, 8vh, 96px); }
.hero .lede { color: rgba(245,245,247,.86); max-width: 520px; }

/* Bands */
.band { padding: clamp(72px, 12vw, 140px) 0; border-top: 1px solid var(--line); scroll-margin-top: 52px; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.panel, .media-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.media-card { margin: 0; overflow: hidden; min-height: 240px; }
.media-card video { width: 100%; height: auto; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.media-card figcaption { padding: 12px 16px; font-size: 13px; }

.steps, .install { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li, .install li { border-left: 2px solid var(--accent); padding-left: 16px; color: var(--muted); }
.steps li b { display: block; color: var(--text); font-size: 19px; margin-bottom: 2px; }
.install { max-width: 760px; margin-bottom: 24px; }
.install li { counter-increment: s; }
.install li::before { content: counter(s) ". "; color: var(--text); font-weight: 600; }
.install b, .specs b { color: var(--text); }

.warn { max-width: 760px; background: rgba(248,0,0,.12); border: 1px solid rgba(248,0,0,.5); border-radius: 14px; padding: 14px 18px; margin: 0 0 28px; }
.warn b { color: var(--accent-text); }

.quote { margin: 0 0 14px; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--panel); border-radius: 0 12px 12px 0; }

/* Chart */
.chart { margin: 8px 0 0; padding: 18px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1.5; }
.chart .grid .sag { stroke: var(--muted); stroke-dasharray: 4 5; stroke-width: 1; }
.chart .axis, .chart .note { fill: var(--muted); font-size: 13px; }
.chart .line { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.stock { stroke: var(--stock); }
.chart .line.stiff { stroke: var(--stiff); stroke-dasharray: 9 7; }
.chart .line.airtech { stroke: var(--accent); stroke-width: 4.5; }
.chart .label { font-size: 15px; font-weight: 600; }
.chart .label.stock { fill: var(--stock); }
.chart .label.stiff { fill: var(--stiff); }
.chart .label.airtech { fill: var(--accent-text); }
.chart figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Specs + buy box */
.specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.specs li { color: var(--muted); border-left: 2px solid var(--line); padding-left: 14px; }
.specs li b { display: block; font-size: 18px; }
.buy-split { align-items: start; }
.buy-box { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); }
.buy-price { font-size: 32px; font-weight: 700; margin-bottom: 18px; }
.buy-price del { color: var(--muted); font-size: 20px; font-weight: 500; margin-right: 8px; }
.buy-price ins { text-decoration: none; }
.buy-box table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.buy-box table.variations th, .buy-box table.variations td { display: block; text-align: left; padding: 0; }
.buy-box table.variations th { font-size: 14px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }
.buy-box table.variations tr:first-child th { margin-top: 0; }
.buy-box select { width: 100%; appearance: none; -webkit-appearance: none; background: #1c1c20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a1a1a6' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 13px 40px 13px 14px; font: inherit; }
.buy-box select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.buy-box .reset_variations { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.buy-box .woocommerce-variation { margin: 14px 0; }
.buy-box .woocommerce-variation-price .price { font-size: 22px; font-weight: 600; }
.buy-box .stock { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.buy-box .stock.out-of-stock { color: var(--accent-text); }
.buy-box .woocommerce-variation-add-to-cart, .buy-box form.cart:not(.variations_form) { display: flex; gap: 10px; margin-top: 16px; }
.buy-box .quantity input { width: 72px; height: 100%; background: #1c1c20; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; text-align: center; }
.buy-box .single_add_to_cart_button { flex: 1; background: var(--accent); color: #fff; border: 0; border-radius: 980px; padding: 14px 24px; font: inherit; font-weight: 600; cursor: pointer; }
.buy-box .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.buy-helper { margin-top: 14px; font-size: 14px; color: var(--muted); }
.buy-helper b { color: var(--text); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* WooCommerce notices ("added to your cart") */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #16281a; border: 1px solid #2d5a36; font-size: 15px; }
.woocommerce-error { background: #2a1414; border-color: #6a2a2a; }
.woocommerce-message .button { float: right; color: var(--accent-text); text-decoration: none; font-weight: 600; }

/* FAQ */
.story details { border-top: 1px solid var(--line); padding: 18px 0; }
.story details:last-of-type { border-bottom: 1px solid var(--line); }
.story summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; }
.story summary::-webkit-details-marker { display: none; }
.story summary::after { content: "+"; float: right; color: var(--muted); }
.story details[open] summary::after { content: "–"; }
.story details p { color: var(--muted); margin: 10px 0 0; }

/* Staging-only placeholders */
.ph { color: #ffb020 !important; font-style: italic; }
.ph-box { min-height: 240px; display: grid; place-items: center; padding: 24px; text-align: center; border: 1px dashed #ffb020; border-radius: 22px; }

/* Footer */
.story-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.story-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0; }
.story-footer nav a { text-decoration: none; }
.story-footer nav.legal { margin-top: -4px; font-size: 13px; gap: 16px; }
/* PayPal's fraud check loads Google reCAPTCHA v3 on pages with PayPal buttons. Its floating badge is hidden;
   Google allows that when the notice below is shown instead (.recaptcha-note in impulse_site_footer). */
.grecaptcha-badge { visibility: hidden !important; }
.story-footer .recaptcha-note { font-size: 12px; color: #6e6e73; margin-top: 8px; }
.story-footer .recaptcha-note a { text-decoration: underline; }
.story-footer nav a:hover { color: var(--text); }

@media (max-width: 600px) {
	/* Phones: keep Shop, Cart and the pill; tighten everything to fit 360-375 px */
	.story-nav { padding: 0 12px; }
	.story-nav .brand { font-size: 13px; letter-spacing: .04em; }
	.story-nav .brand-logo img { height: 26px; }
	.story-nav nav { gap: 12px; font-size: 13px; }
	.story-nav .buy { padding: 6px 11px; }
	.cta-2 { margin: 14px 0 0; display: block; }
}
@media (max-width: 359px) {
	.story-nav .buy span { display: none; }
}
