/* Tab Display website. A distinct design: dark hero, screenshot showcase,
   bento-free grid, no build step. */

:root {
  --accent: #6d5cff;
  --accent-strong: #5b48f0;
  --accent-soft: rgba(109, 92, 255, 0.12);
  --ink: #1c1c1e;
  --ink-2: #4b4b52;
  --ink-3: #8a8a90;
  --bg: #f6f6f8;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #9a8cff;
    --accent-strong: #b0a4ff;
    --ink: #f5f5f7;
    --ink-2: #c7c7cc;
    --ink-3: #8e8e93;
    --bg: #0f0f13;
    --card: #1a1a20;
    --line: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

/* Material Symbols (icons) base styles */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.accent { color: var(--accent); }

/* ---------- Header (dark, sits on the dark hero) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  background: color-mix(in srgb, #17152b 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: clamp(14px, 2.6vw, 30px); align-items: center; font-size: 0.95rem; }
.site-header nav a { color: rgba(255, 255, 255, 0.72); }
.site-header nav a.nav-download {
  color: #fff;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 650;
}
.site-header nav a:hover { text-decoration: none; color: #fff; }
.site-header nav a.nav-download:hover { background: var(--accent-strong); }
@media (max-width: 620px) {
  .site-header nav a:not(.nav-download) { display: none; }
}

/* ---------- Hero (dark gradient) ---------- */

.hero {
  color: #fff;
  background: #17152b;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .cta { justify-content: center; }
  .hero-icon { margin-inline: auto; }
}
.hero-icon { display: block; width: 96px; height: 96px; margin-bottom: 22px; border-radius: 22px; }
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, 0.82); max-width: 32em; }
@media (max-width: 920px) { .hero .lede { margin-inline: auto; } }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats .stat strong {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.hero-stats .stat span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}
@media (max-width: 920px) { .hero-stats { justify-content: center; } }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.cta-meta { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }

.source-link { margin: 18px 0 0; }
.source-link a {
  color: var(--ink-3);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.source-link a::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.7c-2.8.6-3.4-1.3-3.4-1.3-.5-1.2-1.1-1.5-1.1-1.5-.9-.6.1-.6.1-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.3 1.1 2.9.8.1-.6.3-1.1.6-1.3-2.2-.3-4.6-1.1-4.6-5a3.9 3.9 0 0 1 1-2.7 3.6 3.6 0 0 1 .1-2.7s.8-.3 2.7 1a9.4 9.4 0 0 1 5 0c1.9-1.3 2.7-1 2.7-1 .5 1.3.2 2.3.1 2.7a3.9 3.9 0 0 1 1 2.7c0 3.9-2.4 4.7-4.6 5 .4.3.7.9.7 1.9v2.8c0 .3.2.6.7.5A10 10 0 0 0 12 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.source-link a:hover { color: var(--accent); }
.hero .source-link a { color: rgba(255, 255, 255, 0.6); }
.hero .source-link a:hover { color: #fff; }

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { color: #fff; background: var(--accent); }
.button.primary:hover { text-decoration: none; transform: translateY(-1px); background: var(--accent-strong); }
.button.large { padding: 17px 32px; font-size: 1.1rem; }

/* ---------- Hero screenshot (tablet frame) ---------- */

.hero-shot { margin: 0; }
.tablet-frame {
  position: relative;
  border-radius: 26px;
  padding: 14px;
  background: #0c0c12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tablet-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 40%);
}
.tablet-cam {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a2a30;
  box-shadow: 0 0 0 2px #17171c;
}
.tablet-frame img { display: block; width: 100%; border-radius: 14px; }
.hero-shot figcaption {
  margin-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

/* ---------- Section scaffolding ---------- */

main > section { padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 64px); }
main > section:not(.hero) { max-width: 1160px; margin: 0 auto; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--ink-2); }

/* ---------- Screenshot showcase ---------- */

.screens { background: var(--card); }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.shot-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.shot-card img { display: block; width: 100%; height: auto; }
.shot-card figcaption { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.shot-card figcaption strong { font-size: 1.05rem; }
.shot-card figcaption span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Steps ---------- */

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.steps li { position: relative; padding: 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: var(--accent);
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---------- Features ---------- */

.features .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease;
}
.feature:hover { border-color: var(--accent); }
.feature .material-symbols-outlined {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 32;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-2); margin: 0; }

/* ---------- Compatibility ---------- */

.compat .compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.compat-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.compat-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.compat-card h3::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.compat-card ul { list-style: none; margin: 0; padding: 0; }
.compat-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.98rem;
}
.compat-card li:last-child { border-bottom: none; }
.compat .note { text-align: center; max-width: 640px; margin: 28px auto 0; color: var(--ink-3); }

/* ---------- Download ---------- */

.download { text-align: center; }
.download > img { display: block; margin: 0 auto 18px; border-radius: 20px; }
.download .lede { color: var(--ink-2); max-width: 40em; margin: 0 auto 20px; }
.download .cta-meta { display: block; margin-top: 14px; color: var(--ink-3); }
.first-launch {
  max-width: 660px;
  margin: 40px auto 0;
  text-align: left;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.first-launch h3 { margin-bottom: 16px; }
.first-launch ol { padding-left: 1.3em; margin: 0 0 1em; }
.first-launch li { margin-bottom: 0.75em; color: var(--ink-2); }
.first-launch li strong { color: var(--ink); }
.first-launch .note { color: var(--ink-3); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px !important; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4em; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 20px 52px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { font-size: 0.8rem; }

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