/* SkySaver landing page. The hero is the real wallpaper; everything after it is clean white. */
:root {
  --ink: #0f2438;
  --ink-soft: #55697d;
  --line: #e3eaf1;
  --card: #f5f8fb;
  --accent: #2f7fd0;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #fff; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
video { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* Header: plain, scrolls away with the page */
.nav { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 34px clamp(30px, 5vw, 60px); color: #fff; }
.wordmark { text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav-link { text-decoration: none; font-weight: 800; font-size: 15px; opacity: 0.95; }
.nav-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: #fff; color: #0d2a4d; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; padding: 15px 28px 15px 24px; border-radius: 999px; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn .apple { width: 19px; height: 19px; fill: currentColor; margin-top: -2px; }
.btn-lg { font-size: 20px; padding: 18px 36px 18px 30px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Hero: fades into the white page, no hard edge */
.hero { position: relative; height: calc(100svh - 24px); min-height: 540px; margin: 12px; border-radius: clamp(22px, 3vw, 36px); overflow: hidden; display: grid; place-items: center; background: #6f9fd0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; filter: saturate(1.2) contrast(1.08) brightness(0.98); }
.hero-shade { display: none; }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: 0 20px; margin-top: -6vh; }
.hero h1 {
  display: inline-block; padding: 0 0.1em 0.1em 0.04em;
  font-size: clamp(54px, 9.5vw, 128px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 800;
  color: transparent; background: linear-gradient(180deg, #fff 0%, #fff 38%, rgba(255, 255, 255, 0.74) 100%); -webkit-background-clip: text; background-clip: text;
}
.tagline { margin-top: clamp(0px, 0.5vw, 8px); font-size: clamp(18px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 10px rgba(20, 60, 120, 0.28); }
.hero .btn { margin-top: clamp(26px, 4vw, 44px); }
.platforms { margin-top: 16px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.92); }

h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }

.statement { padding: clamp(56px, 7vw, 96px) clamp(22px, 6vw, 80px) 0; max-width: 1240px; margin: 0 auto; }
.statement p { font-size: clamp(30px, 5.4vw, 70px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.statement p span { color: #8fa1b3; }

.showcase { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); }
.clip figcaption strong { color: var(--ink); font-weight: 800; margin-right: 8px; }

/* Features as cards with icons */
.features { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); padding: clamp(40px, 5vw, 64px) clamp(18px, 4vw, 48px) clamp(60px, 8vw, 110px); }
.feature { border-radius: 30px; display: flex; flex-direction: column; color: #0f2438; }
.feature:nth-child(1) { background: linear-gradient(180deg, #d6eafc 0%, #a9d0f7 50%, #78aeee 100%); }
.feature:nth-child(2) { background: radial-gradient(150% 105% at 100% 112%, rgba(255, 150, 70, 0.5) 0%, rgba(255, 170, 90, 0.28) 38%, rgba(255, 170, 80, 0) 78%), linear-gradient(180deg, #fff3c4 0%, #fddb7a 50%, #f6b24c 100%); color: #3a2a0c; }
.feature:nth-child(3) { background: radial-gradient(150% 105% at 100% 112%, rgba(255, 135, 190, 0.55) 0%, rgba(255, 160, 205, 0.3) 38%, rgba(255, 170, 210, 0) 78%), linear-gradient(180deg, #f1e9ff 0%, #d3bff6 50%, #b093ea 100%); }
.icon { color: inherit; margin-bottom: 18px; }
.icon svg { width: 60px; height: 60px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
.feature p { margin-top: 10px; font-size: 17px; line-height: 1.5; font-weight: 600; color: inherit; opacity: 0.78; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 48px) clamp(80px, 10vw, 140px); }
.faq h2 { margin-bottom: clamp(24px, 4vw, 44px); }

details { border-radius: 20px; transition: background 0.3s; }
details:hover, details.is-open { background: var(--card); }
summary { transition: padding 0.3s, color 0.3s; list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 40px; height: 40px; border-radius: 14px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2438' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5.5v13M5.5 12h13'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s; }
summary:hover::after { background-color: #e9eef4; }
details.is-open summary::after { transform: rotate(45deg); }
details .ans { overflow: hidden; }
details p { padding: 0 74px 26px 24px; font-size: 17px; font-weight: 600; color: var(--ink-soft); }

/* Download: the meadow rises out of the white */
.download { position: relative; overflow: hidden; margin: 12px; border-radius: clamp(22px, 3vw, 36px); height: calc(100svh - 24px); min-height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0f1a3d; }
.dl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.dl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 35, 0.22), rgba(5, 12, 35, 0) 55%); pointer-events: none; }
.download-inner { position: relative; z-index: 3; text-align: center; padding: 0 20px; margin-top: -10vh; }
.download-inner h2 { display: inline-block; padding: 0 0.06em 0.1em; color: transparent; background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.68) 100%); -webkit-background-clip: text; background-clip: text; margin-bottom: clamp(22px, 3.4vw, 38px); }

.requirements { margin-top: 18px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero-video { object-position: 40% 70%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

.platform-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.platform { display: flex; flex-direction: column; align-items: center; }
.btn-off { background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.85); box-shadow: none; border-color: transparent; cursor: not-allowed; }
.btn-off:hover { transform: none; box-shadow: none; }


.clip-title { position: absolute; z-index: 2; top: clamp(18px, 2.4vw, 30px); left: 0; right: 0; text-align: center; font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: transparent; background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.68) 100%); -webkit-background-clip: text; background-clip: text; pointer-events: none; }

/* ---------- Feature cards with depth ---------- */
.feature { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.feature:hover { transform: translateY(-6px); }
.feature h3 { font-size: clamp(20px, 2vw, 26px); white-space: nowrap; }
.feature { padding: clamp(26px, 2.8vw, 34px); padding-bottom: clamp(30px, 3.4vw, 42px); }
.icon svg { width: 56px; height: 56px; }


/* Cards arrive one by one */
.features .feature.reveal { opacity: 0; transform: translateY(70px) scale(0.96); transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.features .feature.reveal.in { opacity: 1; transform: none; }
.features .feature:nth-child(2) { transition-delay: 0.22s; }
.features .feature:nth-child(3) { transition-delay: 0.44s; }
.features .feature.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: 0.5s; }
@media (prefers-reduced-motion: reduce) { .features .feature.reveal { opacity: 1; transform: none; } }

/* Clouds: the app's own cloud shader, drawn per card */
.feature .cloud { opacity: 0.5; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%); }

/* Throughout the day: drag the hour; the real frames dissolve into each other */
.day-stage { position: relative; height: clamp(440px, 66svh, 600px); border-radius: clamp(22px, 3vw, 36px); overflow: hidden; background: #1b2a4a; isolation: isolate; user-select: none; }
.day-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; opacity: 0; will-change: opacity; filter: saturate(1.2) contrast(1.035) brightness(1.05); }
.day-img:first-of-type { opacity: 1; }
	.day-top { position: absolute; z-index: 3; top: clamp(22px, 3.4vw, 46px); left: clamp(26px, 5vw, 70px); right: clamp(26px, 5vw, 70px); display: flex; align-items: center; justify-content: space-between; gap: 24px; pointer-events: none; }
.day-title { position: static; font-size: clamp(38px, 5.6vw, 78px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 800; color: transparent; background: linear-gradient(180deg, #fff 15%, rgba(255, 255, 255, 0.55) 100%); -webkit-background-clip: text; background-clip: text; padding: 0 0.08em 0.1em 0; }
.day-dial { position: relative; flex: none; width: min(340px, 46%); touch-action: none; color: #fff; pointer-events: auto; }
.day-dial svg { display: block; width: 100%; height: auto; cursor: grab; overflow: visible; }
.day-dial svg:active { cursor: grabbing; }
#day-ticks line { stroke-linecap: round; }
#day-knob { fill: #fff; }
.day-mid { position: absolute; left: 0; right: 0; bottom: 16px; display: grid; justify-items: center; pointer-events: none; }
.day-icon svg { width: 26px; height: 26px; display: block; margin-bottom: 8px; fill: #fff; }
.day-mid strong, .day-mid small { display: block; }
.day-mid strong { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.day-mid small { font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; opacity: 0.88; margin-top: 4px; }

/* One vertical rhythm for every section: the same gap above each, the same side edges */
:root { --gap: clamp(100px, 13vw, 190px); --edge: clamp(18px, 4vw, 48px); }
.statement { max-width: 1200px; padding: var(--gap) var(--edge) 0; }
.features { padding: clamp(48px, 6vw, 84px) var(--edge) 0; }
.faq { padding: var(--gap) var(--edge) 0; }
.download { margin: var(--gap) 12px 12px; }

.skies { max-width: 1200px; margin: var(--gap) auto 0; padding: 0 var(--edge); height: 320svh; }
.skies-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.skies-pin .day-stage { width: 100%; }

.feature p { text-wrap: balance; }

/* Feature cards: the same space around the icon, between icon and text, and at the bottom */
.feature { --pad: clamp(24px, 2.4vw, 30px); padding: var(--pad); min-height: 0; }
.feature .icon { margin-bottom: var(--pad); }
.feature p { margin-top: 8px; }

/* The pinned sky card fills the screen, with tight space around the section */
.day-stage { height: min(calc(100svh - 72px), 880px); min-height: 440px; }
.skies { margin-top: clamp(20px, 3vw, 44px); }
.faq { padding-top: clamp(40px, 5vw, 72px); }

/* Equal space between every section; the sky card has a fixed size that doesn't follow the screen height */
:root { --gap: clamp(64px, 8vw, 112px); --cardh: clamp(420px, 44vw, 560px); }
.statement { padding-top: var(--gap); }
.features { padding-top: var(--gap); }
.skies { margin-top: var(--gap); height: calc(var(--cardh) + 90svh); }
.skies-pin { position: sticky; top: max(16px, calc((100svh - var(--cardh)) / 2)); height: var(--cardh); display: block; }
.day-stage { height: var(--cardh); min-height: 0; }
.faq { padding-top: var(--gap); }
.download { margin-top: var(--gap); }

/* More room between sections; the FAQ shares the same left edge as the rest */
:root { --gap: clamp(100px, 12vw, 176px); }
.faq { max-width: 1200px; }
.faq-list { max-width: 860px; }

/* Even more room between sections; the statement and its three cards are one section */
:root { --gap: clamp(130px, 15vw, 220px); }
.features { padding-top: clamp(40px, 5vw, 64px); }

.day-mid strong .dg { display: inline-block; white-space: pre; }

/* FAQ back to its own centered column */
.faq { max-width: 860px; }
.faq-list { max-width: none; }

.statement p { text-align: center; }
.faq h2 { text-align: center; }
.statement p span { display: block; }

.statement p span { white-space: nowrap; font-size: clamp(14px, 3.9vw, 48px); font-weight: 700; margin-top: 10px; }

.statement p { font-size: clamp(30px, 5.4vw, 70px); }
.statement p span { font-size: 1em; margin-top: 6px; }

/* A MacBook-style notch at the top of the hero, saying what the sky is doing for the visitor */
.notch { position: absolute; z-index: 4; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 9px 20px 10px; background: #fff; color: #0f2438; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; border-radius: 0 0 18px 18px; white-space: nowrap; }
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: 14px; height: 14px; }
.notch::before { left: -14px; background: radial-gradient(circle at 0 100%, transparent 13.5px, #fff 14px); }
.notch::after { right: -14px; background: radial-gradient(circle at 100% 100%, transparent 13.5px, #fff 14px); }
.notch-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ac8fa; flex: none; transition: background 0.6s; }
@media (max-width: 520px) { .notch { font-size: 12px; padding: 8px 14px 9px; } .nav .wordmark { display: none; } }

.notch img { width: 18px; height: 18px; border-radius: 5px; display: block; }

.hero h1 { font-size: clamp(38px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.05em; max-width: 14ch; margin-inline: auto; text-wrap: balance; }

/* Notch text matches the button text */
.notch { gap: 10px; padding: 11px 24px 13px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; border-radius: 0 0 22px 22px; }
.notch img { width: 24px; height: 24px; border-radius: 7px; }
.notch::before { left: -16px; width: 16px; height: 16px; background: radial-gradient(circle at 0 100%, transparent 15.5px, #fff 16px); }
.notch::after { right: -16px; width: 16px; height: 16px; background: radial-gradient(circle at 100% 100%, transparent 15.5px, #fff 16px); }

.hero h1 { max-width: none; font-size: clamp(48px, 9vw, 128px); line-height: 0.98; }

/* One fixed headline size for the hero, whatever the copy is */
.hero h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; max-width: 15ch; margin-inline: auto; text-wrap: balance; }
.hero h1 { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; }

.day-title { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; }

.day-title { text-wrap: balance; max-width: 11ch; }


/* One button size everywhere, and the notch text uses it too */
.btn, .btn-lg { font-size: 20px; padding: 18px 36px 18px 30px; }
.btn .apple, .btn-lg .apple { width: 23px; height: 23px; }
.notch { font-size: 20px; padding: 12px 26px 14px; }
.notch img { width: 22px; height: 22px; border-radius: 6px; }

.day-title { white-space: pre-line; max-width: none; text-wrap: nowrap; font-size: clamp(28px, 4.5vw, 62px); }

/* The night frames are lifted so the meadow stays readable after dark */
.day-img:nth-of-type(4) { filter: saturate(1.22) contrast(1.03) brightness(1.2); }
.day-img:nth-of-type(5) { filter: saturate(1.25) contrast(1.02) brightness(1.3); }

/* The sky card title gets its white fade back */
.day-title { color: transparent; background: linear-gradient(180deg, #fff 15%, rgba(255, 255, 255, 0.55) 100%); -webkit-background-clip: text; background-clip: text; padding: 0 0.08em 0.12em 0; }

/* Sky card title: solid white, no gradient */
.day-title { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; }

/* Download modal */
.dl-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(10, 25, 50, 0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s; }
.dl-modal[hidden] { display: none; }
.dl-modal.show { opacity: 1; }
.dl-card { width: min(440px, 100%); padding: 36px 32px 28px; border-radius: 30px; background: #fff; text-align: center; transform: translateY(16px) scale(0.98); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dl-modal.show .dl-card { transform: none; }
.dl-card img { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; display: block; }
.dl-card h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.dl-card p { margin: 12px auto 24px; max-width: 30ch; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.dl-support, .dl-later { display: block; width: 100%; padding: 15px 20px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; border: 0; transition: background 0.2s; }
.dl-support { background: var(--ink); color: #fff; margin-bottom: 8px; }
.dl-support:hover { background: #1c3a57; }
.dl-later { background: none; color: var(--ink-soft); }
.dl-later:hover { background: var(--card); }
.dl-retry { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .dl-modal, .dl-card { transition: none; } }
.dl-support[hidden], .dl-modal[hidden] { display: none; }

/* Download modal, revised */
.dl-card { position: relative; width: min(420px, 100%); }
.dl-card img { display: none; }
.dl-check { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px; background: #dff5e6; display: grid; place-items: center; }
.dl-check svg { width: 34px; height: 34px; fill: none; stroke: #1f9d55; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-card p { max-width: none; margin: 10px auto 22px; font-size: 17px; line-height: 1.45; text-wrap: balance; }
.dl-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--card); display: grid; place-items: center; cursor: pointer; transition: background 0.2s; }
.dl-x:hover { background: #e8eef4; }
.dl-x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.dl-support { margin-bottom: 6px; }

.dl-support { display: flex; align-items: center; justify-content: center; gap: 10px; }
.dl-support[hidden] { display: none; }
.dl-support svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.download-inner { margin-top: calc(-16vh - 15px); }

/* Download modal: a loading badge that turns into a tick when the download starts */
.dl-check { display: none; }
.dl-badge { position: relative; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #e6f0fd; display: grid; place-items: center; transition: background 0.4s; }
.dl-card[data-state="done"] .dl-badge { background: #dff5e6; }
.dl-badge svg { position: absolute; inset: 0; margin: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dl-spin { width: 44px; height: 44px; stroke: #3b82e6; stroke-width: 4.2; animation: dl-rot 0.9s linear infinite; }
.dl-spin circle { stroke-dasharray: 72 120; }
.dl-tick { width: 46px; height: 46px; stroke: #1f9d55; stroke-width: 2.8; opacity: 0; transform: scale(0.6); }
.dl-card[data-state="done"] .dl-spin { opacity: 0; transform: scale(0.6); }
.dl-card[data-state="done"] .dl-tick { opacity: 1; transform: none; }
@keyframes dl-rot { to { transform: rotate(360deg); } }
.dl-retry { visibility: hidden; }
.dl-card[data-state="done"] .dl-retry { visibility: visible; }
.dl-x { background: none; width: 44px; height: 44px; top: 12px; right: 12px; border-radius: 50%; }
.dl-x:hover { background: none; opacity: 0.6; }
.dl-x svg { width: 28px; height: 28px; stroke-width: 2.2; }
@media (prefers-reduced-motion: reduce) { .dl-spin { animation-duration: 2.4s; } }

/* Download modal: more room, the retry link always visible, a livelier support button */
.dl-card { width: min(460px, 100%); padding: 48px 44px 38px; }
.dl-badge { margin-bottom: 28px; }
.dl-card h2 { font-size: 32px; }
.dl-card p { margin: 14px auto 34px; font-size: 18px; line-height: 1.5; }
.dl-retry, .dl-card[data-state="done"] .dl-retry { visibility: visible; margin-top: 22px; font-size: 15px; }
.dl-support { gap: 12px; padding: 14px 24px 14px 16px; background: #1f9d55; color: #fff; font-size: 18px; margin-bottom: 0; transition: background 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dl-support:hover, .dl-support:focus-visible { background: #25ad5f; transform: translateY(-2px); }
.dl-support:active { transform: translateY(0) scale(0.98); }
.dl-cup { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.dl-cup img { width: 20px; height: 20px; display: block; }
.dl-support:hover .dl-cup, .dl-support:focus-visible .dl-cup { transform: rotate(-14deg) scale(1.08); }
.dl-modal.show .dl-cup { animation: dl-nudge 1.1s 0.6s ease-in-out 1; }
@keyframes dl-nudge { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg) scale(1.06); } 60% { transform: rotate(8deg) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .dl-support, .dl-cup { transition: none; animation: none !important; } }

/* Support button: light green at the top, deeper green toward the bottom right; the cup sits on it with no background */
.dl-support { background: linear-gradient(150deg, #5ccb88 0%, #2fae66 48%, #1a8c4b 100%); padding: 14px 26px 14px 20px; }
.dl-support:hover, .dl-support:focus-visible { background: linear-gradient(150deg, #66d492 0%, #35b86d 48%, #1f9553 100%); }
.dl-cup { width: 32px; height: 32px; background: none; border-radius: 0; }
.dl-cup img { width: 30px; height: 30px; }

/* Support button gradient runs top to bottom */
.dl-support { background: linear-gradient(180deg, #5ccb88 0%, #2fae66 50%, #1a8c4b 100%); }
.dl-support:hover, .dl-support:focus-visible { background: linear-gradient(180deg, #66d492 0%, #35b86d 50%, #1f9553 100%); }

/* A soft green glow under the support button */
.dl-support { box-shadow: 0 10px 28px rgba(47, 174, 102, 0.42); transition: background 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s; }
.dl-support:hover, .dl-support:focus-visible { box-shadow: 0 14px 34px rgba(47, 174, 102, 0.55); }
.dl-support:active { box-shadow: 0 6px 16px rgba(47, 174, 102, 0.4); }

.faq-link { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: #2fae66; transition: text-decoration-color 0.2s; }
.faq-link:hover { text-decoration-color: var(--ink); }

/* Hero headline: the first line stays solid white; the second line fades */
.hero h1 .h1-a, .hero h1 .h1-b { display: block; }
.hero h1 .h1-b { color: transparent; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%); -webkit-background-clip: text; background-clip: text; padding-bottom: 0.1em; }

/* Second line: brighter, white held through the top half and only a gentle fade below */
.hero h1 .h1-b { background: linear-gradient(180deg, #fff 0%, #fff 50%, rgba(255, 255, 255, 0.82) 100%); -webkit-background-clip: text; background-clip: text; }

/* Second line only: 100% white at the top, 80% through the middle, 60% at the bottom */
.hero h1 .h1-b { background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0.75) 100%); -webkit-background-clip: text; background-clip: text; }

.dl-social { position: absolute; left: 0; right: 0; bottom: clamp(22px, 4vh, 40px); z-index: 3; display: flex; justify-content: center; gap: 26px; }
.dl-social a { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; opacity: 0.7; transition: opacity 0.2s ease; }
.dl-social a:hover, .dl-social a:focus-visible { opacity: 1; }
.dl-social svg { width: 20px; height: 20px; fill: currentColor; }
.dl-social a:last-child svg { width: 24px; height: 24px; }
.dl-social svg[stroke] { fill: none; }
.dl-first { margin: 14px 0 4px; padding: 12px 14px; border-radius: 16px; background: #f1f5f9; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--ink-soft); text-align: left; }
.dl-first strong { display: block; color: var(--ink); font-weight: 800; margin-bottom: 2px; }
.dl-first b { color: var(--ink); font-weight: 800; }

.dl-first { margin: 18px 0 10px; }
.dl-first ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.dl-first li { padding-left: 2px; }
.dl-cmd { display: flex; gap: 8px; align-items: center; margin: 0 0 18px; text-align: left; padding: 8px 8px 8px 14px; border-radius: 14px; background: #0f1a3d; }
.dl-cmd code { flex: 1; min-width: 0; overflow: visible; white-space: normal; word-break: normal; overflow-wrap: break-word; font: 600 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: #dbe7ff; }
.dl-cmd button { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; padding: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; transition: background 0.2s; }
.dl-cmd button:hover { background: rgba(255, 255, 255, 0.22); }
.dl-cmd svg { width: 18px; height: 18px; }
.dl-cmd .ic-done, .dl-cmd button[data-copied] .ic-copy { display: none; }
.dl-cmd button[data-copied] .ic-done { display: block; }
.dl-card .dl-support { margin: 0 0 6px; }

/* roomier pop-up */
.dl-card { padding: 40px 32px 34px; }
.dl-card p { max-width: none; margin: 14px auto 30px; }
.dl-first { margin: 0 0 16px; padding: 16px 18px; }
.dl-first ol { margin-top: 10px; gap: 7px; }
.dl-cmd { margin: 0 0 28px; padding: 10px 10px 10px 16px; }
.dl-card .dl-support { margin: 0 0 6px; }
.dl-retry { margin-top: 16px; }
.dl-card p .faq-link { white-space: nowrap; }
.dl-card .dl-first { margin-top: 0; }
.dl-card .dl-first { font-size: 17px; line-height: 1.4; padding: 16px 16px; }
.dl-card .dl-first strong { font-size: 17px; }
.dl-card .dl-first ol { padding-left: 22px; }

/* Phones */
@media (max-width: 640px) {
  .statement p span { white-space: normal; font-size: 1em; }
  .day-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .day-title { font-size: clamp(28px, 8vw, 40px); white-space: pre-line; }
  .day-dial { width: min(250px, 72%); align-self: center; margin-top: 6px; }
  .day-mid strong { font-size: 30px; }
  .platform-row { flex-direction: column; align-items: center; gap: 22px; }
  .platform { width: 100%; align-items: center; }
  .platform .btn-lg { width: min(300px, 100%); justify-content: center; white-space: nowrap; font-size: 19px; padding: 17px 24px; }
  .requirements { margin-top: 12px; }
  .dl-social { bottom: 20px; }
  .dl-card { padding: 34px 22px 28px; }
  .dl-card h2 { font-size: 26px; }
}
@media (max-width: 640px) { .platform-win { display: none; } }
@media (max-width: 640px) {
  .day-top { align-items: center; text-align: center; left: 20px; right: 20px; }
  .day-title { text-align: center; }
}
@media (max-width: 640px) { .platform .btn-lg { width: auto; font-size: 20px; padding: 18px 36px 18px 30px; } }
@media (max-width: 640px) { :root { --cardh: calc(100svh - 32px); } }
.m-br { display: none; }
@media (max-width: 640px) { .m-br { display: inline; } .download-inner h2 { margin-bottom: 52px; } }
@media (max-width: 640px) {
  .day-top { top: 64px; }
  .day-dial { position: absolute; left: 50%; top: 50%; margin-top: 0; transform: translate(-50%, -50%); width: min(260px, 72%); }
}
@media (max-width: 640px) { .day-top { top: 88px; } .day-dial { top: 45%; } }
@media (max-width: 640px) { .day-top { top: 0; bottom: 0; left: 0; right: 0; padding: 88px 20px 0; box-sizing: border-box; } .day-dial { top: 46%; } }
@media (max-width: 640px) { .day-dial, .day-dial svg { pointer-events: none; touch-action: auto; cursor: default; } }
html, body, a, button, summary, svg, .day-stage { -webkit-tap-highlight-color: transparent; }
a, button, summary { -webkit-touch-callout: none; }
@media (max-width: 640px) { .platform-row { transform: translateY(30px); } }
@media (max-width: 640px) { .hero h1, .hero .tagline { transform: translateY(-10px); } .hero .btn { transform: translateY(20px); } }
.dl-card .dl-first .dl-alt { margin: 10px 0 0; max-width: none; font-size: 17px; font-weight: 600; text-align: left; }
.dl-settings { display: inline-block; margin: 12px 0 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; transition: background 0.2s; }
.dl-settings:hover { background: #1c3a57; }
@media (max-width: 640px) { .dl-settings { display: none; } }
