:root {
  --bg: #fbf7f2;
  --bg-2: #ffffff;
  --ink: #16161a;
  --ink-2: #4a4a55;
  --muted: #8a8a96;
  --line: #ece6dd;
  --accent: #ff6b5b;
  --accent-2: #ffb199;
  --midnight: #1f2547;
  --mint: #b8e3c9;
  --coral: #ffd0c7;
  --shadow: 0 24px 60px -28px rgba(31, 37, 71, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Fraunces", "Georgia", serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }
p  { margin: 0; color: var(--ink-2); }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd479 0%, var(--accent) 60%, #b53b2c 100%);
  box-shadow: 0 0 18px rgba(255, 107, 91, 0.45);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-2); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.link-muted { color: var(--ink-2); font-size: 0.95rem; }
.link-muted:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px;
  padding: clamp(30px, 6vw, 70px) clamp(20px, 5vw, 64px) clamp(60px, 8vw, 110px);
  align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.lede { font-size: 1.1rem; color: var(--ink-2); margin-top: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 36px; padding: 36px 0 0; margin: 36px 0 0;
  border-top: 1px solid var(--line); list-style: none;
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.1rem; }
.hero-meta span { color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; min-height: 420px; }
.card-stack { position: relative; height: 100%; }
.card-stack .gcard { position: absolute; }
.card-stack .gcard:nth-child(1) { top: 0; left: 6%; transform: rotate(-7deg); z-index: 1; }
.card-stack .gcard:nth-child(2) { top: 60px; left: 30%; transform: rotate(2deg); z-index: 3; }
.card-stack .gcard:nth-child(3) { top: 200px; left: 14%; transform: rotate(-3deg); z-index: 2; }

/* ---------- Gift Card ---------- */
.gcard {
  width: 280px; aspect-ratio: 1.586 / 1; border-radius: 18px;
  padding: 20px; color: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #2b2f5c 0%, #1f2547 100%);
  position: relative; overflow: hidden;
}
.gcard::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.gcard--coral { background: linear-gradient(135deg, #ff8a73 0%, #ff5a3c 100%); }
.gcard--midnight { background: linear-gradient(135deg, #2b2f5c 0%, #14182f 100%); }
.gcard--mint { background: linear-gradient(135deg, #9ed7b3 0%, #5eaf80 100%); color: #0f2a1c; }
.gcard-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; letter-spacing: 0.18em; font-size: 0.78rem; }
.chip { width: 28px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #f4d77a, #c69b3a); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.gcard-amount { font-family: "Fraunces", "Georgia", serif; font-size: 2.4rem; font-weight: 600; }
.gcard-bottom { font-size: 0.88rem; opacity: 0.9; }

/* ---------- Sections ---------- */
.section { padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 64px); }
.section-head { margin-bottom: 36px; max-width: 600px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--ink-2); }

.design-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.design-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; gap: 14px;
}
.design-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.design-card.is-selected { border-color: var(--ink); box-shadow: var(--shadow); }
.design-card .gcard { width: 100%; }
.design-meta { display: flex; justify-content: space-between; align-items: center; }
.design-meta strong { font-size: 0.95rem; }
.design-meta span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Builder ---------- */
.builder { background: linear-gradient(180deg, transparent, #f3ece1 60%, transparent); }
.builder-card {
  background: var(--bg-2); border-radius: 24px; padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 30px 80px -40px rgba(31,37,71,0.25); border: 1px solid var(--line);
  max-width: 1100px; margin: 0 auto;
}
.builder-card h2 { margin-bottom: 28px; }
.builder-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.builder-preview { display: flex; flex-direction: column; align-items: center; gap: 14px; position: sticky; top: 100px; }
.gcard-preview { width: 100%; max-width: 360px; transition: transform .25s ease, background .3s ease; }
.preview-caption { font-size: 0.85rem; color: var(--muted); }

.builder-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="datetime-local"],
.field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,22,26,0.08);
}
.field textarea { resize: vertical; }
.counter { font-size: 0.75rem; color: var(--muted); justify-self: end; }

.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  border: 1px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 999px;
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-custom { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; }
.chip-custom input { width: 64px; border: none; outline: none; font: inherit; background: transparent; }

.delivery-options { display: flex; gap: 18px; font-size: 0.95rem; color: var(--ink-2); }
.delivery-options input { accent-color: var(--ink); }
.schedule-input:disabled { opacity: 0.5; cursor: not-allowed; }
.fine { font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ---------- Balance ---------- */
.balance-section { padding-top: clamp(40px, 6vw, 70px); }
.balance-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 4vw, 48px); box-shadow: 0 24px 60px -40px rgba(31,37,71,0.25);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  max-width: 1100px; margin: 0 auto;
}
.balance-intro h2 { margin: 8px 0 14px; }
.balance-tips { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.balance-tips a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.balance-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.security-note {
  background: #fff6ef; border: 1px solid #f2dcc4; border-radius: 10px;
  padding: 10px 12px; color: var(--ink-2); text-align: left; line-height: 1.4;
}
.balance-form .fine strong { color: var(--ink); font-weight: 600; }

.balance-result {
  margin-top: 18px; padding: 22px; border-radius: 16px;
  background: linear-gradient(180deg, #fbf4ec 0%, #fff 100%);
  border: 1px solid var(--line);
}
.balance-top { display: flex; justify-content: space-between; align-items: baseline; }
.balance-label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.balance-amount { font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; font-weight: 600; color: var(--ink); }
.balance-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.balance-meta div { display: grid; gap: 2px; }
.balance-meta span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.balance-meta strong { font-size: 0.92rem; }
.balance-activity h4 { font-family: inherit; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin: 0 0 10px; }
.balance-activity ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.balance-activity li { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.balance-activity li:last-child { border-bottom: none; }
.balance-activity .txn-label { color: var(--ink); }
.balance-activity .txn-date { color: var(--muted); font-size: 0.82rem; }
.balance-activity .txn-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.balance-activity .txn-amt.is-credit { color: #2f7d4f; }
.balance-activity .txn-amt.is-debit { color: var(--ink); }

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

/* ---------- How ---------- */
.how h2 { margin-bottom: 36px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }

/* ---------- Business ---------- */
.business { background: var(--ink); color: #fff; border-radius: 28px; margin: 0 clamp(20px, 5vw, 64px); }
.business h2 { color: #fff; margin: 12px 0 12px; }
.business p { color: rgba(255,255,255,0.7); margin-bottom: 24px; max-width: 42ch; }
.business .eyebrow { color: var(--accent-2); }
.business .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.business .btn-outline:hover { background: #fff; color: var(--ink); }
.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feature-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.feature-list li:first-child { border-top: none; padding-top: 0; }
.feature-list strong { font-size: 1.05rem; }
.feature-list span { color: rgba(255,255,255,0.65); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start;
  max-width: 1100px; margin: 0 auto;
}
.contact-grid h2 { margin: 10px 0 12px; }
.contact-form { display: grid; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 28px; }
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px; padding: 60px clamp(20px, 5vw, 64px) 30px;
  border-top: 1px solid var(--line);
}
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-tag { color: var(--muted); margin-top: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-family: inherit; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; color: var(--ink-2); }
.footer-cols a { display: block; padding: 5px 0; color: var(--ink); font-size: 0.92rem; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 0.92rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 50;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 380px; }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-preview { position: static; }
  .business-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .hero-meta { gap: 18px; flex-wrap: wrap; }
  .gcard { width: 240px; }
}
