/* Another Story Embed — scoped under .as-embed so it doesn't fight your theme.
   Tokens mirror the Another Story territory sites. Override --as-* on .as-embed in your theme CSS. */

.as-embed {
	--as-primary: #4D5B6A;
	--as-primary-dark: #3D4754;
	--as-accent: #D4A017;
	--as-accent-hover: #E8B14F;
	--as-cream: #D4CBC3;
	--as-dark: #2C3540;
	--as-white: #FAFAF8;
	--as-paper: #faf8f4;
	--as-line: #e6e3dd;
	--as-input-line: #cfcabf;
	--as-text: #54514b;
	--as-text-2: #6b665e;
	--as-muted: #8b857f;
	--as-btn-text: #1a1a1a;
	--as-error: #9a2828;
	--as-font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--as-font-head: Georgia, 'Times New Roman', serif;
	--as-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

	font-family: var(--as-font-body);
	color: var(--as-text);
	background: var(--as-paper);
	line-height: 1.55;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}
.as-embed *, .as-embed *::before, .as-embed *::after { box-sizing: border-box; }
.as-embed img { max-width: 100%; height: auto; display: block; }
.as-embed a { color: inherit; }
.as-embed h1, .as-embed h2, .as-embed h3 { font-family: var(--as-font-head); font-weight: 400; margin: 0 0 .5em; line-height: 1.15; color: var(--as-dark); }
.as-embed p { margin: 0 0 1em; }
.as-embed ul, .as-embed ol { margin: 0; padding: 0; list-style: none; }

.as-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.as-max { max-width: 720px; }
.as-section { padding: 64px 0; }
.as-alt { background: linear-gradient(180deg, #fbf9f5, #f4efe6); }

.as-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--as-accent); margin: 0 0 12px; font-family: var(--as-font-body); }
.as-eyebrow-light { color: var(--as-accent); }
.as-embed .as-h1 { font-size: clamp(32px, 4.6vw, 50px); color: var(--as-white); }
.as-h2 { font-size: clamp(26px, 3.2vw, 36px); }
.as-lead { font-size: 18px; color: var(--as-text-2); }
.as-lead-light { color: rgba(250, 250, 248, .88); }
.as-note { font-size: 13px; color: var(--as-muted); }
.as-note-light { color: rgba(250, 250, 248, .7); }
.as-embed .as-note-light a { color: var(--as-accent); text-decoration: none; }
.as-mono { font-family: var(--as-font-mono); font-size: 13px; color: var(--as-muted); }

/* Buttons */
.as-embed .as-btn { display: inline-block; border: 0; cursor: pointer; background: var(--as-accent); color: var(--as-btn-text); font-family: var(--as-font-body); font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 4px; text-decoration: none; line-height: 1.2; transition: background .15s; }
.as-embed .as-btn:hover, .as-embed .as-btn:focus-visible { background: var(--as-accent-hover); color: var(--as-btn-text); }
.as-btn-block { display: block; width: 100%; text-align: center; }
.as-btn[disabled] { opacity: .6; cursor: progress; }
.as-embed .as-pill { display: inline-block; background: #fff; color: var(--as-primary); font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); white-space: nowrap; }

/* Header */
.as-header { background: var(--as-primary); color: var(--as-white); }
.as-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.as-embed .as-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--as-white); }
.as-logo { height: 36px; width: auto; }
.as-brand-name { font-family: var(--as-font-head); font-size: 20px; }
.as-header-right { display: flex; align-items: center; gap: 16px; }
.as-embed .as-phone { color: var(--as-white); text-decoration: none; font-weight: 700; }

/* Hero */
.as-hero { background: linear-gradient(160deg, var(--as-primary), var(--as-primary-dark)); color: var(--as-white); padding: 72px 0; }
.as-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.as-hero-copy .as-btn { margin-top: 8px; }
.as-pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.as-pair-img { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); aspect-ratio: 2 / 1; background: var(--as-primary-dark); }
.as-pair-img img { width: 100%; height: 100%; object-fit: cover; }
.as-tag { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.as-tag-accent { background: var(--as-accent); color: var(--as-btn-text); }
.as-pair figcaption { grid-column: 1 / -1; font-size: 13px; color: rgba(250, 250, 248, .7); margin-top: 4px; }

.as-local { padding-bottom: 0; }
.as-local p { font-size: 18px; color: var(--as-text-2); }

/* Iso / how it works intro */
.as-iso-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.as-iso .as-note { margin-left: 12px; }
/* .as-embed prefix: `.as-embed ul, .as-embed ol` (above) would otherwise zero this padding/margin. */
.as-embed .as-steps-mini { background: #fffdf7; border: 1px solid var(--as-line); border-radius: 10px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.as-steps-mini li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--as-line); font-size: 17px; color: var(--as-dark); }
.as-steps-mini li:last-child { border-bottom: 0; }
.as-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; background: var(--as-accent); color: var(--as-btn-text); font-family: var(--as-font-mono); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* Funnel / form */
.as-funnel { padding: 48px 0; }
.as-funnel-card { background: #fff; border: 1px solid var(--as-line); border-radius: 10px; padding: 36px; max-width: 760px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.as-label { display: block; font-size: 13px; font-weight: 700; color: var(--as-dark); margin: 0 0 14px; }
.as-input { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--as-input-line); border-radius: 4px; background: #fff; color: var(--as-dark); }
.as-input:focus { outline: 2px solid var(--as-accent); outline-offset: 1px; border-color: var(--as-accent); }
.as-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-error { color: var(--as-error); font-size: 14px; margin-top: 10px; }
.as-form-step .as-note { margin-top: 10px; }

/* Cards */
.as-cards { display: grid; gap: 16px; margin-top: 28px; }
.as-cards-4 { grid-template-columns: repeat(4, 1fr); }
.as-cards-3 { grid-template-columns: repeat(3, 1fr); }
.as-card { background: #fff; border: 1px solid var(--as-line); border-radius: 8px; padding: 22px; }
.as-card h3 { font-size: 20px; margin-bottom: 6px; }
.as-card p { margin: 0; font-size: 15px; color: var(--as-text-2); }

/* Steps */
.as-embed .as-steps { margin-top: 28px; display: grid; gap: 14px; }
.as-steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--as-line); border-radius: 8px; padding: 18px 20px; font-size: 16px; }
.as-steps li strong { color: var(--as-dark); }

/* Compare */
.as-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 12px; }
.as-compare-card { background: #fff; border: 1px solid var(--as-line); border-radius: 10px; padding: 24px; }
.as-compare-hi { border-color: var(--as-accent); box-shadow: 0 0 0 3px rgba(212, 160, 23, .15); }
.as-compare-card h3 { font-size: 22px; }
.as-compare-card li { padding: 8px 0; border-bottom: 1px solid var(--as-line); font-size: 15px; }
.as-compare-card li:last-child { border-bottom: 0; }
.as-compare-card li::before { content: "— "; color: var(--as-muted); }
.as-compare-hi li::before { content: "✓ "; color: var(--as-accent); font-weight: 700; }
.as-teaser { font-family: var(--as-font-head); font-size: 26px; color: var(--as-dark); margin-bottom: 10px; }
.as-teaser span { display: block; font-family: var(--as-font-body); font-size: 13px; color: var(--as-muted); }

/* FAQ */
.as-faq { border-bottom: 1px solid var(--as-line); padding: 14px 0; }
.as-faq summary { cursor: pointer; font-family: var(--as-font-head); font-size: 20px; color: var(--as-dark); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.as-faq summary::-webkit-details-marker { display: none; }
.as-faq summary::after { content: "+"; color: var(--as-accent); font-weight: 700; font-family: var(--as-font-body); }
.as-faq[open] summary::after { content: "–"; }
.as-faq p { margin: 10px 0 0; color: var(--as-text-2); }

/* CTA band + footer */
.as-cta-band { background: var(--as-primary); color: var(--as-white); padding: 48px 0; }
.as-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.as-cta-band .as-h2 { color: var(--as-white); margin: 0; }
.as-footer { background: var(--as-primary-dark); color: rgba(250, 250, 248, .85); padding: 32px 0; font-size: 14px; }
.as-footer p { margin: 0 0 8px; }

/* Responsive */
@media (max-width: 900px) {
	.as-hero-grid, .as-iso-grid, .as-cards-4, .as-cards-3, .as-compare { grid-template-columns: 1fr 1fr; }
	.as-hero-grid, .as-iso-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.as-embed { font-size: 16px; }
	.as-section { padding: 44px 0; }
	.as-hero { padding: 44px 0; }
	.as-cards-4, .as-cards-3, .as-compare, .as-row { grid-template-columns: 1fr; }
	.as-funnel-card { padding: 22px; }
	.as-header-right .as-pill { display: none; }
	.as-pair { grid-template-columns: 1fr; }
}
