/* Mellowmoor website. One stylesheet, no framework.
   Headings use Fredoka (bundled, SIL OFL); body text uses the device's own UI font. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #1f2a44;
  --ink-2: #44506b;
  --muted: #5a6580;
  --cream: #fff8ee;
  --cream-2: #fdf0dc;
  --paper: #ffffff;
  --sky: #eaf4ff;
  --sky-2: #d5e9ff;
  --blue: #1b63c9;
  --blue-dark: #134a99;
  --sun: #ffc94d;
  --sun-soft: #fff1c9;
  --coral: #ef6f4b;
  --leaf: #2d8a57;
  --leaf-soft: #e3f4e9;
  --plum: #6a4fc4;
  --line: rgba(31, 42, 68, 0.12);
  --shadow-s: 0 1px 2px rgba(31, 42, 68, 0.06), 0 4px 14px rgba(31, 42, 68, 0.06);
  --shadow-m: 0 2px 6px rgba(31, 42, 68, 0.06), 0 18px 44px rgba(31, 42, 68, 0.12);
  --r-s: 14px;
  --r-m: 22px;
  --r-l: 32px;
  --head: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; } /* decorative blobs never widen the page */
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.center.lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font: 600 0.82rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-dark); background: var(--sky-2); padding: 7px 12px; border-radius: 99px; margin-bottom: 18px;
}
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.35rem/1 var(--head); }
.brand img { border-radius: 11px; box-shadow: var(--shadow-s); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 9px 12px; border-radius: 10px; }
.site-nav a:not(.btn):hover { background: rgba(31, 42, 68, 0.06); }
.site-nav a[aria-current="page"] { color: var(--blue-dark); background: var(--sky); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; font: 600 1rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m); }
  html:not(.js) .site-nav { position: static; box-shadow: none; border: 0; padding: 0 0 12px; flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .bar { flex-wrap: wrap; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin-top: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1.02rem/1 var(--body); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--blue); border: 2px solid var(--blue);
  padding: 14px 22px; border-radius: 99px; box-shadow: 0 6px 18px rgba(27, 99, 201, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-small { padding: 10px 16px; font-size: 0.95rem; box-shadow: none; }
.btn-ghost { color: var(--ink); background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn-ghost:hover { color: var(--ink); background: var(--paper); border-color: rgba(31, 42, 68, 0.3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Store buttons (replace with the official badge artwork before launch: see README) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  padding: 10px 20px 10px 16px; border-radius: 14px; text-decoration: none;
  color: #fff; background: #111418; border: 1px solid #111418;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 0.72rem; letter-spacing: 0.02em; opacity: 0.85; }
.store b { font: 600 1.2rem/1.1 var(--body); }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.band-white { background: var(--paper); }
.band-sky { background: linear-gradient(180deg, var(--sky) 0%, #f5faff 100%); }
.band-sun { background: linear-gradient(180deg, var(--sun-soft) 0%, var(--cream) 100%); }
.band-ink { background: var(--ink); color: #eef2fb; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a:not(.btn):not(.store) { color: #b9d6ff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; }

/* Home hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 130px); overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(255, 201, 77, 0.35), transparent 70%),
    radial-gradient(50% 60% at 0% 30%, rgba(110, 198, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #e9f4ff 0%, var(--cream) 78%);
}
.hero::after { /* rolling hills */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 120px; pointer-events: none;
  background:
    radial-gradient(60% 120% at 20% 100%, #cfeedd 49.5%, transparent 50%),
    radial-gradient(55% 110% at 75% 100%, #bfe6cf 49.5%, transparent 50%),
    linear-gradient(transparent 70%, var(--cream) 70%);
  opacity: 0.9;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 600; color: var(--ink-2); font-size: 0.97rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }
.hero-art { position: relative; min-height: 460px; }
.hero-cover { width: min(400px, 78%); border-radius: 40px; box-shadow: var(--shadow-m); transform: rotate(-3deg); margin-left: 4%; }
.hero-art .phone { position: absolute; right: 0; bottom: -56px; width: min(200px, 38%); transform: rotate(4deg); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--paper);
  padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-m); font-weight: 600; font-size: 0.93rem; color: var(--ink);
  animation: bob 6s ease-in-out infinite;
}
.float-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.chip-a { left: -2%; bottom: 18%; }
.chip-b { left: 40%; top: -2%; animation-delay: -2s; }
.chip-b i { background: var(--leaf); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Phone frame around screenshots */
.phone { border-radius: 34px; padding: 9px; background: #14171c; box-shadow: var(--shadow-m), inset 0 0 0 2px #2b3038; }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 1080 / 2340; object-fit: cover; background: var(--sky); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; box-shadow: var(--shadow-s); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon-dot { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--sky); color: var(--blue-dark); }
.icon-dot svg { width: 24px; height: 24px; }
.icon-dot.sun { background: var(--sun-soft); color: #8a5a00; }
.icon-dot.leaf { background: var(--leaf-soft); color: var(--leaf); }
.icon-dot.plum { background: #efeaff; color: var(--plum); }
.icon-dot.coral { background: #ffe9e2; color: #b2401f; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-m); margin-top: -64px; position: relative; z-index: 2; overflow: hidden; }
.stats div { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 600 2.4rem/1 var(--head); color: var(--blue); margin-bottom: 6px; }
.stats span { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }

/* Places */
.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.place { border-radius: var(--r-m); padding: 20px 18px; color: var(--ink); background: var(--c, var(--sky)); border: 1px solid rgba(31, 42, 68, 0.06); }
.place b { display: block; font: 600 1.12rem/1.2 var(--head); margin-bottom: 4px; }
.place span { font-size: 0.93rem; color: var(--ink-2); }

/* Characters */
.chars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.char { text-align: center; }
.char img { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 12px; border: 4px solid var(--paper); box-shadow: var(--shadow-m); object-fit: cover; }
.char b { display: block; font: 600 1.1rem var(--head); }
.char span { display: block; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.feature.flip { grid-template-columns: minmax(220px, 300px) 1fr; }
.feature.flip .feature-media { order: -1; }
.feature + .feature { margin-top: clamp(64px, 9vw, 110px); }
.feature-media { position: relative; }
.feature-media::before { content: ""; position: absolute; inset: 10% -14% 6% -14%; border-radius: 50%; background: var(--blob, var(--sky-2)); filter: blur(4px); z-index: 0; }
.feature-media .phone { position: relative; z-index: 1; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232d8a57' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: 0.95rem; }
.note { font-size: 0.93rem; color: var(--muted); }

/* Pricing */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price { background: var(--paper); border-radius: var(--r-l); padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow-m); display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--blue); }
.price h3 { font-size: 1.5rem; }
.amount { font: 600 3rem/1 var(--head); color: var(--ink); margin: 10px 0 4px; }
.amount small { font: 600 1rem var(--body); color: var(--muted); }
.price .ticks { margin-bottom: 24px; }
.price .actions { margin-top: auto; }
.tiers { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.tiers th, .tiers td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tiers thead th { font: 600 0.85rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #fbfcfe; }
.tiers tbody tr:last-child th, .tiers tbody tr:last-child td { border-bottom: 0; }
.tiers tbody th { font: 600 1.1rem var(--head); }
.tiers td.num { font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-m); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font: 600 1.08rem/1.35 var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Call to action band */
.cta { border-radius: var(--r-l); padding: clamp(32px, 6vw, 64px); background: linear-gradient(135deg, #1f2a44 0%, #24407a 100%); color: #eef2fb; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow-m); overflow: hidden; position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #d6def0; margin: 0; }
.cta .store { background: #fff; color: #111418; border-color: #fff; }
.cta .store:hover { color: #111418; }

/* Disclaimer box (Insights) */
.disclaimer { border-left: 5px solid var(--sun); background: var(--paper); padding: 22px 26px; border-radius: 0 var(--r-s) var(--r-s) 0; box-shadow: var(--shadow-s); }
.disclaimer h3 { font-size: 1.15rem; }
.disclaimer p { margin: 0 0 0.5em; }
.disclaimer p:last-child { margin: 0; }
.disclaimer cite { display: block; margin-top: 10px; font-size: 0.88rem; font-style: normal; color: var(--muted); }

/* Report page previews */
.pages { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.pages figure { margin: 0; flex: 1 1 0; max-width: 300px; }
.pages img { border-radius: 8px; box-shadow: var(--shadow-m); border: 1px solid var(--line); background: #fff; }
.pages figure:nth-child(2) { transform: translateY(-14px); }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Calm theme for schools and centres */
.calm { --cream: #f5f7f6; --sky: #e7f0ef; --sky-2: #d4e6e4; --blue: #1f6b70; --blue-dark: #164f53; }
.calm .btn { box-shadow: 0 6px 18px rgba(31, 107, 112, 0.22); }
.calm .site-header { background: rgba(245, 247, 246, 0.88); }
.calm .eyebrow { color: #164f53; }
.hero-calm { padding: clamp(48px, 7vw, 96px) 0; background: radial-gradient(70% 70% at 100% 0%, rgba(212, 230, 228, 0.9), transparent 70%), linear-gradient(180deg, #eef4f3 0%, var(--cream) 100%); }
.hero-calm .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
.org-art { position: relative; display: flex; justify-content: center; }
.org-art .phone { width: min(250px, 70%); }
.org-art .tablet { width: min(500px, 100%); margin-bottom: 8%; }
.org-art .tablet ~ .sheet { bottom: -4%; left: -2%; width: min(170px, 36%); }
@media (max-width: 560px) { .org-art .tablet ~ .sheet { left: 0; width: 34%; } }
.org-art .sheet { position: absolute; left: 0; bottom: 8%; width: min(210px, 46%); border-radius: 8px; box-shadow: var(--shadow-m); transform: rotate(-5deg); border: 1px solid var(--line); background: #fff; }

/* Page title band (inner pages) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%); }
.page-head .lead { margin-bottom: 0; }

/* Legal documents */
.doc { max-width: 780px; }
.doc h2 { font-size: 1.55rem; margin-top: 2.2em; padding-top: 0.2em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc li { margin-bottom: 0.45em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.97rem; background: var(--paper); }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: #fbfcfe; }
.doc-meta { color: var(--muted); font-size: 0.95rem; }
.summary-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 26px; box-shadow: var(--shadow-s); margin: 24px 0 8px; }
.summary-box h2 { margin-top: 0; font-size: 1.3rem; }
.summary-box ul { margin: 0; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 24px; margin: 24px 0; }
.toc h2 { font-size: 1.05rem; margin: 0 0 8px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; font-size: 0.97rem; }
.toc li { break-inside: avoid; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 600 1rem var(--head); }
.callout { background: var(--sun-soft); border: 1px solid #f1d58a; border-radius: var(--r-s); padding: 16px 20px; margin: 1.2em 0; }
.callout p:last-child { margin: 0; }
.credit-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.credit-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 20px; }
.credit-list b { font-family: var(--head); font-weight: 600; font-size: 1.08rem; }
.cols-music { columns: 3 220px; column-gap: 28px; font-size: 0.95rem; padding-left: 1.1em; }

/* Footer */
.site-footer { background: #182038; color: #c9d2e6; padding: 64px 0 36px; margin-top: 0; }
.site-footer a { color: #e7ecf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-cols nav { display: grid; align-content: start; gap: 8px; }
.foot-cols h2 { font: 600 0.82rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #9fb0d4; margin-bottom: 6px; }
.foot-brand .brand { color: #fff; }
.foot-brand p { margin-top: 14px; max-width: 34ch; font-size: 0.95rem; }
.fine { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 22px; font-size: 0.86rem; color: #a9b5cf; }
.fine p { margin: 0 0 6px; }
.fine a { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chars { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .hero-calm .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; margin-top: 12px; padding-bottom: 30px; }
  .hero-cover { width: min(340px, 72%); }
  .hero-art .phone { width: min(180px, 38%); bottom: 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { max-width: 220px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .price-cards { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .toc ol { columns: 1; }
  .org-art .sheet { width: 40%; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .chars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char img { width: 96px; height: 96px; }
  .pages { flex-direction: column; align-items: center; }
  .pages figure { max-width: 280px; }
  .pages figure:nth-child(2) { transform: none; }
  .pages figure:nth-child(3) { display: none; }
  .tiers th, .tiers td { padding: 12px 14px; }
  .store { min-width: 0; flex: 1 1 180px; }
  .chip-b { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ---- Added October 2026: tablet frames, subjects, ages, trial steps, sticky CTA ---- */

/* Tablet frame around landscape screenshots (the app's child screens are landscape-only) */
.tablet { border-radius: 26px; padding: 11px; background: #14171c; box-shadow: var(--shadow-m), inset 0 0 0 2px #2b3038; }
.tablet img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky); }
.feature.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.feature.wide.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.feature-media .tablet { position: relative; z-index: 1; }
.feature.wide .feature-media::before { inset: 8% -5% 4% -5%; }
.feature-media .tablet + .tablet { width: 58%; margin: -22% 0 0 auto; transform: rotate(2.5deg); }
.shot-caption { position: relative; z-index: 1; font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* Home hero: the cover art with a tablet in front */
.hero-art.with-tablet { min-height: 440px; }
.hero-art .tablet { position: absolute; right: 0; bottom: -30px; width: min(340px, 64%); transform: rotate(3deg); }

/* Primary call to action */
.btn-big { font-size: 1.12rem; padding: 18px 28px; }
.btn-sun { color: var(--ink); background: var(--sun); border-color: var(--sun); box-shadow: 0 6px 18px rgba(255, 180, 40, 0.35); }
.btn-sun:hover { color: var(--ink); background: #ffbd2e; border-color: #ffbd2e; }
.hero-cta { display: grid; gap: 14px; justify-items: start; }
.hero-cta .stores { margin-top: 2px; }
.trial-note { font-size: 0.95rem; color: var(--ink-2); margin: 0; }
.trial-note b { color: var(--ink); }
.cta .trial-note { color: #d6def0; margin-top: 10px; }
.cta .trial-note b { color: #fff; }
.cta-stack { display: grid; gap: 14px; justify-items: start; }

/* What's inside: subjects with counts */
.subjects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.subject { position: relative; border-radius: var(--r-m); padding: 22px 20px 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); border-top: 6px solid var(--c, var(--blue)); }
.subject .count { display: block; font: 600 2.1rem/1 var(--head); color: var(--ink); margin-bottom: 4px; }
.subject h3 { font-size: 1.15rem; margin-bottom: 6px; }
.subject p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }
.subject .tag { display: inline-block; margin-top: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-dark); background: var(--sky); padding: 4px 9px; border-radius: 99px; }

/* By age */
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.age { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; box-shadow: var(--shadow-s); }
.age .band { display: inline-block; font: 600 1rem/1 var(--head); padding: 8px 14px; border-radius: 99px; background: var(--c, var(--sky)); color: var(--ink); margin-bottom: 14px; }
.age h3 { font-size: 1.35rem; }
.age .ticks { margin-top: 12px; gap: 8px; font-size: 0.98rem; }
.age .small { margin: 14px 0 0; }

/* How the trial works */
.trial-steps { counter-reset: tstep; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trial-steps li { counter-increment: tstep; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 60px 22px 22px; box-shadow: var(--shadow-s); }
.trial-steps li::before { content: counter(tstep); position: absolute; left: 22px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 600 1rem var(--head); }
.trial-steps b { display: block; font: 600 1.12rem/1.25 var(--head); margin-bottom: 6px; }
.trial-steps p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Four small screenshots under the subjects */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.gallery .tablet { padding: 7px; border-radius: 18px; }
.gallery .tablet img { border-radius: 12px; }

/* Small feature list in two columns */
.mini-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }

/* Sticky call to action on phones (shown by site.js once the hero is out of view) */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 248, 238, 0.96);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31, 42, 68, 0.1);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta:not(.show) { visibility: hidden; transition: transform 0.25s ease, visibility 0s 0.25s; }
  .sticky-cta .btn { flex: 1 1 auto; padding: 14px 16px; }
  .sticky-cta small { flex: 0 1 auto; font-size: 0.8rem; line-height: 1.25; color: var(--ink-2); max-width: 13em; }
  body.has-sticky { padding-bottom: 76px; }
}

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trial-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feature.wide, .feature.wide.flip { grid-template-columns: 1fr; }
  .feature.wide .feature-media { max-width: 520px; width: 100%; }
  .ages { grid-template-columns: 1fr; }
  .hero-art.with-tablet { min-height: 0; padding-bottom: 40px; }
  .hero-art .tablet { width: min(300px, 58%); bottom: 0; }
}
@media (max-width: 560px) {
  .subjects { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-media .tablet + .tablet { display: none; }
  .subject { padding: 18px 14px 16px; }
  .subject .count { font-size: 1.8rem; }
  .trial-steps { grid-template-columns: 1fr; }
  .mini-list { grid-template-columns: 1fr; }
  .btn-big { width: 100%; }
  .hero-cta { justify-items: stretch; }
  .tablet { padding: 7px; border-radius: 18px; }
  .tablet img { border-radius: 12px; }
}

/* ---- Added 21 October 2026: Get Mellowmoor (/get/) ---- */
.paths { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.path { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; }
.path:hover { color: var(--ink); border-color: rgba(31, 42, 68, 0.3); }
.path b { font: 600 1.15rem/1.25 var(--head); }
.path span { color: var(--ink-2); font-size: 0.95rem; }
.path.primary { border: 2px solid var(--blue); }
.path .pill { justify-self: start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-dark); background: var(--sky); padding: 4px 10px; border-radius: 99px; }
.dl-card { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; padding: clamp(22px, 4vw, 34px); border-radius: var(--r-l); background: var(--sky); border: 1px solid var(--sky-2); }
.dl-main { display: flex; gap: 16px; align-items: center; min-width: 0; }
.dl-main img { border-radius: 18px; box-shadow: var(--shadow-s); flex: none; }
.dl-name { display: block; font: 600 1.35rem/1.2 var(--head); margin-bottom: 4px; }
.dl-foot { grid-column: 1 / -1; margin: 0; }
.checksum code, .doc code, .card code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }
.checksum { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.illus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0 28px; }
.illus figure { margin: 0; text-align: center; }
.illus svg { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto; }
.illus figcaption { color: var(--ink-2); font-size: 0.95rem; }
.device-guide { max-width: none; }
.device-guide ol { padding-left: 1.3em; }
.device-guide li { margin-bottom: 0.4em; }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .illus { grid-template-columns: 1fr; gap: 18px; }
  .illus figure { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; text-align: left; }
  .illus figcaption { margin: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .skip, .sticky-cta { display: none; }
  body { background: #fff; }
}
