/* Verified Clinic Connect: public website. Brand tokens match the app (resources/css/tokens.css). */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/www/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/www/fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/www/fonts/ibm-plex-sans-600.woff2') format('woff2'); }

:root {
  --ink: #13212e; --ink-2: #4a5966; --deep: #0a3f4b; --harbour: #0e5e6f; --harbour-strong: #0a4855; --light: #3a9dad;
  --tint: #e3f0f2; --canvas: #f3f5f6; --line: #dce2e6; --surface: #fff; --accent: #eb6834; --focus: #1f6fe0;
  --radius: 14px; --wrap: 1200px; --font: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--harbour); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
.kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--harbour); }
.lede { font-size: 1.15rem; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--harbour); color: #fff; }
.btn-primary:hover { background: var(--harbour-strong); }
.btn-outline { border-color: var(--harbour); color: var(--harbour); background: #fff; }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--tint); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 20px; height: 20px; }

/* Header (like the reference: logo, audience links, Sign in, primary action; a quieter bar of section links below) */
.top { position: sticky; top: 0; z-index: 50; background: #fff; }
.top-main { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo img { height: 40px; width: auto; }
.top-links { display: flex; gap: 28px; margin-left: auto; }
.top-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.top-links a:hover { color: var(--harbour); }
.top-actions { display: flex; gap: 12px; }
.top-sub { background: var(--canvas); border-bottom: 1px solid var(--line); }
.top-sub nav { display: flex; gap: 30px; height: 54px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.top-sub a { color: var(--ink); text-decoration: none; font-size: 0.98rem; white-space: nowrap; }
.top-sub a:hover, .top-sub a[aria-current] { color: var(--harbour); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Photo placeholders: the photo covers the label once it's uploaded under the same name */
.ph { position: relative; margin: 0; overflow: hidden; background: linear-gradient(135deg, #e3f0f2, #cfe3e7); border-radius: var(--radius); }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph-label { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center; padding: 18px; color: var(--deep); font-size: 0.92rem; line-height: 1.45; border: 2px dashed #8fbac3; border-radius: inherit; }
.ph-label b { display: block; font-size: 1rem; }
.ph > img[hidden] ~ .ph-label { display: flex; flex-direction: column; }

/* Hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: var(--ink); }
.hero-media { position: absolute; inset: 0; border-radius: 0; background: linear-gradient(120deg, #0a3f4b 0%, #0e5e6f 45%, #3a9dad 100%); }
.hero-media > img { position: absolute; inset: 0; }
.hero-media .ph-label { inset: auto 20px 20px auto; width: 360px; height: auto; background: rgba(255,255,255,.88); }
.hero-card { position: relative; max-width: 640px; margin: 72px 0; padding: 44px 44px 40px; background: rgba(255,255,255,.93); backdrop-filter: blur(6px); border-radius: 28px; box-shadow: 0 24px 60px rgba(5,38,46,.18); }
.hero-card h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin: 14px 0 18px; }
.hero-card .lede { font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--ink-2); }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--canvas); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; display: grid; gap: 14px; }

/* Audience tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: var(--canvas); border-radius: 999px; width: fit-content; margin: 0 auto 40px; }
.tabs button { border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; font: 600 1rem var(--font); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--harbour); color: #fff; }
.tab-panel { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel ul, .spot ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tab-panel li, .spot li { position: relative; padding-left: 32px; color: var(--ink-2); }
.tab-panel li::before, .spot li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230e5e6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.tab-panel li b, .spot li b { color: var(--ink); font-weight: 600; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(10,63,75,.14); background: #fff; }
.shot img { width: 100%; }

/* Trust tiles (like the reference's award strip, with facts about the product) */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 18px; text-align: center; display: grid; gap: 10px; justify-items: center; align-content: start; }
.tile .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--harbour); }
.tile .ico svg { width: 28px; height: 28px; }
.tile b { font-size: 1rem; line-height: 1.3; }
.tile span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }

/* Modules */
.mod-group + .mod-group { margin-top: 48px; }
.mod-group > h3 { font-size: 1.05rem; color: var(--ink-2); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.mod-group > h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--light); }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; transition: border-color .15s, box-shadow .15s; }
.mod:hover { border-color: var(--light); box-shadow: 0 10px 30px rgba(10,63,75,.08); }
.mod .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--harbour); margin-bottom: 6px; }
.mod .ico svg { width: 22px; height: 22px; }
.mod h4 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.mod p { color: var(--ink-2); font-size: 0.97rem; }
.mod .new { justify-self: start; font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9a3d12; background: #fdeee6; padding: 3px 9px; border-radius: 999px; }
.mod .new.soon { color: var(--deep); background: var(--tint); }

/* Spotlights */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot + .spot { margin-top: 112px; }
.spot.flip .spot-text { order: 2; }
.spot-text { display: grid; gap: 14px; align-content: start; }
.spot-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.spot-media { position: relative; }
.spot-media .ph { aspect-ratio: 4 / 3; }
.spot-media .shot.float { position: absolute; width: 62%; right: -24px; bottom: -36px; }
.spot-media .shot.float.left { right: auto; left: -24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border-radius: 20px; padding: 32px; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--harbour); color: #fff; font-weight: 600; font-size: 1.1rem; }
.step p { color: var(--ink-2); }
.csm { margin-top: 24px; display: flex; gap: 20px; align-items: flex-start; background: var(--tint); border-radius: 20px; padding: 28px 32px; }
.csm .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--harbour); flex: none; }
.csm .ico svg { width: 26px; height: 26px; }
.csm h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--deep); }
.csm p { margin: 0; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 640px) { .csm { flex-direction: column; padding: 22px; } }

/* Security band */
.band { background: linear-gradient(135deg, var(--deep), var(--harbour)); color: #fff; }
.band .kicker { color: #9fd6df; }
.band .lede { color: #d6ecef; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.sec { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 26px; display: grid; gap: 8px; }
.sec h3 { font-size: 1.1rem; }
.sec p { color: #d6ecef; font-size: 0.97rem; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--harbour); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* Demo form */
.demo { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.demo-copy { display: grid; gap: 16px; }
.demo-copy .ph { aspect-ratio: 4 / 3; margin-top: 12px; }
form.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(10,63,75,.08); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.f { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
label.f span.opt { color: var(--ink-2); font-weight: 400; }
input, select, textarea { font: 400 1rem var(--font); color: var(--ink); border: 1px solid #b9c3ca; border-radius: 10px; padding: 12px 14px; background: #fff; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
fieldset legend { font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.93rem; cursor: pointer; }
.chips input { width: auto; accent-color: var(--harbour); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--harbour); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; }
.form-msg.ok { background: #e6f4ea; color: #1c6b3a; }
.form-msg.err { background: #fcebea; color: #b3261e; }

/* Final CTA + footer */
.cta-band { background: var(--tint); text-align: center; }
.cta-band .hero-cta { justify-content: center; }
footer { background: var(--deep); color: #cfe3e7; padding: 64px 0 40px; font-size: 0.95rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot img { height: 40px; width: auto; margin-bottom: 16px; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #cfe3e7; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }

/* Video dialog */
dialog.video { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: hidden; }
dialog.video::backdrop { background: rgba(5,38,46,.75); }
dialog.video video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
dialog.video .ph { aspect-ratio: 16 / 9; border-radius: 0; }
dialog.video .close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.4rem; cursor: pointer; }

/* Responsive */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .top-links, .top-actions .btn-primary { display: none; }
  .top-main { gap: 12px; height: 72px; }
  .top-actions { margin-left: auto; }
  .logo img { height: 34px; }
  .hero { min-height: 0; padding: 220px 0 0; align-items: flex-end; }
  .hero-media { height: 300px; bottom: auto; }
  .hero-media .ph-label { inset: 12px 12px auto 12px; width: auto; }
  .hero-card { margin: 0 0 40px; padding: 30px 24px; }
  .section { padding: 64px 0; }
  .tab-panel, .spot, .demo { grid-template-columns: 1fr; gap: 32px; }
  .spot.flip .spot-text { order: 0; }
  .spot + .spot { margin-top: 80px; }
  .spot-media .shot.float { position: static; width: 100%; margin-top: 16px; }
  .tiles, .steps, .sec-grid { grid-template-columns: 1fr 1fr; }
  .mods { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tiles, .steps, .sec-grid, .foot { grid-template-columns: 1fr; }
  .top-actions .btn { padding: 0 18px; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Patient app slideshow (Patients tab) */
.app-show { background: linear-gradient(160deg, var(--tint), #f6fafb 70%); border: 1px solid var(--line); border-radius: 24px; padding: 32px 32px 20px; }
.app-slide { margin: 0; display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; animation: app-in .35s ease; }
.app-slide[hidden] { display: none; }
@keyframes app-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.phone { border: 9px solid var(--ink); border-radius: 40px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px rgba(10,63,75,.18); aspect-ratio: 603 / 1311; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.app-slide figcaption .kicker { margin: 0 0 6px; }
.app-slide h4 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 12px; color: var(--ink); }
.app-slide figcaption > p:not(.kicker) { color: var(--ink-2); margin: 0; }
.app-slide ul { margin-top: 18px; gap: 10px; }
.app-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.app-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--harbour); display: grid; place-items: center; cursor: pointer; }
.app-arrow:hover { background: var(--tint); }
.app-dots { display: flex; gap: 6px; }
.app-dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.app-dots button::after { content: ''; width: 9px; height: 9px; border-radius: 999px; background: #b8cdd2; transition: width .2s, background .2s; }
.app-dots button[aria-current="true"]::after { width: 24px; background: var(--harbour); }
.app-pause { border: 0; background: none; color: var(--ink-2); font: 500 .88rem var(--font); cursor: pointer; padding: 8px 6px; text-decoration: underline; text-underline-offset: 3px; }
.app-show button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  .app-show { padding: 22px 16px 12px; border-radius: 20px; }
  .app-slide { grid-template-columns: 1fr; gap: 22px; }
  .phone { width: min(230px, 70%); margin: 0 auto; border-width: 7px; border-radius: 32px; }
  .app-nav { gap: 10px; flex-wrap: wrap; }
  .app-dots { gap: 2px; }
  .app-dots button { width: 22px; }
}
@media (prefers-reduced-motion: reduce) { .app-slide { animation: none; } }
@media (min-width: 641px) and (max-width: 1080px) { .app-slide { grid-template-columns: 200px 1fr; gap: 26px; } .app-show { padding: 26px 24px 16px; } }

/* Back to top: appears after the first screen; sits above the page, clear of the phone's home bar. */
.to-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--harbour); color: #fff; box-shadow: 0 8px 24px rgba(10,63,75,.25); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s, background .15s; }
.to-top[hidden] { display: none; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--harbour-strong); }
.to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Product pages (e.g. /efax-canada): a light hero with a screenshot, plans and a map card. */
.page-hero { background: linear-gradient(180deg, var(--tint), #fff); padding: 72px 0 80px; }
.page-hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.page-hero-text { display: grid; gap: 16px; align-content: start; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero .hero-cta { margin-top: 8px; }
.price-line { font-size: 1.1rem; color: var(--ink-2); }
.price-line b { font-size: 1.6rem; color: var(--deep); }
.price-line span { white-space: nowrap; }
.tiles.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.ticks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230e5e6f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 30px 60px rgba(10,63,75,.10); }
.map-card svg { width: 100%; height: auto; display: block; }
.map-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.map-labels span { display: grid; font-size: .9rem; color: var(--ink-2); }
.map-labels span:last-child { text-align: right; }
.map-labels b { color: var(--ink); font-size: 1.05rem; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 12px; align-content: start; }
.plan-main { border: 2px solid var(--harbour); box-shadow: 0 20px 50px rgba(10,63,75,.10); }
.plan h3 { font-size: 1.3rem; }
.plan-price { font-size: 2.6rem; font-weight: 600; color: var(--deep); line-height: 1.1; }
.plan-price .from { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.plan-price .per { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.plan-price-text { font-size: 1.9rem; }
.plan-inc { color: var(--ink-2); margin-bottom: 6px; }
.plan ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--harbour); border-bottom: 2.5px solid var(--harbour); transform: rotate(-45deg); }
.plan .btn { justify-self: start; }
@media (max-width: 1080px) { .tiles.tiles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; gap: 36px; } .plans { grid-template-columns: 1fr; } .page-hero { padding: 48px 0 56px; } }
@media (max-width: 520px) { .tiles.tiles-4 { grid-template-columns: 1fr 1fr; } .plan { padding: 24px; } }

/* Mobile header: logo + hamburger. The menu is built by site.js from the header's own links. */
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); place-items: center; cursor: pointer; }
.menu-btn svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn .mb-close, .menu-btn[aria-expanded="true"] .mb-open { display: none; }
.menu-btn[aria-expanded="true"] .mb-close { display: inline; }
.menu-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mnav { display: none; }
@media (max-width: 860px) {
  .js .menu-btn:not([hidden]) { display: grid; }
  .js .top-actions, .js .top-sub { display: none; }
  .js .mnav:not([hidden]) { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(10,63,75,.16); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 20px; }
  .mnav .mnav-group { padding: 8px 20px; }
  .mnav .mnav-group + .mnav-group { border-top: 1px solid var(--line); }
  .mnav h2 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 10px 0 2px; font-weight: 600; }
  .mnav a:not(.btn) { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 500; }
  .mnav a:not(.btn):hover, .mnav a:not(.btn):focus-visible { color: var(--harbour); }
  .mnav .btn { width: 100%; margin-top: 12px; justify-content: center; }
  .mnav .mnav-signin { color: var(--ink-2) !important; font-weight: 400 !important; font-size: 1rem !important; }
}

/* Modules: a quiet index per group beside a large real screenshot. */
.mx-group { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 56px; padding: 48px 0 56px; border-top: 1px solid var(--line); }
.mx-group:first-of-type { margin-top: 8px; }
.mx-title { grid-column: 1; font-size: 1.35rem; margin: 0 0 14px; }
.mx-list { grid-column: 1; display: flex; flex-direction: column; }
.mx-row { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-left: 2px solid var(--line); padding: 12px 16px 13px 18px; cursor: pointer; }
.mx-row + .mx-row { margin-top: 2px; }
.mx-row:hover { border-left-color: #a9bcc2; }
.mx-row[aria-selected="true"] { border-left: 3px solid var(--harbour); padding-left: 17px; }
.mx-row[aria-selected="true"] .mx-name { color: var(--harbour); }
.mx-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.mx-name { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 1.04rem; line-height: 1.3; }
.mx-new { font-size: .74rem; font-weight: 600; color: var(--harbour); border: 1px solid #9fc6cd; border-radius: 4px; padding: 0 5px; line-height: 1.5; transform: translateY(-1px); }
.mx-desc { display: block; margin-top: 3px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; max-width: 46ch; }
.mx-preview { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: start; position: sticky; top: 156px; }
.mx-frame { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--canvas); }
.mx-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mx-preview figcaption { margin-top: 12px; color: var(--ink-2); font-size: .93rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mx-preview figcaption a { font-weight: 500; }
.mx-note { color: var(--ink-2); font-size: .88rem; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .mx-group { grid-template-columns: 1fr; grid-template-rows: none; padding: 36px 0 40px; }
  .mx-title { grid-column: 1; }
  .mx-preview { grid-column: 1; grid-row: auto; position: static; order: -1; margin-bottom: 18px; }
  .mx-title { order: -2; }
  .mx-group { display: flex; flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) { .mx-frame img { transition: opacity .18s ease; } .mx-frame img.mx-loading { opacity: .35; } }
