/* GlassDrive website — Apple product-page style. System fonts, system light/dark, no trackers. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  --radius: 28px;
  --accent: #0071e3;
  --tint: rgba(0, 113, 227, 0.09);
  --tint-strong: rgba(0, 113, 227, 0.16);
  --ultimate: #8e44ec;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101010;
    --card: #1d1d1f;
    --text: #f5f5f7;
    --muted: #86868b;
    --line: rgba(255, 255, 255, 0.14);
    --link: #2997ff;
    --glass: rgba(29, 29, 31, 0.72);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    --accent: #2997ff;
    --tint: rgba(41, 151, 255, 0.13);
    --tint-strong: rgba(41, 151, 255, 0.22);
    --ultimate: #b37bff;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: min(980px, 100% - 44px); margin-inline: auto; }
.wide { width: min(1260px, 100% - 44px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
section { padding: 110px 0; }
.alt { background: var(--bg-alt); }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.headline { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; }
.subhead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.33; color: var(--muted); margin-top: 18px; font-weight: 500; }
.subhead strong { color: var(--text); }

/* Buttons and links (Apple style) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 28px; padding: 12px 24px; border-radius: 980px; border: 0;
  background: var(--btn); color: #fff; font-size: 17px; font-weight: 400; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn.large { padding: 15px 30px; font-size: 19px; }
.btn.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.secondary:hover { background: var(--link); color: #fff; }
.more::after { content: " ›"; }
.cta-row { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 40px; }
.app-icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 22px; background: linear-gradient(145deg, #62c7ff, #007aff); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 122, 255, 0.3); }
.hero h1 { font-size: clamp(56px, 9vw, 96px); line-height: 1.03; letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; margin-top: 8px; }
.hero .price-line { color: var(--muted); font-size: 19px; margin-top: 16px; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.shot { margin: 56px auto 0; border-radius: 1.3% / 2.1%; box-shadow: var(--shadow); width: min(1100px, 100%); }

/* Highlights gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(860px, 86vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px max(22px, calc((100vw - 980px) / 2)) 30px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: center; background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 520px; }
.alt .tile { background: var(--card); }
.tile .copy { padding: 40px 44px 24px; font-size: 21px; font-weight: 600; line-height: 1.24; }
.tile .copy span { color: var(--muted); }
.tile picture { margin-top: auto; padding: 0 30px; }
.tile img { border-radius: 1.4% 1.4% 0 0 / 2.2% 2.2% 0 0; box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08); }
.tile .art { margin-top: auto; flex: 1; display: grid; place-items: center; padding: 30px; }
.gallery-dots { display: flex; justify-content: center; gap: 10px; }
.gallery-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--muted); opacity: 0.4; cursor: pointer; padding: 0; }
.gallery-dots button[aria-current="true"] { opacity: 1; }

/* Feature cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 56px; }
.card { background: var(--card); border-radius: var(--radius); padding: 40px; }
.alt .card { background: var(--card); }
section:not(.alt) .card { background: var(--bg-alt); }
.icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(145deg, var(--tint-strong), var(--tint)); box-shadow: inset 0 0 0 1px var(--tint-strong); margin-bottom: 20px; }
.icon.num { font-size: 22px; font-weight: 600; }
.card h3 { font-size: 24px; line-height: 1.17; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 17px; }
.card p strong { color: var(--text); font-weight: 600; }

/* Frost demo */
.frost-demo { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 50px; aspect-ratio: 16 / 9; }
.frost-demo > img { width: 100%; height: 100%; object-fit: cover; }
.frost-demo .pane {
  position: absolute; inset: 14% 18%; border-radius: 22px;
  background: rgba(255, 255, 255, var(--haze, 0.1));
  -webkit-backdrop-filter: blur(var(--frost, 10px)) saturate(160%);
  backdrop-filter: blur(var(--frost, 10px)) saturate(160%);
  border: 1px solid rgba(255, 255, 255, calc(var(--haze, 0.1) * 2));
  display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; color: #fff; font-size: clamp(22px, 3vw, 34px); font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.frost-demo .pane span { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #62c7ff, #007aff); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.slider-row { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 26px auto 0; color: var(--muted); font-size: 15px; }
.slider-row input { flex: 1; accent-color: var(--btn); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 60px; }
.stat b { display: block; font-size: clamp(48px, 6vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat span { color: var(--muted); display: block; margin-top: 10px; }

/* Why tiles */
.why-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 50px; }
.why-tile { background: var(--card); border-radius: 22px; padding: 30px; }
section:not(.alt) .why-tile { background: var(--bg-alt); }
.why-tile .icon { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 0; }
.why-tile .icon svg { width: 22px; height: 22px; }
.why-tile h3 { font-size: 21px; margin: 14px 0 6px; }
.why-tile p { color: var(--muted); font-size: 15px; }

/* Pricing */
.plan-toggle { display: inline-flex; background: var(--bg-alt); border-radius: 980px; padding: 4px; margin-top: 34px; }
.alt .plan-toggle { background: var(--card); }
.plan-toggle button { border: 0; background: transparent; color: var(--text); padding: 9px 22px; border-radius: 980px; font-size: 15px; cursor: pointer; }
.plan-toggle button[aria-pressed="true"] { background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); font-weight: 600; }
.alt .plan-toggle button[aria-pressed="true"] { background: var(--bg-alt); }
.price-big { font-size: clamp(56px, 8vw, 80px); font-weight: 600; letter-spacing: -0.02em; margin-top: 26px; line-height: 1; }
.price-big small { font-size: 21px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 34px auto 0; max-width: 760px; }
.step { background: var(--card); border-radius: 18px; padding: 16px 10px; text-align: center; }
section:not(.alt) .step { background: var(--bg-alt); }
.step b { display: block; font-size: 22px; font-weight: 600; }
.step span { color: var(--muted); font-size: 13px; }
.step.now { box-shadow: inset 0 0 0 2px var(--btn); }
.calc { max-width: 620px; margin: 40px auto 0; }
.calc output { display: block; margin-top: 12px; font-size: 19px; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.why-charge { max-width: 760px; margin: 0 auto; }
.why-charge p { font-size: 21px; line-height: 1.38; color: var(--muted); margin-top: 22px; font-weight: 500; }
.why-charge p strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin: 50px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq summary { list-style: none; cursor: pointer; font-size: 21px; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: 0.8; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* Side navigation rails (appear once you scroll past the download button) */
.rail {
  position: fixed; top: 50%; z-index: 20; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 980px;
  transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease;
}
.rail.left { left: 18px; transform: translate(-12px, -50%); }
.rail.right { right: 18px; transform: translate(12px, -50%); }
body.scrolled .rail, body.subpage .rail { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.rail a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; padding: 10px 4px; border-radius: 980px;
  color: var(--text); font-size: 11px; text-decoration: none;
}
.rail a .i { display: grid; place-items: center; height: 18px; }
.rail a:hover { background: var(--line); text-decoration: none; }
.rail a[aria-current="page"] { background: var(--btn); color: #fff; }

/* Floating download button (appears once the main download button is out of view) */
.float-dl {
  position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease; box-shadow: 0 10px 30px rgba(0, 113, 227, 0.35);
}
body.scrolled .float-dl { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Narrower windows: the side buttons move to the bottom so they never cover text */
@media (max-width: 1180px) {
  .rail { top: auto; bottom: 16px; flex-direction: row; gap: 2px; padding: 5px; }
  .rail.left { left: 12px; transform: translateY(12px); }
  .rail.right { right: 12px; transform: translateY(12px); }
  body.scrolled .rail, body.subpage .rail { transform: translateY(0); }
  .rail a { width: 56px; padding: 7px 2px; }
  .float-dl { bottom: 84px; }
}
@media (max-width: 860px) {
  section { padding: 80px 0; }
  .tile { min-height: 440px; }
  .tile .copy { padding: 30px 28px 20px; font-size: 19px; }
}

/* Page header for sub-pages (no bar — just a big title like apple.com) */
.page-hero { padding: 120px 0 40px; }
.back-home { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; margin-bottom: 40px; }
.back-home .mini-icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, #62c7ff, #007aff); display: grid; place-items: center; }

/* Split feature rows (features page) */
.feature-row { display: grid; gap: 40px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
.feature-row h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.feature-row p { color: var(--muted); font-size: 19px; margin-top: 16px; }
.feature-row .art { background: var(--bg-alt); border-radius: var(--radius); min-height: 300px; display: grid; place-items: center; overflow: hidden; padding: 24px; }
.feature-row .art img { border-radius: 1.4% / 2.2%; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14); }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1.2fr; } .feature-row.flip .art { order: -1; } }

/* Footer */
footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; padding: 30px 0 120px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail, .float-dl { transition: none; }
}

/* Icons as artwork */
.art.glyph { background: radial-gradient(120% 90% at 30% 20%, var(--tint-strong), transparent 60%), var(--bg-alt); }
.art.glyph span { width: 200px; height: 200px; border-radius: 52px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 20px 50px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (prefers-color-scheme: dark) { .art.glyph span { background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.4); } }
.tile .art.glyph { min-height: 300px; margin: 0 30px 30px; border-radius: 22px; }
.float-dl svg { margin-left: -2px; }

/* Trial footnote */
.ast { color: inherit; text-decoration: none; font-size: 0.75em; vertical-align: super; line-height: 0; margin-left: 1px; }
.ast:hover { text-decoration: none; color: var(--link); }
.footnote { flex-basis: 100%; max-width: 760px; line-height: 1.5; }
.footnote:target { color: var(--text); }
.disclaimer { flex-basis: 100%; max-width: 860px; line-height: 1.55; margin: 0; }
.disclaimer a { text-decoration: underline; }

/* Ultimate */
.ultimate-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ultimate); }
#ultimate .shot { margin-top: 50px; }

/* Pricing: tiers */
.toggles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.toggles .plan-toggle { margin-top: 0; }
.plan-toggle button { display: inline-flex; align-items: center; gap: 6px; }
#tier-ultimate[aria-pressed="true"] { color: var(--ultimate); }
.tier-blurb { color: var(--muted); font-size: 17px; max-width: 560px; margin: 14px auto 0; min-height: 1.5em; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 50px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 40px; }
.plan h3 { font-size: 28px; display: flex; align-items: center; gap: 10px; }
.plan.ultimate { box-shadow: inset 0 0 0 2px var(--ultimate); }
.plan.ultimate h3 { color: var(--ultimate); }
.plan-price { font-size: 40px; font-weight: 600; margin-top: 14px; letter-spacing: -0.02em; }
.plan-price span { display: block; font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { flex: none; color: var(--accent); margin-top: 2px; }
.plan.ultimate li svg { color: var(--ultimate); }

/* Scroll "woosh": each block glides in once it's 30% on screen, and glides out upwards once
   you've scrolled past it. main.js makes sure at least one block is always showing. */
.js .w { transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.16, 0.8, 0.2, 1), filter 0.7s ease; }
.js .w:not(.in) { opacity: 0; transform: translateY(80px) scale(0.96); filter: blur(8px); }
.js .w.up:not(.in) { transform: translateY(-80px) scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .js .w, .js .w:not(.in), .js .w.up:not(.in) { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Beta labelling ---------- */
.beta-pill {
  display: inline-block; vertical-align: 0.55em; margin-left: 0.25em;
  font-size: 0.24em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  padding: 0.35em 0.6em; border-radius: 980px; color: var(--accent);
  border: 1.5px solid currentColor; background: var(--tint);
}
.back-home .beta-pill { font-size: 10px; vertical-align: 2px; margin-left: 6px; }
.beta-bar {
  position: relative; z-index: 25; text-align: center; font-size: 13px; padding: 9px 16px;
  color: var(--text); background: var(--tint); border-bottom: 1px solid var(--line);
}
.beta-note {
  display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left;
  max-width: 620px; margin: 22px auto 0; padding: 14px 18px; border-radius: 18px;
  background: var(--tint); color: var(--text); font-size: 15px;
}
.beta-note svg { flex: none; color: var(--accent); margin-top: 1px; }

/* ---------- Glass icons ----------
   Each icon is a small pane of frosted glass: a coloured glow sits behind it, the pane blurs it,
   a bright rim catches the light and a soft highlight runs across the top, like Liquid Glass. */
:root { --orb1: #39a0ff; --orb2: #8e5cff; --glass-fill: rgba(255, 255, 255, 0.3); --glass-rim: rgba(255, 255, 255, 0.85); --glass-hi: rgba(255, 255, 255, 0.75); --glass-shadow: 0 10px 28px rgba(0, 70, 160, 0.16); }
@media (prefers-color-scheme: dark) {
  :root { --glass-fill: rgba(255, 255, 255, 0.08); --glass-rim: rgba(255, 255, 255, 0.28); --glass-hi: rgba(255, 255, 255, 0.22); --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
}
.icon, .art.glyph span, .rail a .i {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-rim), inset 0 -8px 16px rgba(0, 30, 90, 0.08), var(--glass-shadow);
}
/* the coloured light behind the glass */
.icon::before, .art.glyph span::before {
  content: ""; position: absolute; inset: -35%; z-index: -2;
  background: radial-gradient(circle at 28% 30%, var(--orb1), transparent 52%), radial-gradient(circle at 76% 74%, var(--orb2), transparent 50%);
  opacity: 0.85; filter: blur(8px);
}
/* the highlight across the top of the glass */
.icon::after, .art.glyph span::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 3%; height: 46%; z-index: -1;
  border-radius: 40% 40% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, var(--glass-hi), rgba(255, 255, 255, 0));
}
.icon svg, .art.glyph span svg { filter: drop-shadow(0 1px 1px rgba(0, 40, 120, 0.25)); }
@media (prefers-color-scheme: dark) { .icon svg, .art.glyph span svg { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); } }
.icon { border-radius: 16px; width: 56px; height: 56px; }
.icon svg { width: 28px; height: 28px; }
.art.glyph span { border-radius: 52px; }
/* a different light behind each card, so a row of icons looks like real glass catching colour */
.cards > :nth-child(6n+2) .icon, .why-grid > :nth-child(6n+2) .icon { --orb1: #2fd3c5; --orb2: #3a7bff; }
.cards > :nth-child(6n+3) .icon, .why-grid > :nth-child(6n+3) .icon { --orb1: #ff7ab8; --orb2: #8e5cff; }
.cards > :nth-child(6n+4) .icon, .why-grid > :nth-child(6n+4) .icon { --orb1: #ffb547; --orb2: #ff5f6d; }
.cards > :nth-child(6n+5) .icon, .why-grid > :nth-child(6n+5) .icon { --orb1: #5ee08a; --orb2: #2fa8ff; }
.cards > :nth-child(6n+6) .icon, .why-grid > :nth-child(6n+6) .icon { --orb1: #b07bff; --orb2: #ff8f6b; }
.feature-row:nth-child(even) .art.glyph span { --orb1: #ff7ab8; --orb2: #ffb547; }
/* sidebar buttons: small glass discs */
.rail a .i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.rail a[aria-current="page"] { background: transparent; color: var(--text); }
.rail a[aria-current="page"] .i { background: linear-gradient(145deg, #4fb2ff, #0071e3); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(0, 113, 227, 0.4); }
/* the app icon and the small one in page headers get the same glassy shine */
.app-icon, .back-home .mini-icon { position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 12px 30px rgba(0, 122, 255, 0.3); }
.app-icon::after, .back-home .mini-icon::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 3%; height: 45%;
  border-radius: 40% 40% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}
.app-icon svg, .back-home .mini-icon svg { position: relative; z-index: 1; }

/* Business plan card */
.plan.business { box-shadow: inset 0 0 0 2px var(--accent); }
.plan.business h3 { color: var(--accent); }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, 1fr); } .wrap.plans { width: min(1100px, 100% - 44px); } }

/* ---------- Download: confirmation dialog ---------- */
.dl-dialog {
  border: 0; padding: 0; border-radius: 26px; width: min(420px, calc(100% - 32px)); color: var(--text);
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-rim), 0 30px 80px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) { .dl-dialog { background: rgba(32, 32, 35, 0.9); } }
.dl-dialog::backdrop { background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dl-dialog[open] { animation: dl-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes dl-pop { from { opacity: 0; transform: translateY(14px) scale(0.94); } to { opacity: 1; transform: none; } }
.dl-dialog .inner { padding: 30px 28px 24px; text-align: center; }
.dl-dialog .app-icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 14px; }
.dl-dialog .app-icon svg { width: 38px; height: 38px; }
.dl-dialog h2 { font-size: 24px; }
.dl-dialog p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.dl-dialog .actions { display: flex; gap: 10px; margin-top: 22px; }
.dl-dialog .actions .btn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .dl-dialog[open] { animation: none; } }

/* ---------- Download page: illustrated install steps ---------- */
.steps-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 50px; }
.step-card { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 18px 26px; }
.step-card h3 { font-size: 21px; margin: 18px 6px 8px; }
.step-card p { color: var(--muted); font-size: 15px; margin: 0 6px; }
.step-card p strong { color: var(--text); }
.ill-wrap { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 100% at 20% 10%, rgba(57, 160, 255, 0.28), transparent 60%), radial-gradient(100% 100% at 90% 90%, rgba(142, 92, 255, 0.25), transparent 60%), var(--card); }
.ill { display: block; width: 100%; height: auto; }
.step-num { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(145deg, #4fb2ff, #0071e3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 10px rgba(0, 113, 227, 0.4); }
.ill-win { fill: rgba(255, 255, 255, 0.78); stroke: rgba(0, 0, 0, 0.08); }
.ill-dot { fill: rgba(0, 0, 0, 0.15); }
.ill-t { font: 500 9.5px -apple-system, BlinkMacSystemFont, sans-serif; fill: #3a3a3c; }
.ill-b { font-weight: 700; font-size: 11px; }
.ill-q { fill: #8a8a8e; }
.ill-w { fill: #fff; font-weight: 600; }
.ill-file { fill: #fff; stroke: rgba(0, 0, 0, 0.12); }
.ill-accent-fill { fill: #0071e3; }
.ill-ring { fill: none; stroke: #0071e3; stroke-width: 1.5; opacity: 0.5; }
.ill-app { fill: #2a8cff; }
.ill-white { fill: #fff; }
.ill-arrow { fill: none; stroke: #0071e3; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill-folder { fill: #9a9aa0; }
.ill-row { fill: rgba(0, 0, 0, 0.04); stroke: rgba(0, 0, 0, 0.06); }
.ill-cursor { fill: #1d1d1f; stroke: #fff; stroke-width: 1; }
.ill-side { fill: rgba(0, 0, 0, 0.05); }
.ill-pill { fill: none; stroke: #0071e3; stroke-width: 1; }
.ill-line { fill: rgba(0, 0, 0, 0.12); }
.ill-tile { fill: rgba(0, 0, 0, 0.06); }
.ill-pie1 { fill: #d46ad6; }
.ill-pie2 { fill: #4fc28f; }
.ill-hole { fill: rgba(255, 255, 255, 0.92); }
@media (prefers-color-scheme: dark) {
  .ill-win { fill: rgba(44, 44, 46, 0.85); stroke: rgba(255, 255, 255, 0.1); }
  .ill-dot { fill: rgba(255, 255, 255, 0.2); }
  .ill-t { fill: #e5e5ea; } .ill-q { fill: #98989d; } .ill-w { fill: #fff; }
  .ill-file { fill: #3a3a3c; stroke: rgba(255, 255, 255, 0.12); }
  .ill-row, .ill-side, .ill-tile { fill: rgba(255, 255, 255, 0.07); }
  .ill-line { fill: rgba(255, 255, 255, 0.18); }
  .ill-cursor { fill: #fff; stroke: #000; }
  .ill-hole { fill: rgba(44, 44, 46, 0.95); }
}
#dl-started a { font-weight: 600; }

/* After clicking Download: a small card with what the browser may ask, and the install steps */
.dl-toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 360px; display: grid; gap: 8px; padding: 18px 20px 16px; border-radius: 18px;
  background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.6); font-size: 14px; line-height: 1.45; animation: dl-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.dl-toast[hidden] { display: none !important; }
.dl-toast span { color: var(--muted); }
.dl-toast .btn { justify-self: start; margin-top: 4px; }
.dl-toast button { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (prefers-color-scheme: dark) { .dl-toast { background: rgba(32,32,35,0.92); box-shadow: 0 18px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.08); } }
@media (max-width: 600px) { .dl-toast { left: 16px; right: 16px; max-width: none; } }
