/* Mountbay site. Light and calm: icy white, deep navy type, royal blue for actions.
   The one loud element is the hero's Finder window resting on the icon's three waves. */
:root {
  --ice: #F6FAFF;
  --mist: #E3ECF6;
  --line: #CFDCEA;
  --navy: #0E2A47;
  --slate: #4B6481;
  --royal: #1E6DFF;
  --royal-deep: #1557D6;
  --teal: #13C6C4;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --radius-window: 12px;
  --radius-control: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 88px; }
body { margin: 0; background: var(--ice); color: var(--navy); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--royal); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--slate); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-control);
  background: var(--royal); color: var(--white); font: 600 16px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--royal-deep); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--white); }
.btn.light { background: var(--white); color: var(--navy); }
.btn.light:hover { background: var(--mist); }
.btn.secondary { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ice) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 800 21px/1 var(--display); letter-spacing: -0.01em; }
.links { display: flex; align-items: center; gap: 28px; }
.links a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:not(.btn):hover { color: var(--royal); }
.site-footer { background: var(--navy); color: #B9CAE0; padding: 40px 0 48px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.site-footer .brand { color: var(--white); font-size: 18px; }
.site-footer p { flex: 1; min-width: 240px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a:not(.brand) { color: #B9CAE0; text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--white); }

/* Hero */
.hero { position: relative; padding-top: 56px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-bottom: 230px; }
/* The window sits low enough to dip into the bay. */
.hero-grid .finder { transform: translateY(175px); }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
.lede { margin-top: 22px; font-size: 19px; color: var(--slate); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--slate); }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; }

/* The Finder window */
.finder { margin: 0; background: var(--white); border-radius: var(--radius-window); overflow: hidden; font: 13px/1.3 -apple-system, "SF Pro Text", var(--text);
  box-shadow: 0 0 0 .5px rgba(14, 42, 71, .18), 0 24px 60px -12px rgba(14, 42, 71, .35), 0 8px 18px -8px rgba(14, 42, 71, .2); }
.finder-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; background: #F3F6FA; border-bottom: 1px solid #E2E8F0; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.finder-title { font-weight: 600; color: #2B3A4B; }
.finder-body { display: grid; grid-template-columns: 210px 1fr; min-height: 300px; }
.finder-side { background: #EEF2F7; padding: 12px 8px; color: #33465A; }
.finder-side p { margin: 10px 8px 4px; font-size: 11px; font-weight: 600; color: #8696A8; }
.finder-side ul { list-style: none; margin: 0; padding: 0; }
.finder-side li { display: flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-side li svg { width: 16px; height: 16px; flex: none; color: #5D6F84; }
.finder-side li.on { background: #D6E2EF; }
.drives li { animation: moor .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--i) * .14s); }
@keyframes moor { from { opacity: 0; transform: translateX(-10px); } }
.finder-files { width: 100%; border-collapse: collapse; align-self: start; }
.finder-files th { text-align: left; font-weight: 500; color: #8696A8; font-size: 12px; padding: 8px 12px; border-bottom: 1px solid #EDF1F5; }
.finder-files td { padding: 6px 12px; color: #2B3A4B; white-space: nowrap; }
.finder-files tbody tr:nth-child(even) { background: #F6F8FB; }
.finder-files td:first-child { display: flex; align-items: center; gap: 8px; }
.finder-files td:nth-child(3), .finder-files td:nth-child(4) { color: #6B7C90; }
.finder-files .kind { width: 16px; height: 16px; flex: none; }
.finder-files .state { width: 15px; height: 15px; color: #6B7C90; }

/* Facts */
.facts { padding: 96px 0 40px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.facts h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.facts p { margin-top: 10px; color: var(--slate); font-size: 16px; }

/* Services */
.section-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.services { padding: 80px 0; }
.service-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.service-groups h3 { font-size: 20px; font-weight: 800; }
.service-groups > div > p { margin-top: 6px; color: var(--slate); font-size: 15px; }
.service-groups ul { list-style: none; margin: 18px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.service-groups li { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.more { margin-top: 28px; color: var(--slate); }

/* Pricing */
.pricing { padding: 40px 0 96px; }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.price-card { background: var(--navy); color: #D3DFEE; border-radius: 18px; padding: 36px; }
.price { color: var(--white); font: 600 18px/1 var(--display); }
.price span { display: block; font-size: 88px; font-weight: 800; letter-spacing: -0.04em; line-height: .95; margin-bottom: 8px; }
.price-card > p:not(.price) { margin-top: 14px; }
.price-card .fine { color: #9FB4CE; }
.buy-form { margin-top: 26px; }
.buy-form label { display: block; font-weight: 600; color: var(--white); margin-bottom: 8px; font-size: 15px; }
.buy-row { display: flex; gap: 10px; }
.buy-row select { flex: 1; min-height: 48px; border-radius: var(--radius-control); border: 0; padding: 0 14px; font: 500 16px var(--text); color: var(--navy); background: var(--white); }
.compare table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.compare th, .compare td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { font-size: 15px; color: var(--slate); font-weight: 600; border-bottom: 2px solid var(--navy); }
.compare thead th:not(:first-child), .compare td { width: 90px; text-align: center; }
.compare tbody th { font-weight: 500; }
.compare .tick { width: 20px; height: 20px; margin: auto; color: var(--royal); }
.compare .no { color: #9AAABD; }

/* FAQ */
.faq { padding: 24px 0 120px; }
.faq .section-title { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 27px; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 31px; }
details p { padding: 0 0 22px; color: var(--slate); max-width: 62ch; }

/* Closing band: the waves again, flowing into navy */
.closing { position: relative; }
.closing .waves { position: relative; height: 160px; }
.closing-body { background: var(--navy); color: #C9D7E8; padding: 24px 0 96px; text-align: center; }
.closing-body img { margin: 0 auto 22px; }
.closing-body h2 { color: var(--white); font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.closing-body p { margin: 12px 0 30px; }
.closing + * { margin-top: 0; }

/* Other pages: thank-you, messages, legal */
main > section:not([class]) { padding: 72px 0 96px; }
.eyebrow { color: var(--royal); font-weight: 600; margin-bottom: 8px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.key { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(18px, 3vw, 26px); letter-spacing: .06em; background: var(--white);
  border: 1.5px dashed var(--royal); border-radius: 14px; padding: 18px; text-align: center; user-select: all; word-break: break-all; }
.prose h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose p { margin-top: 12px; }
.draft { background: #FFF7E0; color: #6B4B00; border: 1px solid #F2D27A; border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 28px; }

/* Smaller screens */
@media (max-width: 1000px) {
  .hero-grid, .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid .finder { max-width: 680px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .links a:not(.btn) { display: none; }
  .hero { padding-top: 32px; }
  .hero-grid { padding-bottom: 150px; }
  .hero-grid .finder { transform: translateY(50px); }
  .waves { height: 130px; }
  .finder-body { grid-template-columns: 1fr; min-height: 0; }
  .finder-files { display: none; }
  .finder-side li { font-size: 14px; padding: 6px 8px; }
  .facts-grid, .service-groups { grid-template-columns: 1fr; gap: 32px; }
  .price-card { padding: 28px; }
  .price span { font-size: 72px; }
  .buy-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drives li { animation: none; }
}
