/* ==========================================================================
   Mister Cloud · site design system
   --------------------------------------------------------------------------
   Brand rules (Brand & Design Kit v1.0):
   - Logo: official cloud mark + "MISTER.CLOUD" wordmark, Fredoka, Mister Cloud
     Blue. Never recolor, stretch, rotate, or crowd it.
   - Type: Fredoka for display/headings, Nunito for body/UI.
   - Color: core brand blues for the logo; the Clear Sky spectrum (Signal Red,
     Amber, Sage, Slate Teal…) is the applied, grown-up accent palette.
   ========================================================================== */

:root {
  /* Core brand (logo only, plus focus rings) */
  --mc-blue: #0A8CF5;
  --mc-navy: #0B4EA6;
  --mc-coral: #FC4D4A;
  --ink: #0A1B2E;            /* Ink Navy: headings */

  /* Clear Sky spectrum (applied palette) */
  --signal-red: #A5453C;     /* eyebrows, links, button hover */
  --clay: #B4573F;           /* primary buttons (Signal Red ↔ Amber, AA on white text) */
  --amber: #C17337;
  --gold: #C2963E;
  --sage: #687E5B;
  --slate-teal: #537489;
  --deep-navy: #2A3358;

  /* Tints */
  --sage-tint: #C9D2BE;      /* top bar */
  --sage-wash: #E3E8D9;      /* family section */
  --sky-wash: #DCEBF5;       /* info banners, receipts strip */
  --sky-pill: #C4DFF0;       /* active chips (play) */
  --clay-wash: #F4E2D8;
  --amber-wash: #FBEBD6;

  /* Neutrals */
  --cream: #FCF8EF;          /* page */
  --cream-2: #F6EFE3;        /* alt sections */
  --card: #FFFDF9;
  --line: #E8DFD0;
  --text: #2C3A45;
  --muted: #5E6A73;

  --font-display: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(60, 44, 20, .06), 0 8px 24px -12px rgba(60, 44, 20, .18);
  --shadow-lg: 0 2px 4px rgba(60, 44, 20, .06), 0 24px 48px -20px rgba(60, 44, 20, .28);
  --container: 1200px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mc-blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--cream-2); }
.section-sage { background: var(--sage-wash); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  body { font-size: 16px; }
}

/* ---------- type ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: 10px;
}
.display {
  font-size: clamp(2.4rem, 4.7vw, 3.9rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.display-warm { display: block; color: var(--clay); font-size: .7em; margin-top: .06em; letter-spacing: -0.015em; }
.h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 600; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--text); max-width: 34ch; }
.sub { font-size: 1.12rem; color: var(--text); margin-top: 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 8px 18px -10px rgba(165, 69, 60, .8); }
.btn-primary:hover { background: var(--signal-red); }
.btn-outline { background: var(--card); color: var(--ink); border-color: #CDBFA9; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sage { background: var(--sage); color: #fff; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.btn-sage:hover { background: #57704B; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--signal-red); font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(3px); }
button.link-arrow { background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0 0 1px; cursor: pointer; font-size: inherit; }

/* ---------- top bar & header ---------- */
.topbar {
  background: var(--sage-tint);
  color: #34442C;
  font-size: 14px; font-weight: 600;
  text-align: center; padding: 7px 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.topbar svg { width: 18px; height: 18px; color: #5F7552; flex: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 248, 239, .94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(60, 44, 20, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

/* Brand lockup: mark + MISTER.CLOUD wordmark (Fredoka, Mister Cloud Blue). */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; flex: none; }
.brand img { width: 56px; height: auto; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1;
  letter-spacing: .01em; color: var(--mc-blue); text-transform: uppercase;
}
.wordmark sup { font-size: .38em; font-weight: 600; vertical-align: top; position: relative; top: -.1em; margin-left: 1px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link {
  position: relative; padding: 10px 14px; text-decoration: none;
  font-weight: 700; font-size: 16px; color: var(--ink); border-radius: 10px;
}
.nav a.nav-link:hover { background: rgba(104, 126, 91, .1); }
.nav a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--sage);
}
.nav .btn { margin-left: 14px; min-width: 132px; }
.nav .btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--sage); }
.menu-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: 0 18px 30px -24px rgba(60, 44, 20, .6);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a.nav-link { padding: 14px 8px; font-size: 18px; }
  .nav a.nav-link[aria-current="page"]::after { left: 8px; right: auto; width: 28px; bottom: 6px; }
  .nav .btn { margin: 10px 0 0; }
  .header-inner { height: 66px; }
  .brand img { width: 46px; }
  .wordmark { font-size: 21px; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #A9A090; }
.breadcrumb a { color: var(--signal-red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 66% 30%, rgba(196, 223, 240, .75), rgba(196, 223, 240, 0) 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(196, 223, 240, .55), rgba(196, 223, 240, 0) 70%),
    var(--cream);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; min-height: 440px; gap: 12px; }
.hero-copy { padding: 44px 0 52px; }
.hero-copy .display { margin-bottom: 18px; }
.hero-copy .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.hero-art { position: relative; align-self: stretch; margin-right: calc((100vw - min(100vw, var(--container))) / -2 - 24px); }
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.hero--with-crumb .hero-copy { padding-top: 22px; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; margin: 0 -24px; height: 260px; }
  .hero-art img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); object-position: center; }
  .hero-copy { padding: 8px 0 40px; }
  .hero--with-crumb .hero-copy { padding-top: 8px; }
}

/* Learn hero: the wide living-room art, framed on its scene. */
.hero-art--learn img { object-position: 84% center; }

/* ---------- feature strip (icon + label, with dividers) ---------- */
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px 0; }
.feature { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 18px; }
.feature + .feature { border-left: 1.5px solid #D9CFBF; }
.feature svg { width: 48px; height: 48px; flex: none; }
.feature strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.feature span { color: var(--text); }
@media (max-width: 760px) {
  .feature-strip { grid-template-columns: 1fr; gap: 14px; }
  .feature { justify-content: flex-start; }
  .feature + .feature { border-left: 0; }
}

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-media.short { aspect-ratio: 12 / 5; }
.card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-red); }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
.card-text { color: var(--text); }
.card-meta { color: var(--text); font-size: 16px; }
.card-body .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 8px; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover .card-title { color: var(--signal-red); }

/* ---------- chips (filters) & tabs ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--card); border: 1.5px solid #D8CDBB; color: var(--ink);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--sage); }
.chip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.chips--sky .chip[aria-pressed="true"] { background: var(--sky-pill); border-color: var(--sky-pill); color: var(--ink); }
.chip-divider { width: 1.5px; height: 30px; background: #D8CDBB; margin: 0 8px; }
@media (max-width: 640px) { .chip-divider { display: none; } .chip { min-height: 38px; padding: 0 15px; font-size: 14px; } }

.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab {
  background: none; border: 0; padding: 12px 16px; font-weight: 700; font-size: 16.5px; color: var(--text);
  border-bottom: 3px solid transparent; margin-bottom: -1.5px; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--sage); }
.select {
  appearance: none; -webkit-appearance: none;
  min-height: 42px; padding: 0 40px 0 16px; border-radius: 999px; border: 1.5px solid #D8CDBB; background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A1B2E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-weight: 600; font-size: 15px; cursor: pointer;
}

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.badge-sage { background: var(--sage); color: #fff; }
.badge-now { background: var(--clay); color: #fff; }
.badge-sky { background: var(--sky-pill); color: var(--deep-navy); }
.badge-cream { background: rgba(255, 253, 249, .85); color: var(--signal-red); border: 1px solid rgba(165, 69, 60, .25); }
.badge-float { position: absolute; top: 12px; right: 12px; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* ---------- newsletter band ---------- */
.newsletter {
  position: relative; overflow: hidden;
  background:
    radial-gradient(30% 90% at 8% 100%, rgba(140, 165, 120, .45), transparent 70%),
    radial-gradient(30% 90% at 96% 100%, rgba(140, 165, 120, .4), transparent 70%),
    radial-gradient(70% 120% at 50% 0%, rgba(196, 223, 240, .85), transparent 70%),
    linear-gradient(180deg, #E4EFF3, #E8EDDC);
  padding: 26px 0;
}
.newsletter-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 430px); align-items: center; gap: 28px; }
.newsletter-art { width: 200px; height: auto; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 48%, #000 62%, transparent 100%); }
.newsletter h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 600; letter-spacing: -0.02em; }
.newsletter p { color: var(--text); margin-top: 4px; }
.pill-form { display: flex; background: #fff; border: 1.5px solid #D6CBB8; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.pill-form input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 18px; font-size: 16px; outline: none; }
.pill-form .btn { min-height: 46px; padding: 0 20px; }
.form-msg { font-size: 14px; margin-top: 8px; color: var(--sage); font-weight: 700; min-height: 1.2em; }
@media (max-width: 900px) {
  .newsletter-inner { grid-template-columns: 120px 1fr; }
  .newsletter-art { width: 120px; }
  .newsletter form { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .newsletter-art { margin: 0 auto; width: 110px; }
  .pill-form .btn { padding: 0 16px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 24px 0 28px; font-size: 14.5px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand .brand img { width: 46px; }
.footer-brand .wordmark { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.footer-links li + li::before { content: "·"; margin: 0 12px; color: #A9A090; }
.footer-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.footer-links a:hover { color: var(--signal-red); }
.footer-meta { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.footer-meta .footer-links a { font-weight: 600; color: var(--muted); }

/* ---------- dialog (modals) ---------- */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--card); color: var(--text);
  width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(10, 27, 46, .45); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 249, .92); box-shadow: var(--shadow); cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink);
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: var(--cream-2); min-height: 280px; position: relative; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.modal-body h2 { font-size: 1.9rem; line-height: 1.1; font-weight: 600; }
.modal-narrow { width: min(640px, calc(100vw - 32px)); }
@media (max-width: 700px) { .modal-grid { grid-template-columns: 1fr; } .modal-media { min-height: 200px; aspect-ratio: 16/10; } .modal-body { padding: 24px; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23687E5B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: flex; gap: 12px; }
.steps-list li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--clay-wash); color: var(--signal-red); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.callout { background: var(--amber-wash); border-radius: 14px; padding: 14px 16px; }
.callout strong { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.label { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; font-size: 15px;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- misc shared pieces ---------- */
.info-banner { display: flex; align-items: center; gap: 12px; background: var(--sky-wash); border-radius: 12px; padding: 10px 16px; color: var(--deep-navy); font-size: 15px; }
.info-banner svg { width: 26px; height: 26px; flex: none; }
.info-banner b { letter-spacing: .14em; text-transform: uppercase; font-size: 13.5px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.icon-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.icon-item { display: flex; gap: 16px; align-items: center; padding: 6px 24px; }
.icon-item + .icon-item { border-left: 1.5px solid #D9CFBF; }
.icon-item svg { width: 54px; height: 54px; flex: none; }
.icon-item strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .icon-row { grid-template-columns: 1fr; gap: 16px; } .icon-item + .icon-item { border-left: 0; } .icon-item { padding: 0; } }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border: 1.5px dashed #D8CDBB; border-radius: var(--radius); color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }

/* ==========================================================================
   Page-specific
   ========================================================================== */

/* Home: message journey diorama */
.journey-figure { margin: 26px 0 0; }
.section-journey { background: #FAF4EB; }
.journey-figure img { width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.journey-figure figcaption { margin-top: 12px; text-align: right; }

/* About */
.story { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.story-art img { border-radius: 40% 46% 18px 18px / 24% 26% 18px 18px; }
.story p + p { margin-top: 14px; }
.people { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.person { display: inline-flex; align-items: center; gap: 10px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 15px; }
.person svg { width: 22px; height: 22px; color: var(--sage); }
.person b { color: var(--ink); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 24px; } }
.cta-center { text-align: center; padding: 8px 0 44px; }
.cta-center .hero-actions { justify-content: center; margin-top: 16px; }

/* Play: feature banners */
.feature-banner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 28px;
  background: linear-gradient(110deg, #D2E6F2, #E6F0F4); border-radius: var(--radius-lg); overflow: hidden; padding: 20px 32px 20px 20px;
}
.feature-banner img { border-radius: 14px; }
.feature-banner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; margin: 10px 0 6px; }
.feature-banner p { margin-bottom: 18px; }
.split-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.mini-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; border-radius: var(--radius-lg); overflow: hidden; min-height: 200px; }
.mini-banner img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.mini-banner .mb-copy { padding: 22px 24px; }
.mini-banner h3 { font-size: 1.65rem; font-weight: 600; margin: 8px 0 4px; }
.mini-banner p { margin-bottom: 16px; }
.mini-banner--clay { background: linear-gradient(120deg, #C9785C, #D9937A); color: #fff; }
.mini-banner--clay h3 { color: #fff; }
.mini-banner--clay .badge { background: rgba(255,255,255,.22); color: #fff; }
.mini-banner--cream { background: var(--card); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .feature-banner { grid-template-columns: 1fr; padding: 16px 16px 24px; }
  .split-banners { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .mini-banner { grid-template-columns: 1fr; } .mini-banner img { aspect-ratio: 16/10; } }

/* Shop */
.shop-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.shop-subbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-subbar .tabs { flex: 1; min-width: 280px; }
.product-card .card-media { aspect-ratio: 16 / 10.5; }
.product-card .card-body { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.product-card .card-title { font-size: 1.2rem; }
.product-price { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-top: 4px; }
.product-ph {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background: radial-gradient(70% 70% at 50% 40%, rgba(255,255,255,.75), transparent 70%), var(--ph, var(--cream-2));
}
.product-ph .ph-emoji { font-size: 64px; line-height: 1; filter: saturate(.75); }
.product-ph .ph-mark { position: absolute; left: 14px; bottom: 12px; width: 40px; height: auto; opacity: .95; }   /* never stretch the mark */
.show-all { display: flex; justify-content: center; margin-top: 22px; }
.shop-group + .shop-group { margin-top: 44px; padding-top: 36px; border-top: 1.5px dashed var(--line); }
.group-head { margin-bottom: 16px; }
.group-head .badge { margin-bottom: 8px; }
.group-head .h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: 2px; }
.chips .chip-now[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); }
/* Home: "available now" band */
.now-band { display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 28px; padding: 18px 28px 18px 18px; background: linear-gradient(110deg, var(--clay-wash), var(--amber-wash)); border: 0; }
.now-band img { border-radius: 14px; }
.now-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin-top: 6px; }
.now-band .hero-actions { flex-wrap: nowrap; }
@media (max-width: 900px) { .now-band { grid-template-columns: 1fr; text-align: center; padding: 18px; } .now-band img { margin: 0 auto; max-width: 260px; } .now-band .hero-actions { justify-content: center; flex-wrap: wrap; } }
.shop-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.paths-banner {
  display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px;
  background: linear-gradient(110deg, #D6E8F3, #E6EFF2); border-radius: var(--radius-lg); padding: 14px 28px 14px 18px;
}
.paths-banner h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; }
@media (max-width: 760px) { .paths-banner { grid-template-columns: 1fr; text-align: center; padding: 18px; } .paths-banner img { margin: 0 auto; max-width: 160px; } }
.founding { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--sage); }

/* Learn */
.steps-strip { background: var(--sky-wash); }
.steps-strip ol { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.steps-strip li { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--deep-navy); font-size: 14.5px; }
.steps-strip li a { text-decoration: none; }
.steps-strip li + li { border-left: 1.5px solid rgba(42, 51, 88, .18); }
@media (max-width: 640px) { .steps-strip li { font-size: 12px; letter-spacing: .06em; padding: 0 6px; } }
.num-card { padding: 22px 24px; }
.num { width: 38px; height: 38px; border-radius: 50%; background: var(--sky-wash); color: var(--deep-navy); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; flex: none; }
.num-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.distinctions .num-card { display: flex; gap: 16px; }
.distinctions .num { margin-bottom: 0; }

.receipt { position: relative; }
.receipt-head { background: var(--slate-teal); color: #fff; padding: 14px 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt-head b { letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.receipt-head svg { width: 34px; height: 34px; opacity: .95; }
.receipt .card-body { margin-top: -16px; background: var(--card); border-radius: var(--radius) var(--radius) 0 0; gap: 10px; }
.receipt-moment { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.receipt-paper {
  font-family: var(--font-mono); font-size: 13.5px; background: #fff; border: 1px dashed #CFC4B2; border-radius: 10px; padding: 6px 14px; margin: 4px 0;
  -webkit-mask: radial-gradient(6px at 50% 100%, transparent 98%, #000) 50% / 14px 100% repeat-x;
}
.receipt-paper dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.receipt-paper dt, .receipt-paper dd { margin: 0; padding: 7px 0; border-bottom: 1px solid #EEE7DA; }
.receipt-paper dt { color: var(--muted); padding-right: 14px; }
.receipt-paper dd { color: var(--ink); font-weight: 700; text-align: right; }
.receipt-paper dd.unknown { color: var(--signal-red); }
.receipt-paper .row { display: contents; }
.receipt-paper .row.is-hidden dt, .receipt-paper .row.is-hidden dd { display: none; }
.receipt-paper .row.is-new dt, .receipt-paper .row.is-new dd { animation: printIn .35s ease; }
@keyframes printIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.receipt-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.receipt .callout { margin-top: auto; }
.honesty-line { margin-top: 18px; color: var(--muted); }
.honesty-line b { color: var(--ink); }

.body-viewer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.slide-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #DDEFFB; aspect-ratio: 1; }
.slide-stage img { width: 100%; height: 100%; object-fit: cover; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); cursor: pointer; font-size: 22px; color: var(--ink); }
.slide-nav.prev { left: 12px; } .slide-nav.next { right: 12px; }
.slide-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.slide-dots button { width: 34px; height: 34px; border-radius: 8px; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.slide-dots button img { width: 100%; height: 100%; object-fit: cover; }
.slide-dots button[aria-current="true"] { border-color: var(--clay); opacity: 1; }
.download-list { display: grid; gap: 12px; margin-top: 18px; }
.download {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; cursor: pointer; text-align: left; width: 100%;
}
.download:hover { border-color: var(--clay); transform: translateY(-1px); }
.download .dl-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--clay-wash); color: var(--signal-red); display: grid; place-items: center; flex: none; }
.download .dl-icon svg { width: 22px; height: 22px; }
.download strong { display: block; color: var(--ink); font-size: 16.5px; }
.download span { font-size: 14px; color: var(--muted); }
.download .dl-go { margin-left: auto; color: var(--signal-red); font-weight: 800; white-space: nowrap; font-size: 14px; }
.tally-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .body-viewer { grid-template-columns: 1fr; } }

.q-card { padding: 22px 24px; }
.q-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.q-card.alt { background: #F3F5EA; }
.ritual-bar { margin-top: 18px; background: var(--sky-wash); border-radius: 12px; padding: 14px 20px; font-weight: 800; color: var(--deep-navy); }

.fridge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.fridge-points { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.fridge-points li { display: flex; gap: 12px; align-items: center; font-weight: 800; color: var(--deep-navy); }
.fridge-points li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--sage-wash); flex: none; }
.ritual-box { background: var(--sky-wash); border-radius: var(--radius-lg); padding: 22px 26px; }
.ritual-box p { font-size: 1.15rem; color: var(--ink); margin-top: 4px; }
.magnet-frame { background: #BCD6DA; border-radius: 28px; padding: 26px; }
.magnet { background: #fff; border-radius: 22px; padding: 26px 28px; position: relative; }
.magnet-top { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--ink); font-size: 14.5px; }
.magnet-top img { width: 46px; }
.magnet h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; margin: 14px 0 10px; }
.magnet pre { font-family: var(--font-mono); font-size: 13.5px; background: var(--sky-wash); color: var(--deep-navy); padding: 14px 18px; border-radius: 14px; margin: 16px 0; white-space: pre; overflow-x: auto; font-weight: 700; }
.magnet .tiny { color: var(--muted); letter-spacing: .04em; }
@media (max-width: 860px) { .fridge { grid-template-columns: 1fr; } }
.closing-band { display: flex; align-items: center; gap: 18px; background: var(--sage-wash); border-radius: var(--radius-lg); padding: 18px 24px; }
.closing-band img { width: 54px; flex: none; }
.closing-band h2 { font-size: 1.5rem; font-weight: 600; }

/* Near me */
.search-panel { position: relative; z-index: 3; margin-top: -36px; padding: 22px 24px; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 48px; border: 1.5px solid #D8CDBB; border-radius: 10px; padding: 0 16px; background: #fff; font-size: 17px; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A1B2E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.search-row .btn { min-width: 210px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.filter-row .chips { gap: 8px; }
.filter-row .chip { padding: 0 15px; }
.filter-row .select { min-height: 42px; padding: 0 34px 0 14px; background-position: right 13px center; }
.filter-row .chip-divider { margin: 0 4px; }
@media (max-width: 760px) { .search-row { grid-template-columns: 1fr 1fr; } .search-row .btn { grid-column: 1 / -1; } .search-panel { margin-top: 0; } }
.view-toggle { display: inline-flex; border: 1.5px solid #D8CDBB; border-radius: 12px; overflow: hidden; background: var(--card); }
.view-toggle button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--sage); color: #fff; }
.view-toggle svg { width: 20px; height: 20px; }
.results { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.results.map-only .listings { display: none; }
.results.map-only { grid-template-columns: 1fr; }
.results.map-only .map-wrap { max-width: 640px; margin: 0 auto; width: 100%; }
.listings { display: grid; gap: 14px; }
.listing { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 18px; padding: 10px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.listing.is-active { border-color: var(--clay); box-shadow: var(--shadow-lg); }
.listing-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.pin-num { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--clay); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; font-size: 16px; }
.listing h3 { font-size: 1.35rem; font-weight: 600; margin: 6px 0 2px; }
.listing .badge { font-size: 10.5px; }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 96px; }
.map-wrap img { width: 100%; }
.map-ring { position: absolute; width: 58px; height: 58px; margin: -40px 0 0 -29px; border-radius: 50%; border: 3px solid var(--clay); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; pointer-events: none; }
.map-ring.is-on { opacity: 1; transform: scale(1); animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.12); } }
@media (max-width: 860px) {
  .results { grid-template-columns: 1fr; }
  .results.list-only .map-wrap { display: none; }
  .map-wrap { position: relative; top: 0; }
}
@media (min-width: 861px) { .results.list-only .map-wrap { display: block; } }
@media (max-width: 520px) { .listing { grid-template-columns: 1fr; } }
.guidance { padding: 18px 8px; }
.guidance .icon-item svg { width: 48px; height: 48px; }
.guidance .icon-item strong { font-size: 1.12rem; }
.host-band {
  display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 24px;
  background: linear-gradient(110deg, #E2ECDA, #EAF1EE); border-radius: var(--radius-lg); overflow: hidden; padding-right: 26px;
}
.host-band img { height: 100%; object-fit: cover; }
.host-band h2 { font-size: clamp(1.6rem, 2.7vw, 2.1rem); font-weight: 600; }
.host-band .hero-actions { flex-wrap: nowrap; }
@media (max-width: 960px) { .host-band { grid-template-columns: 1fr; padding: 0 0 22px; text-align: center; } .host-band .hero-actions { justify-content: center; flex-wrap: wrap; } .host-band img { max-height: 160px; width: 100%; } }

/* Print: the learn page's field-note magnet prints on its own */
@media print {
  body.print-magnet > *:not(main) { display: none !important; }
  body.print-magnet main > *:not(#fridge) { display: none !important; }
  body.print-magnet #fridge .fridge > :first-child { display: none; }
  body.print-magnet #fridge .fridge { grid-template-columns: 1fr; }
  body.print-magnet .magnet-frame { box-shadow: none; }
}
