/* ===================== Design tokens ===================== */
:root {
  --bg: #FDFCF8;
  --sage: #E8EFE8;
  --lavender: #EFEDF4;
  --coral: #FFB7B2;
  --coral-dark: #F79A93;
  --peach-blob: #FFE4E1;
  --lavender-blob: #E6E6FA;
  --text-dark: #292524;
  --text-muted: #78716C;
  --stone-50: #FAFAF9;
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E4;
  --stone-400: #A8A29E;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 12px 32px -8px rgba(41, 37, 36, 0.15);
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-2xl: 4rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

.cursive {
  font-family: 'Reenie Beanie', cursive;
  font-weight: 400;
  color: var(--coral-dark);
  font-size: 1.25em;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-pill { border-radius: 999px; }

.btn-coral {
  background: var(--coral);
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
}
.btn-coral:hover { transform: translateY(-2px) scale(1.03); box-shadow: var(--shadow-lift); }

.btn-dark {
  background: var(--text-dark);
  color: #fff;
}
.btn-dark:hover { transform: scale(1.05); background: #1c1917; }

.btn-outline {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid var(--stone-200);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--coral); }

/* ===================== Grain overlay ===================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== Reveal on scroll ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== Blobs ===================== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}
.blob-peach { width: 380px; height: 380px; background: var(--peach-blob); top: -80px; left: -60px; }
.blob-lavender { width: 340px; height: 340px; background: var(--lavender-blob); top: 40px; right: -80px; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
}
.navbar-inner {
  width: calc(100% - 32px);
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }

.nav-links { display: none; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.nav-links a:hover { color: var(--coral-dark); }

.nav-cta { padding: 10px 20px; font-size: 14px; }

@media (min-width: 800px) {
  .nav-links { display: flex; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  background: var(--sage);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero-sub {
  max-width: 500px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 18px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================== Trust bar ===================== */
.trust-bar {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
}
.trust-chip {
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
}
.trust-sage { background: var(--sage); }
.trust-lavender { background: var(--lavender); }
.trust-chip strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.trust-chip span { font-size: 13px; color: var(--text-muted); }

/* ===================== Use cases (horizontal scroll) ===================== */
.use-cases { padding: 40px 0 90px; }
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 24px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--stone-200); border-radius: 999px; }

.scroll-card {
  flex: 0 0 288px;
  height: 160px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
}
.scroll-tag { font-size: 14px; color: var(--stone-400); font-weight: 500; }
.scroll-text { font-size: 20px; font-weight: 600; color: var(--text-dark); margin: 0; transition: color 0.3s ease; }
.scroll-card:hover .scroll-text { color: var(--coral-dark); }

/* ===================== Preview (what's inside) ===================== */
.preview { padding: 40px 24px 100px; }
.sheet-stack {
  position: relative;
  max-width: 720px;
  margin: 60px auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.sheet-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  padding: 20px;
  width: 260px;
}
.sheet-center {
  width: 320px;
  z-index: 2;
  padding-bottom: 28px;
}
.sheet-side {
  display: none;
  opacity: 0.8;
  width: 220px;
}
.sheet-sage { background: var(--sage); }
.sheet-lavender { background: var(--lavender); }
.sheet-left { margin-right: -40px; transform: translateY(48px); }
.sheet-right { margin-left: -40px; transform: translateY(96px); }

.sheet-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--stone-100);
  font-size: 11px;
}
.sheet-center .sheet-row { grid-template-columns: repeat(6, 1fr); }
.sheet-side .sheet-row { grid-template-columns: repeat(3, 1fr); }
.sheet-row-4 { grid-template-columns: repeat(4, 1fr) !important; }
.sheet-head { font-weight: 700; color: var(--text-dark); border-bottom: 2px solid var(--stone-200); }
.sheet-row.blurred span {
  color: var(--stone-400);
  filter: blur(2px);
  user-select: none;
}
.sheet-cta { display: flex; margin: 16px auto 0; }
.sheet-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 10px;
}

.real-sample {
  max-width: 1000px;
  margin: 70px auto 0;
  text-align: center;
}
.real-sample-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.real-sample-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 32px;
}
.real-sample-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.real-sample-item {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 12px;
  overflow-x: auto;
}
.sample-preview-img {
  display: block;
  max-width: none;
  width: auto;
  height: auto;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 183, 178, 0.6); }
  50% { box-shadow: 0 0 0 14px rgba(255, 183, 178, 0); }
}

@media (min-width: 720px) {
  .sheet-side { display: block; }
}

/* ===================== Products / pricing ===================== */
.products {
  position: relative;
  padding: 40px 24px 100px;
  overflow: hidden;
}
.products-blob { top: 0; right: 10%; }

.products-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow-icon {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--text-dark);
  position: relative;
  display: inline-flex;
}
.eyebrow-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
  position: absolute;
  top: -3px; right: -3px;
}
.products-eyebrow span:last-child { font-size: 14px; font-weight: 500; color: var(--text-muted); }

.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.pricing-badge {
  align-self: flex-start;
  background: var(--sage);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pricing-name { font-size: 22px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.pricing-desc { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; }
.pricing-records { font-size: 13px; color: var(--coral-dark); font-weight: 600; margin-bottom: 16px; }
.pricing-amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.pricing-amount span { font-size: 14px; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 14px; color: var(--text-dark); padding-left: 22px; position: relative; }
.pricing-features li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--coral-dark); font-weight: 700;
}
.btn-buy { width: 100%; margin-top: auto; }

.products-disclaimer {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--stone-400);
  line-height: 1.6;
}

/* ===================== Buy modal ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(41, 37, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-panel {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lift);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--stone-100);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.modal-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.modal-product { color: var(--text-muted); font-size: 14px; margin: 0; }
.modal-amount { font-size: 28px; font-weight: 800; margin: 4px 0 20px; }

.field-label { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 6px; }
.field-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--stone-200);
  background: var(--stone-50);
  font-family: inherit;
  font-size: 15px;
}
.field-input:focus { outline: none; border-color: var(--coral); }

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.field-checkbox input { margin-top: 3px; }

.field-error {
  background: #FFF0EF;
  color: #B3261E;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 12px 0 0;
}

.modal-submit { width: 100%; margin-top: 18px; }

/* ===================== Testimonials ===================== */
.testimonials { padding: 40px 24px 100px; }
.testimonial-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
.note-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.rotate-left { transform: rotate(-1deg); }
.rotate-right { transform: rotate(1deg); }
.note-text { font-size: 16px; color: var(--text-dark); margin: 0 0 20px; }
.note-signature { display: flex; flex-direction: column; gap: 6px; }
.note-line { width: 32px; height: 1px; background: var(--stone-400); }
.note-name { font-size: 24px; color: var(--text-muted); }

/* ===================== FAQ ===================== */
.faq { padding: 40px 24px 100px; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--stone-100);
  border-radius: 16px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--text-dark);
}
.faq-icon {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--coral-dark);
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-in-out;
}
.faq-answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding-bottom: 24px; }

/* ===================== Final CTA ===================== */
.final-cta {
  position: relative;
  max-width: 720px;
  margin: 0 auto 100px;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}
.final-cta-blob { bottom: -60px; left: 20%; }
.final-cta-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 8px; }
.final-cta-sub { color: var(--text-muted); margin: 0 0 28px; }

/* ===================== Footer ===================== */
.site-footer { padding: 40px 24px 60px; border-top: 1px solid var(--stone-100); }
.footer-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-note { font-size: 12px; color: var(--stone-400); line-height: 1.7; max-width: 560px; margin: 0 auto 16px; }
.footer-copy { font-size: 13px; color: var(--text-muted); margin: 0; }
.footer-copy a { color: var(--coral-dark); }

/* ===================== Status pages (thank-you / failed) ===================== */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.status-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 48px 36px;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 26px;
  margin-bottom: 20px;
}
.status-icon-success { background: var(--sage); color: #2F6B3A; }
.status-icon-error { background: #FFE4E1; color: #B3261E; }
.status-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.status-sub { color: var(--text-muted); font-size: 15px; margin: 0 0 28px; }
.status-footnote { font-size: 12px; color: var(--stone-400); margin-top: 20px; line-height: 1.6; }
