/* ─────────────────────────────────────────────────────────
   Page Builder Summit — shared styles
   Used by page-builder-summit.html and page-builder-summit-thank-you.html
   Structure and component rules — AND the core brand palette — match
   assets/showcase-styles.css (the AI Systems Showcase page) exactly.
   Only the two accent tokens below (--coral / --lavender, "used
   sparingly") are repointed to this summit's icy-blue logo accent, the
   same way the AI Systems Showcase page used coral + lavender, and the
   Future of Design Summit used pink, for that role.
   Every class rule below still refers to the same variable NAMES, so
   all three summit pages stay easy to compare and keep in sync.
   ───────────────────────────────────────────────────────── */

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Core Simply Digital Shops palette — unchanged from the AI Systems Showcase page */
  --deep-red:    #b40000;
  --burgundy:    #950d20;
  --plum:        #5b002b;
  --cream:       #eae9e3;
  --cream-warm:  #e9e2cb;
  --near-black:  #212321;
  --gold:        #c7a35a;

  /* Derived */
  --ink:         var(--near-black);
  --ink-soft:    #3d3a35;
  --muted:       #7a746a;
  --border:      rgba(91, 0, 43, 0.14);
  --shadow:      0 2px 16px rgba(33, 35, 33, 0.08);

  /* Page Builder Summit accents — used sparingly, pulled from the
     summit logo (icy blue on charcoal, #E3F2FC / #3A3A3C sampled
     from the source PNG) */
  --coral:       #1F7AAE;
  --coral-soft:  rgba(31, 122, 174, 0.14);
  --lavender:    #9ED4EC;
  --lavender-soft: rgba(158, 212, 236, 0.2);

  --focus-ring: 3px solid #4d90fe;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── BASE ───────────────────────────────────────────── */
body {
  background: var(--cream-warm);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* ─── FONT FACE: Seriously Nostalgic ─────────────────── */
@font-face {
  font-family: 'Seriously Nostalgic';
  src: url('https://offers.simplydigitalshops.com/fonts/seriouslynostalgic-regular-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Seriously Nostalgic';
  src: url('https://offers.simplydigitalshops.com/fonts/seriouslynostalgiital-reg-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.display {
  font-family: 'Seriously Nostalgic', 'Bodoni Moda', serif;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.01em; }

p { margin-bottom: 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }
a { color: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }

.text-center { text-align: center; }

/* ─── VISUALLY HIDDEN (honeypot / a11y-only text) ────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── SKIP LINK ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--plum);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--plum);
  padding: 20px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  display: block;
  line-height: 0;
  /* Falls back to this text styling only if the image below fails to load
     and its onerror handler replaces it with plain text. */
  font-family: 'Seriously Nostalgic', 'Bodoni Moda', serif;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-header .logo img {
  height: 32px;
  width: auto;
  display: block;
}
.site-header .tagline {
  font-size: 0.75rem;
  color: rgba(234,233,227,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── ANNOUNCEMENT STRIP ─────────────────────────────── */
.announcement-strip {
  background: var(--near-black);
  color: var(--cream);
  text-align: center;
  padding: 10px 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.announcement-strip strong {
  color: var(--lavender);
  font-weight: 600;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--plum) 0%, var(--burgundy) 55%, var(--deep-red) 100%);
  padding: 56px 0 72px;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
  text-align: center;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  opacity: 0.9;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.hero::before {
  background: var(--lavender);
  top: 14%; left: 8%;
  transform: rotate(20deg);
}
.hero::after {
  background: var(--coral);
  bottom: 10%; right: 9%;
  transform: rotate(-12deg);
}
/*
  Aspect-ratio box for the hero banner (source asset is 1280x400).
  aspect-ratio is set on the FRAME (not the img) so it resolves
  against the frame's own resolved width — a percentage padding-top
  trick here would instead resolve against the containing block's
  width, which drifts once the frame's max-width cap kicks in. The
  img is absolutely positioned + object-fit: contain with !important
  as defense-in-depth against a host page's own generic img rules
  (e.g. a Shopify theme's .rte img { height: auto }) overriding this.
*/
.hero-banner-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 400;
  margin: 0 auto 28px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.hero-banner {
  position: absolute !important;
  inset: 0;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block;
  margin: 0 !important;
  border-radius: 0;
  box-shadow: none;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  color: var(--cream);
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(234,233,227,0.86);
  max-width: 560px;
  line-height: 1.65;
  margin: 0 auto 18px;
}
.hero-support {
  font-size: 0.94rem;
  color: rgba(234,233,227,0.72);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 15px 30px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--gold);
  color: var(--plum);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(234,233,227,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--plum);
  border: 1px solid var(--border);
}
.btn-block { width: 100%; }

.hero-meta {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(234,233,227,0.65);
  letter-spacing: 0.02em;
}

/* Reminds attendees which of the Showcase's many sessions this page
   belongs to — deliberately more visible than a plain eyebrow line. */
.hero-session-tag {
  display: inline-block;
  background: rgba(201, 160, 232, 0.18);
  border: 1.5px solid rgba(201, 160, 232, 0.55);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 22px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero-session-tag strong {
  color: var(--lavender);
  font-weight: 700;
}

/* ─── SECTION LABELS ─────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
  display: block;
}
.section-label.coral { color: var(--coral); }
.section-label.on-dark { color: var(--lavender); }

.gold-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 28px;
}
.text-center .gold-rule { margin: 0 auto 28px; }

.section-intro {
  max-width: 580px;
}
.text-center .section-intro { margin: 0 auto; }

/* ─── ABOUT / BIO ────────────────────────────────────── */
.bio-block {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.bio-portrait {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--lavender-soft), var(--coral-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-text p { font-size: 0.96rem; }
@media (max-width: 560px) {
  .bio-block { flex-direction: column; text-align: center; }
}

/* ─── CARD GRID (Blueprint contents) ─────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.info-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.info-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.info-card p { font-size: 0.88rem; margin: 0; }

.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lavender-soft), var(--coral-soft));
  color: var(--plum);
  margin-bottom: 16px;
}

/* Resource cards benefit from a touch more presence than a plain info-card */
.resource-card {
  box-shadow: var(--shadow);
}
.resource-card:hover {
  border-color: rgba(199, 163, 90, 0.5);
}

/* ─── BOOSTER CARDS ──────────────────────────────────── */
.booster-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 620px) { .booster-grid { grid-template-columns: 1fr; } }

.booster-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.booster-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--lavender-soft), var(--coral-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.booster-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.booster-card-body { padding: 22px; }
.booster-card h3 { font-size: 1rem; margin-bottom: 6px; }
.booster-card p { font-size: 0.88rem; }

/* ─── COUPON BLOCK ───────────────────────────────────── */
.coupon-block {
  margin-top: 32px;
  background: var(--plum);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: var(--cream);
}
.coupon-block p {
  color: rgba(234,233,227,0.8);
  font-size: 0.92rem;
  max-width: 460px;
  margin: 0 auto 20px;
}
.coupon-code-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(234,233,227,0.08);
  border: 1px dashed rgba(234,233,227,0.4);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 22px;
}
.coupon-code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}
.btn-copy {
  background: rgba(234,233,227,0.14);
  border: 1px solid rgba(234,233,227,0.25);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-copy:hover { background: rgba(234,233,227,0.24); }
.btn-copy.copied { background: rgba(199,163,90,0.3); color: var(--gold); }
.coupon-block .btn-primary { display: inline-flex; }
.coupon-note {
  margin-top: 16px;
  font-size: 0.76rem !important;
  color: rgba(234,233,227,0.55) !important;
}

/* ─── OPT-IN BLOCK ───────────────────────────────────── */
.optin-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 8px;
}
.optin-block h2 { margin-bottom: 12px; }
.optin-block p { max-width: 480px; margin: 0 auto 24px; }

/* ─── CTA SECTION ────────────────────────────────────── */
.cta-section {
  background: var(--plum);
  border-top: none;
}
.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-inner h2 { color: var(--cream); margin-bottom: 16px; }
.cta-inner p { color: rgba(234,233,227,0.75); font-size: 1rem; margin-bottom: 32px; }

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--near-black);
  padding: 40px 0;
  text-align: center;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.site-footer a {
  color: rgba(234,233,227,0.85);
  text-decoration: none;
  font-size: 0.82rem;
}
.site-footer a:hover { color: var(--gold); }
.site-footer p {
  font-size: 0.76rem;
  color: rgba(234,233,227,0.55);
  margin: 0;
}

/* ─── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 35, 33, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--cream-warm);
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  background: var(--plum);
  padding: 28px 32px 24px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.modal-header h2 { font-size: 1.4rem; color: var(--cream); margin-bottom: 8px; }
.modal-header p { color: rgba(234,233,227,0.78); font-size: 0.88rem; margin: 0; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(234,233,227,0.12);
  border: none;
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(234,233,227,0.24); }
.modal-body { padding: 28px 32px 32px; }

.form-field { margin-bottom: 14px; }
.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
}
.form-field input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 1px;
}
.form-field input[aria-invalid="true"] {
  border-color: var(--deep-red);
}
.field-error {
  color: var(--deep-red);
  font-size: 0.78rem;
  margin-top: 6px;
  display: none;
}
.field-error.visible { display: block; }

.form-status {
  font-size: 0.85rem;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  display: none;
}
.form-status.visible { display: block; }
.form-status.error {
  background: rgba(180, 0, 0, 0.08);
  color: var(--deep-red);
  border: 1px solid rgba(180, 0, 0, 0.25);
}
.form-status.success {
  background: rgba(90, 130, 60, 0.1);
  color: #3f6b2b;
  border: 1px solid rgba(90, 130, 60, 0.25);
}

.modal-disclaimer {
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}
.modal-disclaimer a { color: var(--plum); text-decoration: underline; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
  section { padding: 44px 0; }
  .hero { padding: 44px 0 52px; }
  .site-header .tagline { display: none; }
  .modal-header, .modal-body { padding-left: 22px; padding-right: 22px; }
  .coupon-block { padding: 24px; }
}
