/* =========================================================
   Planqix — home.css (homepage only)
   Navy and the four room colours come from the logo; the blue
   accent is the app's. Other marketing pages still use style.css.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1b3a5a;
    --navy-2: #24496f;
    --ink: #0f1d2e;
    --muted: #4c5c70;        /* 6.9:1 on white */
    --line: #dfe5ee;
    --bg: #ffffff;
    --tint: #f5f7fb;
    --accent: #4f9cf9;       /* decorative / button fill */
    --accent-btn: #2f7ee6;   /* white text on it: 4.0:1 large, used ≥15px bold */
    --accent-text: #1559bd;  /* 6.6:1 on white */
    --green: #82b59e;
    --lavender: #9a9bc9;
    --coral: #f49090;
    --yellow: #faf59a;
    --ok: #15803d;
    --radius: 12px;
    --nav-h: 68px;
    --max: 1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg); color: var(--ink); line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
p { color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-text); margin-bottom: 12px;
}
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 14px; font-size: 1.08rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 .95rem/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; border-radius: 10px; padding: 11px 18px;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: #c5d0de; }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef3fa; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-white:hover { border-color: #fff; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Nav ── */
.nav {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; flex: 1; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: var(--tint); }
.nav-actions { display: flex; gap: 6px; align-items: center; }
.nav-actions .btn { padding: 9px 14px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: none; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #f2f6fc 0%, #fff 70%); text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 .hl { color: var(--accent-text); }
.lede { max-width: 700px; margin: 22px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 12px; text-align: center; font-size: 14px; }

/* ── Demo ── */
.demo { margin: 56px auto 0; max-width: 1060px; text-align: left; }
.demo-app {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 30px 70px rgba(27,58,90,.14), 0 4px 14px rgba(27,58,90,.06);
    overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ee; }
.demo-title { margin-left: 10px; font-size: .82rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.demo-floors { display: flex; gap: 4px; margin-left: 12px; }
.demo-floors span { white-space: nowrap; font-size: .7rem; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 99px; }
.demo-floors .on { color: var(--accent-text); background: #e8f1fd; }
.demo-saved { margin-left: 10px; font-size: .75rem; font-weight: 700; color: var(--ok); min-width: 3em; text-align: right; }
/* Stand-ins for the editor's own buttons: they light up as if clicked when
   the window they open appears. */
.demo-btn { font-size: .72rem; font-weight: 600; color: var(--navy); border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 3px 10px; transition: box-shadow .2s, border-color .2s, background .2s; }
.demo-bar .demo-btn { margin-left: auto; }
.demo-bar .demo-btn + .demo-btn { margin-left: 0; }
.demo-btn.pressed { border-color: var(--accent); background: #e8f1fd; box-shadow: 0 0 0 3px rgba(79,156,249,.25); }
.panel-btn { display: block; text-align: center; margin-top: 10px; }
.demo-body { position: relative; display: grid; grid-template-columns: 1fr 260px; }
/* The plan is a capture of the editor. Everything drawn over it (the placed
   locations, the pings, the cursor) lives in .plan-stage, in the capture's
   own 1264x880 units, so it stays on its spot at any width. */
.demo-plan { position: relative; overflow: hidden; aspect-ratio: 1264 / 880; background: #fff; }
.plan-stage { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1264 / 880; }
.plan-stage img { display: block; }
.plan-base { width: 100%; height: auto; }
.patch { position: absolute; width: 12.342%; height: auto; transition: opacity .35s; }
.patch-f { left: 39.478%; top: 19.773%; }
.patch-r { left: 75.712%; top: 45.455%; }
.patch-fsel { opacity: 0; }
.plan-fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plan-fx .ping { fill: none; stroke: var(--accent); stroke-width: 5; opacity: 0; }
.plan-fx .cursor path { fill: var(--ink); stroke: #fff; stroke-width: 1; }
.plan-fx .cursor { transform: translate(1082px, 537px) scale(2.6); }
.demo-panel { border-left: 1px solid var(--line); padding: 16px; background: #fbfcfe; font-size: .8rem; }
.panel-h { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pv-f { display: none; }
.panel-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-panel label { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-panel .field { border: 1.5px solid var(--line); border-radius: 7px; padding: 7px 9px; background: #eef1f6; color: var(--ink); min-height: 33px; }
.demo-panel .field.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; }
.demo-panel .field-msg { background: #fff; border-color: var(--accent); font-weight: 600; display: flex; align-items: center; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink); margin-left: 1px; opacity: 0; }
/* The sign's own artwork, blank, with the message laid over it as it is
   typed; on save the real render (copy and braille) takes its place. */
.mini-sign { position: relative; container-type: inline-size; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(27,58,90,.18); }
.mini-sign-sq { width: 62%; margin: 0 auto; }
.mini-sign img { display: block; width: 100%; height: auto; }
.mini-sign-copy { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center;
    font-family: Arial, Helvetica, sans-serif; font-size: 11.6cqw; letter-spacing: .04em; text-transform: uppercase; color: #000; line-height: 1; white-space: nowrap; }
.mini-sign-copy.stacked { top: 20%; transform: none; font-size: 21cqw; line-height: .95; white-space: pre; letter-spacing: 0; }
.mini-sign .sign-final { position: absolute; inset: 0; }
/* The Messages window and Advanced Settings, as the editor shows them. */
.demo-win { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 14px;
    background: rgba(226,232,242,.72); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
/* Fitted inside the window area whichever side runs out first, so the
   row highlight (a percentage of the picture) stays on row 91. */
.demo-win { container-type: size; }
.win-img { position: relative; width: min(100cqw, 100cqh * var(--ar)); }
.win-messages .win-img { --ar: 1300 / 922; }
.win-advanced .win-img { --ar: 1600 / 900; }
.win-viewer .win-img { --ar: 1300 / 707; }
.win-url { position: absolute; left: 50%; top: -12px; transform: translate(-50%, -100%); white-space: nowrap; font-size: .72rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; box-shadow: 0 4px 12px rgba(27,58,90,.12); }
.win-viewer { padding-top: 40px; }
.win-img img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 50px rgba(27,58,90,.25); }
.row-hl { position: absolute; left: 0; right: 0; top: 47.6%; height: 4.9%; border: 2px solid var(--accent); border-radius: 4px; background: rgba(79,156,249,.08); opacity: 0; transition: opacity .3s; }

.demo-docs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .76rem; position: relative; transition: border-color .3s, box-shadow .3s; }
.doc-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .74rem; }
.doc-ok { font-size: .62rem; font-weight: 700; color: var(--ok); background: #e7f6ec; padding: 1px 6px; border-radius: 99px; opacity: 1; }
.doc .row { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.doc .row:first-child { border-top: none; }
.doc .row b { color: var(--ink); font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-art { text-align: center; }
.art-sign { position: relative; aspect-ratio: 4 / 3; background: #eef0f3; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(27,58,90,.18); }
.art-sign img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.art-f0, .art-f1 { opacity: 0; }
.demo-cap { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; font-size: .95rem; font-weight: 600; color: var(--navy); min-height: 1.6em; text-align: center; }
.demo-replay { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font: 600 .78rem inherit; font-family: inherit; color: var(--navy); cursor: pointer; }

/* Animation states, driven by home.js setting classes on .demo. The
   un-classed markup is the finished frame (reduced motion / no JS).
   s-f / s-r: F.id 91 / R.id 19 placed; p-f: the panel shows F.id 91;
   w-messages / w-advanced / w-viewer: that window is open. */
.demo.playing [data-show], .demo.playing .doc-ok { opacity: 0; transition: opacity .35s; }
.demo.playing.s-saved [data-show="saved"] { opacity: 1; }
.demo.playing .patch { opacity: 0; }
.demo.playing.s-f .patch-fsel { opacity: 1; }
.demo.playing.s-r .patch-fsel { opacity: 0; }
.demo.playing.s-r .patch-fdone, .demo.playing.s-r .patch-r { opacity: 1; }
.demo.p-f .pv-f { display: block; }
.demo.p-f .pv-r { display: none; }
.demo.playing .sign-final { opacity: 0; transition: opacity .35s; }
.demo.playing.s-saved .sign-final { opacity: 1; }
.demo.w-messages .win-messages, .demo.w-advanced .win-advanced, .demo.w-viewer .win-viewer { opacity: 1; visibility: visible; }
.demo.w-messages .row-hl { opacity: 1; transition-delay: .5s; }
.demo.playing .doc.hit { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,156,249,.18); }
.demo.playing .doc.hit .doc-ok { opacity: 1; }
.demo.playing .art-r { opacity: 0; }
.demo.playing .doc.st0 .art-f0, .demo.playing .doc.st1 .art-f1, .demo.playing .doc.st2 .art-r { opacity: 1; }
.demo.playing.s-f .ping-f { animation: ping 1s ease-out 2; }
.demo.playing.s-r .ping-r { animation: ping 1s ease-out 2; }
.demo.playing.s-typing .caret { opacity: 1; animation: blink .8s steps(1) infinite; }
.demo.playing .cursor { transition: transform .9s cubic-bezier(.4,0,.2,1), opacity .3s; }
.demo.playing.c-start .cursor { transform: translate(860px, 700px) scale(2.6); }
.demo.playing.c-f .cursor { transform: translate(548px, 252px) scale(2.6); }
.demo.playing.c-off .cursor, .demo.playing.s-done .cursor { opacity: 0; }
@keyframes ping { 0% { opacity: .9; r: 10; } 100% { opacity: 0; r: 56; } }
@keyframes blink { 50% { opacity: 0; } }

/* ── Problem ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col h2 { margin-bottom: 18px; }
.two-col > div > p:not(.eyebrow) { font-size: 1.05rem; }
.compare { display: grid; gap: 14px; }
.compare-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.compare-col h3 { margin-bottom: 10px; font-size: 1rem; }
.compare-col ol { padding-left: 1.3em; color: var(--ink); font-size: .95rem; }
.compare-col li { padding: 2px 0; }
.compare-old { border-left: 4px solid var(--coral); }
.compare-new { border-left: 4px solid var(--green); }
.compare-new p { margin-top: 8px; font-size: .92rem; }

/* ── Steps ── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step:nth-child(1) .step-n { background: #3f7c63; }
.step:nth-child(2) .step-n { background: #5f5fa0; }
.step:nth-child(3) .step-n { background: #b44a4a; }
.step:nth-child(4) .step-n { background: var(--navy); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* ── Client ── */
.two-col-media { grid-template-columns: 5fr 6fr; }
.shot { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(27,58,90,.12); }
.ticks { list-style: none; margin-top: 18px; }
.ticks li { position: relative; padding: 6px 0 6px 28px; color: var(--ink); font-size: .97rem; }
.ticks li::before {
    content: ''; position: absolute; left: 2px; top: 11px; width: 14px; height: 8px;
    border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}

/* ── Roles ── */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role { padding: 24px; border-radius: var(--radius); background: var(--tint); border-top: 4px solid var(--green); }
.role:nth-child(2) { border-top-color: var(--lavender); }
.role:nth-child(3) { border-top-color: var(--coral); }
.role:nth-child(4) { border-top-color: #e3d94a; }
.role h3 { margin-bottom: 8px; }
.role p { font-size: .94rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; color: var(--navy); font-size: .85rem; }
.facts span { color: var(--muted); font-size: .88rem; }

/* ── Workflow ── */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
.flow-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.flow-col h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.flow-col dl { margin: 0; }
.flow-col dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.flow-col dl div:first-child { border-top: none; }
.flow-col dt { font-weight: 600; color: var(--navy); }
.flow-col dd { margin: 0; color: var(--muted); }
.facts-2 { grid-template-columns: repeat(2, 1fr); }

/* ── ADA checks ── */
.checks { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.checks li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px 9px 14px; font-weight: 600; color: var(--navy); }
.checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks-note { text-align: center; margin-top: 24px; font-size: .92rem; }
.section:not(.section-tint) .ivl { background: var(--tint); }

/* ── Pricing ── */
.ivl { display: flex; width: max-content; margin: 0 auto 32px; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 99px; }
.ivl-btn { border: none; background: none; font: 600 .92rem inherit; font-family: inherit; color: var(--muted); padding: 9px 20px; border-radius: 99px; cursor: pointer; }
.ivl-btn.on { background: var(--navy); color: #fff; }
.ivl-save { font-size: .76rem; font-weight: 700; color: var(--ok); margin-left: 4px; }
.ivl-btn.on .ivl-save { color: #b8f0c9; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
.plans[data-interval="month"] .iv-year, .plans[data-interval="year"] .iv-month { display: none; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan-featured { border: 2px solid var(--navy); box-shadow: 0 20px 50px rgba(27,58,90,.12); }
.plan-badge { position: absolute; top: -13px; left: 32px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.plan h3 { font-size: 1.35rem; }
.plan-for { font-size: .93rem; margin-top: 2px; }
.plan-price { margin-top: 18px; font-size: 3rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-bill { font-size: .88rem; margin-top: 8px; min-height: 1.5em; }
.plan .ticks { flex: 1; margin: 20px 0 26px; }
.plan .ticks li { font-size: .94rem; }
.plans-note { text-align: center; margin-top: 28px; font-size: .92rem; }
.pricing-cta-current { pointer-events: none; opacity: .6; }

/* ── FAQ ── */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; color: var(--navy); position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; }

/* ── Quotes ── */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote blockquote { color: var(--ink); }
.quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.quote figcaption img { border-radius: 50%; }
.quote figcaption strong { display: block; color: var(--ink); }

/* ── CTA + footer ── */
.cta { background: var(--navy); padding: 88px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d3deec; margin-top: 12px; font-size: 1.08rem; }
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 3fr; gap: 40px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { font-size: .9rem; margin-top: 12px; }
.footer-contact { line-height: 1.9; }
.footer-contact .link-btn, .footer-contact a { color: var(--navy); font-weight: 600; text-decoration: none; }
.footer-contact .link-btn:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { padding: 4px 0; font-size: .9rem; }
.footer li a, .footer li .link-btn { color: var(--muted); text-decoration: none; }
.footer li a:hover, .footer li .link-btn:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ── Contact modal + checkout overlay ── */
.modal[hidden], .checkout-overlay[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(15,29,46,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.contact-dialog { background: #fff; border-radius: 16px; padding: 32px; width: min(480px, 100%); position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.contact-dialog h2 { font-size: 1.35rem; }
.contact-sub { font-size: .9rem; margin: 4px 0 18px; }
.contact-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; }
#contactForm { display: flex; flex-direction: column; gap: 6px; }
#contactForm label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
#contactForm input, #contactForm textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #cfd8e4; border-radius: 8px; font: inherit; font-size: .95rem; resize: vertical; }
#contactForm input:focus, #contactForm textarea:focus { border-color: var(--accent); outline: none; }
#contactForm .btn { margin-top: 14px; }
.req { color: #b91c1c; }
.note { border-radius: 8px; padding: 14px; margin-bottom: 14px; font-size: .9rem; }
.note-ok { background: #f0fdf4; border: 1px solid #86efac; color: var(--ok); }
.note-err { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.checkout-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(15,29,46,.5); display: flex; align-items: center; justify-content: center; }
.checkout-modal { background: #fff; border-radius: 14px; padding: 28px 36px; text-align: center; }
.checkout-spinner { width: 32px; height: 32px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 1000px) {
    .demo-docs { grid-template-columns: repeat(3, 1fr); }
    .steps, .roles, .facts { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; margin-left: auto; }
    .nav.mobile-open { height: auto; }
    .nav.mobile-open .nav-inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 16px; }
    .nav.mobile-open .nav-links, .nav.mobile-open .nav-actions { display: flex; flex-direction: column; width: 100%; flex-basis: 100%; }
    .nav.mobile-open .nav-links, .nav.mobile-open .nav-actions { order: 3; }
    .nav.mobile-open .nav-actions { align-items: stretch; }
    .nav.mobile-open .nav-actions .btn { width: 100%; }
    .two-col, .two-col-media { grid-template-columns: 1fr; gap: 32px; }
    .demo-body { grid-template-columns: 1fr; }
    .demo-panel { border-left: none; border-top: 1px solid var(--line); }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .section { padding: 72px 0; }
}
@media (max-width: 359px) {
    .demo-title { display: none; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .demo-docs { grid-template-columns: 1fr 1fr; }
    .doc[data-doc="4"] { grid-column: 1 / -1; }
    /* A phone shows the plan at twice the size, around the new location. */
    .demo-plan { aspect-ratio: 4 / 3; }
    .plan-stage { width: 200%; transform: translate(-50%, -33%); transition: transform .8s cubic-bezier(.4,0,.2,1); }
    .demo.p-f .plan-stage { transform: translate(-17.5%, 0); }
    .demo-floors { display: none; }
    .demo-title { margin-left: 0; }
    .demo-bar .dot { display: none; }
    .demo-btn { padding: 3px 8px; }
    .demo-saved { margin-left: 4px; min-width: 0; }
    .demo-win { align-items: flex-start; }
    .steps, .roles, .facts { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; }
    .flow-col { padding: 18px 18px; }
    .flow-col dl div { grid-template-columns: 1fr; gap: 2px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .hero { padding-top: 48px; }
    .plan { padding: 26px 22px; }
    .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
