/* =============================================================================
   ALMA — pre-launch splash
   Mobile-first. No build step, no framework.

   PALETTE
   Every hex below was sampled directly from the supplied brand assets
   (Alma Brand Mood Board.jpg swatch column + the logo SVGs), not eyeballed:

     black   #000000   background field (dominant)
     cream   #E9D9B7   primary type
     gold    #D58B2A   accent type, buttons, rules
     teal    #1C3C3B   surface / fill
     red     #C41417   accent, fills, states

   CONTRAST (measured against #000000 background):
     cream  #E9D9B7  15.1:1  — safe everywhere
     gold   #D58B2A   7.6:1  — safe for body text
     red    #C41417   3.4:1  — FAILS AA for body text. Large display / borders /
                              fills only. Use --red-text (#F2454A, 5.7:1) for
                              any red text at body size.
     teal   #1C3C3B   1.8:1  — never use for text on black. Surface only.
                              Use --teal-text (#6FA9A6, 7.9:1) for teal type.
   Cream on teal = 8.6:1. Gold on teal = 4.3:1 (large text only).
   ============================================================================= */

:root {
  /* Sampled brand colors */
  --black:      #000000;
  --cream:      #E9D9B7;
  --gold:       #D58B2A;
  --teal:       #1C3C3B;
  --red:        #C41417;

  /* Accessible derivatives for small text on black */
  --cream-dim:  rgba(233, 217, 183, 0.72);  /* 7.8:1 */
  --teal-text:  #6FA9A6;                    /* 7.9:1 */
  --red-text:   #F2454A;                    /* 5.7:1 */

  /* Surfaces */
  --ink:        #0B0B0B;
  --hairline:   rgba(233, 217, 183, 0.16);

  --font-display: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap:  clamp(20px, 6vw, 40px);
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure, figcaption { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

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

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--gold); color: #000;
  padding: .7rem 1.2rem; font-weight: 700; text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* One consistent, high-visibility focus ring everywhere. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: var(--wrap);
}

.section { padding-block: clamp(3.5rem, 11vw, 6.5rem); }

/* Scroll reveal (IntersectionObserver in script.js; no library, no CDN).
   Only ever hidden when the `js` class is present, so a visitor with JS off —
   or a crawler — still sees every section. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js.reveal-off .reveal { opacity: 1; transform: none; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.eyebrow--onteal { color: var(--cream); opacity: .8; }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.section__title--sm { font-size: clamp(1.4rem, 5vw, 1.9rem); text-align: center; }

.lede {
  font-size: clamp(1.05rem, 3.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--cream);
  margin-bottom: 1rem;
}
.lede--center { text-align: center; margin-inline: auto; max-width: 34rem; }

.body { color: var(--cream-dim); margin-bottom: 1rem; }
.body--center { text-align: center; }
.body--onteal { color: rgba(233, 217, 183, .85); }

/* =============================================================================
   1. HERO
   ============================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 9vw, 5rem) clamp(3rem, 9vw, 5rem);
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* warm glow behind the mark — gold into teal into black */
  background:
    radial-gradient(120% 70% at 50% 30%, rgba(213,139,42,.20) 0%, rgba(28,60,59,.28) 42%, rgba(0,0,0,0) 78%),
    var(--black);
}

.hero__watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: min(104vw, 28rem);
  height: auto;
  opacity: .07;
  /* fade the lower half out so body copy sits on clean black */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 88%);
          mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 88%);
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.15);
}

.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero__logo { margin-bottom: 1.1rem; }
.hero__logo svg {
  width: min(78%, 20rem);
  height: auto;
  margin-inline: auto;
  fill: var(--cream);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 6.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: .7rem;
}

.hero__sub {
  color: var(--cream-dim);
  max-width: 34rem;
  margin: 0 auto 1.65rem;
  font-size: clamp(.98rem, 3.4vw, 1.06rem);
}

/* ---------- Waitlist form ---------- */
.waitlist { max-width: 32rem; margin-inline: auto; text-align: left; }

.waitlist__label {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.waitlist__row { display: flex; flex-direction: column; gap: .6rem; }

.waitlist__input {
  width: 100%;
  padding: .95rem 1rem;
  background: rgba(233, 217, 183, .05);
  color: var(--cream);
  border: 1.5px solid rgba(233, 217, 183, .42);   /* 3.1:1 — visible field edge */
  border-radius: var(--radius);
  transition: border-color .2s ease, background-color .2s ease;
  min-height: 52px;   /* comfortable tap target on phones */
}
.waitlist__input::placeholder { color: rgba(233, 217, 183, .58); }  /* 4.8:1 — AA */
.waitlist__input:hover { border-color: rgba(233, 217, 183, .62); }
.waitlist__input:focus { border-color: var(--gold); background: rgba(233, 217, 183, .08); outline: none; }
.waitlist__input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.waitlist__input[aria-invalid="true"] { border-color: var(--red-text); }

.waitlist__btn { width: 100%; }

.waitlist__help {
  font-size: .82rem;
  color: rgba(233, 217, 183, .62);
  margin-top: .85rem;
  line-height: 1.5;
}

.waitlist__status {
  margin-top: .7rem;
  font-size: .9rem;
  font-weight: 600;
  min-height: 1.35rem;   /* reserve the row so nothing jumps on submit */
}
.waitlist__status.is-error   { color: var(--red-text); }
.waitlist__status.is-success { color: var(--gold); }

/* Honeypot — off-canvas, untabbable, invisible to assistive tech. */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .9rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--gold); color: #14100A; border-color: var(--gold); }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); color: #14100A; }
.btn--gold[disabled] { opacity: .55; cursor: progress; }

.btn--outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--outline:hover { background: var(--cream); color: var(--teal); }

/* =============================================================================
   Dividers — tattoo flash between sections
   ============================================================================= */
.divider {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 4vw, 1.6rem);
  padding-inline: var(--wrap);
  max-width: 62rem;
  margin-inline: auto;
}
.divider__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.divider__flash { width: clamp(58px, 17vw, 92px); height: auto; }

/* -----------------------------------------------------------------------------
   Spanish in the copy
   No underlines, no tooltips. The Spanish sits in gold italic and the English
   rides alongside it — legible at a glance, nothing to tap, nothing to discover.
   -------------------------------------------------------------------------- */
.es {
  color: var(--gold);
  font-style: italic;
}

/* The English, inline and quieter — close enough to read as one phrase,
   light enough that it never competes with the Spanish. */
.es-en {
  color: rgba(233, 217, 183, .62);   /* 5.9:1 on black — AA */
  font-style: normal;
  font-size: .94em;
}

/* Translation under a Spanish heading or eyebrow. */
.trans {
  margin-top: -.45rem;
  margin-bottom: 1rem;
  font-size: .74rem;
  font-style: italic;
  letter-spacing: .06em;
  color: rgba(233, 217, 183, .58);   /* 4.8:1 on black — AA */
}
.section--support .trans,
.section--social .trans { text-align: center; }

/* Gold italic on an uppercase eyebrow needs a touch more tracking to breathe. */
.eyebrow .es { letter-spacing: .2em; font-style: normal; }

.section--about .lede,
.section--about .body { max-width: 38rem; }

/* =============================================================================
   2. ABOUT
   ============================================================================= */
.about-grid { display: grid; gap: clamp(1.9rem, 6vw, 3rem); }
.about-grid__copy .lede,
.about-grid__copy .body { max-width: 38rem; }

.body--credit {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: .92rem;
  color: rgba(233, 217, 183, .8);
}

/* Devotional-card treatment for the Virgen flash — the section's real image. */
.devotional {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.devotional__frame {
  position: relative;
  padding: clamp(1rem, 4vw, 1.7rem);
  border: 1px solid rgba(213, 139, 42, .55);
  border-radius: var(--radius);
  background:
    radial-gradient(78% 58% at 50% 36%, rgba(213,139,42,.18), rgba(28,60,59,.30) 56%, rgba(0,0,0,0) 84%),
    var(--ink);
  box-shadow: 0 0 0 1px rgba(196, 20, 23, .30), 0 20px 46px rgba(0, 0, 0, .55);
}
.devotional__frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(233, 217, 183, .14);
  border-radius: 2px;
  pointer-events: none;
}
.devotional img { width: clamp(150px, 46vw, 236px); height: auto; margin-inline: auto; }

.devotional__caption { text-align: center; }
.devotional__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
}
.devotional__trans {
  display: block;
  margin-top: .1rem;
  font-size: .72rem;
  font-style: italic;
  letter-spacing: .06em;
  color: rgba(233, 217, 183, .58);   /* 4.8:1 on black — AA */
}
.devotional__note {
  display: block;
  max-width: 21rem;
  margin: .6rem auto 0;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold);
}

/* =============================================================================
   3. COMING SOON
   ============================================================================= */
.panel {
  background: var(--teal);
  border: 1px solid rgba(233, 217, 183, .18);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 6vw, 2.75rem);
  /* thin brick-red keyline, like a flash-sheet border */
  box-shadow: 0 0 0 4px rgba(196, 20, 23, .30);
}
.panel .section__title { color: var(--cream); }

.checklist { margin: 1.4rem 0; display: grid; gap: .8rem; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: rgba(233, 217, 183, .92);
  line-height: 1.5;
}
/* Bullet marker: a small flash-style heart. */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 1.05rem; height: 1.05rem;
  background-color: var(--cream);
  -webkit-mask: var(--heart-mask) center / contain no-repeat;
          mask: var(--heart-mask) center / contain no-repeat;
}
:root {
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8.4-5.2-8.4-11A4.8 4.8 0 0 1 12 7.4 4.8 4.8 0 0 1 20.4 10c0 5.8-8.4 11-8.4 11Z'/%3E%3C/svg%3E");
}
.panel .btn--outline { margin-top: .6rem; }

/* =============================================================================
   4. SUPPORT
   ============================================================================= */
.section--support { text-align: center; }
.section--support .section__title { text-align: center; }

.support-grid {
  margin-top: 2.25rem;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.35rem, 5vw, 1.85rem);
  background: var(--ink);
  border: 2px solid;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--cream);
  transition: background-color .22s ease, transform .16s ease, box-shadow .22s ease;
}
.support-card:hover { transform: translateY(-3px); }

.support-card__kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.support-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  line-height: 1.2;
  color: var(--cream);
}
.support-card__body { color: var(--cream-dim); font-size: .95rem; line-height: 1.55; }
.support-card__cta {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .5rem; font-weight: 700;
}
.support-card__cta .arrow { width: 1.15rem; height: 1.15rem; transition: transform .18s ease; }
.support-card:hover .support-card__cta .arrow { transform: translateX(4px); }

.support-card--gold { border-color: var(--gold); }
.support-card--gold .support-card__kicker,
.support-card--gold .support-card__cta { color: var(--gold); }
.support-card--gold:hover { background: rgba(213, 139, 42, .12); box-shadow: 0 0 0 4px rgba(213,139,42,.14); }

/* Border/heading use the sampled brick red; the text uses the lightened red so
   it still clears 4.5:1 on the dark card. */
.support-card--red { border-color: var(--red); }
.support-card--red .support-card__kicker,
.support-card--red .support-card__cta { color: var(--red-text); }
.support-card--red:hover { background: rgba(196, 20, 23, .14); box-shadow: 0 0 0 4px rgba(196,20,23,.18); }

/* =============================================================================
   5. SOCIAL
   ============================================================================= */
.section--social { text-align: center; padding-block: clamp(1rem, 3vw, 1.5rem) clamp(2.5rem, 8vw, 3.5rem); }

.social {
  display: flex;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.6rem;
}
.social__link {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  color: var(--cream);
  border: 1.5px solid rgba(233, 217, 183, .42);   /* 3.1:1 — tappable control */
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.social__link svg { width: 24px; height: 24px; }
.social__link:hover { color: var(--gold); border-color: var(--gold); background: rgba(213,139,42,.10); }

/* =============================================================================
   6. FOOTER
   ============================================================================= */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.25rem, 8vw, 3.25rem);
  text-align: center;
}
.footer__mark { width: 96px; height: auto; margin: 0 auto 1.35rem; fill: var(--cream); opacity: .55; }

.footer__la {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--gold);
  margin-bottom: .7rem;
}

.footer__age {
  max-width: 30rem;
  margin: 0 auto 1.25rem;
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(233, 217, 183, .68);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.4rem;
  margin-bottom: 1.1rem;
}
.footer__nav a {
  color: var(--cream);
  font-size: .88rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(213, 139, 42, .55);
  padding-bottom: 2px;
}
.footer__nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer__copy { font-size: .8rem; color: rgba(233, 217, 183, .58); }  /* 4.8:1 — AA */

/* =============================================================================
   Breakpoints — mobile-first, layout verified down to 375px
   ============================================================================= */
@media (min-width: 34rem) {          /* ~544px */
  .waitlist__row { flex-direction: row; align-items: stretch; }
  .waitlist__input { flex: 1 1 auto; }
  .waitlist__btn  { width: auto; flex: 0 0 auto; white-space: nowrap; }
}

@media (min-width: 48rem) {          /* ~768px */
  .support-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .about-grid { grid-template-columns: 1.08fr .92fr; align-items: center; }
  .hero__watermark { width: min(60vw, 34rem); }
  .social { gap: 1.1rem; }
}
