/* ============================================================
   eVoucher.gift — public marketing pages
   Faithful port of redesign/preview.html (approved brand direction).
   All classes are ev-prefixed so Bootstrap (loaded app-wide) cannot
   collide with the editorial design language.
   Tokens (--ev-*) come from app.css.
   ============================================================ */

.ev-public {
  background: var(--ev-paper);
  color: var(--ev-ink);
  font-family: var(--ev-font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
  background-image: radial-gradient(rgba(26,20,17,.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

.ev-public p { margin: 0 0 1em; }
/* Prose links take the surrounding ink colour. Buttons must be excluded: this
   rule is scoped to .ev-public (unlike preview.html's bare `a`), which lifts it
   above the .ev-btn-* colour rules and would repaint them ink-on-claret. */
.ev-public a:not(.ev-btn) { color: inherit; }

/* ===== Typography ===== */
.ev-serif { font-family: var(--ev-font-serif); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; letter-spacing: -0.02em; }
.ev-serif-it { font-family: var(--ev-font-serif); font-style: italic; font-variation-settings: "opsz" 72, "SOFT" 70, "WONK" 1; }
.ev-eyebrow {
  font-family: var(--ev-font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ev-claret);
}
.ev-eyebrow.ink { color: var(--ev-ink); }
.ev-eyebrow .ev-num { color: var(--ev-brass); font-family: var(--ev-font-serif); font-style: italic; font-size: 13px; letter-spacing: 0; margin-right: 6px; font-variation-settings: "opsz" 30, "WONK" 1; }

.ev-public h1, .ev-public h2, .ev-public h3, .ev-public h4 {
  margin: 0; font-family: var(--ev-font-serif); font-weight: 500; letter-spacing: -0.025em; color: var(--ev-ink);
}
.ev-public h1 { font-size: clamp(56px, 8.6vw, 132px); line-height: 0.93; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.ev-public h2 { font-size: clamp(40px, 5.2vw, 76px); line-height: 0.98; font-variation-settings: "opsz" 96, "SOFT" 30; }
.ev-public h3 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; font-variation-settings: "opsz" 48, "SOFT" 50; }
.ev-public h4 { font-size: 22px; line-height: 1.2; font-variation-settings: "opsz" 36, "SOFT" 50; }

.ev-lede { font-size: 22px; line-height: 1.45; color: var(--ev-ink-soft); font-weight: 300; max-width: 56ch; }
.ev-public em, .ev-italic { font-style: italic; font-variation-settings: "opsz" 72, "SOFT" 80, "WONK" 1; }

/* ===== Layout ===== */
.ev-wrap { max-width: 1380px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .ev-wrap { padding: 0 24px; } }

/* ===== Header ===== */
.ev-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ev-paper);
  border-bottom: 1px solid var(--ev-rule);
  transition: background .2s ease, border-color .2s ease;
}
.ev-header.is-scrolled {
  background: rgba(244, 236, 222, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.ev-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.ev-wordmark {
  font-family: var(--ev-font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ev-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-variation-settings: "opsz" 48, "SOFT" 40;
}
.ev-wordmark .ev-dot { color: var(--ev-claret); font-style: italic; font-variation-settings: "opsz" 30, "WONK" 1; }
.ev-nav { display: flex; gap: 32px; align-items: center; }
.ev-nav a { text-decoration: none; font-size: 14px; color: var(--ev-ink); opacity: 0.78; transition: opacity .2s; }
.ev-nav a:hover { opacity: 1; }
.ev-nav-cta { display: flex; gap: 14px; align-items: center; }

.ev-btn {
  font-family: var(--ev-font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}
.ev-btn-primary { background: var(--ev-claret); color: var(--ev-paper-light); }
.ev-btn-primary:hover { background: var(--ev-claret-deep); color: var(--ev-paper-light); transform: translateY(-1px); }
.ev-btn-ghost { color: var(--ev-ink); border-color: var(--ev-rule-strong); background: transparent; }
.ev-btn-ghost:hover { background: rgba(26,20,17,.04); color: var(--ev-ink); }
.ev-btn-link { background: transparent; color: var(--ev-ink); padding: 11px 0; border: none; }
.ev-btn-link:hover { color: var(--ev-claret); }
.ev-btn .ev-arr { transition: transform .25s ease; }
.ev-btn:hover .ev-arr { transform: translateX(3px); }

/* ===== Hero ===== */
.ev-hero { padding: 56px 0 0; position: relative; overflow: hidden; }
.ev-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: end;
  position: relative;
}
.ev-hero-eyebrow { margin-bottom: 32px; display: flex; align-items: center; gap: 14px; }
.ev-hero-eyebrow .ev-stamp { width: 28px; height: 1px; background: var(--ev-brass); display: inline-block; }
.ev-hero h1 { margin-bottom: 28px; }
.ev-hero h1 .ev-swash { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: var(--ev-claret); }
.ev-hero-lede { margin-bottom: 36px; max-width: 46ch; }
.ev-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ev-hero-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--ev-shadow-2);
  aspect-ratio: 4 / 3;
  margin: 0;
}
.ev-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* URL-to-shop form (FEATURE_SCOPE §4.1 — the activation funnel, above the fold) */
.ev-shopform { display: flex; gap: 10px; flex-wrap: wrap; max-width: 540px; }
.ev-shopform input[type="url"], .ev-shopform input[type="text"],
.ev-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 20px;
  border: 1px solid var(--ev-rule-strong);
  border-radius: 999px;
  background: var(--ev-paper-light);
  font-family: var(--ev-font-sans);
  font-size: 15px;
  color: var(--ev-ink);
}
.ev-shopform input:focus, .ev-input:focus {
  outline: none;
  border-color: var(--ev-brass);
  box-shadow: 0 0 0 3px rgba(182, 139, 76, 0.25);
}
.ev-shopform-hint {
  margin: 12px 0 0;
  font-family: var(--ev-font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ev-ink-soft);
  font-variation-settings: "opsz" 24, "WONK" 1;
}
.ev-shopform-hint a { color: var(--ev-claret); }

/* Marquee */
.ev-marquee {
  margin-top: 72px;
  border-top: 1px solid var(--ev-rule);
  border-bottom: 1px solid var(--ev-rule);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.ev-marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: ev-scroll 40s linear infinite;
  font-family: var(--ev-font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ev-ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 70, "WONK" 1;
}
/* Spacing lives on each item (not the flex container's gap): a container gap
   would leave a half-gap seam at the translateX(-50%) loop point, causing the
   marquee to jump. Uniform margin-right makes the two halves tile exactly. */
.ev-marquee-inner span { display: inline-flex; align-items: center; gap: 80px; margin-right: 80px; }
.ev-marquee-inner span::after { content: "·"; color: var(--ev-brass); font-style: normal; font-size: 24px; }
@keyframes ev-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Section: Numbered editorial blocks ===== */
.ev-section { padding: 140px 0; }
.ev-section-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 80px;
}
.ev-section-kicker { display: flex; flex-direction: column; gap: 12px; }
.ev-three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.ev-feat {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--ev-ink);
}
.ev-feat .ev-num {
  position: absolute;
  top: -20px;
  left: 0;
  background: var(--ev-paper);
  padding-right: 14px;
  font-family: var(--ev-font-serif);
  font-style: italic;
  font-size: 32px;
  color: var(--ev-claret);
  font-variation-settings: "opsz" 48, "WONK" 1;
}
.ev-feat h3 { margin-bottom: 14px; }
.ev-feat p { color: var(--ev-ink-soft); font-size: 16px; max-width: 38ch; }

/* ===== Gallery ===== */
.ev-gallery {
  background: var(--ev-paper-deep);
  margin: 0;
  padding: 100px 0;
  position: relative;
}
.ev-gallery::before, .ev-gallery::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ev-rule);
}
.ev-gallery::before { top: 0; }
.ev-gallery::after { bottom: 0; }
.ev-gallery .ev-feat .ev-num { background: var(--ev-paper-deep); }
.ev-gallery-figure {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--ev-shadow-2);
  margin: 56px 0 0;
}
.ev-gallery-figure img { width: 100%; height: auto; display: block; }
.ev-figcap {
  margin-top: 18px;
  font-family: var(--ev-font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ev-ink-soft);
  letter-spacing: 0.02em;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-variation-settings: "opsz" 24, "WONK" 1;
}
.ev-figcap .ev-figcap-tag { color: var(--ev-brass); font-style: normal; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--ev-font-sans); font-weight: 600; }

/* ===== Spotlight ===== */
.ev-spotlight { padding: 140px 0; }
.ev-spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.ev-spotlight-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--ev-shadow-2);
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
}
.ev-spotlight-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-spotlight-copy h2 { margin-bottom: 24px; max-width: 14ch; }
.ev-feat-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ev-feat-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--ev-rule);
  font-size: 16px;
}
.ev-feat-list li::before {
  content: "→";
  color: var(--ev-brass);
  font-family: var(--ev-font-serif);
  font-style: italic;
}

/* Try-it box */
.ev-tryit {
  margin-top: 36px;
  padding: 24px;
  background: var(--ev-paper-deep);
  border-radius: 4px;
  border: 1px dashed var(--ev-rule-strong);
}
.ev-tryit .ev-eyebrow { display: block; margin-bottom: 10px; }
.ev-tryit-copy { margin: 0 0 14px; font-size: 15px; color: var(--ev-ink-soft); }
.ev-tryit-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-tryit-row .ev-input { min-width: 200px; padding: 11px 16px; font-size: 14px; }
.ev-tryit-status { margin: 12px 0 0; font-size: 13px; color: var(--ev-claret); min-height: 18px; }

/* ===== Testimonial ===== */
.ev-testimonial {
  background: var(--ev-claret);
  color: var(--ev-paper-light);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.ev-testimonial .ev-wrap { position: relative; z-index: 2; }
/* The eyebrow sits on its own line with room beneath it so the quote's oversized
   opening-quote glyph (::before, top:-0.4em) doesn't rise up and overlap it. */
.ev-testimonial > .ev-wrap > .ev-eyebrow { display: block; margin-bottom: 34px; }
.ev-testimonial-quote {
  font-family: var(--ev-font-serif);
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.12;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
  font-style: italic;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 40px;
  position: relative;
}
.ev-testimonial-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.4em;
  left: -0.25em;
  font-size: 2.2em;
  color: var(--ev-brass);
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
  line-height: 1;
  opacity: 0.6;
}
.ev-testimonial-attr {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--ev-font-sans);
  font-size: 14px;
}
.ev-testimonial-attr .ev-rule-line { width: 32px; height: 1px; background: var(--ev-brass); display: block; }
.ev-testimonial-attr strong { font-weight: 600; }
.ev-testimonial-attr span { opacity: 0.72; }
.ev-testimonial-seal {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  opacity: 0.07;
  width: 480px;
  height: 480px;
}

/* ===== Pricing ===== */
.ev-pricing { padding: 140px 0; }
.ev-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
/* Two-tier launch pricing (Free + Pro): same cards, centred narrower grid. */
.ev-pricing-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.ev-price-card {
  background: var(--ev-paper-light);
  border: 1px solid var(--ev-rule);
  border-radius: 4px;
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ev-price-card:hover { transform: translateY(-4px); box-shadow: var(--ev-shadow-2); }
.ev-price-card.featured { background: var(--ev-claret); color: var(--ev-paper-light); border-color: var(--ev-claret); }
.ev-price-card.featured .ev-price-name, .ev-price-card.featured h3 { color: var(--ev-paper-light); }
.ev-price-card.featured .ev-price-feature { border-color: rgba(244,236,222,0.18); color: var(--ev-paper-light); opacity: 0.95; }
.ev-price-card.featured .ev-btn-ghost { color: var(--ev-paper-light); border-color: rgba(244,236,222,0.4); }
.ev-price-card.featured .ev-btn-ghost:hover { background: rgba(244,236,222,0.08); }
.ev-price-tag {
  position: absolute;
  top: -12px;
  right: 32px;
  background: var(--ev-brass);
  color: var(--ev-ink);
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
.ev-price-name {
  font-family: var(--ev-font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ev-claret);
  margin-bottom: 8px;
  font-variation-settings: "opsz" 36, "WONK" 1;
}
.ev-price-amt {
  font-family: var(--ev-font-serif);
  font-size: 56px;
  line-height: 1;
  margin: 12px 0 6px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ev-price-amt .ev-per { font-size: 14px; opacity: 0.6; font-family: var(--ev-font-sans); font-style: normal; }
.ev-price-blurb { font-size: 14px; opacity: 0.75; margin-bottom: 24px; }
.ev-price-features { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.ev-price-feature {
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ev-rule);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.ev-price-feature::before { content: "·"; color: var(--ev-brass); font-size: 22px; line-height: 0; }
.ev-pricing-more { text-align: center; margin-top: 48px; }
.ev-pricing-more a {
  text-decoration: none;
  color: var(--ev-claret);
  font-family: var(--ev-font-serif);
  font-style: italic;
  font-size: 17px;
  font-variation-settings: "opsz" 24, "WONK" 1;
}

/* ===== Closing CTA ===== */
.ev-closing {
  padding: 160px 0;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at center, var(--ev-paper-light) 0%, var(--ev-paper) 70%);
}
.ev-closing h2 { max-width: 16ch; margin: 0 auto 40px; }
.ev-ornament {
  display: block;
  margin: 0 auto 32px;
  color: var(--ev-brass);
}

/* ===== Footer ===== */
.ev-foot {
  background: var(--ev-ink);
  color: var(--ev-paper-light);
  padding: 80px 0 40px;
}
.ev-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.ev-foot-brand .ev-wordmark { color: var(--ev-paper-light); }
.ev-foot-brand .ev-wordmark .ev-dot { color: var(--ev-brass); }
.ev-foot-brand p { margin-top: 18px; opacity: 0.7; max-width: 32ch; font-size: 14px; }
.ev-foot-col h5 {
  font-family: var(--ev-font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: 0.55;
  color: var(--ev-paper-light);
}
.ev-foot-col a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  color: var(--ev-paper-light);
  opacity: 0.85;
  font-size: 14px;
}
.ev-foot-col a:hover { color: var(--ev-brass); }
.ev-foot-col .ev-foot-text { display: block; padding: 7px 0; opacity: 0.85; font-size: 14px; }
.ev-foot-base {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,236,222,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.65;
  letter-spacing: 0.04em;
}

/* ===== Reveal animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .ev-reveal { opacity: 0; transform: translateY(12px); animation: ev-reveal .9s cubic-bezier(.2,.6,.2,1) forwards; }
  .ev-reveal-1 { animation-delay: .05s; }
  .ev-reveal-2 { animation-delay: .18s; }
  .ev-reveal-3 { animation-delay: .32s; }
  .ev-reveal-4 { animation-delay: .46s; }
  .ev-reveal-5 { animation-delay: .60s; }
}
@keyframes ev-reveal { to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .ev-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ev-three-up { grid-template-columns: 1fr; gap: 36px; }
  .ev-spotlight-grid { grid-template-columns: 1fr; gap: 48px; }
  .ev-section-header { grid-template-columns: 1fr; gap: 24px; }
  .ev-pricing-grid { grid-template-columns: 1fr; }
  .ev-foot-grid { grid-template-columns: 1fr 1fr; }
  .ev-section { padding: 80px 0; }
  .ev-nav { display: none; }
}

@media (max-width: 640px) {
  .ev-wordmark { font-size: 21px; padding-left: 2px; }
  .ev-header-inner { padding: 14px 0; gap: 12px; }
  .ev-btn { padding: 9px 16px; font-size: 13px; }
  .ev-nav-cta { gap: 6px; }
  .ev-btn-link { padding: 9px 4px; }
  .ev-marquee { margin-top: 48px; }
  .ev-marquee-inner { font-size: 16px; }
  .ev-marquee-inner span { gap: 50px; margin-right: 50px; }
  .ev-public h1 { font-size: clamp(44px, 12vw, 64px); }
}

@media (max-width: 520px) {
  .ev-foot-grid { grid-template-columns: 1fr; }
  .ev-foot-base { flex-direction: column; gap: 8px; }
  .ev-wordmark { font-size: 19px; }
  .ev-btn-link { display: none; }
}

.ev-skip { position: absolute; left: -9999px; }
