/* All in the Cloud — site styles */
:root {
  --navy: #2b3a8f;
  --blue: #2f6fb8;
  --sky: #29a8df;
  --ink: #1c2333;
  --muted: #5a6478;
  --line: #e3e8f0;
  --wash: #f4f7fb;
  --white: #ffffff;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--wash); }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Placeholders Clive needs to fill in before launch */
.todo { background: #fff3b0; outline: 2px dashed #e0b400; border-radius: 4px; padding: 0 4px; color: #6b5500; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; color: var(--navy); white-space: nowrap; }
.brand img { width: 52px; }
.brand span { color: var(--sky); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); }

/* Buttons */
.btn { display: inline-block; white-space: nowrap; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .1s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.nav .btn { padding: 9px 18px; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(160deg, #eef5fc 0%, #ffffff 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.hero-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(43,58,143,.08); }
.hero-card h2 { font-size: 1.15rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky); -webkit-mask: radial-gradient(circle, #000 0 100%); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; padding: 22px 20px; }
.trust img { height: 64px; width: auto; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.trust-item strong { color: var(--ink); display: block; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 700; text-decoration: none; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--navy)); color: #fff; font-weight: 800; margin-bottom: 14px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* Testimonials */
.quote { font-size: 1.02rem; }
.quote footer { margin-top: 12px; font-weight: 700; color: var(--navy); }
.quote footer span { font-weight: 400; color: var(--muted); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; list-style: none; }
.chips a, .chips li > span { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* Note box */
.note { border-left: 4px solid var(--sky); background: var(--wash); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius); padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { margin: 0; opacity: .9; }
.cta .btn-primary { background: #fff; color: var(--navy); }
.cta .btn-ghost { border-color: #fff; color: #fff; }

/* Page header (inner pages) */
.page-head { padding: 56px 0 40px; background: linear-gradient(160deg, #eef5fc 0%, #ffffff 70%); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* Prose */
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

/* Photo placeholder */
.photo-ph { aspect-ratio: 4/5; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 12px, #e5ebf4 12px, #e5ebf4 24px); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; font-weight: 600; }

/* Form */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfd7e4; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(41,168,223,.35); border-color: var(--sky); }
.hidden { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #151c33; color: #c9d1e3; padding: 56px 0 28px; margin-top: 72px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #97a2bb; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Menu button on phones and iPads in portrait, so the header never squashes */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; min-height: 44px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); gap: 0; box-shadow: 0 12px 24px rgba(16,24,40,.08); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; text-align: center; border-bottom: 0; padding: 12px 18px; }
  .nav.open { display: flex; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta { padding: 30px 24px; }
  .trust img { height: 52px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 44px; }
}

/* TPB seal: the source badge carries an old number on the right, so only the seal is shown */
.tpb-seal { width: 60px; height: 66px; object-fit: cover; object-position: 0 50%; }
.tpb { display: flex; align-items: center; gap: 12px; }

/* Team initials until photos are added */
.avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--sky), var(--navy)); }
