/* ==========================================================================
   MoogSite — theme stylesheet
   1. Tokens & base     4. Landing sections     7. Responsive (tablet)
   2. Header & menu     5. Document pages      8. Responsive (mobile)
   3. Footer            6. Utilities
   Body classes: .mg-landing (wide sections) · .mg-doc (narrow white panel)
   ========================================================================== */

/* 1. Tokens & base ------------------------------------------------------- */
:root {
  --bg: #f2efe9;
  --panel: #ffffff;
  --cream: #f6f3ed;
  --ink: #212327;
  --sub: #5c6068;
  --line: #e6e3db;
  --accent: #ee8148;
  --accent-ink: #a94c14;
  --tint: #fce4d4;
  --up: #2f7d4f;
  --down: #c24545;
  --focus: #212327;
  --shadow: 0 1px 2px rgba(30,30,40,.04), 0 10px 30px rgba(30,30,40,.05);
  --r: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(33,35,39,.18); }
.btn.primary:hover { background: #000; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 9px 16px; font-size: 14px; }

/* 2. Header & menu (shared by every page) -------------------------------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(242,239,233,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,.05); }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 500; letter-spacing: -.2px; text-decoration: none; color: var(--ink); }
.brand b { font-weight: 800; }
.logo { width: 34px; height: 34px; flex-shrink: 0; }
.links { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--sub); padding: 8px 12px; border-radius: 999px; }
.links a:hover { color: var(--ink); background: #fff; }

/* mobile menu parts are hidden on desktop */
.menu-toggle, .mobile-menu, .menu-scrim { display: none; }

/* 3. Footer (shared by every page) --------------------------------------- */
.site-footer { padding: 44px 0 56px; color: var(--sub); font-size: 13px; }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 600; color: inherit; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* 4. Landing sections ---------------------------------------------------- */
.mg-landing main a { color: inherit; }
.mg-landing h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; letter-spacing: -1.6px; font-weight: 800; margin: 0 auto 20px; max-width: 880px; }
.mg-landing h1 em { font-style: normal; color: var(--accent-ink); }
.mg-landing h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.9px; font-weight: 800; margin: 0 0 12px; }
.mg-landing h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin: 0 0 8px; }
.mg-landing section { padding: 72px 0 0; }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block; background: var(--tint); color: var(--accent-ink);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--sub); max-width: 680px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--sub); margin-top: 16px; }

/* product preview (sample data) */
.preview { margin: 52px auto 0; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow), 0 30px 80px rgba(30,30,40,.10); padding: 26px 28px 22px; text-align: left; }
.pv-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pv-head strong { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.pv-head span { color: var(--sub); font-size: 13px; }
.flag { margin-left: auto; background: #e3f3e8; color: var(--up); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pv-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.1fr; gap: 24px; }
.pv-col + .pv-col { border-left: 1px solid var(--line); padding-left: 24px; }
.pv-auth { background: var(--cream); border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 16px; }
.ring { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--up); display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 19px; color: var(--up); line-height: 1; }
.ring small { display: block; font-size: 7px; letter-spacing: .6px; text-align: center; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.kpi b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.kpi b i { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 3px; }
.kpi .up { color: var(--up); } .kpi .down { color: var(--down); }
.lbl { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--sub); }
.pv-col > .lbl { display: block; margin-bottom: 12px; }
.attr { font-size: 11px; color: var(--sub); margin-top: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { background: #eef1f6; color: #4b5360; font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 6px 11px; border-radius: 999px; }
.pill b { color: var(--ink); margin-left: 5px; font-size: 12px; }
.pv-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); }

/* sources strip */
.sources { padding: 44px 0 8px; text-align: center; }
.sources p { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sub); }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sources li { background: #fff; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(30,30,40,.05); }

/* section heads, cards */
.sec-head { max-width: 680px; margin: 0 0 32px; }
.sec-head p { color: var(--sub); font-size: 17px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; }
.card .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 21px; height: 21px; }
.card p { color: var(--sub); font-size: 15px; margin: 0 0 14px; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.card li { padding: 6px 0 6px 22px; position: relative; border-top: 1px solid var(--line); }
.card li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* accuracy band */
.band { background: var(--ink); color: #fff; border-radius: 32px; padding: 52px 44px; }
.band h2 { max-width: 640px; }
.band .sec-head p { color: #c3c6cc; }
.band .grid { gap: 28px; }
.band h3 { color: #fff; }
.band .grid p { color: #c3c6cc; font-size: 15px; margin: 0; }
.band .num { font-size: 13px; font-weight: 800; color: #f6b28c; letter-spacing: 1px; display: block; margin-bottom: 10px; }

/* steps */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; }
.steps p { margin: 0; }

/* split + chat */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.split .card { padding: 36px; }
.chat { background: var(--cream); border-radius: 18px; padding: 18px; font-size: 14px; display: grid; gap: 10px; }
.chat div { padding: 11px 15px; border-radius: 16px; max-width: 92%; }
.chat .q { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 5px; }
.chat .a { background: #fff; border-bottom-left-radius: 5px; color: var(--sub); }
.chat .a b { color: var(--ink); }

/* FAQ: full width, two columns on desktop */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq-col { display: flex; flex-direction: column; gap: 14px; }
details { margin: 0; background: var(--panel); border-radius: 20px; border: 1px solid transparent; box-shadow: 0 1px 2px rgba(30,30,40,.05); transition: box-shadow .2s, border-color .2s; }
details:hover { box-shadow: var(--shadow); }
details[open] { border-color: var(--tint); box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 22px 24px; font-weight: 700; font-size: 16px; letter-spacing: -.1px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a94c14' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s ease, background-color .2s; }
details[open] summary::after { transform: rotate(45deg); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
details p { margin: 0; padding: 0 24px 24px; color: var(--sub); font-size: 15px; }
details p a { color: var(--accent-ink); font-weight: 600; }

/* closing call to action */
.final { text-align: center; background: var(--panel); border-radius: 32px; box-shadow: var(--shadow); padding: 60px 28px; }
.final h2 { max-width: 620px; margin-left: auto; margin-right: auto; }
.final p { color: var(--sub); max-width: 520px; margin: 0 auto 26px; }

/* 5. Document pages (privacy / terms) ------------------------------------ */
.mg-doc main { padding: 48px 0 24px; line-height: 1.7; }
.mg-doc main .wrap { max-width: 820px; }
.doc { background: var(--panel); border-radius: 24px; box-shadow: var(--shadow); padding: 44px 48px; }
.doc a { color: var(--accent-ink); }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -1px; font-weight: 800; margin: 0 0 8px; }
.doc .meta { color: var(--sub); font-size: 14px; margin: 0 0 28px; }
.doc .summary { background: var(--tint); border-radius: 16px; padding: 18px 22px; margin: 0 0 12px; font-size: 15px; }
.doc .summary p { margin: 0; }
.doc h2 { font-size: 21px; letter-spacing: -.3px; font-weight: 800; margin: 36px 0 10px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.doc p, .doc li { color: #3b3e45; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc address { font-style: normal; color: #3b3e45; }
.doc .caps { font-size: 14px; }

/* 6. Utilities ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, details, summary::after { transition: none; }
  .btn:hover { transform: none; }
  .mobile-menu, .mm-link, .menu-scrim, .menu-toggle__bars i { transition: none !important; }
}

/* 7. Responsive — tablet ------------------------------------------------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .pv-grid { grid-template-columns: 1fr 1fr; }
  .pv-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
}

/* 8. Responsive — mobile ------------------------------------------------- */
@media (max-width: 760px) {
  .links, .top .btn { display: none; }
  .top .wrap { justify-content: space-between; }
  .mg-landing section { padding-top: 56px; }
  .hero { padding-top: 48px; }
  .grid { grid-template-columns: 1fr; }
  .pv-grid { grid-template-columns: 1fr; gap: 20px; }
  .pv-col + .pv-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .preview { padding: 20px; }
  .flag { margin-left: 0; }
  .band { padding: 36px 24px; border-radius: 24px; }

  /* hamburger */
  .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer; color: var(--ink); padding: 0; }
  .menu-toggle__bars { display: grid; gap: 4px; }
  .menu-toggle__bars i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .is-menu-open .menu-toggle { background: var(--tint); border-color: var(--tint); }
  .is-menu-open .menu-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .is-menu-open .menu-toggle__bars i:nth-child(2) { opacity: 0; }
  .is-menu-open .menu-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* dropdown panel */
  .mobile-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); border-radius: 0 0 28px 28px; box-shadow: 0 30px 50px -22px rgba(30,30,40,.35); padding: 8px 24px 24px; visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
  .is-menu-open .mobile-menu { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .mobile-menu__nav { display: flex; flex-direction: column; }
  .mm-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); text-decoration: none; padding: 16px 2px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
  .mm-link::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a94c14' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/15px no-repeat; }
  .mm-link:active { background: #fff; }
  .is-menu-open .mm-link { opacity: 1; transform: none; }
  .is-menu-open .mm-link:nth-child(2) { transition-delay: .04s; }
  .is-menu-open .mm-link:nth-child(3) { transition-delay: .08s; }
  .is-menu-open .mm-link:nth-child(n+4) { transition-delay: .12s; }
  .mobile-menu__actions { display: grid; gap: 10px; padding-top: 20px; }
  .mobile-menu__actions .btn { display: inline-flex; width: 100%; padding: 14px 22px; }

  .menu-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(33,35,39,.4); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
  body.menu-open .menu-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  /* tighter vertical rhythm */
  .mg-landing section { padding-top: 44px; }
  .hero { padding: 32px 0 28px; }
  .eyebrow { margin-bottom: 16px; }
  .mg-landing h1 { margin-bottom: 14px; letter-spacing: -1.2px; }
  .lede { margin-bottom: 22px; }
  .preview { margin-top: 36px; }
  .sources { padding-top: 32px; }
  .sec-head { margin-bottom: 24px; }
  .grid { gap: 14px; }
  .card { padding: 22px; border-radius: 20px; }
  .card .ico { margin-bottom: 14px; }
  .split .card { padding: 24px; }
  .band { padding: 30px 22px; }
  .band .grid { gap: 22px; }
  .faq, .faq-col { gap: 10px; }
  summary { padding: 17px 18px; }
  details p { padding: 0 18px 18px; }
  .final { padding: 40px 22px; border-radius: 24px; }
  .final p { margin-bottom: 22px; }
  .site-footer { padding: 32px 0 40px; }
  .site-footer nav { gap: 10px 18px; }

  .mg-doc main { padding: 28px 0 16px; }
  .doc { padding: 28px 22px; border-radius: 18px; }
  .doc h2 { margin-top: 28px; }
}
