:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --cream: #fdf6ee;
  --ink: #1c1c1c;
  --muted: #6b7280;
  --line: #d1d5db;
  --ok: #16a34a;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- topbar ---------- */
.topbar { background: var(--red); }
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.topbar-link {
  background: none;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.caret { font-size: 12px; }

/* ---------- navbar ---------- */
.navbar {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.navbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  color: var(--red);
}
.logo-v {
  font-family: "Great Vibes", cursive;
  font-size: 44px;
  color: var(--red);
  font-weight: 400;
  line-height: 0.8;
  margin-right: -2px;
}
.logo-rest {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.3px;
}
.logo-dot {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
}
.logo-gift {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--red); }
.nav-buy { font-weight: 700 !important; }

/* ---------- hero section ---------- */
.hero-section {
  background: var(--cream);
  padding: 20px 24px 40px;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- form card ---------- */
.card {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-top: 4px solid var(--red);
  border-radius: 2px;
  padding: 30px 36px 36px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.card h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
}

.sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.field { position: relative; }

input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #9ca3af; }
input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}
input.invalid {
  border-color: var(--red);
  background: #fef2f2;
}

.exp-label {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 12px;
}

/* CVV */
.cvv-field { position: relative; }
.cvv-field input { padding-right: 40px; }

.help {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 220px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 10;
}
.tip::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 100%;
  border: 5px solid transparent;
  border-top-color: #1f2937;
}
.tip.show { opacity: 1; visibility: visible; transform: translateY(0); }

.err {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--red);
}
.err:empty { margin: 0; }

/* show card info */
.show-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.show-info input { display: none; }
.show-info svg { color: var(--muted); }

/* submit */
.continue {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.continue:hover { background: var(--red-dark); }
.continue:disabled { opacity: 0.6; cursor: not-allowed; }

/* result */
.result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--red);
  border-radius: 4px;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.5;
}
.result.ok {
  border-left-color: var(--ok);
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.result .amount { font-size: 28px; font-weight: 700; color: var(--ok); }

/* ---------- hero visual ---------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: visible;
}

.blob-shape {
  position: absolute;
  width: 380px;
  height: 380px;
  background: #f97316;
  border-radius: 50% 50% 50% 50% / 55% 45% 55% 45%;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 340px;
  object-fit: cover;
  border-radius: 50% 50% 50% 50% / 55% 45% 55% 45%;
}

/* gift card */
.giftcard {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 8%;
  width: 260px;
  aspect-ratio: 1.585 / 1;
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(155deg, #f0d87a 0%, #d4a83f 30%, #c49632 55%, #e8cc7a 80%, #f0d87a 100%);
  box-shadow: 0 16px 40px rgba(100, 70, 10, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-6deg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
}
.giftcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 4px,
      rgba(255,255,255,0.18) 4px,
      rgba(255,255,255,0.18) 6px
    );
  pointer-events: none;
}

.gc-top { position: relative; z-index: 1; }
.gc-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #6b4f10;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.gc-v {
  font-family: "Great Vibes", cursive;
  font-size: 28px;
  color: #5a4210;
  font-weight: 400;
  line-height: 1;
}
.gc-sub {
  font-size: 9px;
  font-weight: 400;
  color: #7a6018;
  letter-spacing: 0.5px;
}

.gc-middle {
  position: relative;
  z-index: 1;
}
.gc-gift {
  font-family: "Great Vibes", cursive;
  font-size: 64px;
  color: #5a4210;
  line-height: 0.85;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.gc-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.gc-left { display: flex; flex-direction: column; gap: 1px; }
.gc-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6b4f10;
}
.gc-valid {
  font-size: 6px;
  color: #8a6a20;
  letter-spacing: 0.5px;
}
.gc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.gc-debit {
  font-size: 7px;
  font-weight: 600;
  color: #6b4f10;
  letter-spacing: 1px;
}
.gc-visa {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  color: #1a3c6e;
  letter-spacing: -0.5px;
}

/* ---------- wave divider ---------- */
.wave-divider {
  background: var(--cream);
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ---------- cards section ---------- */
.cards-section {
  background: var(--red);
  padding: 48px 24px 60px;
}
.cards-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-card {
  background: #fff;
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.info-card-img {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* mini gift card in info cards */
.mini-giftcard {
  width: 200px;
  aspect-ratio: 1.585 / 1;
  border-radius: 10px;
  padding: 14px 16px;
  background: linear-gradient(155deg, #f0d87a 0%, #d4a83f 30%, #c49632 55%, #e8cc7a 80%, #f0d87a 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(100,70,10,0.25);
  position: relative;
  overflow: hidden;
}
.mini-giftcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.18) 3px,
      rgba(255,255,255,0.18) 5px
    );
  pointer-events: none;
}
.mini-giftcard.small { width: 140px; }

.mg-brand {
  font-size: 11px;
  font-weight: 700;
  color: #5a4210;
  position: relative;
  z-index: 1;
}
.mg-v {
  font-family: "Great Vibes", cursive;
  font-size: 18px;
  color: #5a4210;
}
.mg-gift {
  font-family: "Great Vibes", cursive;
  font-size: 44px;
  color: #5a4210;
  line-height: 0.85;
  position: relative;
  z-index: 1;
}
.mg-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.mg-tag {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b4f10;
}
.mg-visa {
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  color: #1a3c6e;
}

/* phone mockup */
.phone-mockup {
  width: 160px;
  height: 220px;
  background: #1f2937;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
}
.info-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}
.info-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.info-link:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer {
  background: var(--red);
  padding: 20px 24px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

/* ---------- FAQ section ---------- */
.faq-section {
  background: var(--cream);
  padding: 48px 24px 60px;
}
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.faq-inner h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}
.faq-item {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--red);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

/* ---------- page styles ---------- */
.page-section {
  background: var(--cream);
  padding: 40px 24px 60px;
}
.page-inner {
  max-width: 960px;
  margin: 0 auto;
}
.page-inner h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
}
.page-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

/* card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.card-item {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 6px;
  padding: 20px;
}
.card-item h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.card-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

/* page content */
.page-content {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 6px;
  padding: 32px;
}
.page-content h2 {
  margin: 28px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}
.page-content a { color: var(--red); font-weight: 600; }
.page-content a:hover { text-decoration: underline; }

.page-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.page-cta:hover { background: var(--red-dark); }

/* steps */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 60px;
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.steps-list li strong { color: var(--ink); }

/* supported brands list */
.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.brand-tag {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* contact form */
.contact-form {
  max-width: 480px;
}
.contact-form .field { margin-bottom: 14px; }
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.contact-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
  outline: none;
}
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(220,38,38,0.1);
}

/* privacy / terms */
.legal-content h2 {
  margin: 28px 0 10px;
  font-size: 18px;
  color: var(--ink);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}
.legal-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}
.legal-content li { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-visual { min-height: 300px; }
  .hero-img { width: 220px; height: 260px; }
  .giftcard { width: 200px; right: 5%; bottom: 5%; }
  .blob-shape { width: 280px; height: 280px; }
  .cards-inner { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
}
