/*
 * Mailbox Wonders brand: the site header and footer (.mw-header, .mw-footer)
 * and the brand pages (.mw-page: home, pricing, how it works, and the
 * shared inner-page header band).
 *
 * Propshaft links every file in app/assets/stylesheets on every layout,
 * admin and portal included, so every rule here is scoped under one of those
 * classes. Never add a bare element selector.
 *
 * These rules are not in a cascade layer, so they win over Tailwind's
 * utilities. Don't set display, transform or opacity on an element whose
 * Tailwind classes are toggled from JavaScript (#mobile-menu's "hidden",
 * the sticky CTA's "translate-y-full opacity-0").
 *
 * Colors come from the logo: "Mailbox" teal and the burst of streamers.
 */
:root {
  --mw-paper: #FFFFFF;
  --mw-sheet: #EEF6F5;      /* pale teal notebook page */
  --mw-rule: #CDE3E0;       /* notebook ruled line */
  --mw-teal: #2F8A8A;       /* "Mailbox" teal from the logo */
  --mw-teal-deep: #236F6F;
  --mw-teal-tint: #D7ECE9;
  --mw-red: #E4505B;        /* numbered pins */
  --mw-ink: #173A44;        /* deep teal-navy text */
  --mw-ink-soft: #4C6670;
  --mw-blush: #FCEBEA;      /* gift band */
  --mw-line: #E3E8F0;
  --mw-hero-bg: #E3F0F8;
  --mw-focus: #2E6BD6;
  /* streamer colors from the logo's burst */
  --mw-coral: #F0675A;
  --mw-orange: #F39A3D;
  --mw-green: #4AAA62;
  --mw-sky: #3E9FD6;
  --mw-pink: #E8649F;

  --mw-f-display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --mw-f-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mw-f-hand: "Gochi Hand", "Comic Sans MS", "Chalkboard SE", cursive;
  --mw-f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
}

/* ---------- shared pieces ---------- */
.mw-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
/* A reading-width column that keeps the page's left edge (FAQ, legal). */
.mw-narrow > * { max-width: 48rem; }
.mw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1.05rem/1 var(--mw-f-body); text-decoration: none;
  padding: 1rem 1.4rem; border-radius: 10px; border: 2px solid var(--mw-ink);
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
/* White text needs the deep teal: the logo teal is only 4.1:1. */
.mw-btn-primary { background: var(--mw-teal-deep); color: #fff; border-color: var(--mw-teal-deep); }
.mw-btn-primary:hover { background: #1D5A5B; border-color: #1D5A5B; transform: translateY(-1px); }
.mw-btn-ghost {
  background: transparent; color: var(--mw-ink); border-color: transparent;
  text-decoration: underline; text-underline-offset: 4px; padding-left: .3rem;
}
.mw-btn:focus-visible { outline: 3px solid var(--mw-focus); outline-offset: 3px; }

/* ---------- header ---------- */
.mw-header {
  position: relative; z-index: 50; background: var(--mw-paper);
  border-bottom: 1px solid var(--mw-line);
  font-family: var(--mw-f-body); color: var(--mw-ink);
}
.mw-header::before {
  content: ""; display: block; height: 6px;
  background: linear-gradient(90deg,
    var(--mw-teal) 0 16.66%, var(--mw-coral) 16.66% 33.33%, var(--mw-orange) 33.33% 50%,
    var(--mw-green) 50% 66.66%, var(--mw-sky) 66.66% 83.33%, var(--mw-pink) 83.33% 100%);
}
.mw-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.mw-logo { display: block; flex: none; }
.mw-logo img { height: 76px; width: auto; display: block; }
.mw-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; font-size: .98rem; }
.mw-nav a { color: var(--mw-ink); text-decoration: none; }
.mw-nav form button { color: var(--mw-ink); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.mw-nav a:hover, .mw-nav form button:hover { text-decoration: underline; text-underline-offset: 4px; }
.mw-nav a.mw-btn { color: #fff; padding: .7rem 1rem; font-size: .95rem; }
.mw-nav a.mw-btn:hover { text-decoration: none; }
.mw-nav form { margin: 0; }
.mw-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mw-teal); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.mw-mobile-menu a[aria-current="page"] { color: var(--mw-teal-deep); }
.mw-logo-sm img { height: 56px; }
.mw-menu-btn { display: none; }
.mw-mobile-menu { border-top: 1px solid var(--mw-line); background: var(--mw-paper); }
.mw-mobile-menu a, .mw-mobile-menu button {
  display: block; width: 100%; text-align: left; padding: .8rem 0; font: 600 1.05rem/1.2 var(--mw-f-body);
  color: var(--mw-ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.mw-mobile-menu .mw-wrap { padding-block: .4rem 1rem; }
.mw-mobile-menu form { margin: 0; }

@media (max-width: 860px) {
  .mw-logo img { height: 52px; }
  .mw-header-bar { padding-block: .35rem; }
  .mw-nav { gap: .8rem; }
  .mw-nav .mw-nav-link { display: none; }
  .mw-menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    color: var(--mw-ink);
  }
  .mw-menu-btn:hover { background: var(--mw-sheet); text-decoration: none; }
}

/* The portal has seven links, so it switches to the menu button sooner. */
@media (max-width: 1100px) {
  .mw-header-portal .mw-nav .mw-nav-link { display: none; }
  .mw-header-portal .mw-menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    color: var(--mw-ink);
  }
  .mw-header-portal .mw-menu-btn:hover { background: var(--mw-sheet); }
}

/* ---------- footer ---------- */
.mw-footer {
  border-top: 1px solid var(--mw-line); background: var(--mw-paper);
  padding-block: 2.75rem 3rem; font: .95rem/1.6 var(--mw-f-body); color: var(--mw-ink-soft);
}
.mw-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.mw-footer .mw-logo img { height: 96px; }
.mw-footer-tag { margin: 1rem 0 0; max-width: 30ch; }
.mw-footer h3 {
  font: 700 .75rem/1 var(--mw-f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--mw-ink); margin: 0 0 .8rem;
}
.mw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mw-footer a { color: inherit; text-decoration: none; }
.mw-footer a:hover { color: var(--mw-ink); text-decoration: underline; text-underline-offset: 3px; }
.mw-footer-base {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--mw-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: .9rem;
}
@media (max-width: 860px) {
  .mw-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .mw-footer-grid > :first-child { grid-column: 1 / -1; }
  .mw-footer .mw-logo img { height: 72px; }
}

/* ---------- every public and portal page ----------
   The public and portal layouts put .mw-site on <body>. Old Tailwind views
   pick up the brand through the remapped color scales in
   app/assets/tailwind/application.css; this adds the display face to their
   headings. Base layer, so a view's own utilities still win. */
@layer base {
  .mw-site { color: var(--mw-ink); }
  .mw-site h1, .mw-site h2, .mw-site h3 {
    font-family: var(--mw-f-display); font-stretch: 88%; letter-spacing: -0.01em;
  }
}

/* ---------- inner-page header band (shared/_page_hero) ---------- */
.mw-page-hero {
  position: relative; overflow: hidden; background: var(--mw-hero-bg);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.6rem, 5vw, 4rem);
}
.mw-page-hero .mw-wrap { position: relative; z-index: 1; display: grid; gap: 1rem; justify-items: start; }
.mw-page-hero h1 { font-size: var(--mw-step-3); max-width: 22ch; }
.mw-page-hero .mw-lede { margin-top: 0; max-width: 46ch; }
.mw-page-hero-burst {
  position: absolute; right: max(0px, calc((100vw - 1180px) / 2 - 40px)); bottom: -6px;
  width: clamp(180px, 22vw, 280px); height: auto; opacity: .9; pointer-events: none;
}
.mw-hero-note {
  display: inline-block; margin-top: .4rem; background: #fff; border: 2px solid var(--mw-teal);
  padding: .45rem .85rem; font-family: var(--mw-f-hand); font-size: 1.25rem; line-height: 1.3;
  transform: rotate(-1.5deg);
}
@media (max-width: 820px) {
  .mw-page-hero { padding-block: 2.4rem 2.2rem; }
  .mw-page-hero h1 { font-size: 2.1rem; line-height: 1.02; }
  .mw-page-hero-burst { width: 120px; right: -20px; bottom: -10px; opacity: .45; }
}

/* =====================================================================
   Home page and the pages built from its sections (.mw-page)
   ===================================================================== */
.mw-page {
  background: var(--mw-paper); color: var(--mw-ink);
  font-family: var(--mw-f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  --mw-step-1: 1.25rem;
  --mw-step-3: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  --mw-step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);
}
/* Element resets sit in Tailwind's base layer so they beat its preflight but
   never its utilities (the reused testimonials partial is styled with them). */
@layer base {
  .mw-page img { max-width: 100%; display: block; }
  .mw-page h1, .mw-page h2, .mw-page h3 {
    font-family: var(--mw-f-display); font-stretch: 85%; font-weight: 800;
    line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance;
  }
  .mw-page p { margin: 0; }
  .mw-page a { color: inherit; }
}
.mw-page a.mw-btn-primary { color: #fff; }

.mw-eyebrow { font: 700 .8rem/1 var(--mw-f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mw-teal-deep); }
.mw-section-head { display: grid; gap: .9rem; max-width: 44rem; }
.mw-section-head h2 { font-size: var(--mw-step-3); }
.mw-section-head p { color: var(--mw-ink-soft); font-size: var(--mw-step-1); max-width: 40ch; }

/* ---------- hero ---------- */
.mw-hero { background: var(--mw-hero-bg); padding-block: clamp(5.5rem, 9vw, 8rem) clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.mw-hero > .mw-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mw-hero h1 { font-size: var(--mw-step-4); }
.mw-hero h1 em { font-style: normal; color: var(--mw-teal-deep); position: relative; white-space: nowrap; }
.mw-hero h1 em svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; }
.mw-lede { font-size: var(--mw-step-1); color: var(--mw-ink-soft); margin-top: 1.4rem; max-width: 34ch; }
.mw-hero-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.mw-hero-topics li { font-weight: 700; font-size: .95rem; line-height: 1.4; padding: .38rem .85rem; border-radius: 999px; color: #fff; }
/* Darker shades of the logo colors so the white labels pass 4.5:1. */
.mw-hero-topics li:nth-child(1) { background: #2E7A44; }
.mw-hero-topics li:nth-child(2) { background: #246F9C; }
.mw-hero-topics li:nth-child(3) { background: #B8443A; }
.mw-hero-topics li:nth-child(4) { background: #B23A70; }
.mw-hero-topics li:nth-child(5) { background: #fff; color: var(--mw-ink); }
.mw-ctas { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: 2rem; }
.mw-fine { margin-top: 1rem; font-size: .92rem; color: var(--mw-ink-soft); }

.mw-hero-photo { position: relative; }
.mw-streamers { position: absolute; left: -8%; top: -100px; width: 116%; height: auto; z-index: 0; pointer-events: none; }
.mw-print {
  position: relative; z-index: 1; margin: 0; background: #fff; padding: 12px 12px 54px;
  box-shadow: 0 1px 2px rgba(23,36,74,.12), 0 18px 40px -12px rgba(23,36,74,.35);
  transform: rotate(1.6deg);
}
.mw-print img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.mw-print figcaption { position: absolute; left: 22px; bottom: 14px; font-family: var(--mw-f-hand); font-size: 1.5rem; color: var(--mw-ink); }
.mw-mail-day {
  position: absolute; z-index: 2; left: -28px; top: 36px; display: flex; align-items: center; gap: .75rem;
  background: #fff; border-radius: 12px; padding: .75rem 1rem .75rem .8rem;
  box-shadow: 0 1px 2px rgba(23,58,68,.10), 0 12px 28px -10px rgba(23,58,68,.40);
}
.mw-mail-day .mw-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--mw-teal-tint); display: grid; place-items: center; flex: none; }
.mw-mail-day b { display: block; font: 800 1.15rem/1.1 var(--mw-f-display); font-stretch: 88%; }
.mw-mail-day span:not(.mw-ico) { display: block; font-size: .85rem; color: var(--mw-ink-soft); line-height: 1.3; }

/* ---------- what's in the envelope (notebook band) ---------- */
.mw-notebook {
  background-color: var(--mw-sheet);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, var(--mw-rule) 33px 34px);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.mw-envelope { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 2.6rem; }
.mw-envelope figure { margin: 0; position: relative; }
.mw-envelope figure img { width: 100%; height: auto; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 40%; border-radius: 4px; box-shadow: 0 16px 40px -18px rgba(23,36,74,.45); }
.mw-pin {
  position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--mw-red);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(23,58,68,.35);
  font: 800 1rem/30px var(--mw-f-display); text-align: center; color: #fff;
}
.mw-contents { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.mw-contents li { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; align-items: start; }
.mw-contents .mw-pin { position: static; }
.mw-contents h3 { font-size: 1.5rem; font-stretch: 90%; margin-bottom: .25rem; }
.mw-contents p { color: var(--mw-ink-soft); }
.mw-addr {
  font-family: var(--mw-f-mono); font-size: .95rem; color: var(--mw-ink); background: #fff;
  border: 1px solid var(--mw-line); padding: .7rem .9rem; margin-top: .6rem; line-height: 1.45; display: inline-block;
}
.mw-more-link { display: inline-block; margin-top: 1.8rem; font-weight: 700; text-underline-offset: 4px; }

/* ---------- picked for your kid ---------- */
.mw-picked { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.mw-picked > .mw-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mw-picked-photo { position: relative; }
.mw-picked-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.mw-note {
  position: absolute; right: -14px; bottom: 28px; background: #fff; border: 2px solid var(--mw-teal);
  padding: .55rem .9rem; font-family: var(--mw-f-hand); font-size: 1.35rem; line-height: 1.3;
  transform: rotate(-3deg); box-shadow: 0 6px 16px -8px rgba(23,36,74,.5);
}
.mw-topics { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.mw-topics a {
  display: block; border: 1.5px solid var(--mw-ink); border-radius: 999px; padding: .4rem .9rem;
  font-weight: 600; font-size: .95rem; line-height: 1.4; background: #fff; text-decoration: none;
}
.mw-topics a:hover { background: var(--mw-ink); color: #fff; }
.mw-ages { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.2rem; border-top: 2px solid var(--mw-ink); }
.mw-ages a { display: block; padding: 1rem 1rem 0 0; text-decoration: none; }
.mw-ages a + a { padding-left: 1rem; border-left: 1px solid var(--mw-line); }
.mw-ages b { font: 800 1.6rem/1 var(--mw-f-display); font-stretch: 85%; display: block; }
.mw-ages a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.mw-ages p { font-size: .95rem; color: var(--mw-ink-soft); margin-top: .35rem; }

/* ---------- how it works ---------- */
.mw-how { background: var(--mw-teal-deep); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.mw-how .mw-eyebrow { color: #fff; }
.mw-how h2 { font-size: var(--mw-step-3); margin-top: .9rem; }
.mw-steps { padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: mw-step; }
.mw-steps li { list-style: none; border-top: 2px solid rgba(255,255,255,.35); padding-top: 1.1rem; }
.mw-steps li::before {
  counter-increment: mw-step; content: counter(mw-step);
  font: 800 3.2rem/1 var(--mw-f-display); color: #fff; opacity: .9; display: block; margin-bottom: .6rem;
}
.mw-steps h3 { font-size: 1.55rem; font-stretch: 90%; margin-bottom: .5rem; }
.mw-steps p { color: #E3F1EF; }

/* ---------- mail day photo wall ---------- */
.mw-wall { padding-block: clamp(3rem, 6vw, 5rem) 0; }
.mw-wall-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 340px; gap: 14px; margin-top: 2rem; }
.mw-wall-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.mw-wall-grid .mw-w-mailbox { object-position: 50% 40%; }
.mw-wall-grid .mw-w-opening { object-position: 50% 50%; }
.mw-wall-grid .mw-w-fridge { object-position: 60% 62%; }

/* ---------- plans ---------- */
.mw-plans { padding-block: clamp(3.5rem, 7vw, 6rem); }
.mw-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.4rem; }
.mw-plan { border: 2px solid var(--mw-ink); border-radius: 14px; padding: 1.6rem; display: grid; gap: 1rem; align-content: start; background: #fff; }
.mw-plan.mw-feature { background: var(--mw-sheet); }
.mw-plan h3 { font-size: 1.9rem; font-stretch: 85%; }
.mw-when { font-family: var(--mw-f-mono); font-size: .9rem; color: var(--mw-ink-soft); }
.mw-price { display: flex; align-items: baseline; gap: .35rem; font-variant-numeric: tabular-nums; }
.mw-price b { font: 800 3rem/1 var(--mw-f-display); font-stretch: 85%; }
.mw-price span { color: var(--mw-ink-soft); }
.mw-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; color: var(--mw-ink-soft); }
.mw-plan ul li::before { content: "✓"; color: var(--mw-teal); font-weight: 800; margin-right: .5rem; }
.mw-annual {
  border-top: 1px dashed #A8B4CC; padding-top: .9rem; display: flex; justify-content: space-between;
  gap: .5rem 1rem; align-items: center; flex-wrap: wrap; font-size: .97rem;
}
.mw-annual > span { flex: 1 1 14rem; min-width: 0; }
.mw-annual > a { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; }
.mw-annual em { font-style: normal; background: var(--mw-teal-deep); color: #fff; font-size: .78rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; margin-left: .35rem; white-space: nowrap; }
.mw-annual a { font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.mw-plan-note { margin-top: 1.4rem; color: var(--mw-ink-soft); font-size: .97rem; max-width: 62ch; }

/* ---------- gift packages ---------- */
.mw-gifts { background: var(--mw-blush); padding-block: clamp(3.5rem, 7vw, 6rem); }
.mw-gifts .mw-eyebrow { color: #B4323C; }
.mw-gift-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mw-gifts .mw-section-head p { color: var(--mw-ink); }
.mw-gift-facts { margin: .4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .97rem; font-weight: 600; }
.mw-gift-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mw-gift-tags-4 { grid-template-columns: repeat(2, 1fr); }
.mw-gift-tags-row { grid-template-columns: repeat(4, 1fr); margin-top: 2.2rem; }
.mw-tag {
  background: #fff; border: 2px solid var(--mw-ink); border-radius: 10px; padding: 1.4rem 1.1rem 1.2rem;
  position: relative; text-align: center; display: grid; gap: .3rem;
}
.mw-tag::before {
  content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; border: 2px solid var(--mw-ink); background: var(--mw-blush);
}
.mw-tag h3 { font-size: 1.6rem; margin-top: .8rem; }
.mw-tag .mw-amt { font: 800 2.4rem/1 var(--mw-f-display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.mw-tag .mw-amt small { font: 600 .88rem/1 var(--mw-f-body); color: var(--mw-ink-soft); margin-left: .25rem; }
.mw-tag p { color: var(--mw-ink-soft); font-size: .88rem; }
.mw-tag .mw-btn { margin-top: .6rem; padding: .7rem .8rem; font-size: .95rem; }
.mw-gift-after { margin-top: 2rem; display: grid; gap: .5rem; max-width: 70ch; font-size: .97rem; }

/* ---------- guarantee (pricing) ---------- */
.mw-guarantee { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.mw-guarantee > .mw-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: start; }
.mw-guarantee { border-top: 1px solid var(--mw-line); }
.mw-guarantee h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.mw-guarantee p { color: var(--mw-ink-soft); }
.mw-guarantee-links { margin-top: 1rem; font-weight: 700; }
.mw-guarantee-links a { color: var(--mw-ink); text-underline-offset: 4px; }

/* ---------- photo + text rows (how it works) ---------- */
.mw-split { padding-block: clamp(3.5rem, 7vw, 6rem); }
.mw-split-sheet { background: var(--mw-sheet); }
.mw-split > .mw-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mw-split-flip > .mw-wrap { grid-template-columns: 1.1fr .9fr; }
.mw-split-flip .mw-split-photo { order: 2; }
.mw-split-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 4px; box-shadow: 0 16px 40px -18px rgba(23,36,74,.45); }
.mw-split-text { display: grid; gap: 1rem; justify-items: start; }
.mw-split-text h2 { font-size: var(--mw-step-3); }
.mw-split-text > p { color: var(--mw-ink-soft); font-size: var(--mw-step-1); max-width: 40ch; }
.mw-step-no { font: 800 4rem/1 var(--mw-f-display); color: var(--mw-coral); }
.mw-split:nth-of-type(3n+2) .mw-step-no { color: var(--mw-teal); }
.mw-split:nth-of-type(3n) .mw-step-no { color: var(--mw-sky); }
.mw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mw-checks li::before { content: "✓"; color: var(--mw-teal); font-weight: 800; margin-right: .55rem; }
.mw-split-aside { font-family: var(--mw-f-hand); font-size: 1.3rem; line-height: 1.3; color: var(--mw-ink); }
.mw-split .mw-more-link { margin-top: 0; }

/* ---------- discovery page blocks (discover/_plans, _explore) ---------- */
.mw-plans-short { background: var(--mw-sheet); }
.mw-plan-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mw-plan-copy { color: var(--mw-ink-soft); }
.mw-plans-short .mw-plan { background: #fff; }
.mw-plans-short .mw-plan.mw-feature { background: var(--mw-teal-tint); }
.mw-plans-short .mw-more-link { color: var(--mw-ink); }
.mw-explore { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--mw-line); }
.mw-explore > .mw-wrap { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 2rem 3rem; }
.mw-explore h2 { font-size: 1.5rem; }
.mw-explore .mw-topics { margin-top: 1rem; }
.mw-explore-links { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; font-weight: 600; }
.mw-explore-links a { text-underline-offset: 4px; }

/* ---------- reviews ---------- */
.mw-reviews { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--mw-sheet); }
.mw-reviews .mw-section-head { margin-bottom: 2rem; }

/* ---------- closing ---------- */
.mw-closing { padding-block: clamp(4rem, 8vw, 7rem); }
.mw-closing > .mw-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; }
.mw-closing h2 { font-size: var(--mw-step-4); }
.mw-closing-side { display: grid; gap: 1rem; justify-items: start; }
.mw-closing-side p { color: var(--mw-ink-soft); }

/* ---------- sticky start bar (phones) ---------- */
.mw-mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  gap: .75rem; align-items: center; justify-content: space-between;
  padding: .7rem max(16px, env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--mw-line);
  box-shadow: 0 -8px 24px -16px rgba(23,58,68,.4);
  font-family: var(--mw-f-body); color: var(--mw-ink-soft); font-size: .85rem; line-height: 1.3;
  /* Tailwind v4's translate-y-full sets the translate property, not transform. */
  transition: translate .3s ease, opacity .3s ease;
}
.mw-mobile-cta b { display: block; color: var(--mw-ink); font-size: 1rem; }
.mw-mobile-cta .mw-btn { padding: .8rem 1.1rem; font-size: .98rem; flex: none; }

/* ================= phones ================= */
@media (max-width: 820px) {
  .mw-page { --mw-bleed: max(20px, env(safe-area-inset-left, 0px)); }
  .mw-page section { scroll-margin-top: 16px; }

  .mw-hero > .mw-wrap, .mw-envelope, .mw-picked > .mw-wrap, .mw-gift-layout, .mw-closing > .mw-wrap, .mw-guarantee > .mw-wrap, .mw-split > .mw-wrap, .mw-explore > .mw-wrap, .mw-plan-grid-3 { grid-template-columns: 1fr; }
  .mw-split { padding-block: 2.6rem; }
  .mw-split > .mw-wrap { gap: 1.6rem; }
  .mw-split-flip .mw-split-photo { order: 0; }
  .mw-split-photo { margin-inline: calc(-1 * var(--mw-bleed)); }
  /* Keep faces in the short phone crop: the portrait photos have them near the top. */
  .mw-split-photo img { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; object-position: center 15%; }
  .mw-split-text h2 { font-size: 1.9rem; }
  .mw-split-text > p { font-size: 1.02rem; }
  .mw-step-no { font-size: 3rem; }

  /* hero: words first, one wide photo after */
  .mw-hero { padding-block: 1.4rem 2.6rem; overflow: visible; }
  .mw-hero > .mw-wrap { gap: 0; }
  .mw-hero h1 { font-size: 2.55rem; line-height: .98; }
  .mw-lede { font-size: 1.05rem; margin-top: .9rem; line-height: 1.5; }
  .mw-hero-topics li { font-size: .85rem; padding: .3rem .7rem; }
  .mw-hero-topics li:nth-child(5) { display: none; }
  .mw-ctas { margin-top: 1.3rem; flex-direction: column; align-items: stretch; gap: .35rem; }
  .mw-ctas .mw-btn-ghost { padding: .6rem; }
  .mw-fine { margin-top: .2rem; text-align: center; font-size: .85rem; }
  .mw-hero-photo { margin: 5.2rem calc(-1 * var(--mw-bleed)) 0; }
  .mw-streamers { left: 2%; width: 96%; top: -86px; }
  .mw-print { padding: 0; transform: none; box-shadow: none; }
  .mw-print img { aspect-ratio: 5 / 4; object-position: center 24%; }
  .mw-print figcaption { display: none; }
  .mw-mail-day {
    left: 50%; bottom: -24px; top: auto; transform: translateX(-50%); width: max-content;
    padding: .55rem 1rem .55rem .6rem;
  }
  .mw-mail-day .mw-ico { width: 34px; height: 34px; }
  .mw-mail-day b { font-size: 1rem; }

  /* shared section rhythm */
  .mw-notebook, .mw-picked, .mw-how, .mw-plans, .mw-gifts, .mw-reviews { padding-block: 3rem; }
  .mw-notebook { padding-top: 3.6rem; }
  .mw-section-head { gap: .6rem; }
  .mw-section-head h2, .mw-how h2 { font-size: 2.05rem; }
  .mw-section-head p { font-size: 1.02rem; }

  /* envelope: full-width photo, compact list */
  .mw-envelope { margin-top: 1.5rem; gap: 1.6rem; }
  .mw-envelope figure { margin-inline: calc(-1 * var(--mw-bleed)); }
  .mw-envelope figure img { aspect-ratio: 1 / 1; border-radius: 0; box-shadow: none; }
  .mw-pin { width: 30px; height: 30px; line-height: 26px; font-size: .92rem; }
  .mw-contents { gap: 1.1rem; }
  .mw-contents li { grid-template-columns: 30px 1fr; gap: .8rem; }
  .mw-contents h3 { font-size: 1.22rem; }
  .mw-contents p { font-size: .98rem; line-height: 1.5; }

  /* picked: photo strip then text */
  .mw-picked > .mw-wrap { gap: 2.2rem; }
  .mw-picked-photo { margin-inline: calc(-1 * var(--mw-bleed)); }
  .mw-picked-photo img { aspect-ratio: 4 / 3; border-radius: 0; object-position: center 35%; }
  .mw-note { right: 16px; bottom: -16px; font-size: 1.15rem; }
  .mw-topics { margin-top: 1.2rem; gap: .45rem; }
  .mw-topics a { font-size: .88rem; padding: .35rem .75rem; }
  .mw-ages { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .mw-ages a, .mw-ages a + a { padding: .8rem 0; border-left: 0; }
  .mw-ages a + a { border-top: 1px solid var(--mw-line); }

  /* how: number beside each step */
  .mw-steps { grid-template-columns: 1fr; margin-top: 1.6rem; gap: 1.3rem; }
  .mw-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: .6rem; padding-top: .9rem; }
  .mw-steps li::before { font-size: 2.4rem; margin: 0; grid-row: span 2; }
  .mw-steps h3 { font-size: 1.25rem; margin-bottom: .2rem; }

  /* photo wall: wide photo on top, two below */
  .mw-wall { padding-top: 3rem; }
  .mw-wall-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px; grid-auto-rows: 160px; gap: 10px; margin-top: 1.4rem; }
  .mw-wall-grid > :first-child { grid-column: 1 / -1; }

  /* plans */
  .mw-plan-grid { grid-template-columns: 1fr; margin-top: 1.6rem; gap: 1rem; }
  .mw-plan { padding: 1.2rem; gap: .8rem; }
  .mw-plan h3 { font-size: 1.6rem; }
  .mw-price b { font-size: 2.4rem; }
  .mw-annual { font-size: .92rem; }

  /* gifts: one row per package */
  .mw-gift-layout { gap: 1.6rem; }
  .mw-gift-tags { grid-template-columns: 1fr; gap: .7rem; }
  .mw-tag { grid-template-columns: 1fr auto; text-align: left; align-items: center; padding: 1rem 1.1rem; column-gap: 1rem; }
  .mw-tag::before { display: none; }
  .mw-tag h3 { margin-top: 0; font-size: 1.4rem; }
  .mw-tag .mw-amt { font-size: 1.9rem; text-align: right; }
  .mw-tag p, .mw-tag .mw-btn { grid-column: 1 / -1; }

  .mw-closing { padding-block: 3.4rem; }
  .mw-closing h2 { font-size: 2.3rem; }

  .mw-mobile-cta { display: flex; }
}
@media (min-width: 821px) {
  .mw-mobile-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mw-btn, .mw-mobile-cta { transition: none; }
}
