/* Compass One / Caelix website. Colours match the Caelix app and logo. */
:root {
  --accent: #4A2BE6;
  --accent-dim: #2E1C9C;
  --accent-tint: rgba(74, 43, 230, 0.10);
  --violet: #7B2FD4;
  --violet-tint: rgba(123, 47, 212, 0.12);
  --pink: #D9358A;
  --pink-tint: rgba(217, 53, 138, 0.12);
  --gradient: linear-gradient(135deg, #4A2BE6 0%, #7B2FD4 55%, #D9358A 100%);

  --bg: #FFFFFF;
  --bg-tint: #F7F6FD;
  --card: #FFFFFF;
  --text: #1A1538;
  --muted: #625D80;
  --border: rgba(26, 21, 56, 0.10);

  --safety: #2F7D4C; --safety-tint: rgba(92, 179, 126, 0.16);
  --target: #A66F14; --target-tint: rgba(217, 161, 60, 0.18);
  --reach: #B23A52;  --reach-tint: rgba(225, 116, 144, 0.16);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(26, 21, 56, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px rgba(74, 43, 230, 0.28); }
.btn-secondary { background: var(--accent-tint); color: var(--accent); }
.btn-ghost { color: var(--text); padding: 9px 12px; font-size: 14px; }
.btn-light { background: #fff; color: var(--accent); box-shadow: 0 10px 24px rgba(26, 21, 56, 0.18); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(26, 21, 56, 0.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.brand img { display: block; }
.brand.small { font-size: 18px; }
.brand .by { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--gradient); color: #fff; padding: 80px 0 110px; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-a { width: 620px; height: 620px; right: -200px; top: -260px; background: radial-gradient(circle, rgba(255,255,255,0.20), rgba(255,255,255,0) 70%); }
.orb-b { width: 520px; height: 520px; left: -220px; bottom: -300px; background: radial-gradient(circle, rgba(255,130,200,0.35), rgba(255,130,200,0) 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.eyebrow.dark { color: var(--violet); opacity: 1; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.lede { font-size: 18px; line-height: 1.6; opacity: 0.94; max-width: 560px; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; opacity: 0.85; margin: 18px 0 0; }

/* App illustration */
.hero-visual { position: relative; display: flex; justify-content: center; }
.mock-phone {
  width: 300px; background: #F7F6FD; color: var(--text);
  border-radius: 36px; padding: 14px 14px 10px;
  border: 8px solid #1A1538;
  box-shadow: 0 30px 70px rgba(20, 10, 60, 0.45);
  font-size: 12px;
}
.mock-top { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.mock-top img { width: 20px; height: 20px; }
.mock-hero { background: var(--gradient); color: #fff; border-radius: 16px; padding: 12px 14px 14px; margin-bottom: 12px; }
.mock-hero small { display: block; opacity: 0.85; }
.mock-hero strong { display: block; font-family: var(--font-display); font-size: 20px; }
.mock-hero .pill { display: inline-block; margin-top: 6px; background: rgba(255,255,255,0.22); border-radius: 99px; padding: 2px 9px; font-size: 10px; font-weight: 700; }
.mock-label { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 10px 2px 6px; }
.mock-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
.mock-card b { display: block; font-size: 12px; }
.mock-card small { color: var(--muted); font-size: 10px; }
.tier { font-size: 10px; font-weight: 700; border-radius: 99px; padding: 2px 8px; }
.tier.reach { color: var(--reach); background: var(--reach-tint); }
.tier.target { color: var(--target); background: var(--target-tint); }
.tier.safety { color: var(--safety); background: var(--safety-tint); }
.mock-suggest { justify-content: flex-start; }
.mock-suggest .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex: 0 0 auto; }
.mock-nav { display: flex; justify-content: space-around; padding: 10px 6px 2px; border-top: 1px solid var(--border); margin-top: 10px; }
.mock-nav i { width: 18px; height: 4px; border-radius: 3px; background: var(--border); }
.mock-nav i.on { background: var(--accent); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--text); border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 16px 40px rgba(20, 10, 60, 0.28); font-size: 12px;
}
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--muted); }
.float-a { left: -70px; top: -26px; }
.float-b { right: -70px; bottom: -30px; }
.fc-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.fc-icon.pink { background: var(--pink-tint); color: var(--pink); }
.fc-icon.violet { background: var(--violet-tint); color: var(--violet); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head.left .btn { margin-top: 24px; }
.fine { color: var(--muted); font-size: 13px; margin: 32px 0 0; }
.fine.center { text-align: center; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); color: #fff; font-weight: 800; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Personas */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.persona h3 { font-size: 22px; margin: 14px 0 12px; }
.persona ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.persona li { position: relative; padding-left: 26px; font-size: 15px; color: var(--muted); }
.persona li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.persona-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.persona-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.violet { color: var(--accent); background: var(--accent-tint); }
.purple { color: var(--violet); background: var(--violet-tint); }
.pink { color: var(--pink); background: var(--pink-tint); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.f-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px; }
.plan h3 { font-size: 24px; }
.plan-for { color: var(--muted); margin: 4px 0 18px; font-size: 15px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.plan .btn { width: 100%; }
.plan-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; box-shadow: 0 24px 50px rgba(74, 43, 230, 0.18); }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px 12px; }

/* Get the app */
.get-app { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.device-cards { display: grid; gap: 16px; }
.device { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; background: var(--bg-tint); border-radius: var(--radius); padding: 20px; }
.device h3 { font-size: 18px; grid-column: 2; }
.device p { grid-column: 2; margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.device-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; }
.device-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Contact */
.contact { background: var(--gradient); color: #fff; padding: 72px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 8px; }
.contact p { margin: 0; opacity: 0.92; font-size: 17px; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 20px; margin-left: auto; }
.footer-inner nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .main-nav { gap: 16px; }
  .hero-inner, .get-app { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .features, .plans { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .header-inner { height: 60px; gap: 12px; }
  .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
    box-shadow: 0 16px 30px rgba(26, 21, 56, 0.10);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  }
  .main-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .menu-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions { margin-left: auto; }

  .hero { padding: 48px 0 64px; }
  .lede { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .mock-phone { width: 270px; }
  .float-card { display: none; }
  .section { padding: 64px 0; }
  .steps, .cards-3, .features, .plans { grid-template-columns: 1fr; }
  .plans { gap: 28px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact .btn { width: 100%; }
  .footer-inner nav { margin-left: 0; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .main-nav { transition: none; }
}
