/* Warm Elegance — Send Design System
   Fonts: Cormorant Garamond (display), IBM Plex Sans (body)
   Preload hint: <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap">
*/

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

:root {
  --primary: #5C3A2E;
  --primary-hover: #4B2E24;
  --secondary: #3D6B35;
  --accent: #B5D6A0;
  --accent-hover: #A5C690;
  --bg: #F7F1E5;
  --bg-warm: #EDE5D5;
  --bg-dark: #5C3A2E;
  --bg-card: #FFFFFF;
  --text: #2C2420;
  --text-muted: #5C4F42;
  --text-faint: #635849;
  --border: #EDE5D5;
  --border-strong: #5C3A2E;
  --error: #C0392B;
  --success: #3D8B3D;
  --warning: #D9822B;
  --radius: 14px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 229, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  padding: 14px 0;
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s;
}

.nav-cta:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero — left-aligned, warm background */
.hero {
  padding: 80px 0 72px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.stamp-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  border: 2px dashed var(--primary);
  border-radius: 4px;
  padding: 6px 14px;
  margin-bottom: 28px;
  transform: rotate(-1deg);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.5px;
  max-width: 560px;
}

.highlight { color: var(--primary); font-style: normal; }

.subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin: 24px 0 36px;
  line-height: 1.7;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(92, 58, 46, 0.2);
  letter-spacing: 0.15px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(92, 58, 46, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(92, 58, 46, 0.2);
}

.btn-primary:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius);
}

.subtitle strong {
  color: var(--text);
}

.trust-line {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 14px;
  line-height: 1.5;
}

/* Hero next step + social proof */
.hero-next-step {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
}

.social-proof {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-proof::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Hero waitlist inline */
.hero-waitlist {
  margin-top: 20px;
}

.waitlist-form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 340px;
}

.waitlist-or {
  font-size: 14px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.waitlist-form-inline input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}

.waitlist-form-inline input:focus { border-color: var(--primary); }

.waitlist-form-inline button {
  padding: 9px 18px;
  background: #fff;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  min-height: 44px;
}

.waitlist-form-inline button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.waitlist-success {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
}

/* Hero CTA bigger variant */
.btn-primary--hero {
  padding: 18px 40px;
  font-size: 18px;
}

/* Featured Gift Card */
.featured-gift-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 32px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.featured-gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.featured-gift-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  background: var(--bg-warm);
  flex-shrink: 0;
}

.featured-gift-info {
  padding: 24px 28px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-gift-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
}

.featured-gift-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
}

.featured-gift-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.featured-gift-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.featured-gift-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2px;
}

/* Waitlist Section (moved from hero) */
.waitlist-section {
  padding: 56px 0;
  text-align: center;
  background: var(--bg-warm);
}

.waitlist-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.waitlist-section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.waitlist-form-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.waitlist-form-bottom input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}

.waitlist-form-bottom input:focus { border-color: var(--primary); }

.waitlist-form-bottom button {
  padding: 12px 24px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  min-height: 44px;
}

.waitlist-form-bottom button:hover {
  background: var(--primary-hover);
}

/* Products */
.products {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.products h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
}

.products-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin: 8px 0 36px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.product-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-warm);
}

.product-info {
  padding: 18px 20px 12px;
  flex: 1;
}

.product-name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-desc {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.4;
  margin-top: 2px;
}

.product-price {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 8px;
}

.product-cta {
  display: block;
  text-align: center;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}

.product-card:hover .product-cta {
  color: var(--primary);
  background: rgba(92, 58, 46, 0.04);
}

/* How It Works */
.how-it-works {
  padding: 72px 0;
  background: var(--bg-warm);
}

.how-it-works-header {
  margin-bottom: 40px;
}

.how-it-works-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
}

.how-it-works-header p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
}

.steps-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps-horizontal .step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.step h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step p strong {
  color: var(--text);
}

/* Trust */
.trust {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  padding: 20px 16px;
  border-top: 3px solid var(--primary);
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  text-align: center;
}

.trust-card strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.trust-card span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* FAQ */
.faq {
  padding: 72px 0;
  background: var(--bg-warm);
}

.faq h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-faint);
  transition: color 0.2s;
}

.faq-item[open] summary::after { content: '\2212'; color: var(--primary); }

.faq-item[open] summary ~ * {
  animation: faq-open 0.25s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* Send Gift Button (hero + bottom) */
.btn-send-gift {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 12px;
}
.btn-send-gift:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Send Gift Banner (between products and how-it-works) */
.send-gift-banner {
  padding: 48px 0;
  background: var(--bg-warm);
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.banner-inner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}
.banner-inner p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 480px;
}
@media (max-width: 600px) {
  .banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .banner-inner p { max-width: 100%; }
}

/* Bottom CTA */
.cta-bottom {
  text-align: center;
  padding: 88px 0;
  background: var(--bg-dark);
  color: #FFFFFF;
}

.cta-bottom h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.cta-bottom .btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(181, 214, 160, 0.4);
}

.cta-bottom .btn-primary:hover {
  background: var(--accent-hover);
}

/* Footer */
footer {
  padding: 48px 0 32px;
  background: var(--bg-warm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.footer-tagline { font-size: 14px; color: var(--text-faint); }

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-affiliate {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 12px;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Mobile CTA bar */
.mobile-cta-bar {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247,241,229,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 200;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-cta-bar.visible { transform: translateY(0); }
  .mobile-cta-bar .btn-primary {
    width: 100%;
    justify-content: center;
    max-width: 400px;
    padding: 12px 28px;
    font-size: 15px;
  }
  footer { padding-bottom: calc(32px + 72px); }

  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 34px; }
  .subtitle { font-size: 16px; margin: 20px 0 28px; }

  .featured-gift-card { flex-direction: column; }
  .featured-gift-img { width: 100%; height: auto; aspect-ratio: 4/3; }
  .featured-gift-info { padding: 20px; }
  .btn-primary--hero { padding: 16px 32px; font-size: 16px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-name { font-size: 14px; }
  .product-info { padding: 12px 14px 8px; }
  .product-cta { padding: 9px 12px; }

  .waitlist-form-bottom { max-width: 100%; flex-direction: column; }
  .waitlist-form-bottom input { width: 100%; }
  .waitlist-form-bottom button { width: 100%; }

  .steps-horizontal { grid-template-columns: 1fr; gap: 28px; }
  .steps-horizontal .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    align-items: center;
  }
  .step-num { grid-row: 1; grid-column: 1; }
  .step h3 { grid-row: 1; grid-column: 2; font-size: 18px; }
  .step p { grid-row: 2; grid-column: 2; margin: 0; }

  .how-it-works { padding: 48px 0; }
  .products { padding: 48px 0; }
  .trust { padding: 48px 0; }
  .faq { padding: 48px 0; }
  .cta-bottom { padding: 64px 0; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-card { padding: 16px 12px; }

  .products h2, .faq h2, .how-it-works-header h2 { font-size: 28px; }
  .cta-bottom h2 { font-size: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  .nav-cta { min-height: 44px; display: flex; align-items: center; }
  .faq-item summary { min-height: 44px; }

  .waitlist-form-inline { max-width: 100%; }
}

@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .nav-logo { font-size: 20px; }
  .waitlist-form-inline { flex-wrap: wrap; }
  .waitlist-or { display: none; }
  .waitlist-form-inline input { flex: 1; min-width: 0; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: 30px; }
}

/* Dashboard styles (post-login) */
.dashboard { padding: 20px 0; }
.user-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.user-bar .email { font-size: 14px; color: var(--text-faint); }
.user-bar a { font-size: 14px; color: var(--text-faint); text-decoration: none; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.event-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.event-card .info .name { font-weight: 600; font-size: 15px; }
.event-card .info .detail { font-size: 14px; color: var(--text-faint); }
.event-card .days { font-size: 13px; background: var(--bg-warm); padding: 4px 10px; border-radius: 12px; color: var(--text-muted); white-space: nowrap; }
.event-card .days.soon { background: rgba(217,130,43,0.12); color: #D9822B; }
.empty-state { text-align: center; padding: 40px; color: var(--text-faint); font-size: 14px; }
.sync-btn { display: inline-block; padding: 10px 20px; background: var(--primary); color: #FFFFFF; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.sync-btn:hover { background: var(--primary-hover); }
.loading { text-align: center; padding: 40px; color: var(--text-faint); }
