/* Dew landing page: shared layout for every variant. Variant looks are under body.v-a / .v-c. */
@font-face { font-family: "Jokker"; src: url("/assets/jokker-vf.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --paper: #fffcfa; --ink: #15171e; --ink-2: #4a4d57; --ink-3: #8a8d96; --line: rgba(21, 23, 30, .1);
  --sky: #2357e8; --cloud: #f3f5fb; --mandarin: #ff9638; --fig: #9272ff;
  --peach: #ffe9dc; --lilac: #ece6ff; --rose: #ffe1e6; --mint: #dcf5e8; --butter: #fff3c9; --ice: #e3eeff;
  --radius: 22px; --max: 1180px;
  --display: "Jokker", system-ui, -apple-system, sans-serif;
  --body: "Jokker", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, Menlo, monospace;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", var(--body);
  --card-bg: #fff;
  color-scheme: light dark;
}
/* The page follows the Mac's appearance. Dark is Dew's own dark frame (#15171e, Palette's dark static background) with
   its inks; the skies stay as they are. */
@media (prefers-color-scheme: dark) {
  :root { --paper: #15171e; --ink: #eef0f4; --ink-2: #aeb2bd; --ink-3: #7d818c; --line: rgba(255, 255, 255, .1); --card-bg: #1d2029; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* Nav */
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: 0; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font: 700 22px/1 var(--display); letter-spacing: -.01em; text-decoration: none; color: #fff; }
.nav .logo img { width: 34px; height: 34px; }
.nav .links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 550; }
.nav .links a { text-decoration: none; color: rgba(255,255,255,.88); }
.nav .links a:hover { color: #fff; }
.nav.solid { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.nav.solid .logo, .nav.solid .links a { color: var(--ink); }
@media (max-width: 720px) { .nav .links a:not(.btn) { display: none; } }

/* Buttons: Dew's embossed glass, as the app's keys and selected rows (EmbossedEdges): lit from the top-left, a thin light
   along the top and down the right side, a soft shadow down and right, standing on a darker side that a press pushes the
   top down onto; and, from the first buttons, a faint line pressed in along the bottom of the face. Squircle corners. */
.btn { --t: 3px; --side: rgba(0, 0, 0, .55); --foot: inset 0 -2px 0 rgba(255, 255, 255, .07);
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 650 16px/1 var(--body);
  padding: 15px 24px; border-radius: 14px; color: #fff; white-space: nowrap; position: relative; top: 0;
  background: linear-gradient(#2a2c34, #15171e);
  box-shadow: var(--foot), inset 0 0 0 .5px rgba(255, 255, 255, .1), inset -1px 1px 0 rgba(255, 255, 255, .2), 1.5px 2.5px 3px rgba(0, 0, 0, .22), 0 var(--t) 0 var(--side), 0 14px 28px -14px rgba(5, 20, 70, .55);
  transition: top .12s cubic-bezier(.3, .7, .2, 1), box-shadow .12s cubic-bezier(.3, .7, .2, 1); margin-bottom: var(--t); }
.btn:hover { filter: brightness(1.04); }
.btn:active { top: var(--t); box-shadow: var(--foot), inset 0 0 0 .5px rgba(255, 255, 255, .1), inset -1px 1px 0 rgba(255, 255, 255, .1), 0 0 0 rgba(0, 0, 0, 0), 0 0 0 var(--side), 0 8px 18px -14px rgba(5, 20, 70, .5); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.light, .nav .btn.small { --side: rgba(30, 40, 70, .24); --foot: inset 0 -2px 0 rgba(0, 0, 0, .06); color: #15171e; background: linear-gradient(#fff, #fbfaf8);
  box-shadow: var(--foot), inset 0 0 0 .5px rgba(0, 0, 0, .07), inset -1px 1px 0 #fff, 1.5px 2.5px 3px rgba(0, 0, 0, .12), 0 var(--t) 0 var(--side), 0 16px 30px -14px rgba(5, 20, 70, .55); }
.btn.light:active, .nav .btn.small:active { box-shadow: var(--foot), inset 0 0 0 .5px rgba(0, 0, 0, .07), inset -1px 1px 0 rgba(255, 255, 255, .6), 0 0 0 rgba(0, 0, 0, 0), 0 0 0 var(--side), 0 8px 18px -14px rgba(5, 20, 70, .5); }
.btn.small { --t: 2px; padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.nav.solid .btn.small { --side: rgba(0, 0, 0, .55); --foot: inset 0 -2px 0 rgba(255, 255, 255, .07); color: #fff; background: linear-gradient(#2a2c34, #15171e);
  box-shadow: var(--foot), inset 0 0 0 .5px rgba(255, 255, 255, .1), inset -1px 1px 0 rgba(255, 255, 255, .2), 1.5px 2.5px 3px rgba(0, 0, 0, .2), 0 var(--t) 0 var(--side); }
/* In the dark the solid nav's button turns light, so it still stands out from the bar. */
@media (prefers-color-scheme: dark) {
  .nav.solid .btn.small { --side: rgba(0, 0, 0, .5); --foot: inset 0 -2px 0 rgba(0, 0, 0, .06); color: #15171e; background: linear-gradient(#fff, #fbfaf8);
    box-shadow: var(--foot), inset 0 0 0 .5px rgba(0, 0, 0, .07), inset -1px 1px 0 #fff, 1.5px 2.5px 3px rgba(0, 0, 0, .3), 0 var(--t) 0 var(--side); }
}

/* Hero */
.hero { position: relative; color: #fff; padding: 132px 0 0; isolation: isolate; }
.hero .sky { position: absolute; inset: 0 0 var(--sky-cut, 26%) 0; z-index: -2; overflow: hidden; }
.hero .sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.hero .sky canvas.ready { opacity: 1; }
.hero .sky::before { content: ""; position: absolute; inset: 0; background: var(--sky); }
.hero .sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--paper)); }
.hero .lede { text-align: center; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.hero .lede h1 { font: 800 clamp(44px, 7.6vw, 96px)/.98 var(--display); letter-spacing: -.01em; margin: 0 0 20px; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(10, 30, 110, .35); }
.hero .lede .sub { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; margin: 0 auto 30px; max-width: 620px; color: #fff; font-weight: 500; text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 10, 60, .35), 0 1px 18px rgba(0, 10, 60, .55); }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .micro { font-size: 13.5px; color: rgba(255,255,255,.9); font-weight: 500; text-shadow: 0 1px 10px rgba(10,30,110,.6); }
.hero .stagewrap { position: relative; width: min(1200px, 100% - 40px); margin: 54px auto 0; }
.hero .hint { position: absolute; top: -40px; right: 4px; font: 400 11px/1 var(--pixel); letter-spacing: .03em; color: #15171e; background: #fff; padding: 8px 12px 7px; border-radius: 999px; box-shadow: 0 8px 20px -10px rgba(5,20,70,.6); display: flex; align-items: center; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 0; padding: 0 20px; max-width: 1200px; }

.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card-bg); color: var(--ink); border-radius: 999px; padding: 7px 13px 7px 8px;
  font: 550 14px/1 var(--body); white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.chip:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(0,0,0,.3); }
.chip.done { border-color: color-mix(in srgb, #34c759 50%, transparent); }
.chip.done::after { content: "✓"; color: #1f9d48; font-weight: 800; }
/* Keycaps: Dew's glass keys (DrawnBarKeys): a glass top, white 95 % fading to 55 %, lit from above, with a 0.5 pt rim,
   the emboss's light along the top and right and its soft shadow, standing on a darker side 2 pt tall (--t) that a press
   pushes the top down onto. Glyphs in the rounded face, in the quiet secondary colour. */
kbd, .kbd { --t: 2px; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px;
  margin-bottom: var(--t); vertical-align: 1px; font: 550 12px/1 var(--rounded); color: rgba(0, 0, 0, .58);
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .55)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08), inset -.75px .75px 0 rgba(255, 255, 255, .55), .75px 1.25px 1.5px rgba(0, 0, 0, .115), 0 var(--t) 0 rgba(0, 0, 0, .14); }
@media (prefers-color-scheme: dark) {
  .ph .tag { color: color-mix(in srgb, var(--ph, #2357e8) 55%, #fff); }
  kbd, .kbd { color: rgba(255, 255, 255, .62); background: linear-gradient(rgba(255, 255, 255, .17), rgba(255, 255, 255, .06));
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1), inset -.75px .75px 0 rgba(255, 255, 255, .2), .75px 1.25px 1.5px rgba(0, 0, 0, .45), 0 var(--t) 0 rgba(0, 0, 0, .4); }
}
.mobile-note { display: none; text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 760px) { .mobile-note { display: block; } .hero .hint { display: none; } .chip { font-size: 13px; padding: 7px 12px 7px 8px; } .chips { gap: 8px; } }
/* On a phone the window keeps a usable size: 220 % of the screen, in a frame of its own that pans sideways by touch
   (the page itself never scrolls sideways), opening on the sidebar. */
@media (max-width: 640px) {
  :is(.v-a, .v-c) .hero .stagewrap { width: calc(100% - 12px); overflow: auto hidden; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 14px; padding: 0 0 30px; }
  :is(.v-a, .v-c) .hero .stagewrap::-webkit-scrollbar { display: none; }
  :is(.v-a, .v-c) .hero .stagewrap #dew-stage { width: 220%; }
}

/* Sections */
.story { padding: 40px 0 20px; }
.sec { padding: 64px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--pixel); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  background: var(--card-bg); border: 1px solid var(--line); padding: 7px 12px 6px; border-radius: 999px; }
.kicker i { width: 8px; height: 8px; border-radius: 2px; background: var(--k, var(--mandarin)); display: block; }
.sec h2 { font: 800 clamp(34px, 4.6vw, 58px)/1.02 var(--display); letter-spacing: -.015em; margin: 18px 0 18px; text-wrap: balance; }
.sec .body { font-size: 19px; color: var(--ink-2); max-width: 600px; }
.sec .body p { margin: 0 0 14px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
@media (max-width: 480px) { .points { grid-template-columns: minmax(0, 1fr); gap: 10px; } .point { padding: 14px 16px; } }
.subhead { font: 700 clamp(20px, 2.2vw, 26px)/1.25 var(--display); letter-spacing: -.01em; color: #6e6a70; margin: -8px 0 18px; text-wrap: balance; }
.point { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; }
.point b { display: block; font: 700 17px/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 6px; }
.point p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.point .keys { margin-top: 10px; display: flex; gap: 4px; flex-wrap: wrap; }

/* Placeholders for screenshots and clips: the owner fills them later */
.ph { position: relative; border: 2px dashed color-mix(in srgb, var(--ph, #2357e8) 55%, transparent); border-radius: 18px; aspect-ratio: var(--ar, 16 / 10);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ph, #2357e8) 5%, transparent) 0 12px, transparent 12px 24px), color-mix(in srgb, var(--card-bg) 70%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; gap: 8px; color: var(--ink-2); }
.ph .tag { position: absolute; top: 12px; left: 12px; font: 400 11px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--ph, #2357e8) 80%, #000);
  background: color-mix(in srgb, var(--ph, #2357e8) 12%, var(--card-bg)); padding: 6px 8px 5px; border-radius: 6px; }
.ph .name { font: 700 18px/1.25 var(--display); color: var(--ink); max-width: 30ch; letter-spacing: -.01em; }
.ph .what { font-size: 14px; line-height: 1.45; max-width: 42ch; color: var(--ink-3); }
/* On a phone the placeholder keeps a minimum height instead of its ratio: WebKit widened a box with both (200 px
   tall at 5 / 2 is 500 px wide), so the page scrolled sideways in Safari. */
@media (max-width: 560px) { .ph { min-height: 200px; padding-top: 44px; aspect-ratio: auto; max-width: 100%; min-width: 0; } }
.ph.tall { --ar: 4 / 5; } .ph.wide { --ar: 21 / 9; } .ph.square { --ar: 1 / 1; }
.media { display: grid; gap: 16px; }
.media.two { grid-template-columns: 1fr 1fr; }
.v-a .sec.card .media, .v-c .hour .media { align-self: stretch; display: flex; flex-direction: column; }
.v-a .sec.card .media > .ph:last-child, .v-c .hour .media > .ph:last-child { flex: 1 0 auto; }
.v-a .sec.card.full .media { display: grid; }
.v-a .sec.card .media.n1 { align-self: stretch; display: flex; }
.v-a .sec.card .media.n1 .ph { flex: 1; aspect-ratio: auto; min-height: 340px; }
.v-c .hour .media.n2 .ph { --ar: 5 / 2; }
.v-a .sec.card .media.n2 .ph { --ar: 16 / 9; }
@media (max-width: 760px) { .media.two { grid-template-columns: minmax(0, 1fr); } }

/* Under the hood */
.hood { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
@media (max-width: 860px) { .hood { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hood { grid-template-columns: minmax(0, 1fr); } }
.hood div { border-radius: 18px; padding: 20px 22px; background: var(--card-bg); border: 1px solid var(--line); }
.hood b { display: block; font: 700 16px/1.25 var(--display); margin-bottom: 4px; }
.hood span { font-size: 15px; color: var(--ink-2); line-height: 1.45; display: block; }

/* FAQ */
.faq { max-width: 860px; margin: 28px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 700 19px/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 26px/1 var(--body); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 680px; }

/* Closing */
.close { position: relative; isolation: isolate; color: #fff; text-align: center; padding: 120px 20px 130px; margin-top: 60px; overflow: hidden; }
.close canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity .6s; }
.close canvas.ready { opacity: 1; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--sky); }
.close h2 { font: 800 clamp(38px, 6vw, 76px)/1 var(--display); letter-spacing: -.01em; margin: 0 0 16px; text-shadow: 0 2px 24px rgba(0,0,40,.45); text-wrap: balance; }
.close p { font-size: 20px; margin: 0 auto 30px; max-width: 560px; text-shadow: 0 1px 14px rgba(10,30,110,.55); }
.close .micro { display: block; margin-top: 14px; font-size: 13.5px; opacity: .9; }
.foot { padding: 34px 0 44px; color: var(--ink-3); font-size: 14px; }
.foot .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot .logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 700 17px/1 var(--display); text-decoration: none; }
.foot .logo img { width: 24px; height: 24px; }
.foot nav { margin-left: auto; display: flex; gap: 18px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Variant switcher, only for review copies (?review or the /variants page) */
.vswitch { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20,22,30,.85);
  backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); font: 600 13px/1 var(--body); }
.vswitch a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; opacity: .7; }
.vswitch a.on { background: #fff; color: #111; opacity: 1; }

/* ===================== Variant A: a calm home (day sky, pastel story cards) ===================== */
.v-a .sec.card { padding: 0; margin: 22px auto; }
.v-a .sec.card > .inner { border-radius: 32px; padding: clamp(28px, 5vw, 64px); background: var(--bg, var(--peach)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.v-a .sec.card.flip > .inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.v-a .sec.card.flip .txt { order: 2; }
.v-a .sec.card.full > .inner { grid-template-columns: minmax(0, 1fr); }
.v-a .sec.card.full .txt { max-width: 760px; }
@media (max-width: 900px) { .v-a .sec.card > .inner, .v-a .sec.card.flip > .inner { grid-template-columns: minmax(0, 1fr); } .v-a .sec.card.flip .txt { order: 0; } }
.v-a .intro-line { text-align: center; max-width: 820px; margin: 40px auto 10px; padding: 0 20px; font: 700 clamp(26px, 3.4vw, 40px)/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.v-a .intro-line em { font-style: normal; color: var(--sky); }

/* ===================== Variant C: a day in Dew (the sky changes with the hour) ===================== */
.v-c .day { position: relative; }
.v-c .hour { position: relative; padding: 0 0 30px; }
.v-c .band { position: relative; height: 150px; overflow: hidden; border-radius: 28px; margin: 0 auto; width: min(var(--max), 100% - 40px); isolation: isolate; }
.v-c .band canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.v-c .band canvas.ready { opacity: 1; }
.v-c .band::before { content: ""; position: absolute; inset: 0; background: var(--b-ink); z-index: -1; }
.v-c .band .labels { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v-c .band .time { position: static; font: 400 clamp(22px, 3.2vw, 36px)/1 var(--pixel); color: color-mix(in srgb, var(--b-ink) 62%, #15171e); background: #f4f6ff; padding: 12px 16px 10px; border-radius: 14px; letter-spacing: .02em; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.v-c .band .tod { position: static; font: 400 12px/1 var(--pixel); color: #15171e; background: rgba(255,255,255,.9); padding: 7px 12px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.v-c .hour h2 { font: 800 clamp(32px, 4vw, 52px)/1.03 var(--display); letter-spacing: -.015em; margin: 0 0 18px; text-wrap: balance; }
.v-c .hour .body { font-size: 19px; color: var(--ink-2); }
.v-c .hour .body p { margin: 0 0 14px; }
.v-c .hour .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 40px; }
.v-c .hour.flip .grid .txt { order: 2; }
@media (max-width: 900px) { .v-c .hour .grid { grid-template-columns: minmax(0, 1fr); } .v-c .hour.flip .grid .txt { order: 0; } .v-c .band { height: 110px; } }
.v-c .clock { position: fixed; z-index: 40; left: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.v-c .clock.show { opacity: 1; pointer-events: auto; }
.v-c .clock a { width: 10px; height: 10px; border-radius: 3px; background: rgba(0,0,0,.15); display: block; transition: background .2s, transform .2s; }
.v-c .clock a.on { background: var(--ink); transform: scale(1.3); }
@media (max-width: 1300px) { .v-c .clock { display: none; } }
/* His feedback (2026-11-26): no rubber-band pull at the top, which slid the page under the fixed nav and left its white
   words on the white margin. */
html { overscroll-behavior-y: none; }
