/* ==========================================================================
   BLUSH — marketing site
   Shares the invitation's design language so the product feels continuous
   with the shop. Mobile-first: most traffic arrives from a TikTok link.
   ========================================================================== */

:root {
  --bg: #fdf7f4;
  --bg-alt: #f8ece6;
  --bg-deep: #f1ded4;
  --surface: #fffdfc;
  --ink: #3f3430;
  --ink-soft: #726059;   /* AA on every site background */
  --ink-faint: #6f615b;  /* AA: was #ab958c at 2.2:1 */
  --line: #ecdcd3;

  --accent: #c9a227;
  --accent-soft: #e6d093;
  --accent-deep: #796117; /* AA when used as text */
  --accent-contrast: #3f3430; /* dark on gold = 4.97:1; white was 2.38:1 */

  --foil: linear-gradient(100deg, #6d4e0c 0%, #a97c17 22%, #b0801a 40%, #91680f 58%, #6d4e0c 78%, #a97c17 100%);

  --font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-script: "Pinyon Script", cursive;
  --font-body: "Jost", "Century Gothic", system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(60, 40, 35, 0.06);
  --shadow-md: 0 12px 34px rgba(60, 40, 35, 0.10);
  --shadow-lg: 0 28px 70px rgba(60, 40, 35, 0.16);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

section { padding: 84px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

.alt { background: var(--bg-alt); }
.deep { background: var(--bg-deep); }

/* ------------------------------------------------------------- typography */

h1, h2, h3, .plan__price, .step__n, .logo {
  font-family: var(--font-display);
  /* Cormorant defaults to oldstyle figures, which turn "145" into "I45" */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: 0.01em; }
h2 { font-size: clamp(31px, 4.6vw, 46px); }
h3 { font-size: 23px; }

p { margin: 0 0 16px; }
.lede { font-size: clamp(16px, 2vw, 18.5px); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.foil {
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 9s ease-in-out infinite;
}
@keyframes foil { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.script { font-family: var(--font-script); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 13.5px; }

.head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 46px; }
.head p { color: var(--ink-soft); margin-top: 14px; }

/* ----------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.logo {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}
.logo span { font-size: 11px; letter-spacing: 0.3em; display: block; color: var(--ink-faint); margin-top: -6px; }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-deep); }
@media (max-width: 860px) { .nav { display: none; } }

/* Language switcher. A real link to a real page in the other language —
   not a client-side toggle, so it is crawlable and never flashes the wrong
   language on load. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.lang:hover { border-color: var(--accent); color: var(--accent-deep); }
.lang svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 520px) { .lang span, .lang { font-size: 10px; padding: 7px 11px; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--pill);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; }
.btn svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------- hero */

.hero { padding: 70px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 130%;
  background: radial-gradient(60% 50% at 50% 20%, #fff8f3 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero__copy .lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .badges { justify-content: center; }
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.badge { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-soft); }
.badge i { color: var(--accent); font-style: normal; font-size: 15px; }

/* Phone mock-up ---------------------------------------------------------- */

.phone {
  width: 300px;
  margin-inline: auto;
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(70, 45, 38, 0.28));
}
.phone__body {
  border-radius: 46px;
  background: #211a17;
  padding: 11px;
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #211a17;
  border-radius: var(--pill);
  z-index: 3;
}
.phone__screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 9 / 19.5;
  position: relative;
}
.phone__screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }

.phone__float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 11.5px;
  line-height: 1.4;
  animation: bob 5s ease-in-out infinite;
}
.phone__float b { display: block; font-size: 12.5px; font-weight: 500; }
.phone__float--tl { top: 12%; left: -54px; }
.phone__float--br { bottom: 16%; right: -48px; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 460px) {
  .phone { width: 260px; }
  .phone__float--tl { left: -14px; }
  .phone__float--br { right: -10px; }
}

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--accent);
  margin-bottom: 18px;
}
.card__icon svg { width: 21px; height: 21px; }

/* Numbered steps */
.step { position: relative; padding-top: 8px; }
.step__n {
  font-family: var(--font-display);
  font-size: 52px;
  /* was --accent-soft: 1.5:1 on the card. Large text still needs 3:1. */
  color: #a8851c;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------- templates */

.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .templates { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .templates { grid-template-columns: 1fr; } }

.template {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  text-decoration: none;
  display: block;
}
.template:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.template img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
.template__foot { padding: 15px 18px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.template__name { font-family: var(--font-display); font-size: 21px; }
.template__go { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-deep); }

/* ---------------------------------------------------------------- pricing */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.plan__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.plan__name { font-family: var(--font-display); font-size: 28px; }
.plan__blurb { font-size: 13.5px; color: var(--ink-soft); min-height: 42px; margin: 6px 0 18px; }
.plan__price { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--accent-deep); }
.plan__price sup { font-size: 22px; vertical-align: super; }
.plan__per { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin: 8px 0 22px; }

.ticks { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.ticks li {
  display: flex;
  gap: 11px;
  font-size: 14px;
  padding: 7px 0;
  color: var(--ink-soft);
  align-items: flex-start;
}
.ticks li::before {
  content: "✓";
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  flex: none;
}
.ticks li.is-off { opacity: 0.4; }
.ticks li.is-off::before { content: "–"; color: var(--ink-faint); }

.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .addons { grid-template-columns: 1fr; } }
.addon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: 14px;
}
.addon b { color: var(--accent-deep); font-weight: 500; white-space: nowrap; }

/* -------------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-size: 16.5px;
  position: relative;
  font-family: var(--font-display);
  font-size: 21px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-family: var(--font-body);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); font-size: 14.5px; padding-bottom: 8px; margin: 0 0 10px; max-width: 68ch; }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-faint); margin: 6px 0 0; letter-spacing: 0; text-transform: none; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }

.pickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 620px) { .pickers { grid-template-columns: repeat(2, 1fr); } }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker label {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.3s var(--ease);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  text-align: center;
  color: var(--ink);
}
.picker label img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.picker label span { display: block; padding: 9px 6px; }
.picker input:checked + label {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translateY(-3px);
}

/* Plan and add-on pickers on the order form */
.planpick {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  color: var(--ink);
}
.planpick--featured { border-color: var(--accent); }
.planpick input { position: static; opacity: 1; width: auto; margin-top: 5px; }
.addonpick {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 14.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.addonpick input { width: auto; }

.formcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 620px) { .formcard { padding: 24px 20px; } }

.note {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------- misc */

.strip {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.strip a { color: var(--accent-soft); }

.cta-band { background: var(--bg-deep); text-align: center; }
.cta-band h2 { margin-bottom: 16px; }

.foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 54px 0 34px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; gap: 24px; } }
.foot h4 { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.foot a:hover { color: var(--accent-deep); }
.foot__legal { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; font-size: 12px; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--bg);
  padding: 13px 24px;
  border-radius: var(--pill);
  font-size: 13.5px;
  z-index: 200;
  transition: transform 0.45s var(--ease);
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  text-align: center;
}
.toast.is-shown { transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { animation: rise 0.85s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Heading semantics vs. heading size

   Every page needs one <h1> and must not skip levels, but the design has
   several sizes of heading that do not map onto the level. These classes let
   the markup be correct for a screen reader while the page looks unchanged.
   -------------------------------------------------------------------------- */

/* Page title on inner pages — an <h1> that should read at the old <h2> size */
.head__h1 { font-size: clamp(31px, 4.6vw, 46px); }

/* Section groups (FAQ categories, order-form steps) — <h2> at the old h3 size */
.group__h { font-size: 23px; }

/* Clauses in the legal pages — <h2> at the old h3 size */
.legal__h { font-size: 23px; }

/* Footer column labels — <h2> that must stay small caps */
.foot__h {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Header at phone widths

   Logo + language switch + call to action do not fit across 375px, and
   because the body hides horizontal overflow the button was being clipped by
   the screen edge rather than pushing a scrollbar — so it looked fine to an
   automated overflow check while being unusable on an actual phone.
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .top__inner { gap: 10px; }

  .logo { font-size: 20px; letter-spacing: 0.18em; }
  .logo span { font-size: 9px; letter-spacing: 0.2em; }

  /* Globe only — the language is obvious from the flag-free icon plus the
     page it lands on, and the label is what breaks the row. */
  .lang { padding: 8px 11px; gap: 0; font-size: 0; }
  .lang svg { width: 16px; height: 16px; }

  .top__inner .btn {
    padding: 11px 14px;
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
}

/* Only on the very narrowest phones does the CTA have to go. 375px is the
   iPhone SE/mini width and a real share of wedding traffic, so keep the
   persistent call to action there. Every page still has a full-width CTA in
   the body, so nothing is lost when it does drop. */
@media (max-width: 344px) {
  .top__inner .btn { display: none; }
}
