/* Qash Compass website. One stylesheet, system fonts, no external requests.
   Colours from the apps: deep navy sidebar, soft mint, warm paper, a red ledger margin. */
:root {
  --navy: #10253a;
  --navy-2: #1b3a55;
  --mint: #e3f2ea;
  --mint-2: #c8e6d6;
  --green: #12704d;
  --green-2: #0d5a3d;
  --paper: #fdf8ee;
  --paper-2: #f6ead2;
  --line: #e2d6bd;
  --margin: #e5a3a3;
  --text: #1a2733;
  --muted: #4f5f6c;
  --blue: #1d4fd6;
  --amber-bg: #fdf0d2;
  --amber: #7a5200;
  --card: #ffffff;
  --radius: 12px;
  --focus: #1d4fd6;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--paper); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 300px) { .wrap { padding: 0 12px; } .card, .ledger { padding-left: 16px; padding-right: 16px; } .ledger { padding-left: 34px; } .ledger::before { left: 18px; } }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 12px; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0.2em 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 0.4em; }
p, li { max-width: 72ch; }
code { font: 0.9em Consolas, "Cascadia Mono", monospace; background: var(--mint); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
main { display: block; outline: none; }
.page { padding-top: 28px; padding-bottom: 64px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand img { border-radius: 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: #dbe7f1; text-decoration: none; padding: 8px 12px; border-radius: 8px; display: block; font-size: 0.96rem; }
.site-nav a:hover { background: var(--navy-2); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--mint); color: var(--navy); font-weight: 600; }
.menu-toggle { display: none; margin-left: auto; background: var(--navy-2); color: #fff; border: 1px solid #3c5a76; border-radius: 8px; padding: 8px 14px; font: inherit; }
.site-header :focus-visible { outline-color: #9cc8ff; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 14px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 20px 0 12px; }
.hero .lede { font-size: 1.18rem; color: var(--muted); }
.hero-shot { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16, 37, 58, 0.18); border: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.8rem; font-weight: 700; color: var(--green); margin: 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 20px; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-secondary { background: var(--card); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--mint); color: var(--navy); }
.small { font-size: 0.92rem; color: var(--muted); }

/* Status badges and availability */
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; padding: 3px 10px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.badge-available { background: var(--mint-2); color: var(--green-2); }
.badge-preview { background: var(--amber-bg); color: var(--amber); border: 1px solid #e8cf93; }
.badge-testing { background: #e7ecf5; color: #2b3f63; }
.availability { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 18px 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: relative; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.ledger { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px 44px; position: relative;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #efe4cc 31px, #efe4cc 32px); }
.ledger::before { content: ""; position: absolute; top: 0; bottom: 0; left: 24px; border-left: 2px solid var(--margin); }
.band { background: var(--navy); color: #e6eef5; border-radius: 16px; padding: 28px 30px; margin: 32px 0; }
.band h2 { color: #fff; margin-top: 0; }
.band a { color: #a9d4ff; }
.band p { max-width: 80ch; }

/* Tables and callouts */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--paper-2); color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }
.callout { border-radius: 10px; padding: 12px 18px; margin: 16px 0; background: var(--mint); border-left: 4px solid var(--green); }
.callout p { margin: 6px 0; }
.callout-preview { background: var(--amber-bg); border-left-color: #c9962b; }
.callout-limitation, .callout-careful { background: #fbe9e7; border-left-color: #b4473c; }

/* Guide */
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
.guide-menu { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 0.95rem; padding-right: 6px; }
.guide-menu ul { list-style: none; margin: 0 0 10px; padding: 0; }
.guide-menu a { display: block; padding: 5px 10px; border-radius: 6px; text-decoration: none; color: var(--text); }
.guide-menu a:hover { background: var(--mint); }
.guide-menu a[aria-current="page"] { background: var(--navy); color: #fff; }
.guide-menu-title { font-weight: 700; margin: 0 0 8px; }
.guide-group { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 14px 0 4px 10px; font-weight: 700; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; margin: 10px 0 20px; }
.toc p { margin: 0 0 4px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3em; }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.guide-jump { display: none; margin: 0 0 4px; font-size: 0.95rem; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-body { order: 1; }
  .guide-menu { order: 2; position: static; max-height: none; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 12px; margin-top: 28px; }
  .guide-jump { display: block; }
}
.search-box { margin: 16px 0 8px; }
.search-box label { font-weight: 600; display: block; margin-bottom: 6px; }
.search-box input { width: 100%; max-width: 520px; font: inherit; padding: 10px 14px; border: 2px solid #b7a98b; border-radius: 10px; background: #fff; }
.search-results { list-style: none; padding: 0; margin: 8px 0 20px; }
.search-results li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.search-results p { margin: 2px 0 0; color: var(--muted); font-size: 0.93rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; margin: 18px 0 30px; }
.gallery-phone { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.shot button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; display: block; }
.shot img { border-radius: 8px; display: block; width: 100%; }
.shot figcaption { font-size: 0.93rem; color: var(--muted); }
.shot figcaption strong { color: var(--text); }
.lightbox { position: fixed; inset: 0; background: rgba(8, 18, 28, 0.9); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox-panel { max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.lightbox-panel img { max-height: calc(100vh - 150px); width: auto; border-radius: 8px; background: #fff; }
.lightbox-panel p { margin: 0; text-align: center; max-width: 90ch; }
.lightbox-close, .lightbox-steps button { font: inherit; background: #fff; color: var(--navy); border: 0; border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.lightbox-close { align-self: flex-end; }
.lightbox-steps { display: flex; gap: 10px; }
.lightbox :focus-visible { outline-color: #9cc8ff; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d7e4; padding: 36px 0 20px; font-size: 0.95rem; }
.site-footer a { color: #b9dcff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.site-footer a { overflow-wrap: anywhere; }
.footer-brand { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-top: 0; }
.footer-head { color: #fff; font-weight: 700; margin: 0 0 6px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 4px 0; }
.footer-legal { border-top: 1px solid #2d4a64; margin-top: 24px; padding-top: 14px; font-size: 0.86rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .site-footer, .guide-menu, .lightbox { display: none !important; } body { background: #fff; } }
