/* Liquid Aero pass (skill: liquid-aero). The whole page lives on a daylight
   sky; every surface is a sheet of glass lying on it, lit from the top-left.
   One gel colour (aqua) for primary actions. */
:root {
  --sky-0: #eef9ff; --sky-1: #cfeeff; --sky-2: #8fd2fb; --sky-3: #3aa2ea; --sea: #0d6fbf;
  --ink: #0b2540; --ink-soft: #34506b; --muted: #5d7690;
  --hair: rgba(11, 37, 64, .08);
  --aqua-hi: #86d8ff; --aqua: #1f8fff; --aqua-lo: #0a66d6;
  --blue: #1677e8; --blue-deep: #0a5fc4;
  --rim: rgba(255, 255, 255, .9); --rim-low: rgba(255, 255, 255, .22);
  --g-shadow: 0 1px 1px rgba(13, 60, 110, .06), 0 10px 28px rgba(13, 60, 110, .12), 0 30px 70px rgba(13, 60, 110, .08);
  --radius-lg: 24px; --radius-md: 18px; --radius-sm: 12px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", "Instrument Sans", system-ui, sans-serif;
}

/* ---- The world */
html { background: var(--sky-0); }
body {
  color: var(--ink);
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(255, 255, 255, .85), transparent 60%),
    radial-gradient(60% 40% at 0% 100%, rgba(140, 220, 120, .22), transparent 70%),
    radial-gradient(50% 35% at 100% 70%, rgba(120, 210, 255, .35), transparent 70%),
    linear-gradient(180deg, var(--sky-2) 0%, #b4e1fd 25%, #c9ebff 60%, #dff4ff 100%);
}
body::before { /* slow far clouds behind everything */
  content: ""; position: fixed; left: 0; top: -10vh; width: calc(100% + 1800px); height: 120vh; z-index: -2; pointer-events: none;
  background: url("cloudbank.svg") 0 70% / 1800px auto repeat-x;
  opacity: .5; will-change: transform; contain: strict;
  animation: aero-drift 240s linear infinite;
}
@keyframes aero-drift { to { transform: translate3d(-1800px, 0, 0); } }

h1, h2 { font-weight: 650; letter-spacing: -.035em; }
h3 { font-weight: 600; }
.lead { color: var(--ink-soft); }

/* ---- Glass material (shared) */
.nav-in, .card, .fcard, .steps li, .tier, .auth-card, .faq details, .fixes details, .help-toc,
.acct-sec, .closer .wrap, .footer .wrap, .specs li, .page-head .wrap > .lead, .prose, .demo-tools .btn-glass {
  --g: .52;
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(var(--g) + .14)), rgba(255, 255, 255, calc(var(--g) - .2)));
  box-shadow: inset 0 1px 0 var(--rim), inset 0 -1px 0 var(--rim-low), inset 0 0 0 1px rgba(255, 255, 255, .3), var(--g-shadow);
  border: 0;
}
.card::before, .fcard::before, .steps li::after, .tier::before, .auth-card::before, .acct-sec::before,
.closer .wrap::before, .nav-in::before, .faq details::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .2) 38%, rgba(255, 255, 255, .04) 62%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card::after, .fcard::after, .tier::after, .auth-card::after, .closer .wrap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 55%; border-radius: inherit; pointer-events: none; z-index: -1;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  background: radial-gradient(120% 100% at 25% 0%, rgba(255, 255, 255, .55), transparent 70%);
}
@media (prefers-reduced-transparency: reduce) {
  .nav-in, .card, .fcard, .steps li, .tier, .auth-card, .faq details, .acct-sec, .closer .wrap, .footer .wrap, .specs li { background: #f4faff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---- Nav: one floating glass capsule, always the same material */
.nav-in, .nav.solid .nav-in { --g: .42; color: var(--ink); height: 60px; }
.nav-in { background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.16));
  -webkit-backdrop-filter: blur(6px) saturate(170%) brightness(1.05); backdrop-filter: blur(6px) saturate(170%) brightness(1.05);
  transition: background-color .3s, box-shadow .3s; }
.nav.lens .nav-in { backdrop-filter: url(#lg-lens) blur(1.5px) saturate(175%) brightness(1.06); }
/* adaptive: once text scrolls under it, more frost + shadow keep it legible (as Apple does) */
.nav.solid .nav-in { background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.42));
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px rgba(255,255,255,.35), 0 10px 30px -10px rgba(13,60,110,.35); }
.nav.lens.solid .nav-in { backdrop-filter: url(#lg-lens) blur(5px) saturate(180%) brightness(1.08); }
/* specular highlight that follows the pointer along the rim */
.nav-in::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; padding: 1.5px;
  background: radial-gradient(160px 60px at var(--mx, 20%) 0%, rgba(255,255,255,1), rgba(255,255,255,0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--spec, .6); transition: opacity .3s; }
.nav-links a { color: var(--ink-soft); opacity: 1; }
.nav-links a[aria-current="page"], .nav.solid .nav-links a[aria-current="page"] {
  color: var(--ink); background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(13, 60, 110, .15);
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: rgba(255, 255, 255, .45); color: var(--ink); } }
.nav-account { color: var(--ink-soft); }
.brand { color: var(--ink); }

/* ---- Buttons: aqua gel for primary, glass for everything else */
.btn { font-weight: 600; transition: transform 180ms var(--spring), filter 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.96); }
.btn-blue, .btn-white, .nav .btn-white, .nav.solid .btn-white {
  position: relative; overflow: hidden; color: #fff; text-shadow: 0 1px 1px rgba(0, 50, 120, .35);
  background: linear-gradient(180deg, var(--aqua-hi) 0%, #3aa6ff 46%, var(--aqua) 52%, #36a8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -3px 8px rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(10, 90, 200, .35), 0 1px 0 rgba(0, 40, 100, .2), 0 8px 20px -6px rgba(10, 102, 214, .55);
}
.btn-blue::before, .btn-white::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 2px; height: 46%; border-radius: 999px 999px 50% 50% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .12)); pointer-events: none;
}
.btn-blue > *, .btn-white > * { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .btn-blue:hover, .btn-white:hover { filter: brightness(1.06) saturate(1.1); }
  .btn-ghost:hover, .btn-glass:hover { background: rgba(255, 255, 255, .78); }
}
.btn-ghost, .btn-glass {
  color: var(--ink); background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .5), 0 1px 2px rgba(13, 60, 110, .1), 0 6px 18px -8px rgba(13, 60, 110, .3);
}
.sky .btn-glass { color: #fff; background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .45), 0 8px 24px -10px rgba(5, 40, 110, .45); }
.btn-quiet { color: var(--ink-soft); }
:focus-visible { outline: 3px solid rgba(31, 143, 255, .45); outline-offset: 3px; }

/* ---- Hero: deep sky melting into the page sky */
.sky { background: linear-gradient(180deg, #1f86e0 0%, #45a8f0 34%, #86cdf8 70%, rgba(207, 238, 255, 0) 100%); }
.hero { padding-top: 160px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: .98; letter-spacing: -.045em; text-shadow: 0 2px 30px rgba(0, 60, 140, .25); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); }
.sky-floor { opacity: .95; }
.hero::after { /* sun */
  content: ""; position: absolute; top: -180px; right: -120px; width: 620px; height: 620px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .25) 30%, transparent 62%);
}
.bubble { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 8%, rgba(255, 255, 255, .25) 22%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .35) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset -6px -10px 18px rgba(120, 200, 255, .35);
  animation: aero-float var(--t, 14s) ease-in-out infinite alternate; }
@keyframes aero-float { to { transform: translateY(-26px); } }

/* Hero devices sit in thick glass */
.stage .mac, .stage .pc-screen { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 80px -20px rgba(5, 50, 120, .45); }

/* ---- Sections float on the sky */
.section { background: transparent; }
.section-head h2, .fgroup > h2 { font-size: clamp(34px, 4.2vw, 54px); }
.card, .fcard, .tier, .auth-card, .steps li { border-radius: var(--radius-lg); }
.card, .steps li, .tier { padding: 28px; }
.steps li::before {
  color: #fff; font-weight: 650;
  background: linear-gradient(180deg, var(--aqua-hi), var(--aqua) 55%, var(--aqua-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 3px 8px rgba(10, 102, 214, .35);
}
.explain .arrow { color: #fff; filter: drop-shadow(0 2px 6px rgba(13, 60, 110, .35)); }
.mini { border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .4); }
.mini-link { background: rgba(255, 255, 255, .5); }
.fcard { overflow: hidden; }
.fcard .vis { border-radius: 18px; margin: 10px 10px 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.specs { gap: 14px; }
.specs li { --g: .4; padding: 20px 22px; border-radius: var(--radius-md); border-top: 0; }

/* demo band: a pane of deep-sky glass */
.demo-sky { border-radius: 40px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 40px 90px -30px rgba(5, 60, 140, .45);
  background: linear-gradient(180deg, #2389e2, #3fa4ee 60%, #5ab6f3); }

/* cross section on the page sky */
.cross-copy p { color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.cross-end .screen { box-shadow: 0 0 0 8px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .5), 0 30px 60px -30px rgba(5, 50, 120, .5); }

/* ---- Closer: a big glass slab */
.closer { border-top: 0; padding: 40px 0 120px; }
.closer .wrap { --g: .5; padding: clamp(28px, 4vw, 56px); border-radius: 32px; }

/* ---- Pricing */
.tier.pro { --g: .62; box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 0 2px rgba(31, 143, 255, .35), var(--g-shadow); }
.ways { border-top-color: rgba(11, 37, 64, .08); }
.way { border-bottom-color: rgba(11, 37, 64, .08); }

/* ---- Sub pages */
.page-head { padding-top: 150px; }
.page-head h1 { font-size: clamp(44px, 6vw, 72px); }
.page-head .wrap > .lead { --g: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.prose { --g: .55; padding: clamp(24px, 4vw, 48px); border-radius: 28px; max-width: 820px; }
.faq details { --g: .5; }

/* ---- Account */
.acct-page .wrap { max-width: 920px; }
.acct-sec { --g: .5; padding: 28px; border-radius: var(--radius-lg); border-top: 0; margin-bottom: 16px; }
.auth-card { --g: .6; padding: 36px; border-radius: 28px; }
.field input, .field select, input[type="email"], input[type="password"], input[type="text"] {
  background: rgba(255, 255, 255, .7); border: 0; border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(13, 60, 110, .14), inset 0 0 0 1px rgba(11, 37, 64, .1), 0 1px 0 rgba(255, 255, 255, .9);
}
.field input:focus { outline: none; box-shadow: inset 0 1px 2px rgba(13, 60, 110, .14), inset 0 0 0 1px var(--aqua), 0 0 0 4px rgba(31, 143, 255, .22); }
.dev-os { background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(13, 60, 110, .15); }

/* ---- Footer: glass shelf */
.footer { background: transparent; padding: 24px 0 32px; }
.footer .wrap { --g: .45; padding: 36px clamp(20px, 4vw, 44px) 28px; border-radius: 28px; }
.footer .legal { border-top-color: rgba(11, 37, 64, .08); }

@media (prefers-reduced-motion: reduce) { body::before, .bubble { animation: none; } }

/* colour pools behind glass so it reads as glass, not white cards */
.section { position: relative; isolation: isolate; }
.section::before { content: ""; position: absolute; inset: 10% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 15% 60%, rgba(64, 170, 245, .35), transparent 70%),
              radial-gradient(35% 40% at 85% 40%, rgba(120, 220, 200, .28), transparent 70%); filter: blur(10px); }

/* Don't render far-below sections until they come near the screen */
.section:not(:first-of-type), .closer, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Features sub-nav: its own glass capsule just under the main nav, never under/over it */
.fnav { top: 92px; z-index: 40; width: fit-content; max-width: 100%; margin: 0 0 32px; padding: 5px; gap: 2px;
  border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.5));
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.4), 0 8px 24px -10px rgba(13,60,110,.35); }
.fnav a { border-radius: 999px; padding: 7px 14px; }
@media (hover: hover) and (pointer: fine) { .fnav a:hover { background: rgba(255,255,255,.8); } }
@media (max-width: 760px) { .fnav { top: 84px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .fnav a { white-space: nowrap; } }

/* ---- v2 (user: nav and buttons were too glossy/blue, hard to tell apart).
   Apple-style instead: the bar is clear white frosted glass with ink text,
   buttons are flat solid pills. Gloss stays only in the product visuals. */
.nav-in, .nav.solid .nav-in {
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 .5px rgba(11,37,64,.12), 0 6px 24px -8px rgba(13,60,110,.28);
}
.nav.lens .nav-in, .nav.lens.solid .nav-in { backdrop-filter: url(#lg-lens) blur(18px) saturate(140%); }
.nav-links a { color: #33475b; font-weight: 500; }
.nav-links a[aria-current="page"], .nav.solid .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(11,37,64,.07); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: rgba(11,37,64,.05); } }
.nav-account { color: #33475b; }

/* flat buttons */
.btn-blue, .btn-white, .nav .btn-white, .nav.solid .btn-white {
  overflow: visible; text-shadow: none; filter: none;
  background: #0071e3; color: #fff;
  box-shadow: 0 1px 2px rgba(0,40,100,.18);
}
.btn-blue::before, .btn-white::before { content: none; }
@media (hover: hover) and (pointer: fine) { .btn-blue:hover, .btn-white:hover { background: #0077ed; filter: none; } }
/* the bar's button: dark, so it never melts into a blue page */
.nav .btn-white, .nav.solid .btn-white { background: #0b1f33; color: #fff; height: 40px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .nav .btn-white:hover { background: #1b3048; } }
/* on the blue hero the main action is white */
.hero .btn-white { background: #fff; color: #0b1f33; box-shadow: 0 6px 20px -8px rgba(0,40,100,.45); }
@media (hover: hover) and (pointer: fine) { .hero .btn-white:hover { background: #f2f7fc; } }
.sky .btn-glass { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.btn-ghost { background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(11,37,64,.1), 0 1px 2px rgba(13,60,110,.08); }
.steps li::before { background: #0071e3; box-shadow: none; }
