/* ═══════════════════════════════════════════════════════════════════
   WEB420 Amsterdam — page-specific composites
   Inherits ALL tokens (color/type/space/radius/shadow) from
   colors_and_type.css, site.css, ai420-mvp.css, polish.css.
   This file only contains layouts not covered by core components.
   ═══════════════════════════════════════════════════════════════════ */

/* — Flag eyebrow chip — Dutch tricolor for "Amsterdam" tag ————— */
.am-flag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--brand-clay);
}
.am-flag-chip::before {
  content: '';
  width: 18px; height: 12px; border-radius: 2px;
  background:
    linear-gradient(to bottom,
      #AE1C28 0%, #AE1C28 33.33%,
      #FFFFFF 33.33%, #FFFFFF 66.66%,
      #21468B 66.66%, #21468B 100%);
  box-shadow: 0 0 0 1px rgba(28,36,24,0.10) inset;
}

/* — Hero — additive variant of existing v8 hero ————————————————— */
.am-hero {
  position: relative;
  padding: clamp(72px, 12vw, 132px) 0 clamp(64px, 10vw, 112px);
  background: var(--surface-base);
  text-align: left;
  overflow: hidden;
}
.am-hero-inner { max-width: 920px; }
.am-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(36px, 6.4vw, 76px);
  color: var(--text-on-cream-strong);
  margin: 0 0 var(--space-5);
}
.am-hero h1 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-clay);
  font-size: 0.94em;
}
.am-hero-lede {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-on-cream);
  margin: 0 0 var(--space-6);
  max-width: 56ch;
  line-height: 1.45;
}
.am-hero-lede strong { color: var(--text-on-cream-strong); font-weight: 600; }
.am-hero-ctas {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.am-hero-trust {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.8px;
  color: var(--text-on-cream-muted);
  margin: 0;
}

/* — Stagger entrance + hero line flow ————————————————————————— */
.am-hero-line { display: block; }
@media (max-width: 720px) {
  .am-hero-line { display: inline; }
  .am-hero-line + .am-hero-line::before { content: ' '; }
  .am-hero h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.08; }
}
.am-fi { opacity: 0; transform: translateY(16px); animation: amFi .8s var(--ease-premium, cubic-bezier(.16,1,.3,1)) forwards; animation-delay: var(--fi-delay, 0ms); }
@keyframes amFi { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .am-fi { animation: none; opacity: 1; transform: none; }
}

/* — WhatsApp CTA glyph wrapper — adds icon inside .btn-primary —— */
.am-cta-wa { display: inline-flex; align-items: center; gap: 9px; }
.am-cta-wa svg { width: 18px; height: 18px; flex: 0 0 18px; }

/* — Strong statement section (uses v8-section-head + v8-h2) ———— */
.am-statement {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--surface-warm);
  text-align: center;
}
.am-statement .v8-section-head { max-width: 760px; margin: 0 auto; }

/* — Statement H2 wrap strategy ————————————————————————————————
   Goal: max 2 lines on every breakpoint, no orphans.
   Mobile  → text-wrap: balance gives a natural 2-line split.
   ≥720px  → italic <em> drops to its own line via display:block.
   <em> always nowrap so "7× Cheaper." never breaks mid-phrase. */
.am-h2-statement {
  text-wrap: balance;
  /* Slightly tighter scale for the long-string headline so it fits 2 lines */
  font-size: clamp(26px, 4vw, 44px);
}
.am-h2-statement em {
  white-space: nowrap;
}
@media (min-width: 720px) {
  .am-h2-statement em { display: block; }
}

/* Safety: balance other section heads on this page too */
.am-section .v8-section-head .v8-h2,
.am-statement .v8-section-head .v8-h2 {
  text-wrap: balance;
}

/* — Live Preview section ——————————————————————————————————————— */
.am-preview { padding: clamp(64px, 9vw, 120px) 0; background: var(--surface-base); }
.am-preview-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-6); }

.am-tabs {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--surface-deep);
  border-radius: 9999px;
  margin: 0 auto var(--space-6);
}
.am-tabs-wrap { text-align: center; }
.am-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 var(--font-body);
  padding: 10px 18px;
  border: 0; background: transparent; border-radius: 9999px;
  color: var(--text-on-cream); cursor: pointer;
  transition: background var(--motion-sm) var(--ease-productive, cubic-bezier(.2,0,0,1));
}
.am-tab[aria-selected="true"] {
  background: var(--surface-paper);
  color: var(--text-on-cream-strong);
  box-shadow: var(--shadow-xs);
}
.am-tab .dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.am-tab[data-tab="blue-sea"] .dot { background: var(--brand-green); }
.am-tab[data-tab="happy-days"] .dot { background: var(--brand-clay); }

/* Phone frame */
.am-phone-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.am-phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19.5;
  background: #0F1109;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(28,36,24,0.18),
    var(--shadow-lg);
}
.am-phone::before {
  /* notch */
  content: '';
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0F1109; border-radius: 0 0 18px 18px; z-index: 3;
}
.am-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface-base);
  /* iOS Safari fix: iframes paint above their containing block and ignore
     `overflow:hidden + border-radius`, so the embedded site visibly leaks
     past the phone bezel on mobile. `clip-path: inset(... round)` clips at
     the compositor level (including replaced content like <iframe>), which
     `overflow:hidden` cannot do. No GPU-layer promotion (no will-change /
     translateZ hacks) — avoids conflicting with the gallery ticker's own
     compositor layer. */
  clip-path: inset(0 round 32px);
}
.am-phone-screen iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.am-phone-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: var(--surface-base);
  font: 500 12px/1 var(--font-mono); letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-on-cream-muted);
  z-index: 2; pointer-events: none;
  opacity: 1; transition: opacity var(--motion-md) ease;
}
.am-phone-loader.is-hidden { opacity: 0; visibility: hidden; }
.am-phone-loader .dots { display: flex; gap: 6px; }
.am-phone-loader .dots span {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand-green);
  animation: amDot 1.2s ease-in-out infinite both;
}
.am-phone-loader .dots span:nth-child(2) { animation-delay: .2s; }
.am-phone-loader .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes amDot { 0%,80%,100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

/* Fallback "mini-site" panel inside phone */
.am-phone-fallback {
  position: absolute; inset: 0;
  background: var(--surface-base);
  color: var(--text-on-cream);
  padding: 56px 18px 24px;
  overflow-y: auto;
  display: none;
}
.am-phone-fallback.is-active { display: block; }
.am-phone-fallback .ph-url {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px;
  color: var(--text-on-cream-muted); margin: 0 0 18px;
  text-align: center;
}
.am-phone-fallback h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; line-height: 1.05;
  margin: 0 0 8px; color: var(--text-on-cream-strong);
}
.am-phone-fallback h4 em {
  font-family: var(--font-italic); font-style: italic; font-weight: 400; color: var(--brand-clay);
}
.am-phone-fallback .ph-sub {
  font-size: 12px; color: var(--text-on-cream-muted); margin: 0 0 16px; line-height: 1.5;
}
.am-phone-fallback .ph-card {
  background: var(--surface-paper);
  border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 12px 14px;
  margin-bottom: 10px;
}
.am-phone-fallback .ph-card h5 {
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-on-cream-muted); margin: 0 0 6px;
}
.am-phone-fallback .ph-card p {
  font-size: 13px; color: var(--text-on-cream); margin: 0; line-height: 1.4;
}
.am-phone-fallback .ph-cta {
  display: block; text-align: center;
  background: var(--brand-green-deep); color: #fff;
  font: 600 13px/1 var(--font-body); padding: 14px;
  border-radius: 12px; text-decoration: none; margin-top: 14px;
}

.am-phone-extlinks {
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center;
  font-size: 13px;
}
.am-phone-extlinks a {
  color: var(--brand-green-deep); text-decoration: none; font-weight: 500;
}
.am-phone-extlinks a:hover { text-decoration: underline; }

/* — Numbered cards (Pain + How It Works) ——————————————————————— */
.am-numgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.am-numcard {
  background: var(--surface-paper);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--motion-md) var(--ease-premium, cubic-bezier(.16,1,.3,1)),
              box-shadow var(--motion-md) ease;
  position: relative;
}
.am-numcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.am-numcard .num {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 1.2px; color: var(--text-on-cream-soft);
  margin: 0 0 4px;
}
.am-numcard h3 {
  font: 600 18px/1.25 var(--font-display);
  letter-spacing: -0.005em;
  margin: 0; color: var(--text-on-cream-strong);
}
.am-numcard p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--text-on-cream-muted);
  margin: 0;
}
/* Subtle tone tints — pull from existing brand mists */
.am-numcard.tone-emerald { background: var(--brand-green-mist); }
.am-numcard.tone-emerald .num { color: var(--brand-green-deep); }
.am-numcard.tone-gold    { background: var(--brand-gold-mist); }
.am-numcard.tone-gold    .num { color: var(--brand-gold-deep); }
.am-numcard.tone-clay    { background: var(--brand-clay-mist); }
.am-numcard.tone-clay    .num { color: var(--brand-clay); }
.am-numcard.tone-sage    { background: var(--surface-sunken); border-color: var(--border-default); }
.am-numcard.tone-paper   { background: var(--surface-paper); }

.am-pain-closer {
  text-align: center; max-width: 60ch; margin: var(--space-6) auto 0;
  color: var(--text-on-cream-muted); font-size: 15px; line-height: 1.55;
}

/* Accordion behaviour on mobile only */
@media (max-width: 900px) {
  .am-numcard.am-acc h3 {
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-right: 4px;
  }
  .am-numcard.am-acc h3::after {
    content: '+'; font-family: var(--font-mono); font-weight: 400;
    font-size: 22px; color: var(--text-on-cream-muted);
    transition: transform var(--motion-md);
  }
  .am-numcard.am-acc[data-open="true"] h3::after { content: '−'; }
  .am-numcard.am-acc > p { display: none; }
  .am-numcard.am-acc[data-open="true"] > p { display: block; animation: amFadeIn .25s ease; }
  @keyframes amFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* — Value Stack (pricing) ————————————————————————————————————— */
.am-stack-card {
  max-width: 820px; margin: 0 auto;
  background: var(--surface-paper);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.am-stack-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-on-cream-muted);
}
.am-stack-list { padding: 6px 26px 12px; }
.am-stack-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border-subtle);
}
.am-stack-row:last-child { border-bottom: 0; }
.am-stack-row h4 {
  font: 600 17px/1.3 var(--font-display);
  margin: 0 0 4px; color: var(--text-on-cream-strong);
}
.am-stack-row p {
  font-size: 13.5px; color: var(--text-on-cream-muted);
  margin: 0; line-height: 1.5; max-width: 48ch;
}
.am-stack-price {
  font: 500 16px/1 var(--font-mono);
  color: var(--text-on-cream-strong);
  white-space: nowrap; text-align: right;
}
.am-stack-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px 26px 20px;
  background: var(--surface-soft);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}
.am-stack-total .lbl {
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-on-cream-muted);
  max-width: 24ch;
}
.am-stack-total .val {
  font: 600 30px/1 var(--font-display);
  color: var(--text-on-cream-muted);
  letter-spacing: -0.01em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--brand-clay);
}

/* Dark island flip — Web420 €97/month panel (centered stacked) */
.am-stack-flip {
  background: var(--brand-green-ink);
  color: var(--text-on-dark);
  padding: 48px 32px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.am-stack-flip .tag {
  display: inline-block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--brand-gold);
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.28);
  padding: 6px 14px; border-radius: 999px;
  margin: 0 0 28px;
}
.am-flip-price {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  margin: 0 0 14px;
}
.am-flip-num {
  font: 600 clamp(72px, 12vw, 104px)/1 var(--font-display);
  color: var(--text-on-dark);
  letter-spacing: -0.03em;
}
.am-flip-unit {
  font: 400 18px/1 var(--font-body);
  color: rgba(240,237,230,0.65);
}
.am-flip-saves {
  font: 400 17px/1.4 var(--font-body);
  color: rgba(240,237,230,0.82);
  margin: 0 0 28px;
  max-width: 36ch;
}
.am-flip-saves strong {
  font-weight: 600;
  color: var(--brand-gold);
  font-family: var(--font-display);
  font-size: 1.08em;
}
.am-flip-cta {
  padding: 18px 32px !important;
  font-size: 16px !important;
  margin: 0 0 18px;
}
.am-stack-flip .fine {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(240,237,230,0.55);
  margin: 0; letter-spacing: 0.4px;
  max-width: 50ch;
}

@media (max-width: 720px) {
  .am-stack-flip { padding: 36px 22px 24px; }
  .am-flip-saves { font-size: 16px; }
  .am-flip-cta { width: 100%; justify-content: center; }
  .am-stack-total { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* — Founder section: uses .v8-motivation classes from main site CSS —
   The default desktop treatment is Instrument Serif italic — fine for the short
   2-paragraph quote on the homepage, but the 3-paragraph Web420 quote reads
   cramped in italic on desktop. Mirror the polish.css mobile fix (Bricolage
   Grotesque, non-italic, larger floor) on desktop here too. Scoped to the
   .v8-motivation block on this page only — homepage stays as-is. */
.v8-motivation .v8-motivation-quote p {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* — Footer: support 4 columns on web420 page (v83 default is 2-col) — */
@media (min-width: 768px) {
  .v8-footer-grid.v8-footer-grid--v83 {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 100%;
  }
}

/* — Gallery ticker ————————————————————————————————————————————— */
.am-gallery { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 132px); background: var(--surface-base); overflow: hidden; }
.am-gallery-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
/* Outer viewport — no native scroll. JS animates inner .am-ticker-track via transform.
   touch-action: pan-y keeps vertical page scroll working when finger is on the gallery. */
/* RESILIENT BASE STATE — a real, CSS-only horizontal swipe carousel that
   works with zero JavaScript. The Instagram (and other) in-app browsers are
   documented to silently block / break page scripts; when the marquee JS
   didn't run, the figures collapsed into a giant vertical stack. Now the
   no-JS state is itself a clean native scroll-snap gallery. JS only ENHANCES
   it into the auto-scrolling marquee (adds `.is-enhanced`). */
.am-ticker {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  padding: 0 max(20px, calc((100vw - 1200px) / 2));
  scroll-snap-type: x proximity;
  scroll-padding-left: max(20px, calc((100vw - 1200px) / 2));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
}
.am-ticker::-webkit-scrollbar { display: none; }
.am-ticker > figure { scroll-snap-align: start; }

/* JS-enhanced marquee: kill native scroll, the inner track is transformed. */
.am-ticker.is-enhanced {
  display: block;
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
}
.am-ticker.is-dragging { cursor: grabbing; }
.am-ticker.is-dragging figure img { pointer-events: none; }
.am-ticker:active { cursor: grabbing; }
/* Inner track — what we actually translate. */
.am-ticker-track {
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.am-ticker figure {
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 4/5;
  background: var(--surface-sunken);
  border-radius: 16px;
  overflow: hidden;
  margin: 0; position: relative;
  box-shadow: var(--shadow-sm);
}
.am-ticker figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none;
}
.am-ticker figure .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: end; padding: 16px;
  background:
    repeating-linear-gradient(135deg,
      var(--surface-sunken) 0 18px,
      var(--surface-deep) 18px 36px);
  font: 400 10px/1.4 var(--font-mono);
  color: var(--text-on-cream-soft);
  letter-spacing: 0.4px;
}

/* — Report Authority Banner ——————————————————————————————————— */
.am-report {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--surface-base);
}
.am-report-card {
  background: var(--brand-gold-mist);
  border: 1px solid rgba(176,133,46,0.15);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  max-width: 1040px; margin: 0 auto;
  text-align: center;
}
.am-report-title {
  font: 600 clamp(24px, 3.5vw, 38px)/1.15 var(--font-display);
  letter-spacing: -0.01em;
  margin: 0 auto var(--space-7);
  color: var(--text-on-cream-strong);
  max-width: 22ch;
}
.am-report-title em {
  font-family: var(--font-italic); font-style: italic; font-weight: 400;
  color: var(--brand-clay); font-size: 0.96em;
}
.am-report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 var(--space-7);
}
.am-report-stat {
  padding: 18px 16px;
  position: relative;
}
.am-report-stat + .am-report-stat::before {
  content: '';
  position: absolute; left: 0; top: 22%;
  width: 1px; height: 56%;
  background: rgba(176,133,46,0.30);
}
.am-report-stat .num {
  font: 600 clamp(32px, 5vw, 56px)/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--brand-gold-deep);
}
.am-report-stat .lbl {
  display: block; margin-top: 6px;
  font: 400 13px/1.35 var(--font-body);
  color: var(--text-on-cream-muted);
}
.am-report-stat.is-accent .num { color: var(--brand-clay); }
.am-report-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-gold-deep); text-decoration: none;
  font-weight: 600; font-size: 16px;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.am-report-cta .arrow { transition: transform var(--motion-sm) ease; }
.am-report-cta:hover .arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .am-report-stats {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .am-report-stat + .am-report-stat::before {
    left: 12%; top: -2px; width: 76%; height: 1px;
  }
  .am-report-stat .num { font-size: 36px; }
  .am-report-stat .lbl { font-size: 12.5px; }
}

/* — FAQ accordion ————————————————————————————————————————————— */
.am-faq { padding: clamp(64px, 9vw, 112px) 0; background: var(--surface-base); }
.am-faq-list { max-width: 760px; margin: 0 auto; }
.am-faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.am-faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.am-faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 17px/1.35 var(--font-display);
  letter-spacing: -0.005em;
  color: var(--text-on-cream-strong);
}
.am-faq-q .chev {
  width: 20px; height: 20px; flex: 0 0 20px;
  position: relative; transition: transform var(--motion-md) var(--ease-productive, cubic-bezier(.2,0,0,1));
}
.am-faq-q .chev::before, .am-faq-q .chev::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px; background: currentColor;
  transition: transform var(--motion-md);
}
.am-faq-q .chev::before { transform: translate(-50%, -50%); }
.am-faq-q .chev::after  { transform: translate(-50%, -50%) rotate(90deg); }
.am-faq-item[data-open="true"] .am-faq-q .chev::after { transform: translate(-50%, -50%) rotate(0); }
.am-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--motion-md) var(--ease-productive, cubic-bezier(.2,0,0,1));
}
.am-faq-a > div { overflow: hidden; }
.am-faq-item[data-open="true"] .am-faq-a { grid-template-rows: 1fr; }
.am-faq-a p {
  font-size: 15.5px; line-height: 1.6;
  color: var(--text-on-cream-muted);
  margin: 0 0 22px; max-width: 60ch;
}

/* — Final CTA — dark island ————————————————————————————————— */
.am-final {
  position: relative;
  padding: clamp(72px, 11vw, 144px) 0;
  background: var(--brand-green-ink);
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
}
.am-final::before {
  /* soft radial glow */
  content: '';
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 720px; height: 720px; border-radius: 999px;
  background: radial-gradient(circle, rgba(63,166,101,0.18) 0%, rgba(63,166,101,0) 60%);
  pointer-events: none;
}
.am-final-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.am-final h2 {
  font: 600 clamp(36px, 6vw, 64px)/1.05 var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  color: var(--text-on-dark);
}
.am-final h2 em {
  font-family: var(--font-italic); font-style: italic; font-weight: 400;
  color: var(--brand-gold); font-size: 0.94em;
}
.am-final p {
  font-size: 17px; color: rgba(240,237,230,0.72);
  margin: 0 0 var(--space-6);
}
.am-final .alt-line {
  margin-top: var(--space-5); font-size: 14px;
  color: rgba(240,237,230,0.66);
}
.am-final .alt-line a {
  color: var(--brand-gold); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(201,168,76,0.4);
}
.am-final .alt-line a:hover { border-bottom-color: var(--brand-gold); }

/* — Section heads when used over warm surface — ensure spacing — */
.am-section { padding: clamp(64px, 9vw, 120px) 0; }
.am-section.bg-warm { background: var(--surface-warm); }
.am-section .v8-section-head { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.am-section .v8-section-head h2 { text-align: center; }
.am-section .v8-section-head .v8-lede { text-align: center; margin-left: auto; margin-right: auto; }

/* Desktop: balance lede line widths so we don't get an orphaned tail like "Cancel anytime."
   Applies to both .am-section and .am-statement (the strong-statement block uses .am-statement). */
@media (min-width: 721px) {
  .am-section .v8-section-head .v8-lede,
  .am-statement .v8-section-head .v8-lede {
    text-align: center;
    text-wrap: balance;
    -webkit-text-wrap: balance;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Center "What's Included" CTA row */
.am-cta-row { display: flex; justify-content: center; margin-top: var(--space-6); }

/* — Mobile reflow ——————————————————————————————————————————— */
@media (max-width: 720px) {
  .am-stack-row { grid-template-columns: 1fr; }
  .am-stack-price { text-align: left; }
  .am-stack-total .val { font-size: 26px; }
  .am-numgrid { grid-template-columns: 1fr; }

  /* — Live Preview phone: wider + more modern proportions ——————————
     iframe site needs ≥320px to render comfortably. Earlier 270→300
     was still too cramped per user feedback. New target:
       • Width 340px → iframe site renders without breaking
       • Aspect 9/15.5 → modern phone shape (less elongated than 9/17),
         keeps ~84% viewport height = ~16% context margin
       • Smaller notch (80×16) → doesn't crop iframe header text
       • max-height: 75vh safety for very short viewports */
  .am-phone {
    /* HEIGHT-DRIVEN sizing — width follows the ratio.
       Why: WebKit (iOS Safari + every iOS in-app browser, incl. Instagram)
       has a resolution bug where `aspect-ratio` + `max-height` + an explicit
       `width` enter an auto-resolution loop and render the box far taller
       than max-height → the frame ballooned past the viewport on mobile.
       Driving from `height` (not width+max-height) sidesteps the loop and
       guarantees the frame can never exceed the screen.
       `svh` stays stable through the iOS URL-bar collapse. */
    width: auto;
    /* Pinned to a fixed px cap on normal phones so the IG / in-app browser
       toolbar collapse can't resize (jump) the frame on scroll. Only tracks
       the viewport on genuinely short screens. */
    height: clamp(420px, 76vh, 560px);
    height: clamp(420px, 76svh, 560px);
    max-width: min(360px, calc(100vw - 36px));
    aspect-ratio: 9 / 16;
    margin-inline: auto;
    border-radius: 44px;
    padding: 10px;
  }
  .am-phone::before {
    width: 86px;
    height: 18px;
    top: 10px;
    border-radius: 0 0 12px 12px;
  }
  .am-phone-screen {
    border-radius: 34px;
    clip-path: inset(0 round 34px);
  }
  /* Allow the section to “breathe” around the phone so the user
     has clear scroll-affordance above & below. */
  .am-preview {
    padding-top: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(48px, 8vw, 80px);
  }
  .am-phone-wrap { gap: 14px; }
}


/* Header logo styles now live site-wide in mobile-enhance.css */
