/* CloudCast landing page. System fonts only, no third-party requests. */
:root {
  --ink: #1d1d1f;
  --mute: #6e6e73;
  --paper: #fbfbfd;
  --grey: #f5f5f7;
  --blue: #0071e3;
  --blue-l: #2997ff;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(22px, calc((100vw - 1180px) / 2));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: #000; color: var(--ink); font: 17px/1.47 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }

/* reveal on scroll (only when JS runs) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  background: rgba(22, 22, 23, .72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); color: #f5f5f7; font-size: 13px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { opacity: .8; transition: opacity .2s; }
.nav ul a:hover { opacity: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: #fff; font-weight: 500; font-size: 13px; padding: 6px 14px; border-radius: 980px; transition: background .2s, transform .2s; }
.pill:hover { background: #0077ed; }
@media (max-width: 720px) { .nav ul { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 500; padding: 12px 24px; border-radius: 980px; transition: transform .25s var(--ease), background .2s, box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: #fff; color: #000; }
.btn.primary:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, .18); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: #0077ed; box-shadow: 0 0 0 6px rgba(0, 113, 227, .22); }
.btn.ghost { color: #fff; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .26); }
.link { color: var(--blue-l); font-size: 19px; }
.link:hover { text-decoration: underline; }
.link::after { content: " ›"; }

/* ---------- phone ---------- */
.phone { --w: 320px; position: relative; width: var(--w); flex: none; padding: calc(var(--w) * .027); border-radius: 16% / 7.35%;
  background: linear-gradient(150deg, #4a4a4e 0%, #111 32%, #1b1b1d 70%, #3d3d40 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 90px -20px rgba(0, 0, 0, .55), 0 18px 36px -12px rgba(0, 0, 0, .35); }
.screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .135); overflow: hidden; background: #000; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.screen::after { content: ""; position: absolute; inset: 0; background: #eef3ff; opacity: var(--flash, 0); pointer-events: none; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(820px, 100svh); overflow: hidden; color: #fff; text-align: center; padding-top: 100px; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.6s ease; }
.sky.on { opacity: 1; }
.sky[data-s="sun"] { background: radial-gradient(70% 55% at 50% 0%, #6aa8f0 0%, transparent 70%), linear-gradient(#2b6dcf, #5d9be6 58%, #a8cdf2); }
.sky[data-s="rain"] { background: linear-gradient(#4b5666, #6c7788 55%, #97a2b1); }
.sky[data-s="snow"] { background: linear-gradient(#7d8ba1, #aab6c7 55%, #d6dee9); }
.sky[data-s="storm"] { background: radial-gradient(60% 40% at 50% 8%, #66708a 0%, transparent 70%), linear-gradient(#2b3140, #4b5568 60%, #7a8596); }
.sky[data-s="night"] { background: radial-gradient(60% 45% at 50% 0%, #34487f 0%, transparent 70%), linear-gradient(#0a1129, #17244b 60%, #2c3d6e); }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); background: rgba(255, 255, 255, .22); animation: drift 22s ease-in-out infinite alternate; }
.blob.a { width: 520px; height: 280px; left: -120px; top: 180px; }
.blob.b { width: 640px; height: 320px; right: -180px; top: 380px; animation-duration: 30s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate3d(90px, 30px, 0) scale(1.15); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 980px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #5bf08a; box-shadow: 0 0 10px #5bf08a; }
.display { font-size: clamp(46px, 8.4vw, 116px); line-height: 1.02; font-weight: 650; letter-spacing: -.04em; }
.hero h1 { margin: 18px auto 0; max-width: 11em; text-shadow: 0 2px 40px rgba(0, 0, 0, .18); }
.lede { margin: 22px auto 0; max-width: 34em; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; font-weight: 400; letter-spacing: -.015em; opacity: .92; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.states { display: inline-flex; gap: 4px; margin-top: 30px; padding: 4px; border-radius: 980px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.states button { font: inherit; font-size: 14px; font-weight: 500; color: #fff; background: none; border: 0; padding: 7px 15px; border-radius: 980px; cursor: pointer; transition: background .3s, color .3s; }
.states button[aria-pressed="true"] { background: #fff; color: #1d1d1f; }
.hero .phone { --w: clamp(270px, 29vw, 380px); margin: 28px auto -150px; transition: transform .1s linear; will-change: transform; }

/* ---------- section heads ---------- */
.head { text-align: center; padding: 0 var(--gutter); }
.kicker { font-size: 17px; font-weight: 600; color: #ff9f0a; letter-spacing: -.01em; }
.h2 { font-size: clamp(38px, 6vw, 80px); line-height: 1.04; font-weight: 650; letter-spacing: -.038em; margin-top: 10px; }
.sub { max-width: 32em; margin: 20px auto 0; font-size: clamp(19px, 2.1vw, 25px); line-height: 1.3; letter-spacing: -.015em; color: #a1a1a6; }

/* ---------- charts ---------- */
.charts { background: #000; color: #fff; padding: 0 0 clamp(80px, 12vw, 150px); }
.charts .kicker { color: #64d2ff; }
.rail { display: flex; gap: 22px; margin-top: clamp(48px, 7vw, 84px); padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.chart { flex: 0 0 min(80vw, 560px); scroll-snap-align: start; }
.chart .pic { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 1; background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(0, 0, 0, .8); transition: transform .6s var(--ease); }
.chart:hover .pic { transform: scale(1.015); }
.chart img { width: 100%; height: 100%; object-fit: cover; }
.chart h3 { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.chart p { margin-top: 2px; font-size: 16px; color: #a1a1a6; }
.rail-ctl { display: flex; gap: 10px; justify-content: flex-end; padding: 22px var(--gutter) 0; }
.rail-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12); font-size: 20px; line-height: 1; transition: background .2s, opacity .2s; }
.rail-ctl button:hover { background: rgba(255, 255, 255, .22); }
.rail-ctl button[disabled] { opacity: .3; cursor: default; }
.models { margin: 56px auto 0; display: flex; gap: 10px 12px; justify-content: center; flex-wrap: wrap; padding: 0 var(--gutter); }
.models span { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 980px; color: #d2d2d7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* ---------- feature rows ---------- */
.row { padding: clamp(80px, 11vw, 150px) var(--gutter); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; overflow: hidden; }
.row.light { background: var(--grey); }
.row.white { background: #fff; }
.row.flip { grid-template-columns: 1.15fr 1fr; }
.row.flip .copy { order: 2; }
.row .kicker { color: var(--blue); }
.row .h2 { font-size: clamp(36px, 5vw, 64px); }
.row .copy p { margin-top: 20px; font-size: clamp(19px, 2vw, 24px); line-height: 1.32; letter-spacing: -.015em; color: var(--mute); max-width: 24em; }
.row .copy p b { color: var(--ink); font-weight: 600; }
.pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3vw, 36px); }
.pair .phone { --w: clamp(150px, 19vw, 270px); }
.pair .phone:nth-child(2) { margin-top: clamp(40px, 7vw, 90px); }
.pair.trio .phone { --w: clamp(120px, 15vw, 214px); }
.pair.trio .phone:nth-child(2) { margin-top: 0; transform: translateY(-34px); }
.pair.trio .phone:nth-child(3) { margin-top: clamp(30px, 5vw, 64px); }
.row.dark { background: radial-gradient(70% 60% at 50% 100%, #1b2c58 0%, transparent 70%), #05070f; color: #fff; }
.row.dark .copy p { color: #a1a1a6; }
.row.dark .kicker { color: #bf5af2; }
.row.dark .copy p b { color: #fff; }
@media (max-width: 860px) {
  .row, .row.flip { grid-template-columns: 1fr; text-align: center; }
  .row .copy p { margin-left: auto; margin-right: auto; }
  .row.flip .copy { order: 0; }
  .pair .phone { --w: min(38vw, 220px); }
  .pair.trio .phone { --w: min(28vw, 150px); }
  .pair.trio .phone:nth-child(2) { transform: none; margin-top: 0; }
  .pair.trio .phone:nth-child(3) { margin-top: 28px; }
  .pair.trio { margin-top: 8px; }
}

/* ---------- bento ---------- */
.more { background: var(--grey); padding: clamp(80px, 11vw, 150px) var(--gutter); color: var(--ink); }
.more .head { padding: 0; }
.more .kicker { color: var(--blue); }
.more .sub { color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(44px, 6vw, 80px); }
.tile { background: #fff; border-radius: 28px; padding: 28px 26px 30px; min-height: 250px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0, 0, 0, .03); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .25); }
.ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 14px -6px var(--c, #000); background: linear-gradient(160deg, var(--a), var(--c)); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-top: 44px; font-size: 22px; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.tile p { margin-top: 8px; font-size: 16px; line-height: 1.38; color: var(--mute); }
.fine { text-align: center; margin-top: 30px; font-size: 14px; color: var(--mute); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- privacy ---------- */
.privacy { position: relative; background: #000; color: #fff; text-align: center; padding: clamp(100px, 14vw, 190px) var(--gutter); overflow: hidden; isolation: isolate; }
.privacy::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(48, 209, 88, .28), rgba(10, 132, 255, .12) 60%, transparent); filter: blur(30px); }
.shield { width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(160deg, #5be584, #1f9d4a); box-shadow: 0 20px 50px -12px rgba(48, 209, 88, .55), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.shield svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy .kicker { color: #5be584; }
.privacy .sub { color: #c7c7cc; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1180px; }
.pillar { text-align: left; border-radius: 28px; padding: 28px 26px 30px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pillar b { display: block; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; font-weight: 650; letter-spacing: -.035em; }
.pillar span { display: block; margin-top: 12px; font-size: 16px; line-height: 1.38; color: #a1a1a6; }
.pillar::before { content: ""; display: block; width: 26px; height: 26px; margin-bottom: 40px; border-radius: 50%; background: #30d158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat; }
.truths { list-style: none; margin: clamp(48px, 6vw, 72px) auto 0; padding: 0; max-width: 780px; text-align: left; border-radius: 28px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.truths li { padding: 22px 28px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.38; color: #d2d2d7; letter-spacing: -.012em; }
.truths li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.truths b { color: #fff; font-weight: 600; }
.privacy .link { display: inline-block; margin-top: 36px; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar::before { margin-bottom: 22px; } }

/* ---------- final call ---------- */
.join { position: relative; text-align: center; color: #fff; padding: clamp(100px, 14vw, 180px) var(--gutter); overflow: hidden; isolation: isolate; background: radial-gradient(70% 55% at 50% 0%, #6aa8f0 0%, transparent 70%), linear-gradient(#2b6dcf, #5d9be6 60%, #a8cdf2); }
.join .app-icon { width: clamp(96px, 12vw, 132px); border-radius: 22.5%; margin: 0 auto 34px; box-shadow: 0 30px 60px -16px rgba(0, 20, 80, .55), 0 0 0 1px rgba(255, 255, 255, .25); }
.join .h2 { margin-top: 0; }
.join .sub { color: rgba(255, 255, 255, .88); }
.join .cta { margin-top: 38px; }
.join .for { margin-top: 22px; font-size: 14px; opacity: .8; }

/* ---------- footer ---------- */
footer { background: var(--grey); color: var(--mute); font-size: 13px; line-height: 1.5; padding: 34px var(--gutter) 44px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #d2d2d7; }
footer nav { display: flex; gap: 8px 26px; flex-wrap: wrap; }
footer nav a { color: var(--ink); }
footer nav a:hover { text-decoration: underline; }
footer p { margin-top: 16px; max-width: 70em; }
footer .brand { color: var(--ink); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .hero .eyebrow, .js .hero h1, .js .hero .lede, .js .hero .cta, .js .hero .states, .js .hero .phone, .js .nav { animation: none; }
  .sky { transition: none; }
}

/* ---------- sections lift over each other like the app's sheets ---------- */
.charts, .adv, .row, .more, .privacy, .join, footer { position: relative; margin-top: -48px; border-radius: 48px 48px 0 0; }
.charts { padding-top: 48px; }
.row, .more, .privacy, .join, .adv { padding-top: calc(var(--pt, 120px) + 48px); }
.adv { --pt: clamp(80px, 11vw, 140px); }
.row { --pt: clamp(80px, 11vw, 150px); }
.more { --pt: clamp(80px, 11vw, 150px); }
.privacy { --pt: clamp(100px, 14vw, 190px); }
.join { --pt: clamp(100px, 14vw, 180px); }
.row.light, .row.white, .more { box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, .22); }
footer { padding-top: 82px; }
@media (max-width: 720px) {
  .charts, .adv, .row, .more, .privacy, .join, footer { margin-top: -32px; border-radius: 32px 32px 0 0; }
  .charts { padding-top: 32px; }
  .row, .more, .privacy, .join, .adv { padding-top: calc(var(--pt, 80px) + 32px); }
  footer { padding-top: 62px; }
}

/* ---------- the page eases in on load ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }
.js .hero .eyebrow, .js .hero h1, .js .hero .lede, .js .hero .cta, .js .hero .states { animation: rise 1.3s var(--ease) both; }
.js .hero h1 { animation-delay: .12s; }
.js .hero .lede { animation-delay: .26s; }
.js .hero .cta { animation-delay: .4s; }
.js .hero .states { animation-delay: .54s; }
.js .hero .phone { animation: fade 1.8s ease .5s both; }
.js .nav { animation: fade 1.2s ease both; }

/* ---------- advanced charts ---------- */
.adv { color: #fff; padding-bottom: clamp(80px, 11vw, 150px); overflow: hidden; background: radial-gradient(70% 40% at 50% 0%, #1b2552 0%, transparent 72%), #070a15; }
.adv .kicker { color: #bf5af2; }
.advgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: clamp(44px, 6vw, 80px) auto 0; align-items: start; }
.acard { margin: 0; }
.apic { position: relative; border-radius: 32px; overflow: hidden; background: #1e1e1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.apic img { display: block; width: 100%; height: auto; transition: opacity .6s ease; }
.apic img.alt { position: absolute; inset: 0; opacity: 0; }
.apic.b img.alt { opacity: 1; }
.apic.b img.main { opacity: 0; }
.acard figcaption { padding: 22px 6px 0; }
.acard h3 { font-size: 24px; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.acard p { margin-top: 8px; font-size: 17px; line-height: 1.38; color: #a1a1a6; max-width: 34em; }
.seg { display: inline-flex; margin-top: 16px; padding: 3px; border-radius: 980px; background: rgba(255, 255, 255, .1); }
.seg button { font: inherit; font-size: 14px; font-weight: 500; color: #d2d2d7; background: none; border: 0; padding: 6px 16px; border-radius: 980px; cursor: pointer; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: #fff; color: #1d1d1f; }
@media (max-width: 860px) { .advgrid { grid-template-columns: 1fr; } .acard.mjo { max-width: 460px; margin: 0 auto; } }
.phonepanel { display: grid; place-items: center; padding: clamp(28px, 4vw, 52px) 0; background: radial-gradient(70% 55% at 50% 30%, #1d2a5a 0%, #0d1120 70%); aspect-ratio: 1584 / 2320; }
.phonepanel .phone { --w: min(300px, 62vw); }
.phonepanel .screen img { transition: none; }
.acard.mjo, .acard { max-width: 520px; margin-left: auto; margin-right: auto; width: 100%; }
