/* ═══════════════════════════════════════════
   JOHN LEWIS & PARTNERS — £750 GIFT CARD
   style.css  ·  Senior UI/UX  v1.0
   Palette: #1A1A1A · #C9A84C · #FAFAF8
   ═══════════════════════════════════════════ */

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

:root {
  /* ── Core Palette ── */
  --black:       #1A1A1A;
  --black-soft:  #2C2C2C;
  --charcoal:    #4A4A4A;
  --mid:         #6B6B6B;
  --muted:       #9A9A9A;
  --border:      #E0DDD8;
  --border-lt:   #EBEBEB;
  --stone:       #F5F3EF;
  --cream:       #FAFAF8;
  --white:       #FFFFFF;
  --gold:        #C9A84C;
  --gold-dk:     #A8883A;
  --gold-lt:     #FBF7EE;
  --gold-rule:   #D4B86A;

  /* ── Type ── */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Shape — more restrained than craft brands ── */
  --r-xs:  3px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  20px;

  /* ── Depth ── */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.07), 0 32px 64px rgba(0,0,0,0.06);
}

/* ─── PAGE ──────────────────────────────── */
html, body {
  min-height: 100vh;
  font-family: var(--sans);
  background: #EFEDE9;
  color: var(--black);
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 16px 64px;
  position: relative;
  overflow-x: hidden;
}

/* Subtle linen texture via SVG noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── CARD ──────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: card-rise 0.7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ─── GOLD RULES ────────────────────────── */
.gold-rule-top {
  height: 4px;
  background: linear-gradient(90deg, var(--black) 0%, var(--gold) 50%, var(--black) 100%);
}
.gold-rule-bottom {
  height: 4px;
  background: linear-gradient(90deg, var(--black) 0%, var(--gold) 50%, var(--black) 100%);
}

/* ─── HEADER ────────────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border-lt);
}

.jl-logo { display: flex; align-items: center; }
.jl-logo-svg { width: 200px; height: auto; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 5px 12px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--stone);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ─── HERO ──────────────────────────────── */
.hero {
  padding: 32px 28px 28px;
  background: var(--cream);
  position: relative;
}

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-rule), transparent);
  margin: 0 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  gap: 12px;
}

/* Left label column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
}
.hero-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1;
}
.hero-divider-v {
  width: 1px;
  height: 40px;
  background: var(--gold-rule);
  opacity: 0.6;
}
.hero-season {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Centre — the typographic hero */
.hero-centre { text-align: center; flex: 1; }

.offer-amount {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(72px, 19vw, 92px);
  color: var(--black);
  line-height: 0.9;
  letter-spacing: -3px;
}
.offer-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 10px;
}

/* Right eligibility block */
.hero-right {
  min-width: 72px;
  display: flex;
  justify-content: center;
}
.elig-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  text-align: center;
}
.elig-icon {
  font-size: 18px;
  color: var(--gold);
  line-height: 1;
}
.elig-text {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.6;
}

/* Hero sub */
.hero-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  padding: 18px 0 0;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

/* ─── STATS BAR ─────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 28px;
  background: var(--stone);
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.stat-num.gold { color: var(--gold-dk); }
.stat-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}
.stat-rule {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── STEPS ─────────────────────────────── */
.steps-section {
  padding: 32px 28px 24px;
  background: var(--white);
}

/* Section header with flanking rules */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.section-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.18s, transform 0.18s;
  cursor: default;
  animation: step-fade 0.4s both;
}
.step-item:nth-child(1) { animation-delay: 0.15s; }
.step-item:nth-child(2) { animation-delay: 0.23s; }
.step-item:nth-child(3) { animation-delay: 0.31s; }
.step-item:nth-child(4) { animation-delay: 0.39s; }
@keyframes step-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.step-item:hover {
  background: var(--stone);
  border-color: var(--border);
  transform: translateX(3px);
}
.step-item:hover .step-num-wrap { border-color: var(--gold); }
.step-item:hover .step-num { color: var(--gold-dk); }

.step-num-wrap {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: border-color 0.2s;
}
.step-num-wrap.gold {
  border-color: var(--gold);
  background: var(--gold-lt);
}
.step-num-wrap.gold .step-num { color: var(--gold-dk); }

.step-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 1px;
  line-height: 1;
  transition: color 0.2s;
}

.step-body { flex: 1; min-width: 0; }
.step-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}
.step-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

/* ─── CTA ───────────────────────────────── */
.cta-section {
  padding: 24px 28px 12px;
  background: var(--white);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 28px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 0 #000, 0 8px 20px rgba(0,0,0,0.20);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  animation: step-fade 0.5s 0.45s both;
}

/* Gold shimmer sweep */
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.22), transparent);
  transform: skewX(-18deg);
  animation: gold-shimmer 3.5s 1.5s ease-in-out infinite;
}
@keyframes gold-shimmer {
  0%   { left: -80%; }
  100% { left: 150%; }
}

.cta-btn:hover {
  background: var(--black-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #000, 0 14px 32px rgba(0,0,0,0.25);
}
.cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #000, 0 4px 10px rgba(0,0,0,0.15);
}

.cta-arrow {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

/* Urgency */
.urgency-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 16px;
  background: var(--gold-lt);
  border: 1px solid #E8D4A0;
  border-radius: var(--r-xs);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gold-dk);
  letter-spacing: 0.5px;
  font-family: var(--sans);
}
.u-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ─── TRUST ROW ─────────────────────────── */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 28px 22px;
  background: var(--white);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.3px;
}
.trust-icon { width: 14px; height: 14px; flex-shrink: 0; }
.trust-sep {
  color: var(--border);
  font-size: 14px;
  line-height: 1;
}

/* ─── FAQ ───────────────────────────────── */
.faq-section {
  padding: 28px 28px 14px;
  background: var(--stone);
  border-top: 1px solid var(--border-lt);
}

.faq-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.faq-item { border-bottom: 1px solid var(--border-lt); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
  transition: background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.faq-question:hover { background: var(--stone); }

.faq-item.open .faq-question {
  background: var(--stone);
  color: var(--black);
}
.faq-item.open .chevron {
  stroke: var(--gold-dk);
  transform: rotate(180deg);
}

.chevron {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--muted);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), stroke 0.18s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .faq-answer { max-height: 220px; }

.faq-answer-inner {
  padding: 4px 20px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.7;
  border-top: 1px solid var(--border-lt);
  padding-top: 14px;
}

/* ─── ANIMATIONS ────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.2; }
}

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 380px) {
  .card-header        { padding: 18px 20px 14px; }
  .jl-logo-svg        { width: 160px; }
  .hero               { padding: 24px 20px 22px; }
  .hero-left,
  .hero-right         { min-width: 56px; }
  .hero-tag,
  .hero-season        { font-size: 8px; }
  .offer-amount       { font-size: 64px; }
  .steps-section,
  .cta-section,
  .faq-section        { padding-left: 20px; padding-right: 20px; }
  .stats-bar          { gap: 18px; padding: 14px 20px; }
}
@media (min-width: 500px) { .card { border-radius: 24px; } }
@media (min-width: 768px) { body  { padding: 56px 16px 80px; } }

@media (prefers-reduced-motion: reduce) {
  .cta-btn::after,
  .card { animation: none; }
}
