/* Cloudcairn website. Colours from the logo: deep navy, sky blue, slate stones. */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0B2142; --navy-2: #13305C; --sky: #5BB9E9; --sky-ink: #1B6FA3; --sky-soft: #E6F4FC;
  --slate: #64748B; --stone: #33456A; --paper: #F6F8FB; --surface: #FFFFFF; --ink: #0B2142;
  --muted: #4F5D73; --line: #DCE3EC; --ok: #13795B; --ok-soft: #E3F3EC; --warn: #9A6200; --warn-soft: #FBF0D9; --bad: #B3261E; --bad-soft: #FBE6E4;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px; --shadow: 0 24px 48px -24px rgba(11, 33, 66, .28);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .78rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-ink); }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.small { font-size: .88rem; color: var(--muted); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.35rem; border-radius: 12px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--display); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: #fff; color: var(--navy); }
.btn-small { min-height: 42px; padding: .6rem 1rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 248, 251, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font: 500 .95rem/1 var(--display); }
.nav-links a { color: var(--muted); text-decoration: none; padding-block: 8px; }
.nav-links a:hover { color: var(--navy); }
@media (max-width: 860px) {
  .nav { gap: 0 16px; padding-top: 10px; }
  .nav .btn { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 4px 0 0; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .brand img { height: 34px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  background: radial-gradient(1200px 520px at 85% -10%, var(--sky-soft), transparent 60%), var(--paper); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-text { position: relative; z-index: 1; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .accent { color: var(--sky-ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 32px 0 0; font: 500 .88rem/1.4 var(--display); color: var(--muted); }
.proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin-right: 9px; vertical-align: 1px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* The cairn: one card per service, stacked like stones, widest at the bottom */
.cairn { position: relative; display: grid; justify-items: center; padding: 70px 0 40px; isolation: isolate; }
/* The cloud from the logo, faint, with the stones inside it */
.cairn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(880px, 165vw); aspect-ratio: 1000 / 640;
  transform: translate(calc(-50% + 100px), -55%); background: url("../brand/cloud-outline.svg") center / contain no-repeat; opacity: .22; pointer-events: none; }
.stone { position: relative; display: grid; gap: 3px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy); margin-bottom: -5px; padding: 10px 18px; }
.stone p { display: grid; gap: 1px; }
.stone b { font: 700 .9rem/1.3 var(--display); }
.stone p span { font-size: .78rem; color: var(--muted); }
.stone-label { justify-self: start; font: 600 .66rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--sky-soft); color: var(--sky-ink); }
.s1 { width: min(270px, 66%); border-radius: 24px 30px 22px 28px; transform: rotate(-2.5deg); z-index: 5; }
.s2 { width: min(310px, 74%); border-radius: 28px 34px 26px 32px; transform: rotate(1.8deg); z-index: 4; background: #F2F6FA; }
.s2 .stone-label { background: #E4ECF5; color: var(--stone); }
.s3 { width: min(335px, 82%); border-radius: 30px 36px 32px 34px; transform: rotate(-1.4deg); z-index: 3; }
.s4 { width: min(375px, 92%); border-radius: 34px 40px 34px 38px; transform: rotate(1.2deg); z-index: 2; background: #EEF2F7; }
.s4 .stone-label { background: #DCE4EE; color: var(--stone); }
.s4 .tick { position: absolute; right: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); }
.s4 .tick::after { content: ""; position: absolute; left: 9px; top: 5px; width: 7px; height: 12px; border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.s5 { width: min(410px, 100%); padding: 14px 22px; border-radius: 38px 46px 42px 40px; background: var(--navy); border-color: var(--navy); color: #fff; z-index: 1; transform: rotate(-.8deg); margin-bottom: 0; }
.s5 b { color: #fff; }
.s5 p span { color: #B9C6D8; }
.s5 .stone-label { background: rgba(91, 185, 233, .18); color: var(--sky); }
.caption, figcaption { font-size: .78rem; color: var(--muted); margin-top: 18px; text-align: center; }
.cairn .caption { margin-top: 64px; }

/* Places */
.places { background: var(--surface); border-block: 1px solid var(--line); }
.places .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; padding-block: 20px; }
.places-title { font: 600 .74rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.places ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0; padding: 0; font: 700 1.02rem/1 var(--display); color: var(--navy); }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 12px; align-content: start; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service:hover { border-color: #BFD3E6; box-shadow: var(--shadow); transform: translateY(-2px); }
.icon { width: 44px; height: 44px; fill: none; stroke: var(--sky-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--sky-soft); border-radius: 12px; padding: 4px; }
.service p { color: var(--muted); font-size: .96rem; }
.service ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--sky); border-radius: 2px; }
@media (max-width: 1020px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Operrate */
.product { background: var(--navy); color: #fff; }
.product h2 { color: #fff; margin: 14px 0 16px; }
.product .eyebrow { color: var(--sky); }
.product .lede { color: #C3CFDF; }
.product-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.product-grid > * { min-width: 0; }
.points { list-style: none; counter-reset: point; display: grid; gap: 18px; margin: 30px 0 34px; padding: 0; }
.points li { counter-increment: point; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
.points li::before { content: "0" counter(point); grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: rgba(91, 185, 233, .14); color: var(--sky); display: grid; place-items: center; font: 700 .8rem var(--display); }
.points b { font: 700 1rem/1.4 var(--display); }
.points span { color: #B9C6D8; font-size: .95rem; }
.features { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 48px 0 0; }
.features li { border: 1px solid rgba(255, 255, 255, .16); color: #DCE5F0; border-radius: 99px; padding: 7px 14px; font: 500 .86rem/1 var(--display); }
.product figcaption { color: #9FB0C6; }
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; gap: 40px; } }

/* App illustration (always light, like a screenshot) */
.screen-figure { margin: 0; min-width: 0; }
.screen { background: #fff; color: #172B45; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); font-size: 13px; }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEF1F5; border-bottom: 1px solid #E3E8EE; }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CDD4DC; }
.screen-bar span { margin-left: 10px; font: 500 11.5px var(--body); color: #6B7A8C; background: #fff; padding: 4px 10px; border-radius: 6px; }
.screen-body { display: grid; grid-template-columns: 132px 1fr; min-height: 320px; }
.screen-side { background: var(--navy); color: #C9D3DF; padding: 14px 10px; display: grid; gap: 3px; align-content: start; font-size: 12.5px; }
.screen-side b { color: #fff; font: 700 14px var(--display); padding: 0 8px 10px; }
.screen-side span { padding: 6px 8px; border-radius: 6px; }
.screen-side .on { background: rgba(255, 255, 255, .1); color: #fff; }
.screen-main { padding: 16px; background: #F6F8FA; min-width: 0; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.screen-head h3 { font-size: 15px; color: #172B45; }
.screen-head em { font-style: normal; background: var(--navy); color: #fff; padding: 7px 11px; border-radius: 8px; font: 600 11.5px var(--display); white-space: nowrap; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid #E3E8EE; border-radius: 10px; }
.screen table { width: 100%; border-collapse: collapse; min-width: 400px; }
.screen th { text-align: left; font: 600 10.5px var(--body); color: #6B7A8C; text-transform: uppercase; letter-spacing: .05em; padding: 9px 9px; border-bottom: 1px solid #E3E8EE; }
.screen td { padding: 9px 9px; border-bottom: 1px solid #EEF1F5; white-space: nowrap; }
.screen tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.p-open { background: #E5EEF8; color: #24508C; } .p-prog { background: var(--warn-soft); color: var(--warn); } .p-done { background: var(--ok-soft); color: var(--ok); } .p-late { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 560px) { .screen-body { grid-template-columns: 1fr; } .screen-side { display: none; } }

/* How we work */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: "Step " counter(step); font: 600 .74rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-ink); }
.steps p, .values p { color: var(--muted); font-size: .96rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.values div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } .values { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about h2 { margin: 14px 0 18px; }
.about-more { margin-top: 14px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-grid > * { min-width: 0; }
.roles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 0; }
.roles li { font-size: .86rem; border: 1px solid var(--line); background: var(--paper); padding: 7px 12px; border-radius: 99px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--line); display: grid; gap: 30px; }
.timeline li { position: relative; padding-left: 28px; display: grid; gap: 4px; }
/* The dot's centre sits exactly on the 2px line: line centre is 1px left of the item; the dot is 16px wide. */
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--surface); border: 3px solid var(--sky); }
.timeline li:last-child::before { background: var(--navy); border-color: var(--navy); }
.timeline small { font: 600 .74rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--sky-ink); }
.timeline b { font: 700 1.06rem/1.3 var(--display); color: var(--navy); }
.timeline span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact h2 { margin: 14px 0 16px; }
.contact-direct { margin-top: 22px; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; font: 600 .88rem/1.3 var(--display); color: var(--navy); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid #C9D3DF; border-radius: 10px; padding: .75rem .85rem; min-height: 48px; }
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-ink); box-shadow: 0 0 0 3px rgba(91, 185, 233, .35); background: #fff; }
[aria-invalid="true"] { border-color: var(--bad); }
.error { color: var(--bad); font: 500 .84rem/1.3 var(--body); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; }
.form-status p { padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
.form-status .ok { background: var(--ok-soft); color: var(--ok); }
.form-status .bad { background: var(--bad-soft); color: var(--bad); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .btn { margin-left: auto; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 540px) { .contact-form { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* Privacy and other text pages */
.legal h1 { margin: 14px 0 18px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #2B3A52; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.lost-mark { width: 120px; height: auto; margin: 0 auto 24px; display: block; }
.center .lede { margin: 16px auto 28px; }

/* Footer */
.site-footer { background: var(--navy); color: #B9C6D8; padding-top: 56px; }
.site-footer a { color: #DCE5F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: 56px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-links { display: grid; gap: 10px; font: 500 .95rem/1.3 var(--display); }
.footer-contact { font: 500 .95rem/1.3 var(--display); }
.footer-legal { padding-block: 22px 28px; font-size: .82rem; color: #8FA1B8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.screen td:first-child { white-space: normal; min-width: 150px; }
@media (min-width: 561px) { .screen table { min-width: 0; } }
@media (max-width: 920px) { .cairn::before { transform: translate(-50%, -55%); } }
