/*
  ArozOS website styles. Generated pages link this file from docs/assets/;
  edit it in scripts/sitegen/static/ and run the generator.
*/

/* ---------- Tokens ---------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-elev: #ffffff;
  --tile: var(--bg-alt);
  --fill: rgba(0, 0, 0, 0.05);
  --fill-2: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --link: #0066cc;
  --nav-bg: rgba(255, 255, 255, 0.74);
  --menu-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
  --glow: 0.28;

  --g1: #0071e3;
  --g2: #a259ff;
  --g3: var(--g2);

  --nav-h: 48px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --track: -0.022em;
  --track-tight: -0.028em;
  --lh-title: 1.06;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

[data-theme="dark"],
.tone-dark {
  --bg: #000000;
  --bg-alt: #161617;
  --bg-elev: #1d1d1f;
  --fill: rgba(255, 255, 255, 0.08);
  --fill-2: rgba(255, 255, 255, 0.13);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #0a84ff;
  --link: #2997ff;
  --nav-bg: rgba(22, 22, 23, 0.74);
  --menu-bg: rgba(36, 36, 38, 0.92);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 48px rgba(0, 0, 0, 0.5);
  --glow: 0.45;
}
[data-theme="dark"] { color-scheme: dark; }

html:lang(zh-Hant) {
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}
html:lang(zh-Hans) {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
html:lang(ja) {
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, Arial, sans-serif;
}
html:lang(zh-Hant), html:lang(zh-Hans), html:lang(ja) {
  --track: 0;
  --track-tight: 0;
  --lh-title: 1.2;
}

/* Page accents: the gradient used by eyebrows, icons and highlights. */
.accent-index, .accent-download { --g1: #0071e3; --g2: #8e5cff; --g3: #e8508f; }
.accent-desktop { --g1: #0a66ff; --g2: #2fb8f5; --g3: #2fb8f5; }
.accent-media { --g1: #ff2d55; --g2: #ff7a00; --g3: #ffb020; }
.accent-office { --g1: #1f6bff; --g2: #18a957; --g3: #ff8a00; }
.accent-ai { --g1: #6b4dff; --g2: #c44dff; --g3: #ff5d8f; }
.accent-makers { --g1: #ff5a1f; --g2: #ffb000; --g3: #ffb000; }
.accent-storage { --g1: #0096c7; --g2: #3a66ff; --g3: #3a66ff; }
.accent-server { --g1: #4f46e5; --g2: #a855f7; --g3: #ec4899; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.noscroll { overflow: hidden; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
::selection { background: color-mix(in srgb, var(--g1) 28%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.i { width: 20px; height: 20px; flex: none; }
strong { font-weight: 600; color: var(--text); }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 48px); }
.center { text-align: center; justify-content: center; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: var(--bg-elev); color: var(--text); padding: 10px 16px; border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip:focus { left: 12px; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-block;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.title {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: var(--lh-title);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
.lead {
  font-size: clamp(19px, 1.75vw, 23px);
  line-height: 1.42;
  color: var(--text-2);
  margin-top: 18px;
  text-wrap: pretty;
}
.grad {
  background: linear-gradient(100deg, var(--g1), var(--g2) 55%, var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.note { font-size: 14px; color: var(--text-3); margin-top: 16px; line-height: 1.5; }
.note a, .lead a, .tile p a, .plat a:not(.btn) { color: var(--link); }
.note a:hover, .lead a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 980px;
  padding: 12px 22px;
  font-size: 17px; line-height: 1.18; font-weight: 400;
  letter-spacing: var(--track);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn.secondary { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn.secondary:hover { background: var(--accent); color: #fff; }
.btn.link { padding: 0; color: var(--link); border-radius: 4px; gap: 2px; }
.btn.link .i { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn.link:hover span { text-decoration: underline; }
.btn.link:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn.sm { padding: 5px 12px; font-size: 12px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in {
  height: var(--nav-h);
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.logo { width: 22px; height: 22px; }
.logo-bg { fill: var(--text); }
.logo-fg { fill: var(--bg); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-inline: auto; }
.nav-links a { font-size: 13px; color: var(--text); opacity: 0.78; transition: opacity 0.2s var(--ease); letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }
.nav-links a[aria-current] { font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links + .nav-tools { margin-left: 0; }
.nav-dl { margin-left: 8px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--text);
  opacity: 0.8; transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.icon-btn:hover, .pop.open > .icon-btn { background: var(--fill); opacity: 1; }
.icon-btn .i { width: 18px; height: 18px; }
.theme-btn > span { display: none; }
[data-theme-pref="light"] .ti-light,
[data-theme-pref="dark"] .ti-dark,
[data-theme-pref="auto"] .ti-auto,
html:not([data-theme-pref]) .ti-auto { display: block; }
.menu-btn { display: none; }
.menu-btn .mi-close { display: none; }
.nav.open .menu-btn .mi-open { display: none; }
.nav.open .menu-btn .mi-close { display: block; }

.pop { position: relative; }
.pop-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px; padding: 6px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease-out), visibility 0s 0.22s;
}
.pop.open .pop-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pop-menu a, .pop-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border: 0; background: none; border-radius: 9px;
  font-size: 14px; text-align: left; cursor: pointer; color: var(--text);
}
.pop-menu a:hover, .pop-menu button:hover { background: var(--fill); }
.pop-menu [aria-checked="true"] { color: var(--accent); font-weight: 600; }
.pop-menu .i { width: 17px; height: 17px; }

.sheet { display: none; }

/* Segmented control (theme / language in the sheet and footer) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--fill); }
.seg a, .seg button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 13px; color: var(--text-2); transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg .i { width: 15px; height: 15px; }
.seg [aria-checked="true"] { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.seg.sm a, .seg.sm button { padding: 4px 10px; font-size: 12px; }

/* ---------- Reveal and scroll effects ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .rv.in { opacity: 1; transform: none; }
.js [data-scale] {
  transform: scale(calc(0.92 + 0.08 * var(--p, 0)));
  opacity: calc(0.35 + 0.65 * var(--p, 0));
  will-change: transform;
}
.js [data-scale="hero"] {
  transform: translateY(calc(24px * (1 - var(--p, 0)))) scale(calc(0.9 + 0.1 * var(--p, 0)));
  opacity: 1;
  animation: hero-in 1.2s var(--ease-out) both 0.25s;
}
@keyframes hero-in { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Sections ---------- */

main > section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
main > section + section:not([class*="tone-"]):not(.cta) { padding-top: clamp(40px, 6vw, 80px); }
.tone-alt { background: var(--bg-alt); --tile: var(--bg-elev); }
.tone-dark { background: var(--bg); color: var(--text); --tile: var(--bg-elev); }
.sec-head { text-align: center; max-width: 840px; margin: 0 auto clamp(40px, 6vw, 72px); }

/* Hero */
main > section.hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 112px)); padding-bottom: clamp(40px, 7vw, 96px); text-align: center; overflow: clip; }
.hero-head { max-width: 980px; }
.hero-title {
  font-size: clamp(44px, 8vw, 104px);
  line-height: var(--lh-title);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(19px, 2vw, 26px); line-height: 1.38; color: var(--text-2);
  max-width: 760px; margin: 22px auto 0; text-wrap: pretty;
}
.hero-media {
  position: relative; isolation: isolate;
  width: min(1240px, 100% - 24px);
  margin: clamp(40px, 6vw, 72px) auto 0;
  transform-origin: 50% 0;
}
.hero-media::before {
  content: ""; position: absolute; inset: 12% 6% 4%; z-index: -1;
  background:
    radial-gradient(closest-side at 30% 50%, var(--g1), transparent),
    radial-gradient(closest-side at 70% 55%, var(--g2), transparent);
  filter: blur(70px); opacity: var(--glow);
}
.hero-media img { width: 100%; }
.hero-apps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 36px);
  margin: clamp(48px, 7vw, 88px) auto 0; width: min(900px, 100% - 32px);
}
.float {
  width: clamp(64px, 10vw, 116px); height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.18));
  animation: float 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.1s);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Feature */
.feature-in { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.layout-stack .f-text { text-align: center; max-width: 800px; margin-inline: auto; }
.layout-stack .app-row { justify-content: center; }
.layout-stack .btns { justify-content: center; }
.layout-split .feature-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.layout-split.flip .f-text { order: 2; }
.layout-split.no-media .feature-in { grid-template-columns: minmax(0, 1fr); }
.layout-split .f-code { width: 100%; }
.f-media { position: relative; transform-origin: 50% 30%; }
.f-media img { width: 100%; }
.app-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.app-row img { width: 56px; height: 56px; object-fit: contain; }
.checks {
  list-style: none; padding: 0; margin-top: 28px;
  display: grid; gap: 12px 28px; text-align: left;
}
.layout-stack .checks { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 17px; line-height: 1.45; }
.checks .i { width: 20px; height: 20px; margin-top: 1px; color: var(--g1); stroke-width: 2.4; }

/* Phone screenshots drawn in a simple bezel, the middle one raised. */
.f-phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3vw, 40px); }
.phone {
  width: min(250px, 30%); padding: 7px; border-radius: 42px;
  background: #1d1d1f; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone img { width: 100%; border-radius: 35px; }
.f-phones .phone:nth-child(odd) { margin-top: 56px; }
@media (max-width: 760px) {
  .phone { padding: 4px; border-radius: 24px; }
  .phone img { border-radius: 20px; }
}

.f-code {
  width: min(760px, 100%); margin-inline: auto;
  background: #1d1d1f; color: #f5f5f7;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.code-bar { display: flex; gap: 7px; padding: 14px 16px 0; }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.f-code pre { margin: 0; padding: 18px 24px 24px; overflow-x: auto; font-size: 14px; line-height: 1.65; letter-spacing: 0; text-align: left; }
.f-code .c { color: #7f8c98; }
.f-code .s { color: #ff8170; }
.f-code .k { color: #ff7ab2; font-weight: 600; }
.f-code .f { color: #78c2b3; }

/* Showcase: one sticky screen, captions step as you scroll */
.sc-track { position: relative; }
.js .sc-track { height: calc(var(--n) * 72vh + 28vh); height: calc(var(--n) * 72svh + 28svh); }
.sc-sticky { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.js .sc-sticky {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  justify-content: center;
}
.sc-media { position: relative; width: min(1100px, 100% - 32px); }
.js .sc-media { width: min(1100px, 100% - 32px, calc((100svh - var(--nav-h) - 230px) * 1.5)); aspect-ratio: 1.5; }
.sc-img { width: 100%; margin-bottom: 24px; }
.js .sc-img {
  position: absolute; inset: 0; height: 100%; object-fit: contain; margin: 0;
  opacity: 0; transform: scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease-out);
}
.js .sc-img.on { opacity: 1; transform: none; }
.sc-caps { display: grid; text-align: center; width: min(680px, 100% - 48px); }
.sc-cap { grid-area: 1 / 1; }
html:not(.js) .sc-cap { grid-area: auto; margin-bottom: 28px; }
.js .sc-cap { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out); pointer-events: none; }
.js .sc-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.sc-cap h3 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: var(--track-tight); }
.sc-cap p { margin-top: 10px; color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.45; }
.sc-dots { display: flex; gap: 8px; }
html:not(.js) .sc-dots { display: none; }
.sc-dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--fill-2); transition: width 0.4s var(--ease-out), background-color 0.3s var(--ease); }
.sc-dots span.on { width: 22px; background: var(--text); }
.sc-after { margin-top: 0; }

/* Scroll-lit statement */
.lit {
  font-size: clamp(28px, 4.3vw, 54px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: var(--track-tight);
  text-wrap: pretty;
}
.js .lit .w { opacity: 0.16; transition: opacity 0.35s var(--ease); }
.js .lit .w.on { opacity: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 44px 24px; text-align: center; }
.stat-v {
  font-size: clamp(52px, 6.4vw, 84px); line-height: 1; font-weight: 700; letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-t { margin-top: 12px; font-size: 19px; font-weight: 600; }
.stat p { margin: 6px auto 0; color: var(--text-2); font-size: 15px; max-width: 240px; }

/* Cards (links to the feature pages) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 540px; padding: 44px 40px 0;
  border-radius: 30px; background: var(--tile); color: var(--text);
  text-align: center;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.card.wide { grid-column: 1 / -1; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: var(--track-tight); text-wrap: balance; }
.card p { margin: 12px auto 0; max-width: 480px; color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; }
.more { display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; color: var(--link); font-size: 17px; }
.more .i { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card:hover .more .i, .more:hover .i { transform: translateX(3px); }
.card-media { margin-top: auto; padding-top: 32px; }
.card-media img { width: 108%; max-width: none; margin-left: -4%; transform: translateY(10%); transition: transform 0.9s var(--ease-out); }
.card.wide .card-media img { width: min(900px, 100%); margin-inline: auto; }
.card:hover .card-media img { transform: translateY(5%); }
.card-apps { margin-top: auto; padding: 40px 0 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.card-apps img { width: clamp(64px, 7vw, 84px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16)); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
.card::after {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, var(--g1), transparent), radial-gradient(closest-side at 70% 50%, var(--g2), transparent);
  filter: blur(60px); opacity: 0; transition: opacity 0.8s var(--ease);
}
.card:hover::after { opacity: calc(var(--glow) * 0.7); }

/* Bento tiles */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 230px; padding: 30px;
  border-radius: 26px; background: var(--tile);
}
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.full { grid-column: 1 / -1; }
.tile-ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 10px;
  display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--g1) 30%, transparent);
}
.tile-ic .i { width: 24px; height: 24px; }
.tile .app-row { margin-bottom: 8px; }
.tile .app-row img { width: 52px; height: 52px; }
.tile h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: var(--track); }
.tile p { color: var(--text-2); font-size: 16px; line-height: 1.5; }
.tile-v {
  font-size: clamp(44px, 5vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile .more { margin-top: auto; padding-top: 8px; font-size: 16px; }
.tile-img { margin-top: auto; padding-top: 16px; width: 100%; }
.tile .eyebrow { font-size: 15px; margin-bottom: 0; }

/* App icon grid */
.app-grid {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 34px 12px;
  max-width: 980px;
}
.app-grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); text-align: center; letter-spacing: 0; }
.app-grid img { width: 72px; height: 72px; object-fit: contain; transition: transform 0.35s var(--ease-out); }
.app-grid li:hover img { transform: translateY(-4px) scale(1.06); }

/* Specs */
.spec { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-size: 19px; font-weight: 600; }
.spec dd { color: var(--text-2); }
.spec ul { list-style: none; padding: 0; display: grid; gap: 8px; }

/* Install */
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plat { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 26px; background: var(--tile); scroll-margin-top: calc(var(--nav-h) + 24px); }
.plat.wide { grid-column: 1 / -1; }
.plat-head { display: flex; align-items: center; gap: 14px; }
.plat-head .tile-ic { margin: 0; }
.plat h3 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: var(--track-tight); }
.plat-sub { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.plat > p { color: var(--text-2); }
.plat .btns { margin-top: 4px; }
.plat .btn { font-size: 15px; padding: 10px 18px; }
.cmd { position: relative; background: #1d1d1f; color: #f5f5f7; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08); }
.cmd pre { margin: 0; padding: 16px 56px 16px 18px; font-size: 13.5px; line-height: 1.6; letter-spacing: 0; white-space: pre-wrap; word-break: break-all; }
.copy {
  position: absolute; top: 9px; right: 9px; width: 34px; height: 34px;
  display: grid; place-items: center; border: 0; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #f5f5f7; transition: background-color 0.2s var(--ease);
}
.copy:hover { background: rgba(255, 255, 255, 0.2); }
.copy .i { width: 17px; height: 17px; }
.copy .c-done, .copy.done .c-copy { display: none; }
.copy.done .c-done { display: block; color: #30d158; }
.howto { padding-left: 1.3em; color: var(--text-2); display: grid; gap: 6px; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 32px; border-radius: 26px; background: var(--tile); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-weight: 700; letter-spacing: 0;
}
.steps h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.steps code { font-size: 0.92em; background: var(--fill); padding: 1px 6px; border-radius: 6px; letter-spacing: 0; }

/* Call to action */
.cta { text-align: center; }
.cta-logo .logo { width: 76px; height: 76px; margin: 0 auto 28px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18)); }

/* Previous / next feature */
.pager { display: flex; justify-content: space-between; gap: 16px; padding-bottom: clamp(64px, 8vw, 110px); }
/* After a grey or black band the cards would touch it: give them room. */
main > section[class*="tone-"] + .pager { padding-top: clamp(48px, 6vw, 80px); }
.pg {
  flex: 1 1 0; max-width: 440px;
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px; border-radius: 22px; background: var(--bg-alt); color: var(--text);
  transition: background-color 0.25s var(--ease), transform 0.4s var(--ease-out);
}
.pg:hover { background: var(--fill-2); transform: translateY(-2px); }
.pg.next { justify-content: flex-end; text-align: right; margin-left: auto; }
.pg.prev .i { transform: rotate(180deg); }
.pg small { display: block; color: var(--text-3); font-size: 13px; }
.pg strong { font-size: 21px; font-weight: 600; }
.pg .i { color: var(--text-3); }

/* ---------- Footer ---------- */

.foot { background: var(--bg-alt); color: var(--text-2); font-size: 13px; line-height: 1.5; padding: 52px 0 32px; letter-spacing: 0; border-top: 1px solid var(--line); }
.foot-bottom p a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand p { margin-top: 12px; max-width: 270px; }
.foot-col h2 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 22px; }
.foot-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-langs a:hover { color: var(--text); }
.foot-langs [aria-checked="true"] { color: var(--text); font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav-links, .nav-tools .pop { display: none; }
  .menu-btn { display: grid; }
  .nav-links + .nav-tools { margin-left: auto; }
  .nav-dl { margin-right: 4px; }
  /* Absolute, not fixed: the nav's backdrop-filter makes it the containing
     block of fixed children, which would collapse the sheet to 0 height. */
  .sheet {
    display: block; position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    padding: 18px 32px 48px; overflow-y: auto;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .nav.open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.open .sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .sheet-links { display: grid; }
  .sheet-links a { font-size: 28px; line-height: 1.25; font-weight: 600; padding: 8px 0; letter-spacing: var(--track-tight); }
  .sheet-links a[aria-current] { color: var(--accent); }
  .sheet-ctl { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
  .ctl-label { font-size: 13px; color: var(--text-3); margin-top: 8px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .wrap, .narrow { width: calc(100% - 40px); }
  .layout-split .feature-in { grid-template-columns: minmax(0, 1fr); }
  .layout-split.flip .f-text { order: 0; }
  .cards, .bento, .install { grid-template-columns: minmax(0, 1fr); }
  .card.wide, .tile.wide, .tile.full, .plat.wide { grid-column: auto; }
  .tile.tall { grid-row: auto; }
  .card { min-height: 0; padding: 36px 24px 0; border-radius: 26px; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pager { flex-direction: column; }
  .pg { max-width: none; flex: none; }
  .pg.next { margin-left: 0; }
  .js .sc-track { height: calc(var(--n) * 62svh + 30svh); }
  .js .sc-media { width: calc(100% - 24px); }
  .sc-sticky { gap: 18px; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 26px 8px; }
  .app-grid img { width: 60px; height: 60px; }
  .nav-dl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js [data-scale], .js [data-scale="hero"] { opacity: 1; transform: none; transition: none; animation: none; }
  .float, .card-apps img { animation: none; }
  .js .sc-img, .js .sc-cap, .js .lit .w { transition: none; }
}

@media print {
  .nav, .pager, .foot-ctl { display: none; }
  .js .rv, .js [data-scale] { opacity: 1; transform: none; }
}
