/* MPG Snap site, "Fresh Mint" (same palette as the app: lib/theme/app_theme.dart). */
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/NunitoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/NunitoSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F2F7F4; --surface: #FFFFFF; --ink: #13261E; --muted: #4F6359; --line: #E6EFE9;
  --accent: #0D845B; --accent-deep: #0B6B49; --deep: #0F2A20; --mint-soft: #DDF2E8; --mint-text: #0B5C3D;
  --bad: #B3261E; --amber: #B86E00; --amber-soft: #FFF1D6; --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; margin: 0 0 16px; letter-spacing: -0.5px; }
h2 { font-size: 26px; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 900 22px "Nunito", sans-serif; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
nav.top { display: flex; gap: 6px; flex-wrap: wrap; }
nav.top a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 999px; }
nav.top a:hover, nav.top a[aria-current="page"] { background: var(--mint-soft); color: var(--mint-text); }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--deep); color: #fff; text-decoration: none; font: 800 17px "Nunito", sans-serif; padding: 14px 24px; border-radius: 16px; }
.btn:hover { background: #1B3A2E; color: #fff; }
.btn small { display: block; font: 700 12px "Nunito Sans", sans-serif; opacity: .8; letter-spacing: .3px; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn.secondary { background: var(--mint-soft); color: var(--mint-text); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 30px 0 50px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero .phones { display: flex; gap: 16px; justify-content: center; }
.phone { width: 240px; border-radius: 30px; border: 8px solid var(--deep); background: var(--deep); box-shadow: 0 18px 40px rgba(15,42,32,.18); overflow: hidden; }
.phone img { display: block; width: 100%; height: auto; }
.phone.tilt { transform: translateY(36px); }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 40px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 12px; }
.card p { margin: 0; color: var(--muted); }
.icon-chip { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); color: var(--accent-deep); }
.icon-chip svg { width: 26px; height: 26px; }

.band { background: var(--accent); color: #fff; border-radius: 30px; padding: 36px; margin: 20px 0 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.band h2 { color: #fff; margin-top: 0; }
.band ul { margin: 0; padding-left: 20px; }
.band .plan { background: rgba(255,255,255,.12); border-radius: 18px; padding: 20px 22px; }
.band .plan h3 { color: #fff; margin: 0 0 6px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 50px; }
.shots figure { margin: 0; }
.shots figcaption { text-align: center; font-weight: 700; color: var(--muted); margin-top: 10px; }
.shots .phone { width: 100%; max-width: 260px; margin: 0 auto; }

/* Text pages */
main.doc { background: var(--surface); border-radius: 28px; padding: 36px clamp(22px, 5vw, 56px); margin: 10px auto 50px; }
main.doc h1 { font-size: clamp(30px, 4vw, 42px); }
main.doc .updated { color: var(--muted); margin-top: -6px; }
main.doc ul, main.doc ol { padding-left: 22px; }
main.doc li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--bg); font-family: "Nunito", sans-serif; font-weight: 800; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--mint-soft); color: var(--mint-text); border-radius: 18px; padding: 16px 20px; margin: 18px 0; }
.callout.warn { background: var(--amber-soft); color: #6B4000; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 800 16px "Nunito", sans-serif; }
details { background: var(--bg); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font: 800 17px "Nunito", sans-serif; }
details p { margin: 10px 0 2px; }

footer.site { padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Calculators */
.calc { background: var(--bg); border-radius: 22px; padding: 22px; margin: 20px 0 26px; }
.calc .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.calc label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.calc input[type="text"], .calc select { width: 100%; font: inherit; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.calc input:focus-visible, .calc select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.calc .hint { color: var(--muted); font-size: 14px; margin: 3px 0 0; }
.calc .check { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.calc .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.results div { background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.results span { display: block; color: var(--muted); font-size: 14px; font-weight: 700; }
.results output { display: block; font: 900 26px "Nunito", sans-serif; color: var(--accent-deep); overflow-wrap: anywhere; }
.calc .msg { color: var(--bad); font-weight: 700; min-height: 1em; margin: 10px 0 0; }
.formula { background: var(--deep); color: #fff; border-radius: 16px; padding: 16px 20px; font: 800 18px "Nunito", sans-serif; margin: 14px 0; }
.app-cta { background: var(--accent); color: #fff; border-radius: 24px; padding: 24px 26px; margin: 32px 0 8px; }
.app-cta h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.app-cta p { margin: 0 0 16px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 10px; padding: 0 !important; list-style: none; }
.links li { margin: 0 !important; }
.links a { display: block; background: var(--bg); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); height: 100%; }
.links a strong { display: block; font: 800 18px "Nunito", sans-serif; color: var(--accent-deep); }
.links a span { color: var(--muted); font-size: 15px; }
.links a:hover { background: var(--mint-soft); }

@media (max-width: 860px) {
  .links { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero .phones .phone { width: 46%; }
  .cards, .shots { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
@media (max-width: 600px) {
  table:not(.grid), table:not(.grid) tbody, table:not(.grid) tr, table:not(.grid) td { display: block; width: 100%; }
  table:not(.grid) thead { display: none; }
  table:not(.grid) tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table:not(.grid) td { border: 0; padding: 4px 0; }
  table:not(.grid) td:first-child { font: 800 17px "Nunito", sans-serif; }
  table:not(.grid) td:last-child { color: var(--muted); }
  table.grid th, table.grid td { padding: 8px 6px; }
  .calc .fields { grid-template-columns: 1fr; }
}
