/* Connected Groups website. Apple-like: system type, big statements, light/dark bands, one blue accent plus the
   mark's green and orange. Phones and the laptop are CSS frames around real app screenshots. */
:root {
  --navy: #0d1b36; --navy-2: #13264a; --ink: #0d1b36; --muted: #5a6780; --line: #dfe5ee;
  --bg: #ffffff; --light: #f3f6fa; --blue: #1F6BE6; --green: #2EAD5C; --orange: #FA8C1F;
  --radius: 22px; --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 0.98; font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; font-weight: 800; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 700; margin: 14px 0 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; margin: 18px 0 0; }
.sub { color: var(--muted); font-size: 19px; max-width: 40em; margin: 14px 0 0; }
.center { text-align: center; }
.note { color: var(--muted); font-size: 15px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(13,27,54,0.08); }
.bar-in { max-width: var(--max); margin: 0 auto; padding: 10px max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand.small { font-size: 15px; gap: 8px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:not(.btn):hover { color: var(--blue); }
@media (max-width: 760px) { nav a:not(.btn) { display: none; } .brand span { font-size: 16px; } }

.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s; }
.btn:hover { background: #1658c4; transform: translateY(-1px); }
.btn-sm { font-size: 14px; padding: 8px 16px; color: #fff !important; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% 20%, #e8f0ff 0%, transparent 60%), radial-gradient(800px 500px at 10% 90%, #eaf8ef 0%, transparent 60%), var(--bg); overflow: hidden; }
.hero-in { max-width: var(--max); margin: 0 auto; padding: 72px max(20px, env(safe-area-inset-left)) 80px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-top: 48px; text-align: left; } .hero-phone { margin: 0 auto; } }

/* Phone and laptop frames */
.phone { margin: 0; width: min(330px, 78vw); justify-self: center; background: #0b0f17; padding: 11px; border-radius: 52px; box-shadow: 0 40px 80px -30px rgba(13,27,54,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.phone img { border-radius: 42px; width: 100%; height: auto; }
.hero-phone { transform: rotate(2deg); }
.laptop { margin: 40px auto 24px; max-width: 980px; background: #0b0f17; padding: 14px 14px 22px; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(13,27,54,0.45); }
.laptop img { border-radius: 8px; width: 100%; height: auto; }

/* Bands */
.band { padding: clamp(72px, 10vw, 128px) 0; }
.band.light { background: var(--light); }
.band.dark { background: var(--navy); color: #fff; }
.band.dark .eyebrow { color: #7fb0ff; }
.band.dark .lede, .band.dark .sub, .band.dark p { color: #c4cfe2; }
.band.dark h3 { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 0.8fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.ticks { list-style: none; padding: 0; margin: 26px 0 18px; display: grid; gap: 14px; }
.ticks li { padding-left: 34px; position: relative; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) 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='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 44px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(13,27,54,0.04), 0 12px 32px -18px rgba(13,27,54,0.25); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.band.dark .card { background: var(--navy-2); box-shadow: none; border: 1px solid rgba(255,255,255,0.08); }
.dot { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 14%, white); }
.card-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: #0b0f17; }
.card-img.tall { object-position: top; }
.card-art { aspect-ratio: 16 / 10; border-radius: 14px; background: linear-gradient(135deg, #1F6BE6, #0d1b36); display: flex; align-items: flex-end; padding: 18px; }
.card-art span { background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5); }

/* Steps */
.steps-wrap { text-align: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 44px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 980px; text-align: left; }
.steps li { counter-increment: s; color: var(--muted); }
.steps li b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 4px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Form */
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: 16px var(--font); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--light); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: 15px; color: var(--muted) !important; min-height: 1.4em; }
.form-msg.ok { color: var(--green) !important; font-weight: 600; }
.form-msg.err { color: #c62828 !important; }

.foot { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Reveal on scroll (off for reduced motion and without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-phone.reveal.in { transform: rotate(2deg); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.card-img.fit { object-fit: contain; background: #f3f6fa; padding: 10px; }
