/* ============================================================
   regalos.onl landing — standalone, no Tailwind.

   Candidate B, "La tarjeta": one narrow centred column on cream
   paper, built around the object that travels with the gift.
   Warmth comes from rotation, a hairline and a soft shadow ·
   never from saturation.

   The palette and the type tokens below are the SAME --t-*
   names, with the same values, as
   app/assets/stylesheets/themes/gifts/regalos_default.css. That
   is deliberate and it is enforced: a buyer who clicks a state
   chip leaves this page for a merchant storefront, and the two
   have to be one product. test/design/gift_shell_tokens_test
   fails the build when they drift, when a colour is hardcoded
   outside :root, or when a font family is named anywhere but
   here.

   Nothing on this page depends on JavaScript. There is no
   `.reveal`, so there is nothing for an IntersectionObserver to
   restore and nothing to go blank when the script never runs.
   ============================================================ */
:root {
  /* ── Shared with the gift theme ───────────────────────── */
  --t-primary: #C2593A;
  --t-primary-dark: #A94831;
  --t-primary-light: #F6E9E2;
  --t-secondary: #5B6A51;
  --t-bg-page: #FBF6EF;
  --t-bg-surface: #FFF;
  --t-bg-section-alt: #F3EBDF;
  --t-text-heading: #2B2118;
  --t-text-body: #3D3227;
  --t-text-muted: #736558;
  --t-text-inverse: #FBF6EF;
  --t-text-accent: #A94831;
  --t-border: #E4D9C9;
  --t-border-strong: #95826B;
  --t-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --t-font-display: fraunces, georgia, "Times New Roman", serif;
  --t-font-hand: caveat, "Segoe Script", cursive;

  /* ── This page only ───────────────────────────────────── */
  --rg-column: 45rem;
  --rg-radius: 0.625rem;
  --rg-radius-full: 9999px;
  --rg-shadow-tag: 0 1px 0 rgb(43 33 24 / 4%), 0 18px 40px rgb(43 33 24 / 10%);
}

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` is honoured only by the user-agent rule `[hidden] { display: none }`,
   which loses to *any* author `display` declaration regardless of specificity
   (issue 61). The shared head partial carries the same line; this one keeps the
   stylesheet true on its own. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--t-bg-page);
  color: var(--t-text-body);
  font-family: var(--t-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.rg {
  max-width: var(--rg-column);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Top ──────────────────────────────────────────────────── */
.rg-top { padding: 1.625rem 1.5rem; text-align: center; }

.rg-top__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--t-text-heading);
  font-family: var(--t-font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.rg-top__logo { display: block; width: 1.75rem; height: 1.75rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.rg-hero { padding: 2.5rem 0 1.5rem; text-align: center; }

.rg-hero__eyebrow {
  margin: 0 0 1.375rem;
  color: var(--t-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.rg-hero__title {
  margin: 0;
  font-family: var(--t-font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--t-text-heading);
}

.rg-hero__title em {
  color: var(--t-text-accent);
  font-style: italic;
}

.rg-hero__sub {
  max-width: 40ch;
  margin: 1.375rem auto 0;
  color: var(--t-text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ── The tag · the whole idea of this page ────────────────
   The thing that travels with the gift, shown rather than
   described. Rotation and a soft shadow do the work a second
   colour would otherwise have to. */
.rg-tag {
  position: relative;
  width: min(21rem, 82vw);
  margin: 3.5rem auto 0;
  padding: 2.875rem 2rem 1.875rem;
  border: 1px solid var(--t-border);
  border-radius: 0.625rem 0.625rem 1.625rem 1.625rem;
  background: var(--t-bg-surface);
  box-shadow: var(--rg-shadow-tag);
  transform: rotate(-2.4deg);
}

.rg-tag::before {
  content: "";
  position: absolute;
  top: -2.125rem;
  left: 50%;
  width: 2px;
  height: 2.125rem;
  background: var(--t-border);
  transform: translateX(-50%) rotate(4deg);
}

.rg-tag__hole {
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 0.8125rem;
  height: 0.8125rem;
  border: 1px solid var(--t-border);
  border-radius: var(--rg-radius-full);
  background: var(--t-bg-page);
  transform: translateX(-50%);
}

.rg-tag__note {
  margin: 0;
  color: var(--t-text-heading);
  font-family: var(--t-font-hand);
  font-size: 1.75rem;
  line-height: 1.35;
  text-align: center;
}

.rg-tag__caption {
  margin-top: 1.375rem;
  padding-top: 0.875rem;
  border-top: 1px dashed var(--t-border);
  color: var(--t-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ── The chooser · a sentence you finish (ADR 0019) ───────
   Never a button row and never a grid: the visitor is naming
   the city they are sending to, which is the only question this
   page has to answer. */
.rg-pick { padding: 5rem 0 4.5rem; text-align: center; }

.rg-pick__sentence {
  margin: 0;
  font-family: var(--t-font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--t-text-heading);
}

.rg-pick__sentence em {
  color: var(--t-text-accent);
  font-style: italic;
}

.rg-pick__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  vertical-align: baseline;
}

.rg-pick__chip {
  display: inline-block;
  padding: 0.25rem 1.25rem 0.4375rem;
  border-radius: var(--rg-radius-full);
  background: var(--t-primary-dark);
  color: var(--t-text-inverse);
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.rg-pick__chip:hover { background: var(--t-text-heading); transform: translateY(-2px); }
.rg-pick__chip:focus-visible { outline: 2px solid var(--t-text-heading); outline-offset: 2px; }

.rg-pick__lede {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  color: var(--t-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rg-pick__more { margin-top: 2.5rem; }

.rg-pick__more summary {
  display: inline-block;
  color: var(--t-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.rg-pick__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.rg-pick__state {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--t-border);
  border-radius: var(--rg-radius-full);
  color: var(--t-text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.rg-pick__state:hover { border-color: var(--t-border-strong); color: var(--t-text-heading); }
.rg-pick__state:focus-visible { outline: 2px solid var(--t-text-heading); outline-offset: 2px; }

/* ── Flow, as a dotted timeline ───────────────────────────── */
.rg-flow { padding: 1.5rem 0 5rem; }

.rg-flow__heading,
.rg-truth__heading,
.rg-occasions__heading {
  margin: 0 0 2.25rem;
  color: var(--t-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
}

.rg-flow__list {
  counter-reset: step;
  margin: 0;
  padding: 0 0 0 2.75rem;
  list-style: none;
  border-left: 2px dotted var(--t-border);
}

.rg-flow__list li {
  position: relative;
  padding-bottom: 2.125rem;
  counter-increment: step;
}

.rg-flow__list li:last-child { padding-bottom: 0; }

.rg-flow__list li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: -3.5625rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--rg-radius-full);
  background: var(--t-secondary);
  color: var(--t-text-inverse);
  font-size: 0.8125rem;
  font-weight: 700;
}

.rg-flow__list h3 {
  margin: 0.125rem 0 0.375rem;
  font-family: var(--t-font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--t-text-heading);
}

.rg-flow__list p {
  margin: 0;
  color: var(--t-text-muted);
  line-height: 1.65;
}

/* ── Lo que sí · lo que no ────────────────────────────────
   Two facing hairline columns. The refusals are half of what
   this page is for, so they get the same weight as the
   promises, never a footnote. */
.rg-truth { padding: 0 0 5rem; }

.rg-truth__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--t-border);
  border-bottom: 1px solid var(--t-border);
}

.rg-truth__col { padding: 1.75rem 1.625rem; }
.rg-truth__col + .rg-truth__col { border-left: 1px solid var(--t-border); }

.rg-truth__label {
  margin: 0 0 0.875rem;
  color: var(--t-secondary);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.rg-truth__col--no .rg-truth__label { color: var(--t-text-accent); }

.rg-truth__col ul { margin: 0; padding: 0; list-style: none; }

.rg-truth__col li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--t-text-muted);
}

.rg-truth__col li strong {
  display: block;
  font-weight: 600;
  color: var(--t-text-heading);
}

.rg-truth__col li i {
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-size: 0.625rem;
  color: var(--t-secondary);
}

.rg-truth__col--no li i { color: var(--t-text-accent); }

/* ── Occasions (ADR 0020) ─────────────────────────────────── */
.rg-occasions { padding: 0 0 3rem; text-align: center; }

.rg-occasions__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rg-occasions__pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 1rem;
  border: 1px solid var(--t-border);
  border-radius: var(--rg-radius-full);
  background: var(--t-bg-surface);
  font-size: 0.9375rem;
  color: var(--t-text-body);
}

.rg-occasions__pills i { color: var(--t-primary); font-size: 0.85em; }

/* Condolencias is a Solemn Occasion and never renders as a pill above ·
   a tile under "por lo que sea" is exactly the gift framing ADR 0020
   forbids. It is still named, quietly, in its own register. */
.rg-occasions__aside {
  max-width: 42ch;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--t-border);
  color: var(--t-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.rg-occasions__aside i { margin-right: 0.375rem; color: var(--t-secondary); }
.rg-occasions__aside strong { color: var(--t-text-heading); font-weight: 600; }

/* ── Sellers · a lead form, never a signup (ADR 0022) ─────── */
.rg-sellers { padding: 4.5rem 1.5rem; background: var(--t-bg-section-alt); }

.rg-sellers__inner { max-width: 38rem; margin: 0 auto; text-align: center; }

.rg-sellers__heading {
  margin: 0 0 0.875rem;
  font-family: var(--t-font-display);
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--t-text-heading);
}

.rg-sellers__lede {
  max-width: 46ch;
  margin: 0 auto 2rem;
  color: var(--t-text-muted);
  line-height: 1.65;
}

/* This layout mounts no flash system, so the answer to a submission is read
   here, beside the form that produced it. */
.rg-sellers__result {
  max-width: 26rem;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--rg-radius);
  border: 1px solid var(--t-border);
  background: var(--t-bg-surface);
  font-size: 0.9375rem;
  text-align: center;
}

.rg-sellers__result--ok { border-color: var(--t-secondary); color: var(--t-text-heading); }
.rg-sellers__result--error { border-color: var(--t-primary); color: var(--t-text-accent); }

.rg-form__honeypot { position: absolute; left: -9999px; }

.rg-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  text-align: left;
}

.rg-form__row { display: grid; gap: 0.375rem; }

.rg-form__row label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--t-text-muted);
}

.rg-form__row input {
  width: 100%;
  padding: 0.8125rem 0.9375rem;
  border: 1px solid var(--t-border-strong);
  border-radius: var(--rg-radius);
  background: var(--t-bg-surface);
  color: var(--t-text-heading);
  font-family: inherit;
  font-size: 0.9375rem;
}

.rg-form__row input:focus-visible { outline: 2px solid var(--t-primary); outline-offset: 1px; }

.rg-form__cta {
  width: 100%;
  margin-top: 1.125rem;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: var(--rg-radius-full);
  background: var(--t-text-heading);
  color: var(--t-text-inverse);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.rg-form__cta:hover { background: var(--t-primary-dark); transform: translateY(-2px); }
.rg-form__cta:focus-visible { outline: 2px solid var(--t-text-heading); outline-offset: 2px; }

.rg-form__help {
  margin: 0.75rem 0 0;
  color: var(--t-text-muted);
  font-size: 0.8125rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.rg-footer {
  padding: 2rem 1.5rem 5.5rem;
  color: var(--t-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.rg-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}

.rg-footer__link { color: var(--t-text-muted); text-decoration: none; }
.rg-footer__link:hover { color: var(--t-text-heading); text-decoration: underline; }
.rg-footer__link:focus-visible { outline: 2px solid var(--t-text-heading); outline-offset: 2px; }

.rg-footer__copy { margin: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (width <= 38rem) {
  .rg-truth__cols { grid-template-columns: 1fr; }

  .rg-truth__col + .rg-truth__col {
    border-left: 0;
    border-top: 1px solid var(--t-border);
  }

  .rg-form__grid { grid-template-columns: 1fr; }
  .rg-flow__list { padding-left: 2.125rem; }
  .rg-flow__list li::before { left: -2.9375rem; }
  .rg-pick { padding: 3.5rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rg-tag { transform: none; }

  .rg-pick__chip,
  .rg-form__cta {
    transition: none;
  }

  .rg-pick__chip:hover,
  .rg-form__cta:hover {
    transform: none;
  }
}
