/* Moseby website. Palette and type follow the brochure (marketing/src/brochure.css). */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url("fonts/eb-garamond-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #13302B; --ink-2: #1C4139; --paper: #F6F3EC; --paper-2: #ECE5D6; --card: #FBF9F4;
  --line: #DCD3C1; --teal: #276B5D; --teal-dark: #1E5649; --teal-tint: #DCE9E3; --amber: #E3A14B;
  --body: #45524D; --muted: #56615C; --mist: #C3D6CF; --chat: #E1EAE5;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px; --wrap: 1160px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 28px; max-width: 26ch; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
ul { margin: 0; padding: 0; }
ol.grid, .chat, .timeline, .stats { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px; }
mark.todo { background: #FFE58A; color: #4A3500; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #EDB467; color: var(--ink); }
.btn-ghost { border-color: rgba(246, 243, 236, .45); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .94);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 26px; font-weight: 600; }
.mark { width: 32px; height: 32px; flex: none; }
.mark rect { fill: var(--teal); }
.mark path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.nav { margin-left: auto; }
.nav ul, .menu ul { list-style: none; display: flex; gap: 4px; }
.nav a, .menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500; }
.nav a:hover, .menu a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current], .menu a[aria-current] { background: var(--paper-2); font-weight: 600; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.lang:hover { border-color: var(--ink); color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px; min-width: 220px; box-shadow: 0 16px 40px rgba(19, 48, 43, .14); }
.menu ul { flex-direction: column; }
.menu a { padding: 12px 14px; font-size: 16px; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .menu { display: block; }
  .bar-end { margin-left: auto; }
}
@media (max-width: 520px) {
  .bar { gap: 12px; }
  .brand { font-size: 22px; }
  .bar-end .btn-small { display: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
/* Two plain sections in a row share one gap; coloured bands keep their own padding. */
.section:not(.band):not(.dark) + .section:not(.band):not(.dark) { padding-top: 0; }
.band { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: var(--amber); }
.dark h2 { color: var(--paper); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--body); max-width: 60ch; }

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

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:not(.eyebrow):not(.step-no) { color: var(--body); margin: 0; font-size: 16px; }
.icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: 14px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-no { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--teal); margin-bottom: 14px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; background: var(--teal-tint); color: var(--teal-dark);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.tag.later { background: var(--paper-2); color: var(--muted); }
.note { margin-top: 28px; padding: 18px 22px; border-left: 4px solid var(--amber); background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 17px; }
.note b { color: var(--teal-dark); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px);
  align-items: center; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; max-width: 15ch; }
.rule { width: 72px; height: 4px; background: var(--amber); margin: 28px 0 24px; border-radius: 2px; }
.hero .lead { color: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; font-size: 14px; color: var(--mist); }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero .phone { max-width: 420px; } }

/* ---------- phone / chat ---------- */
.phone { margin: 0; background: var(--chat); color: var(--ink); border-radius: 28px; padding: 0 0 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28); border: 8px solid #0B211D; overflow: hidden; width: 100%; }
.phone-top { display: flex; align-items: center; gap: 12px; background: var(--teal); color: #fff; padding: 14px 16px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--teal);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; flex: none; }
.phone-top b { display: block; font-size: 15px; line-height: 1.2; }
.phone-top small { font-size: 12px; opacity: .85; }
.chat { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 0; }
.bubble { max-width: 84%; padding: 10px 13px 6px; border-radius: 14px; font-size: 15px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(19, 48, 43, .08); }
.bubble.guest { align-self: flex-end; background: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--teal); color: #fff; border-bottom-left-radius: 4px; }
.bubble .who { display: block; font-size: 12px; font-weight: 600; opacity: .8; }
.bubble time { display: block; text-align: right; font-size: 12px; opacity: .72; margin-top: 2px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; }
.stat { border-top: 3px solid var(--teal); padding-top: 16px; }
.stat .num { display: block; font-family: var(--serif); font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--teal);
  margin-bottom: 10px; }
.stat p { color: var(--body); margin: 0; }
.quote { margin-top: 36px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 22px 26px;
  font-size: 18px; max-width: 860px; }
.quote b { color: var(--amber); }
.source { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- example ---------- */
.story { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line);
  color: var(--body); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.timeline b { color: var(--ink); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story .phone { max-width: 420px; } }

/* ---------- today / next ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col { border-radius: var(--radius); padding: 30px; }
.col ul { padding-left: 0; list-style: none; }
.col li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.col li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.col.now { background: var(--card); border: 1px solid var(--line); color: var(--body); }
.col.now li::before { color: var(--teal); }
.col.now h3 { color: var(--ink); }
.col.next { background: var(--ink); color: var(--mist); }
.col.next h3 { color: var(--amber); }
.col.next li::before { border: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); transform: none; top: .55em; left: 4px; }
.col h3 { font-size: 20px; margin-bottom: 18px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* ---------- trust ---------- */
.trust-item h3 { color: var(--paper); }
.trust-item p { color: var(--mist); margin: 0; font-size: 16px; }
.trust-item .icon { color: var(--amber); }
.dark a.more { color: var(--amber); font-weight: 600; display: inline-block; margin-top: 36px; }
.dark a.more:hover { color: #F0BC75; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--body); padding-right: 44px; margin: -4px 0 22px; }

/* ---------- pilot / contact ---------- */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.cta .pilot h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 20px; }
.cta .pilot ul { list-style: none; color: var(--body); }
.cta .pilot li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.cta .pilot li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; color: var(--teal);
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.contact { background: var(--amber); color: var(--ink); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.contact .ask { font-family: var(--serif); font-size: clamp(28px, 3vw, 34px); line-height: 1.1; font-weight: 500; margin-bottom: 10px; }
.contact .btn-primary { background: var(--ink); color: var(--paper); align-self: flex-start; margin: 14px 0 24px; }
.contact .btn-primary:hover { background: var(--ink-2); color: var(--paper); }
.contact .who { margin: auto 0 0; font-weight: 600; }
.contact .who a { color: var(--ink); }
.closing { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); color: var(--teal); margin: 56px 0 0; text-align: center; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-family: var(--sans); font-size: 21px; font-weight: 600; margin: 44px 0 14px; max-width: none; line-height: 1.3; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--body); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc .intro { font-size: 19px; color: var(--ink); }
.doc address { font-style: normal; color: var(--body); margin-bottom: 1em; }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.doc th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.doc tr:last-child td { border-bottom: 0; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 20px; }
.box h3 { margin-top: 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
/* content pages: legal-page layout plus FAQ, labels and a closing call to action */
.doc .faq { margin-top: 8px; }
.doc .faq summary { font-size: 17px; }
.doc .tag { margin: 0 0 0 8px; vertical-align: 2px; font-family: var(--sans); font-size: 12px; font-weight: 600; }
.doc .note { margin: 20px 0 24px; }
.doc ol.steps { padding-left: 1.3em; }
.cta-box { margin-top: 48px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 28px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cta-box p { color: var(--paper) !important; margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.cta-box .more { color: var(--amber); font-weight: 600; }
.more { font-weight: 600; display: inline-block; margin-top: 24px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--teal); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 24px; }
.dl > div { display: contents; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(72px, 12vw, 140px) 0; }
.notfound .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; }
.notfound h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 14px; }
.notfound .btn-primary { margin-top: 8px; }
@media (max-width: 700px) { .notfound .pair { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--amber); }
.site-footer p { margin: 0 0 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr auto auto; gap: 32px 56px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font-family: var(--serif); font-size: 21px; margin-bottom: 16px !important; }
.footer-links { list-style: none; display: grid; gap: 8px; align-content: start; }
.fine { margin-top: 36px; font-size: 13px; }
.fine p { padding-top: 20px; border-top: 1px solid rgba(195, 214, 207, .2); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .skip, .menu { display: none; }
  .hero, .dark, .site-footer { background: #fff; color: #000; }
}
