:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffdf8;
  --ink: #161713;
  --muted: #5f645b;
  --line: rgba(22, 23, 19, 0.1);
  --green: #173d35;
  --green-soft: #2c6558;
  --red-soft: #8d2b26;
  --glow: rgba(228, 194, 129, 0.38);
  --shadow: 0 28px 60px rgba(18, 26, 20, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at bottom right, rgba(23, 61, 53, 0.14), transparent 28%),
    linear-gradient(160deg, #f8f3eb 0%, #f0e6d7 48%, #f7f4ee 100%);
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.gate-body {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}

.backdrop-orb--soft {
  top: -8rem;
  right: -5rem;
  width: 22rem;
  height: 22rem;
  background: rgba(255, 255, 255, 0.72);
}

.backdrop-orb--accent {
  bottom: -7rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(228, 194, 129, 0.34);
}

.gate-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1rem 1rem;
}

.gate-card {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition:
    border-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.gate-card.is-restricted {
  border-color: rgba(141, 43, 38, 0.35);
  box-shadow: 0 28px 60px rgba(141, 43, 38, 0.12);
}

.gate-copy {
  display: grid;
  gap: 1.25rem;
}

.gate-kicker,
.policy-kicker,
.visual-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.gate-kicker,
.policy-kicker {
  color: var(--green);
  background: rgba(23, 61, 53, 0.08);
}

h1,
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.gate-lead,
.policy-copy p,
.visual-caption p,
.gate-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.gate-lead {
  max-width: 44ch;
  font-size: 1.05rem;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.gate-button {
  min-height: 56px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
}

.gate-button:hover,
.gate-button:focus-visible,
.policy-link:hover,
.policy-link:focus-visible,
.policy-close:hover,
.policy-close:focus-visible {
  transform: translateY(-1px);
}

.gate-button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-soft) 100%);
  box-shadow: 0 14px 26px rgba(23, 61, 53, 0.22);
}

.gate-button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(22, 23, 19, 0.14);
}

.gate-status {
  min-height: 1.75rem;
  color: var(--red-soft);
}

.gate-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.visual-ring {
  position: absolute;
  inset: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(23, 61, 53, 0.12);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at center, rgba(228, 194, 129, 0.12) 0, rgba(228, 194, 129, 0) 72%);
}

.visual-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 238, 228, 0.88)),
    var(--surface-strong);
  border: 1px solid rgba(22, 23, 19, 0.08);
  box-shadow: 0 22px 44px rgba(22, 23, 19, 0.08);
}

.visual-panel img {
  width: min(100%, 220px);
  filter: drop-shadow(0 24px 28px rgba(23, 61, 53, 0.18));
}

.visual-pill {
  color: var(--green);
  background: rgba(23, 61, 53, 0.06);
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: 1.1rem;
  z-index: 1;
  width: min(280px, 70%);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(22, 23, 19, 0.08);
  box-shadow: 0 18px 34px rgba(22, 23, 19, 0.08);
}

.visual-caption span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #173d35 0%, #285a4f 100%);
}

.gate-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 1rem 1.5rem;
}

.policy-link,
.policy-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.policy-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.policy-modal[hidden] {
  display: none;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.policy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 16, 0.55);
  backdrop-filter: blur(8px);
}

.policy-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  overflow: auto;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.policy-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(22, 23, 19, 0.06);
  font-size: 1.35rem;
  line-height: 1;
}

.policy-copy {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .gate-card {
    grid-template-columns: 1fr;
  }

  .gate-visual {
    order: -1;
    min-height: 360px;
  }

  h1 {
    max-width: 100%;
  }

  .visual-caption {
    right: 1rem;
    left: 1rem;
    bottom: 0;
    width: auto;
  }
}

@media (max-width: 640px) {
  .gate-shell {
    padding-top: 1rem;
  }

  .gate-card {
    padding: 1.2rem;
    gap: 1.4rem;
    border-radius: 26px;
  }

  .gate-actions {
    flex-direction: column;
  }

  .gate-button {
    width: 100%;
  }

  .gate-visual {
    min-height: 300px;
  }

  .visual-ring {
    inset: 0.6rem;
  }

  .policy-dialog {
    margin: 0.75rem auto;
    padding: 1.2rem;
  }
}


/* SALE WIDGET */






