/* The light look (his ask, 21 Nov 2026). The page follows the device's light or dark setting, and the switch in the
   top bar picks one for this browser (index.html sets <html data-theme>, nav.js runs the switch). The dark look is the
   site as it was built: its rules stay where they are. This file holds only the light look, every rule starting
   :root[data-theme="light"], so the dark look is never touched.

   The light palette mirrors the dark one's purple tint:
     page #FCFBFE (dark #0F0D12) · cards #F2EFF6 (dark #1B1920) · the close and footer #F5F2FA (dark #16131C)
     ink #16131C · second ink #3D3847 · muted #6D6778 · faint #9A95A3 · accent purple #714BD0
   The nebula's and the dust's light colours are in grain-gradient.js (LIGHT) and space.js (TINT_LIGHT).
   SpaceDrop's own board in the story and its rows follows the look (the rows' pictures: media/spaces/light, made by
   tools/shoot-spaces.mjs and shoot-outfits.mjs with "light"). Other apps' screens (iMessage, Instagram, TikTok, the
   browser) keep their dark mode in both looks, and so, for now, do the app screens inside the How does it work? and
   More features cards. */

:root[data-theme="light"] {
  --paper: #FCFBFE;
  --l-page: #FCFBFE;
  --l-card: #F2EFF6;
  --l-card-2: #E8E4EE;
  --l-chip: #DDD8E5;
  --l-end: #F5F2FA;
  --l-ink: #16131C;
  --l-ink-2: #3D3847;
  --l-muted: #6D6778;
  --l-faint: #9A95A3;
  --l-line: rgba(22, 19, 28, 0.1);
}
:root[data-theme="light"], :root[data-theme="light"] body { background: var(--l-page); }
:root[data-theme="light"][data-edge], :root[data-theme="light"][data-edge] body { background: var(--overhang); }   /* past the ends (style.css) */
:root[data-theme="light"][data-edge="top"] { --overhang: var(--l-page); }
:root[data-theme="light"].sky-6[data-edge="top"] { --overhang: #9684FA; }   /* the top of the lavender sky */
:root[data-theme="light"][data-edge="end"] { --overhang: var(--l-end); }


/* A change of look happens at once (index.html adds .switching for two frames): no colour fade trails behind it. */
:root.switching, :root.switching *, :root.switching *::before, :root.switching *::after { transition: none !important; }

/* ---------- The switch, in the top bar's right block, before Join waitlist (both looks) ---------- */
.look-switch {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-right: 4px; padding: 0;
  border: 0; border-radius: 10px; background: none; color: #FFFFFF; cursor: pointer;
  transition: background-color 0.15s ease, color 0.3s ease;
}
.look-switch:hover { background: rgba(255, 255, 255, 0.08); }
.look-switch:focus-visible { outline: 2px solid var(--purple); outline-offset: 0; }
.look-switch svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: currentColor; transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
:root.switching .look-switch svg { transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) !important; }   /* (its own turn stays) */
/* a moon on the light look (to go dark), a sun on the dark one (to go light); the other turns away */
.look-switch .moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
:root[data-theme="light"] .look-switch .moon { opacity: 1; transform: none; }
:root[data-theme="light"] .look-switch .sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
.nav.light .look-switch { color: #222326; }
.nav.light .look-switch:hover { background: rgba(31, 32, 37, 0.06); }
@media (max-width: 759.98px) { .look-switch { width: 40px; height: 40px; margin-right: 2px; } }
@media (prefers-reduced-motion: reduce) { .look-switch svg { transition: none; } }

/* ---------- The top bar: Butter's own light blocks, a solid light grey with the page's tint ---------- */
:root[data-theme="light"] .nav.light .nav-left::before,
:root[data-theme="light"] .nav.light .nav-right { background: rgba(236, 233, 242, 0.82); }

/* ---------- The hero ---------- */
:root[data-theme="light"] .run { background: var(--l-page); }
:root[data-theme="light"] .hero h1 { color: var(--l-ink); }
:root[data-theme="light"] .hero .lede { color: rgba(22, 19, 28, 0.62); }
:root[data-theme="light"] .orbit .card .orbit-pic,
:root[data-theme="light"] .orbit .card .orbit-note { box-shadow: 0 1px 2px rgba(42, 27, 73, 0.12), 0 18px 30px -12px rgba(42, 27, 73, 0.3); }
:root[data-theme="light"] .scene.phone .orbit .card .orbit-pic,
:root[data-theme="light"] .scene.phone .orbit .card .orbit-note { box-shadow: 0 1px 2px rgba(42, 27, 73, 0.12), 0 calc(24px * var(--d, 0)) calc(38px * var(--d, 0)) -12px rgba(42, 27, 73, calc(0.32 * var(--d, 0))); }
/* Scroll, under the hero: dark words, and the falling star in the page's purple */
:root[data-theme="light"] .scroll-cue { color: rgba(22, 19, 28, 0.5); }
:root[data-theme="light"] .scroll-cue:hover .cue-word,
:root[data-theme="light"] .scroll-cue:focus-visible .cue-word { color: var(--l-ink); }
:root[data-theme="light"] .scroll-cue .cue-fall::before { background: rgba(22, 19, 28, 0.12); }
:root[data-theme="light"] .scroll-cue .cue-fall svg { fill: #8C49FF; }
:root[data-theme="light"] .scroll-cue .cue-fall i { filter: drop-shadow(0 0 3px rgba(140, 73, 255, 0.5)) drop-shadow(0 0 8px rgba(140, 73, 255, 0.3)); }
:root[data-theme="light"] .scroll-cue .cue-fall i::before { background: linear-gradient(to bottom, rgba(140, 73, 255, 0), rgba(140, 73, 255, 0.55)); }

/* ---------- The waitlist box (the hero and the close): a light field, the same purple button ---------- */
:root[data-theme="light"] .wl input[type="email"] { background: rgba(232, 228, 238, 0.86); color: var(--l-ink); }
:root[data-theme="light"] .wl input[type="email"]::placeholder { color: rgba(22, 19, 28, 0.42); }
:root[data-theme="light"] .wl input[type="email"]:focus { background: rgba(224, 219, 232, 0.92); }
:root[data-theme="light"] .wl-note { color: var(--l-muted); }
:root[data-theme="light"] .wl-note.alert { color: #D7263D; }
:root[data-theme="light"] .wl-done p { color: var(--l-ink); }

/* ---------- You save things everywhere (the typing) ---------- */
:root[data-theme="light"] .saves { background: var(--l-page); }
:root[data-theme="light"] .saves .saves-text { color: var(--l-ink); }

/* ---------- The lost save (the story round the phone) ---------- */
:root[data-theme="light"] .lost { --lost-bg: var(--l-page); --lost-ink: var(--l-ink); --lost-dim: var(--l-muted); }
:root[data-theme="light"] .lost.as-card { background: var(--l-page); }

/* The lines over the violet ("Have a space for everything"): dark on the light page, turning white as the violet
   comes up under them, with the scroll (lost.js sets --tint, 0 to 1, on the section) */
:root[data-theme="light"] .lost-cap { color: color-mix(in srgb, #FFFFFF calc(var(--tint, 0) * 100%), var(--l-ink)); }

/* SpaceDrop's own windows in the story and in its rows, in the app's light appearance, as the live board already is
   (style.css's light colours). The row pictures of them are media/spaces/light (lost.js picks them on this look). */
:root[data-theme="light"] .mac-in {
  color: #1C1C1E; background: #F0F1F3; box-shadow: 0 30px 90px rgba(42, 27, 73, 0.22);
  --glass: #E9EAEC; --line: rgba(0, 0, 0, 0.08); --text: #1C1C1E; --muted: #8E8E93;
}
:root[data-theme="light"] .sd-app { color: #1C1C1E; background: #F0F1F3; --glass: #E9EAEC; --line: rgba(0, 0, 0, 0.08); --text: #1C1C1E; --muted: #8E8E93; }
:root[data-theme="light"] :is(.mac-card, .sd-card) { background: #E4E5E9; }
:root[data-theme="light"] :is(.mac-card, .sd-card).note { background: #FFFFFF; box-shadow: none; }
:root[data-theme="light"] .scrap .note.paper { background: var(--paper); }
:root[data-theme="light"] .sd-chrome .chrome .homebar { background: rgba(0, 0, 0, 0.3); }
:root[data-theme="light"] .lost-space .lost-status { color: #1C1C1E; }   /* the phones in the rows: the clock and battery dark over the light app */
:root[data-theme="light"] .scrap .sp-title { color: #1C1C1E; }
:root[data-theme="light"] .scrap .sp-sub,
:root[data-theme="light"] .scrap .sp-word { color: rgba(28, 28, 30, 0.72); }
:root[data-theme="light"] .scrap .sp-plus,
:root[data-theme="light"] .scrap .sp-tag { color: rgba(28, 28, 30, 0.45); }

/* ---------- How does it work? and More features you'd love ---------- */
:root[data-theme="light"] .ways { background: var(--l-page); color: var(--l-ink); }
:root[data-theme="light"] .ways .sec-title { color: var(--l-ink); }
:root[data-theme="light"] .way-card { background: var(--l-card); }
:root[data-theme="light"] .way h3 { color: var(--l-ink); }
:root[data-theme="light"] .way p { color: var(--l-muted); }
:root[data-theme="light"] .w-badge { box-shadow: 0 0 0 2.5px var(--l-card); }
:root[data-theme="light"] .w-photo { box-shadow: 0 10px 30px rgba(42, 27, 73, 0.22); }
:root[data-theme="light"] .w-places .hd,
:root[data-theme="light"] .w-ttshare .hd { color: var(--l-muted); }
:root[data-theme="light"] .more-arrows button { background: var(--l-card-2); color: var(--l-ink); }
:root[data-theme="light"] .more-arrows button:hover { background: var(--l-chip); }
/* In sync on iPhone and Mac: the names under the two devices */
:root[data-theme="light"] .m-dev b { color: var(--l-ink-2); }
@media (max-width: 809.98px) {
  :root[data-theme="light"] .more-dots button::before { background: rgba(22, 19, 28, 0.2); }
  :root[data-theme="light"] .more-dots button[aria-current="true"]::before { background: var(--l-ink); }
}

/* ---------- Free to start (pricing) and the questions ---------- */
:root[data-theme="light"] .price { background: var(--l-page); color: var(--l-ink); }
:root[data-theme="light"] .price .sec-title { color: var(--l-ink); }
:root[data-theme="light"] .price .sec-sub { color: var(--l-muted); }
:root[data-theme="light"] .price .bill-word { color: var(--l-faint); }
:root[data-theme="light"] .price .bill-word.on { color: var(--l-ink); }
:root[data-theme="light"] .price .ios-switch { background: rgba(120, 120, 128, 0.16); }
:root[data-theme="light"] .price .plan { box-shadow: 0 30px 60px -34px rgba(42, 27, 73, 0.45); }
:root[data-theme="light"] .price .plan.flat { background: var(--l-card); color: var(--l-ink); box-shadow: none; }
:root[data-theme="light"] .price .plan.flat h3,
:root[data-theme="light"] .price .plan.flat .cost b,
:root[data-theme="light"] .price .plan.flat .plan-gb b { color: var(--l-ink); }
:root[data-theme="light"] .price .plan.flat .plan-room,
:root[data-theme="light"] .price .plan.flat .cost,
:root[data-theme="light"] .price .plan.flat .gticks li,
:root[data-theme="light"] .price .plan.flat .plan-gb { color: var(--l-ink-2); }
:root[data-theme="light"] .price .plan.flat .gticks svg { color: var(--purple); }
:root[data-theme="light"] .price .plan .plan-gb s { color: var(--l-faint); }
:root[data-theme="light"] .price .plan .plan-early { color: var(--l-muted); }
:root[data-theme="light"] .price .plan.flat .gmore-btn { color: var(--l-muted); }
:root[data-theme="light"] .price .plan.flat .gmore-btn:hover { color: var(--l-ink); }
:root[data-theme="light"] .price .fine { color: var(--l-faint); }
:root[data-theme="light"] .price .qs .q { border-top-color: var(--l-line); }
:root[data-theme="light"] .price .qs .q:last-child { border-bottom-color: var(--l-line); }
:root[data-theme="light"] .price .q-btn { color: var(--l-ink); }
:root[data-theme="light"] .price .q-btn::after { color: var(--purple); }
:root[data-theme="light"] .price .q-btn:focus-visible { outline-color: var(--purple); }
:root[data-theme="light"] .price .q-a p { color: var(--l-muted); }

/* ---------- The close and the footer ---------- */
:root[data-theme="light"] .closing { background: var(--l-end); color: var(--l-ink); }
:root[data-theme="light"] .close-icon { box-shadow: 0 30px 70px -24px rgba(113, 75, 208, 0.55); }
:root[data-theme="light"] .close-title { color: var(--l-ink); }
:root[data-theme="light"] .close-small { color: var(--l-muted); }
:root[data-theme="light"] .foot { background: var(--l-end); border-top-color: rgba(22, 19, 28, 0.06); }
:root[data-theme="light"] .foot-brand { color: var(--l-ink); }
:root[data-theme="light"] .foot-col h3 { color: var(--l-faint); }
:root[data-theme="light"] .foot-col a { color: var(--l-ink-2); }
:root[data-theme="light"] .foot-col a:hover,
:root[data-theme="light"] .foot-legal a:hover { color: var(--l-ink); }
:root[data-theme="light"] .foot-soon { color: var(--l-faint); }
:root[data-theme="light"] .foot-soon i { background: rgba(22, 19, 28, 0.06); color: var(--l-ink-2); }
:root[data-theme="light"] .foot-base { border-top-color: rgba(22, 19, 28, 0.08); }
:root[data-theme="light"] .foot-legal a { color: var(--l-faint); }
:root[data-theme="light"] .foot small { color: var(--l-faint); }

/* the pointer's credit over a picture stays the dark tip it is; it reads on both */

/* The lavender daytime sky (his pick, 21 Nov 2026; sky.js) in the hero, in place of the nebula and the dust and the dust's tail */
:root[data-theme="light"] .hero-sky, :root[data-theme="light"] .hero-mist { display: block; }
:root[data-theme="light"].has-sky #spaceNebula,
:root[data-theme="light"].has-sky #run .space-sky,
:root[data-theme="light"].has-sky #saves > .space-tail { display: none; }
