/* =====================================================================
   Amplified Story - section & decoration styling
   Design tokens (colors, fonts, sizes) live in theme.json.
   This file styles the homepage block pattern: section bands, grids,
   cards, line icons (as CSS backgrounds), decorative watermarks, and the
   Contact Form 7 request form. Classes are applied by the pattern markup;
   editable text stays in the blocks.
   ===================================================================== */

:root {
	--as-primary: #0099CC;
	--as-bright: #35C4EF;
	--as-ink: #0D1F2D;
	--as-body: #55636E;
	--as-muted: #8A97A1;
	--as-border: #E7ECF1;
	--as-cyan-grad: linear-gradient(140deg, #35C4EF, #0099CC);
	--as-slate-grad: linear-gradient(157deg, #1A3247 0%, #223F58 55%, #2A4C68 100%);
	--as-card-shadow: 0 1px 2px rgba(13,31,45,.06), 0 10px 30px -20px rgba(13,31,45,.22);
}

/* Smooth anchor scrolling for the in-page CTAs. */
html { scroll-behavior: smooth; }

/* The pattern lives inside post-content; kill the default content gap so the
   full-width section bands sit flush against each other. */
.as-main { margin: 0; padding: 0; }
.as-main > .wp-block-post-content,
.as-main .wp-block-post-content { margin-top: 0; margin-bottom: 0; }
.as-main .wp-block-post-content > * { margin-block: 0; }

/* Remove the root-level block gaps so the colored full-width bands run edge to
   edge and the footer sits flush under the last section (no white line). */
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part { margin-block: 0; }

/* ---------- Section bands ---------- */
.as-section { padding: 92px 32px; }
.as-section .as-container { max-width: 1200px; margin-inline: auto; }

.as-hero { background: #F7F9FA; padding: 80px 32px 88px; position: relative; overflow: hidden; }
.as-features { background: #fff; scroll-margin-top: 70px; }
.as-embed { background: #F4F6F8; border-top: 1px solid #EEF2F5; }
.as-door { background: var(--as-slate-grad); color: #fff; position: relative; overflow: hidden; }
.as-audience { background: #fff; scroll-margin-top: 70px; }
.as-included { background: #F7F9FA; border-top: 1px solid #EEF2F5; }
.as-pricing { background: #fff; scroll-margin-top: 70px; }
.as-request { background: var(--as-slate-grad); color: #fff; position: relative; overflow: hidden; padding: 96px 32px; scroll-margin-top: 70px; }

/* White headings on the dark slate bands. */
.as-door :is(h1,h2,h3,h4),
.as-request :is(h1,h2,h3,h4) { color: #fff; }

/* ---------- Decorative play-in-ring watermarks (fixed) ---------- */
.as-hero::after,
.as-door::before,
.as-request::after {
	content: "";
	position: absolute;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	pointer-events: none;
	z-index: 0;
}
.as-hero::after { right: -70px; bottom: -150px; width: 460px; height: 460px; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27none%27%20stroke%3D%27%230D1F2D%27%20stroke-width%3D%277%27%2F%3E%3Cpath%20d%3D%27M40%2030%20L74%2050%20L40%2070%20Z%27%20fill%3D%27%230D1F2D%27%2F%3E%3C%2Fsvg%3E"); }
.as-door::before { left: -60px; top: -90px; width: 380px; height: 380px; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%277%27%2F%3E%3Cpath%20d%3D%27M40%2030%20L74%2050%20L40%2070%20Z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E"); }
.as-request::after { right: -80px; bottom: -150px; width: 480px; height: 480px; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2746%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%277%27%2F%3E%3Cpath%20d%3D%27M40%2030%20L74%2050%20L40%2070%20Z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E"); }
/* keep real content above the watermark */
.as-door > *, .as-request > *, .as-hero > * { position: relative; z-index: 2; }

/* ---------- Typography helpers ---------- */
.as-eyebrow {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: var(--as-primary);
	margin: 0 0 16px;
}
.as-eyebrow--bright { color: var(--as-bright); }

.as-h1 {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 58px; line-height: 1.04; font-weight: 700; letter-spacing: -.025em;
	margin: 0 0 24px; text-wrap: balance; color: var(--as-ink);
}
.as-h2 {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em;
	margin: 0; color: var(--as-ink);
}
.as-h2--sm { font-size: 38px; line-height: 1.1; margin: 0 0 18px; }
.as-h2--lg { font-size: 44px; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 18px; }
.as-accent { color: var(--as-primary); }

.as-lead { font-size: 18px; line-height: 1.65; color: var(--as-body); margin: 0 0 34px; max-width: 460px; }
.as-body { font-size: 17px; line-height: 1.65; color: var(--as-body); margin: 0 0 26px; max-width: 440px; }
.as-dim { color: rgba(255,255,255,.74); }
.as-center { text-align: center; }
.as-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.as-section-head .as-eyebrow { margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.as-actions { align-items: center; gap: 14px; margin-top: 4px; }
.as-btn-primary .wp-block-button__link {
	background: var(--as-cyan-grad); color: #fff; border: 0; border-radius: 10px;
	padding: 14px 28px; font-size: 15px; font-weight: 600;
	box-shadow: 0 10px 28px -10px rgba(0,153,204,.55);
	transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.as-btn-primary .wp-block-button__link:hover {
	filter: brightness(1.05); transform: translateY(-1px);
	box-shadow: 0 14px 30px -10px rgba(0,153,204,.6);
}
.as-btn-text .wp-block-button__link {
	background: transparent; color: var(--as-primary); border: 0;
	padding: 14px 8px; font-size: 15px; font-weight: 600;
}
.as-btn-text .wp-block-button__link:hover { color: #007aa6; }

/* ---------- Two-column section alignment ---------- */
.as-cols { align-items: center; }

/* ---------- Feature cards (end to end) ---------- */
.as-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.as-card {
	background: #fff; border: 1px solid var(--as-border); border-radius: 16px;
	padding: 24px; box-shadow: var(--as-card-shadow);
}
.as-card::before {
	content: ""; display: block; width: 40px; height: 40px; border-radius: 10px;
	background-color: rgba(0,153,204,.1); background-repeat: no-repeat;
	background-position: center; background-size: 20px 20px; margin-bottom: 16px;
}
.as-card--build::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230099CC%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2717%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M16%202v4M8%202v4M3%2010h18%27%2F%3E%3C%2Fsvg%3E"); }
.as-card--sell::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230099CC%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20%3E%3Cpath%20d%3D%27M4%204h16v12H4z%27%2F%3E%3Cpath%20d%3D%27M2%2020h20%27%2F%3E%3Cpath%20d%3D%27M8%208h8%27%2F%3E%3C%2Fsvg%3E"); }
.as-card--door::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230099CC%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%2716%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M9%204v16M15%204v16M4%209h5M4%2015h5%27%2F%3E%3C%2Fsvg%3E"); }
.as-card--pay::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230099CC%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20%3E%3Cpath%20d%3D%27M12%202v20M17%205H9.5a3.5%203.5%200%200%200%200%207h5a3.5%203.5%200%200%201%200%207H6%27%2F%3E%3C%2Fsvg%3E"); }
.as-card-title { font-size: 16px; font-weight: 700; color: var(--as-ink); margin: 0 0 7px; }
.as-card-body { font-size: 13.5px; line-height: 1.55; color: var(--as-body); margin: 0; }

/* ---------- Embed spotlight checklist ---------- */
.as-checklist { display: flex; flex-direction: column; gap: 14px; }
.as-check { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; align-items: start; }
.as-check::before {
	content: ""; width: 20px; height: 20px; margin-top: 1px;
	background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230099CC%27%20stroke-width%3D%272.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20%3E%3Cpath%20d%3D%27M5%2013l4%204L19%207%27%2F%3E%3C%2Fsvg%3E") no-repeat center / 20px 20px;
}
.as-check p { font-size: 15px; line-height: 1.5; color: var(--as-ink); margin: 0; }
.as-check p strong { font-weight: 700; }

/* ---------- Door tools mini-features (2x2) ---------- */
.as-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 460px; }
.as-mini-title { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 5px; }
.as-mini-body { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.62); margin: 0; }

/* ---------- Who it's for cards ---------- */
.as-acard { border: 1px solid var(--as-border); border-radius: 16px; overflow: hidden; box-shadow: var(--as-card-shadow); background: #fff; }
.as-acard .wp-block-image { margin: 0; }
.as-acard .wp-block-image img { display: block; width: 100%; height: 120px; object-fit: cover; }
.as-acard-body { padding: 20px; }
.as-acard-title { font-size: 16.5px; font-weight: 700; color: var(--as-ink); margin: 0 0 6px; }
.as-acard-body p:not(.as-acard-title) { font-size: 13.5px; line-height: 1.55; color: var(--as-body); margin: 0; }

/* ---------- Everything included (3-col checklist) ---------- */
.as-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 34px; }
.as-inc { display: grid; grid-template-columns: 18px 1fr; column-gap: 11px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--as-border); }
.as-inc::before {
	content: ""; width: 18px; height: 18px; margin-top: 2px;
	grid-column: 1; grid-row: 1 / span 2; align-self: start;
	background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%230099CC%27%20stroke-width%3D%272.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20%3E%3Cpath%20d%3D%27M5%2013l4%204L19%207%27%2F%3E%3C%2Fsvg%3E") no-repeat center / 18px 18px;
}
.as-inc-label { grid-column: 2; font-size: 14.5px; font-weight: 600; color: var(--as-ink); margin: 0; }
.as-inc-sub { grid-column: 2; font-size: 12.5px; color: var(--as-muted); margin: 1px 0 0; }

/* ---------- Pricing ---------- */
.as-price-wrap { text-align: center; }
.as-price-intro { max-width: 560px; margin: 18px auto 40px; }
.as-price {
	display: flex; gap: 0; align-items: stretch; width: max-content; max-width: 100%; margin: 0 auto;
	border: 1px solid var(--as-border); border-radius: 16px; overflow: hidden;
	box-shadow: 0 1px 2px rgba(13,31,45,.06), 0 20px 50px -30px rgba(13,31,45,.3);
}
.as-price-cell { padding: 30px 40px; border-right: 1px solid var(--as-border); }
.as-price-cell:last-child { border-right: 0; }
.as-price-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--as-muted); margin: 0 0 8px; }
.as-price-num { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--as-ink); line-height: 1; margin: 0; }
.as-price-sub { font-size: 13px; color: var(--as-muted); margin: 6px 0 0; }

/* ---------- Mockup images (hero / embed / door) ----------
   The seeded PNGs already carry their own frame + shadow, so we don't add
   another. When the owner swaps in a raw screenshot they can add a frame
   via the Image block's border/shadow controls if wanted. */
.as-shot { margin: 0; }
.as-shot img { display: block; max-width: 100%; height: auto; }
.as-shot--phone img { width: 260px; max-width: 90%; margin-inline: auto; }
.as-shot figcaption { text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #B4BEC6; margin-top: 10px; }

/* ---------- Footer ---------- */
.as-footer { text-align: center; }
.as-footer-top { gap: 14px; }
.as-footer-brand { gap: 10px; }
.as-footer-brand .as-ring { display: inline-flex; line-height: 0; }
.as-footer-name { margin: 0; color: #fff; }
.as-footer-tagline { color: rgba(255,255,255,.55); max-width: 340px; margin: 0 auto; }
.as-footer-bar { max-width: 1200px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.as-footer-bar .as-footer-legal,
.as-footer-bar .as-footer-legal p { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; }

/* =====================================================================
   Contact Form 7 - request form, styled to match the design reference.
   Wrap the CF7 fields in a <div class="as-form"> (see contact-form-7-setup.md).
   ===================================================================== */
.as-form-card { background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); }
.as-form .as-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.as-form .as-field { margin: 0 0 14px; }
.as-form .as-form-row .as-field { margin: 0; }
.as-form label { display: block; font-size: 12.5px; font-weight: 600; color: #46535E; margin-bottom: 6px; }
.as-form input[type="text"],
.as-form input[type="email"],
.as-form textarea {
	width: 100%; border: 1px solid #D7DDE3; border-radius: 10px;
	padding: 11px 12px; font-size: 14px; color: var(--as-ink);
	font-family: inherit; background: #fff; box-sizing: border-box;
}
.as-form input[type="text"]:focus,
.as-form input[type="email"]:focus,
.as-form textarea:focus { outline: none; border-color: var(--as-primary); box-shadow: 0 0 0 3px rgba(0,153,204,.12); }
.as-form textarea { resize: vertical; min-height: 84px; }
.as-form .as-submit { margin: 6px 0 0; }
.as-form .wpcf7-submit,
.as-form .as-submit input[type="submit"] {
	width: 100%; font-size: 15px; font-weight: 600; color: #fff;
	background: var(--as-cyan-grad); padding: 14px; border: 0; border-radius: 10px;
	cursor: pointer; box-shadow: 0 10px 28px -12px rgba(0,153,204,.6);
	transition: transform .15s ease, filter .15s ease;
}
.as-form .wpcf7-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.as-form .as-fineprint { text-align: center; font-size: 12px; color: #96A2AB; margin: 12px 0 0; }
/* CF7 validation + response messaging */
.as-form .wpcf7-not-valid-tip { color: #b32d2e; font-size: 12px; margin-top: 4px; }
.as-form .wpcf7-not-valid { border-color: #b32d2e !important; }
.as-form .wpcf7-response-output { border-radius: 10px; font-size: 13px; margin: 14px 0 0; padding: 10px 12px; }
/* Honeypot: keep the trap field invisible to humans. */
.as-form .as-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; }

/* =====================================================================
   Responsive - collapse to single column, shrink the hero.
   ===================================================================== */
@media (max-width: 900px) {
	.as-grid-4.is-layout-grid, .as-grid-4 { grid-template-columns: 1fr 1fr !important; }
	.as-grid-3.is-layout-grid, .as-grid-3 { grid-template-columns: 1fr 1fr !important; }
	.as-h1 { font-size: 46px; }
}
@media (max-width: 600px) {
	.as-section { padding: 60px 20px; }
	.as-hero { padding: 56px 20px 60px; }
	.as-request { padding: 64px 20px; }
	.as-grid-4.is-layout-grid, .as-grid-4 { grid-template-columns: 1fr !important; }
	.as-grid-3.is-layout-grid, .as-grid-3 { grid-template-columns: 1fr !important; }
	.as-grid-2.is-layout-grid, .as-grid-2 { grid-template-columns: 1fr !important; max-width: none; }
	.as-h1 { font-size: 38px; }
	.as-h2, .as-h2--sm, .as-h2--lg { font-size: 32px; }
	.as-price, .as-price.is-layout-flex { flex-direction: column; width: auto; }
	.as-price-cell { border-right: 0; border-bottom: 1px solid var(--as-border); }
	.as-price-cell:last-child { border-bottom: 0; }
	.as-form .as-form-row { grid-template-columns: 1fr; }
	.as-footer-bar { flex-direction: column; gap: 10px; text-align: center; }
}
