/* ============================================================
   indi "Sky" theme: the live landing page
   Sky-blue page chrome with white type and white pills; the product
   screens, cards and pills keep the light Ember tokens.
   Load after tokens/site/mock and put class="sky" on <body>.
   ============================================================ */

body.sky {
  /* Chrome tokens: white on sky */
  --e-bg: transparent;
  --e-surface: rgba(255, 255, 255, 0.12);
  --e-surface-2: rgba(255, 255, 255, 0.20);
  --e-ink: #FFFFFF;
  --e-ink-2: rgba(255, 255, 255, 0.86);
  --e-ink-3: rgba(255, 255, 255, 0.68);
  --e-line: rgba(255, 255, 255, 0.20);
  --e-line-2: rgba(255, 255, 255, 0.38);
  --e-mute: #FFFFFF;
  --e-mute-bg: rgba(255, 255, 255, 0.16);
  --e-ok: #7FF0B0;      --e-ok-bg: rgba(255, 255, 255, 0.22);
  --e-amber: #FFD466;   --e-amber-bg: rgba(255, 255, 255, 0.22);
  --e-shadow-card: 0 1px 2px rgba(6, 40, 90, 0.10), 0 10px 26px rgba(6, 40, 90, 0.16);
  --e-shadow-pop: 0 2px 6px rgba(6, 40, 90, 0.12), 0 24px 60px rgba(6, 40, 90, 0.28);
  --e-shadow-deep: 0 30px 70px rgba(6, 40, 90, 0.34);
  --sky-navy: #0F2D5C;

  color: #fff;
  /* The gradient lives on the fixed ::before layer (iOS ignores background-attachment: fixed). This flat colour is what
     Safari paints behind its status bar and toolbars, so it matches the gradient's top edge where the header sits. */
  background: #1E6BCC;
}
/* Soft cloud washes over the whole sky, fixed like a backdrop photo */
body.sky::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 26% at 18% 10%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(36% 22% at 78% 6%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(55% 30% at 60% 96%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #1E6BCC 0%, #3B8BE2 34%, #5FA6EB 68%, #7DBBF1 100%);
}

/* --- Top bar: floats over the sky ---------------------------- */
body.sky .topbar { background: rgba(37, 110, 205, 0.42); border-bottom-color: rgba(255, 255, 255, 0.14); }
body.sky .wordmark { color: #fff; }
body.sky .topbar-links a { color: rgba(255, 255, 255, 0.86); }
body.sky .topbar-links a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
body.sky .icon-btn { display: none; }               /* one theme only */
body.sky .badge-neutral { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
body.sky .badge-live::before { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); animation-name: pulse-dot-sky; }
@keyframes pulse-dot-sky {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- Pills: white is the primary, like the reference ---------- */
body.sky .pill-outline {
  background: #fff;
  color: var(--sky-navy);
  border: 1.5px solid #fff;
  box-shadow: 0 10px 28px rgba(6, 40, 90, 0.22);
}
body.sky .pill-outline:hover { background: #F3F8FF; color: var(--sky-navy); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(6, 40, 90, 0.28); }
body.sky .pill-secondary { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
body.sky .pill-secondary:hover { background: rgba(255, 255, 255, 0.24); }
/* Focus rings: white on the blue page, ink inside the white panels */
body.sky :where(button, a, input):focus-visible { outline-color: #fff; }
body.sky :is(.section-head, .feature-copy, .hand-card, #running, .hands-foot, .closing .wrap) :where(button, a, input):focus-visible { outline-color: var(--e-ink); }

/* --- Hero: clouds instead of the aurora ----------------------- */
body.sky .hero { background: transparent; border-bottom: 0; padding-bottom: 88px; }
body.sky .hero::before { background: none; }
body.sky .hero > .blobs, body.sky .section > .blobs { opacity: 0.55; }
body.sky .hero > .blobs i, body.sky .section > .blobs i { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), transparent) !important; filter: blur(48px) !important; }
body.sky :is(.hero-copy, .section-head, .feature-copy, .closing) .overline { display: none; }
body.sky .hero .lede { color: rgba(255, 255, 255, 0.9); }
body.sky .hero h1 { max-width: 24ch; }
@media (max-width: 640px) { body.sky .hero h1 br { display: none; } }
body.sky .avail-line { color: rgba(255, 255, 255, 0.86); }
body.sky .avail-line .lnk { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.55); }
body.sky .avail-line .lnk:hover { text-decoration-color: #fff; }
body.sky .notify input { background: #fff; color: #16181D; border-color: #fff; }
body.sky .notify input::placeholder { color: #8A91A0; }
body.sky .notify input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
body.sky .notify-done { color: #fff; }
body.sky .hero .notify-fail { color: #FFE3DF; }
body.sky .hero .notify-fail a { color: #fff; }

/* Stage toolbar + view switch */
body.sky .stage-caption { color: #fff; }
body.sky .seg { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
body.sky .seg button { color: rgba(255, 255, 255, 0.86); }
body.sky .seg button[aria-pressed="true"] { background: #fff; color: var(--sky-navy); box-shadow: 0 6px 18px rgba(6, 40, 90, 0.22); }

/* --- Device frames: solid white, floating ---------------------- */
body.sky .device { border-color: rgba(255, 255, 255, 0.8); box-shadow: 0 30px 70px rgba(6, 40, 90, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.35); }
body.sky .section.org .device { box-shadow: 0 30px 70px rgba(6, 40, 90, 0.38); }

/* --- Sections ------------------------------------------------ */
body.sky .section + .section, body.sky .feature + .feature, body.sky .closing, body.sky .footer { border-top-color: rgba(255, 255, 255, 0.18); }

/* --- Leave it running: a standalone full-width white section --- */
body.sky #running { background: #fff; color: var(--e-ink); padding: 112px 0 104px; border-top: 1px solid rgba(255, 255, 255, 0.7); }
body.sky #running .section-head { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0 0 64px; }
body.sky #running .running-strip, body.sky #running .hands-foot, body.sky #running .hand-pill { display: none; }
/* Two calm columns, no card chrome, a hairline between them */
body.sky #running .hands { gap: 0; }
body.sky #running .hand-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; gap: 20px; }
body.sky #running .hand-card.auto { padding-right: 72px; }
body.sky #running .hand-card.you { padding-left: 72px; border-left: 1px solid var(--e-line-2); }
body.sky #running .hand-head { align-items: flex-start; }
body.sky #running .hand-head > div { gap: 4px; }
body.sky #running .hand-head .overline, body.sky #running .hand-card.auto .overline { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--e-ink); }
body.sky #running .hand-head h3 { font-size: 15.5px; font-weight: 400; letter-spacing: 0; color: var(--e-ink-2); }
body.sky #running .hand-list li { grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--e-line); align-items: start; }
body.sky #running .hand-list li:first-child { border-top: 1px solid var(--e-line); padding-top: 18px; }
body.sky #running .hand-list .ms { width: 22px; height: 22px; border-radius: 0; background: transparent; font-size: 20px; margin-top: 9px; }
body.sky #running .hand-card.auto .hand-list .ms { background: transparent; color: var(--e-ok); }
body.sky #running .hand-card.you .hand-list .ms { background: transparent; color: var(--e-accent-ink); }
body.sky #running .hand-list b { margin: 7px 0 4px; font-size: 16px; }
body.sky #running .hand-list p { font-size: 14.5px; }
@media (max-width: 900px) {
  body.sky #running .hand-card.auto { padding-right: 0; }
  body.sky #running .hand-card.you { padding-left: 0; border-left: 0; border-top: 1px solid var(--e-line-2); padding-top: 32px; margin-top: 8px; }
}

/* Organisations chapter: a navy band of its own, with a centred header */
body.sky .section.org {
  background: linear-gradient(180deg, #0D2A55 0%, #123B72 55%, #1A4A8E 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 128px 0 120px;
  color: #fff;
}
body.sky .section.org .blobs { opacity: 0.16; }
body.sky .section.org .section-head {
  --e-ink: #FFFFFF;
  --e-ink-2: rgba(255, 255, 255, 0.88);
  --e-ink-3: rgba(255, 255, 255, 0.7);
  --e-line-2: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto 88px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
}
body.sky .section.org .section-head h2 { max-width: 14ch; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; text-align: center; }
body.sky .section.org .section-head > .lede { text-align: center; max-width: 720px; font-size: 19px; color: rgba(255, 255, 255, 0.88); }
body.sky .section.org .section-head .lede a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.55); }
body.sky .org-tag { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
body.sky .org-tag .sep { background: rgba(255, 255, 255, 0.55); }
body.sky .org-cta { margin-top: 10px; height: 48px; padding: 0 22px; font-size: 15px; }
body.sky .section.org .feature + .feature { border-top-color: rgba(255, 255, 255, 0.14); }
body.sky .section.org .feature-copy { box-shadow: 0 24px 60px rgba(3, 20, 50, 0.4); }
body.sky .section.org .device { box-shadow: 0 34px 80px rgba(3, 20, 50, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25); }

/* Leave it running: white cards, glass strip */
body.sky .running-strip { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
body.sky .running-strip b { color: #fff; }
body.sky .running-strip .sep { background: rgba(255, 255, 255, 0.5); }
body.sky .running-strip .badge-live::before { background: #7FF0B0; }
body.sky .hand-card { border-color: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 50px rgba(6, 40, 90, 0.26); }

/* Closing + footer */
body.sky .closing { background: transparent; }
body.sky .closing::before { background: radial-gradient(50% 70% at 50% 100%, rgba(255, 255, 255, 0.3), transparent 70%); }
body.sky .footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
body.sky .footer { color: rgba(255, 255, 255, 0.72); }
body.sky .footer a:hover { color: #fff; }

/* --- Frosted panels behind the copy (everything after the hero) --- */
body.sky .feature-copy,
body.sky .section-head,
body.sky .closing .wrap,
body.sky .hands-foot {
  background: #fff;
  color: var(--e-ink);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(6, 40, 90, 0.22);
}
/* Inside a white panel the sky-only pill and status styles step back to the normal light look */
body.sky .closing .pill-outline { background: transparent; color: var(--e-ink); border: 1.5px solid var(--e-ink); box-shadow: none; }
body.sky .closing .pill-outline:hover { background: var(--e-ink); color: var(--e-surface); transform: none; }
body.sky .closing .avail-line { color: var(--e-ink-2); }
body.sky .closing .avail-line .lnk { color: var(--e-ink); text-decoration-color: var(--e-line-2); }
body.sky .closing .avail-line .lnk:hover { text-decoration-color: var(--e-accent); }
body.sky .closing .notify input { border-color: var(--e-line-2); }
body.sky .closing .notify input:focus, body.sky .closing .notify input:focus-visible { border-color: var(--e-ink); box-shadow: 0 0 0 3px rgba(22, 24, 29, 0.12); }
body.sky .closing .pill-secondary { background: var(--e-surface-2); color: var(--e-ink); border: 1px solid var(--e-line-2); }
body.sky .closing .pill-secondary:hover { background: var(--e-line); color: var(--e-ink); }
body.sky .closing .notify-done { color: var(--e-ok); }
body.sky .closing::before { background: none; }
body.sky .feature-copy { padding: 36px 38px; max-width: 480px; }
body.sky .feature.wide .feature-copy { max-width: 760px; }
/* Section intros: a full-width header band — heading left, paragraph right */
body.sky .section-head {
  max-width: none;
  margin: 0 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 72px;
  row-gap: 12px;
  align-items: start;
  text-align: left;
  padding: 52px 56px;
}
body.sky .section-head > :not(.lede) { grid-column: 1; }
body.sky .section-head > .org-tag { justify-self: start; }
body.sky .section-head > .lede { grid-column: 2; grid-row: 1; max-width: 620px; font-size: 17px; line-height: 1.6; padding-top: 6px; }
body.sky .section-head h2 { max-width: 16ch; }
@media (max-width: 900px) {
  body.sky .section-head { grid-template-columns: 1fr; padding: 28px 28px; }
  body.sky .section-head > .lede { grid-column: 1; grid-row: auto; }
}
body.sky .closing .wrap { max-width: 920px; padding: 60px 40px; }
body.sky .hands-foot { width: fit-content; max-width: 680px; padding: 14px 22px; border-radius: 18px; }
body.sky .hero-copy { background: none; }
@media (max-width: 960px) { body.sky .feature-copy { max-width: 100%; } }

/* --- Product intro: a full-bleed white divider with what indi is about --- */
body.sky #product { padding-top: 0; border-top: 0; }
body.sky #product .intro-band {
  background: #fff;
  margin: 0 0 32px;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6), 0 24px 60px rgba(6, 40, 90, 0.16);
  padding: 104px 0 96px;
}
body.sky #product .section-head {
  background: transparent;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: 0;
  row-gap: 12px;
}
body.sky .section-head > .sky-points {
  grid-column: 1 / -1;
  list-style: none;
  margin: 56px 0 0;
  padding: 56px 0 0;
  border-top: 1px solid var(--e-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
body.sky .sky-points li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.sky .sky-points .ms { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--e-accent-soft); color: var(--e-accent-ink); margin-bottom: 4px; }
body.sky .sky-points li.blue .ms { background: var(--e-blue-bg); color: var(--e-blue); }
body.sky .sky-points li.ok .ms { background: var(--e-ok-bg); color: var(--e-ok); }
body.sky .sky-points li.violet .ms { background: var(--e-violet-bg); color: var(--e-violet); }
body.sky .sky-points b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--e-ink); }
body.sky .sky-points p { font-size: 15px; line-height: 1.5; color: var(--e-ink-2); text-wrap: pretty; }
@media (max-width: 900px) { body.sky .section-head > .sky-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
@media (max-width: 560px) { body.sky .section-head > .sky-points { grid-template-columns: 1fr; margin-top: 40px; padding-top: 40px; gap: 28px; } }

/* --- Light tokens restored inside product screens and white cards --- */
body.sky :is(.device, .phone, .stage, .hand-card, .notify input, .feature-copy, .section-head, .closing .wrap, .hands-foot, :where(#running)) {
  --e-font: 'Instrument Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --e-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --e-bg: #FAFBFD;
  --e-surface: #FFFFFF;
  --e-surface-2: #F5F6FA;
  --e-ink: #16181D;
  --e-ink-2: #6B7280;
  --e-ink-3: #8A91A0;
  --e-line: #EDEFF4;
  --e-line-2: #E3E6EE;
  --e-grid: rgba(22, 24, 29, 0.05);
  --e-accent: #FF5A1F;
  --e-accent-ink: #E33E0A;
  --e-accent-ink-strong: #C63709;
  --e-accent-soft: #FFF0E9;
  --e-magenta: #E0257B;
  --e-magenta-bg: rgba(255, 46, 126, 0.10);
  --e-violet: #7A5AF8;
  --e-violet-bg: rgba(122, 90, 248, 0.10);
  --e-blue: #3B6FD9;
  --e-blue-bg: rgba(59, 111, 217, 0.10);
  --e-teal: #0E8AA8;
  --e-teal-bg: rgba(14, 138, 168, 0.10);
  --e-amber: #B4740A;
  --e-fuchsia: #C026D3;
  --e-fuchsia-bg: rgba(192, 38, 211, 0.10);
  --e-blue-soft: #E8F0FE;
  --e-blue-light: #B9D0FA;
  --e-violet-soft: #EFEBFE;
  --e-teal-soft: #E3F6F5;
  --e-amber-soft: #FFF4E0;
  --e-amber-light: #FBD68C;
  --e-ok-light: #B7E3C6;
  --e-grad: linear-gradient(100deg, #FF5A1F, #FF2E7E);
  --e-on-accent: #FFFFFF;
  --e-grad-full: linear-gradient(90deg, #FF5A1F, #FF2E7E, #7A5AF8);
  --e-nav-on: linear-gradient(100deg, rgba(255, 90, 31, 0.12), rgba(255, 46, 126, 0.10));
  --e-act-bg: linear-gradient(100deg, rgba(255, 90, 31, 0.09), rgba(255, 46, 126, 0.07));
  --e-ok: #0E8345;      --e-ok-bg: #E8F6EE;
  --e-amber-ink: #946200; --e-amber-bg: #FDF4E1; --e-amber-line: #EFD9A8;
  --e-green-ink: #0E8345; --e-green-bg: #E9F7EF; --e-green-line: #BFE6CC;
  --e-warn: #E33E0A;    --e-warn-bg: #FFF0E9;
  --e-bad: #D92D20;     --e-bad-bg: #FDEBE9;
  --e-mute: #6B7280;    --e-mute-bg: #F1F3F7;
  --e-heat: rgba(120, 120, 135, 0.14);
  --e-heat-2: rgba(120, 120, 135, 0.28);
  --e-today: rgba(255, 90, 31, 0.045);
  --e-weekend: rgba(120, 126, 140, 0.05);
  --e-sel: rgba(255, 90, 31, 0.14);
  --e-shadow-card: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 20px rgba(22, 24, 29, 0.05);
  --e-shadow-card-hover: 0 2px 4px rgba(22, 24, 29, 0.05), 0 12px 28px rgba(22, 24, 29, 0.09);
  --e-shadow-pop: 0 2px 6px rgba(22, 24, 29, 0.06), 0 16px 40px rgba(22, 24, 29, 0.12);
  --e-shadow-accent: 0 4px 14px rgba(255, 46, 126, 0.30);
  --e-shadow-accent-hover: 0 6px 18px rgba(255, 46, 126, 0.42);
  --e-shadow-deep: 0 10px 24px rgba(14, 15, 20, 0.25);
  --e-r-sm: 8px;
  --e-r-md: 14px;
  --e-r-lg: 20px;
  --e-r-pill: 999px;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

/* --- Phones: the base stylesheet's tighter section rhythm, restated at the sky rules' specificity --- */
@media (max-width: 760px) {
  body.sky .section.org { padding: 72px 0 64px; }
  body.sky .section.org .section-head { margin-bottom: 36px; }
  body.sky #product .intro-band { padding: 64px 0 56px; margin-bottom: 24px; }
  body.sky #running { padding: 72px 0 64px; }
  body.sky #running .section-head { margin-bottom: 40px; }
}
