/* MadeForYou — shared design system */

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --ivory:      #F6EFE3;
  --cream:      #FAF5EC;
  --paper:      #F1E8D8;
  --blush:      #EBCFC2;
  --blush-2:    #F3DDD1;
  --rose:       #C99A8C;
  --ink:        #231A14;
  --ink-2:      #3D2E25;
  --ink-3:      #6E5B4F;
  --burgundy:   #6B2236;
  --burgundy-2: #561828;
  --gold:       #A6814F;
  --gold-2:     #C9A877;
  --max-w:      1240px;
  --px:         1.5rem;   /* default page padding */
}

/* ─── Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--burgundy); color: var(--cream); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─────────────────────────────────────────────── */
.serif { font-family: "Cormorant Garamond", Georgia, serif; }

/* ─── Grain texture overlay ──────────────────────────────────── */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.grain > * { position: relative; z-index: 1; }

/* ─── Warm-wash background ───────────────────────────────────── */
.warm-wash {
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(201,154,140,.30), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(166,129,79,.18), transparent 70%),
    var(--ivory);
}

/* ─── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* ─── Ornament rule ──────────────────────────────────────────── */
.rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(107,34,54,.9);
  font-size: 0.6875rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--burgundy); }
.breadcrumb span { margin: 0 .4rem; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--burgundy);
  color: var(--cream);
  padding: .9rem 1.25rem .9rem 1.75rem;
  border-radius: 100px;
  font-family: Manrope, sans-serif;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .25s;
  box-shadow: 0 14px 30px -14px rgba(107,34,54,.6);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--burgundy-2); }
.btn-primary .btn-circle {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  font-size: .875rem;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--ink);
  color: var(--cream);
  padding: .9rem 1.25rem .9rem 1.75rem;
  border-radius: 100px;
  font-family: Manrope, sans-serif;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .25s;
  box-shadow: 0 14px 30px -14px rgba(35,26,20,.5);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-ink:hover { background: var(--burgundy); }
.btn-ink .btn-circle {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: .875rem;
}
.btn-ink:hover .btn-circle { color: var(--burgundy); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--burgundy); }
.btn-ghost .btn-line {
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  transition: width .3s;
}
.btn-ghost:hover .btn-line { width: 2rem; }

/* ─── Navigation ─────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background .5s, border-color .5s, backdrop-filter .5s;
}
#site-nav.scrolled {
  background: rgba(250,245,236,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35,26,20,.1);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
}
.nav-logo span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -.015em;
  color: var(--ink);
}
.nav-logo em { font-style: italic; font-weight: 300; }
.nav-logo:hover { opacity: .8; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: .8125rem;
  color: var(--ink-2);
  letter-spacing: .04em;
  white-space: nowrap;
}
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--burgundy); }

.nav-cta {
  font-size: .8125rem !important;
  padding: .625rem 1rem .625rem 1.25rem !important;
}
.nav-cta .btn-circle { width: 1.5rem; height: 1.5rem; font-size: .75rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  :root { --px: 2.5rem; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ivory);
  border-top: 1px solid rgba(35,26,20,.1);
  padding: 3.5rem var(--px);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
}
.footer-brand em { font-style: italic; font-weight: 300; }
.footer-brand .dot { color: var(--burgundy); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.footer-links a { color: var(--ink-3); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--burgundy); }
.footer-tagline { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: .9375rem; color: var(--ink-2); }
.footer-copy { font-size: .75rem; color: var(--ink-3); }

/* ─── Page wrapper ───────────────────────────────────────────── */
.page-wrap { padding-top: 4rem; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ─── Section spacing ────────────────────────────────────────── */
.section { padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }

/* ─── Form fields ────────────────────────────────────────────── */
.field { position: relative; }
.field label {
  display: block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .25rem;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(35,26,20,.18);
  border-radius: 0;
  padding: .75rem 0;
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  transition: border-color .35s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236B2236' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right .25rem center;
  padding-right: 1.5rem;
  cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--burgundy); }
.field textarea { resize: none; min-height: 110px; }
.field-error { margin-top: .375rem; font-size: .75rem; color: var(--burgundy); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--cream);
  border: 1px solid rgba(35,26,20,.1);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(35,26,20,.04);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -16px rgba(35,26,20,.2); }

/* ─── Pricing block ──────────────────────────────────────────── */
.pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(35,26,20,.1);
  margin-bottom: 1rem;
}
.pricing-row:last-child { border-bottom: 0; margin-bottom: 0; }
.pricing-label { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.375rem; color: var(--ink); }
.pricing-sub { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: .25rem; }
.pricing-amount { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.375rem; color: var(--burgundy); white-space: nowrap; }

/* ─── Demo iframe container ──────────────────────────────────── */
.demo-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(35,26,20,.12);
  box-shadow: 0 24px 60px -24px rgba(35,26,20,.3);
  background: var(--cream);
}
.demo-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
@media (min-width: 640px) { .demo-wrap iframe { height: 500px; } }
.demo-caption {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(35,26,20,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.demo-caption p { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; max-width: 52ch; }
.demo-caption a { font-size: .8125rem; color: var(--burgundy); white-space: nowrap; letter-spacing: .04em; transition: opacity .2s; }
.demo-caption a:hover { opacity: .7; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-item { border-top: 1px solid rgba(35,26,20,.1); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(35,26,20,.1); }
.faq-q {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.faq-a { font-size: .9375rem; line-height: 1.65; color: var(--ink-2); max-width: 72ch; }

/* ─── Occasions grid (homepage) ──────────────────────────────── */
.occasions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .occasions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .occasions-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.occasion-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 2rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.occasion-card-bg {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  opacity: .7;
  filter: blur(2px);
  pointer-events: none;
}
.occasion-card-icon { width: 3rem; height: 3rem; color: var(--burgundy); margin-bottom: 1.75rem; }
.occasion-card-icon svg { width: 100%; height: 100%; }
.occasion-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.occasion-card p { font-size: .9rem; line-height: 1.6; color: var(--ink-2); max-width: 28ch; }

/* ─── Steps (how it works) ───────────────────────────────────── */
.steps-list { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(35,26,20,.1);
}
@media (min-width: 640px) { .step { grid-template-columns: auto 1fr auto; } }
.step-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 3.25rem;
  color: rgba(107,34,54,.8);
  line-height: 1;
}
@media (min-width: 640px) { .step-num { font-size: 3.25rem; } }
.step-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -.015em;
  margin-bottom: .75rem;
}
@media (min-width: 640px) { .step-title { font-size: 2rem; } }
.step-body { font-size: .9375rem; line-height: 1.65; color: var(--ink-2); max-width: 42ch; }
.step-aside { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-top: .75rem; }
.step-icon { display: none; width: 3rem; height: 3rem; color: var(--burgundy); }
@media (min-width: 640px) { .step-icon { display: block; } }
.step-icon svg { width: 100%; height: 100%; }

/* ─── What's included list ───────────────────────────────────── */
.included-list { list-style: none; display: flex; flex-direction: column; gap: .875rem; }
.included-list li {
  display: flex;
  gap: .875rem;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.included-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burgundy);
  flex-shrink: 0;
  margin-top: .55rem;
}

/* ─── Examples gallery ───────────────────────────────────────── */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .examples-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .examples-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.example-card { display: flex; flex-direction: column; text-decoration: none; }
.example-thumb {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35,26,20,.1);
  border-bottom: none;
}
.example-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.example-body {
  background: var(--cream);
  border: 1px solid rgba(35,26,20,.1);
  border-radius: 0 0 10px 10px;
  border-top: none;
  padding: 1.25rem 1.5rem;
}
.example-tag {
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .375rem;
}
.example-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.375rem;
  color: var(--ink);
  margin-bottom: .75rem;
}
.example-link {
  font-size: .8125rem;
  color: var(--burgundy);
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.example-card:hover .example-thumb { opacity: .92; }
