/*
 * SuperTab Dashboard website. Static, no scripts (CSP script-src 'none').
 * Tokens follow the extension (src/newtab-dashboard/src/newtab/app.css): glass panels, the same accent.
 */
:root {
  color-scheme: light dark;
  --bg: #f3f5f8;
  --bg-tint-1: rgb(26 115 232 / 0.16);
  --bg-tint-2: rgb(147 52 230 / 0.1);
  --bg-tint-3: rgb(24 128 56 / 0.08);
  --text: #1d1d1f;
  --text-2: rgb(29 29 31 / 0.72);
  --text-3: rgb(29 29 31 / 0.55);
  --glass: rgb(255 255 255 / 0.62);
  --glass-strong: rgb(255 255 255 / 0.82);
  --glass-border: rgb(255 255 255 / 0.7);
  --line: rgb(0 0 0 / 0.08);
  --surface: rgb(0 0 0 / 0.035);
  --accent: #1a73e8;
  --accent-2: #0b57d0;
  --accent-soft: rgb(26 115 232 / 0.12);
  --accent-contrast: #ffffff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.06), 0 24px 60px rgb(20 30 60 / 0.16);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.8);
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wide: 76rem;
  --narrow: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg-tint-1: rgb(138 180 248 / 0.16);
    --bg-tint-2: rgb(197 138 249 / 0.1);
    --bg-tint-3: rgb(129 201 149 / 0.07);
    --text: #f5f5f7;
    --text-2: rgb(245 245 247 / 0.72);
    --text-3: rgb(245 245 247 / 0.55);
    --glass: rgb(32 35 41 / 0.6);
    --glass-strong: rgb(32 35 41 / 0.85);
    --glass-border: rgb(255 255 255 / 0.09);
    --line: rgb(255 255 255 / 0.09);
    --surface: rgb(255 255 255 / 0.05);
    --accent: #8ab4f8;
    --accent-2: #a8c7fa;
    --accent-soft: rgb(138 180 248 / 0.14);
    --accent-contrast: #0b1220;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 30px 80px rgb(0 0 0 / 0.5);
    --highlight: inset 0 1px 0 rgb(255 255 255 / 0.06);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  font: 100%/1.6 var(--font);
  color: var(--text);
  background:
    radial-gradient(60rem 40rem at 10% -10%, var(--bg-tint-1), transparent 60%),
    radial-gradient(50rem 40rem at 100% 10%, var(--bg-tint-2), transparent 60%),
    radial-gradient(60rem 50rem at 50% 110%, var(--bg-tint-3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.4rem;
}
::selection {
  background: var(--accent-soft);
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  /* Lucide icons from the sprite: stroke only. Attributes of the sprite root do not reach <use>. */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--wide), 100% - 2rem);
  margin-inline: auto;
}
.wrap {
  width: min(var(--narrow) + 6rem, 100% - 2rem);
  margin-inline: auto;
  padding-bottom: 3rem;
}
section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
section.tight {
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
}

/* ---------- Navigation: a translucent floating bar ---------- */
.nav {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  width: min(var(--wide), 100% - 1.5rem);
  margin: 0.75rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight), var(--shadow-sm);
  backdrop-filter: blur(24px) saturate(180%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 1.75rem;
  height: 1.75rem;
}
.nav .links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  font-size: 0.9rem;
}
.nav .links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav .links a:hover {
  background: var(--surface);
  color: var(--text);
}
.nav .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
@media (max-width: 52rem) {
  .nav .links .hide-sm {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  cursor: pointer;
  transition:
    transform 0.12s ease-out,
    background 0.2s,
    box-shadow 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 6px 20px rgb(26 115 232 / 0.3);
}
.btn.primary:hover {
  background: var(--accent-2);
}
.btn.ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  box-shadow: var(--highlight);
  backdrop-filter: blur(16px);
}
.btn.ghost:hover {
  background: var(--glass-strong);
}
.btn[aria-disabled='true'] {
  cursor: default;
}
.btn[aria-disabled='true']:active {
  transform: none;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow .icon {
  width: 0.95rem;
  height: 0.95rem;
}
h1,
h2,
h3 {
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.muted {
  color: var(--text-3);
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--glass-strong);
  font: 600 0.82em/1.5 var(--mono);
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: 0;
  text-align: center;
}
.hero .lead {
  max-width: 38rem;
  margin: 1.25rem auto 2rem;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.9rem;
}
.hero .meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero .meta .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}
.hero-shot {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  perspective: 1800px;
}
.hero-shot .shot {
  transform: rotateX(8deg) scale(0.98);
  transform-origin: 50% 0;
}
@supports (animation-timeline: view()) {
  .hero-shot .shot {
    animation: tilt-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
  @keyframes tilt-in {
    to {
      transform: none;
    }
  }
}

/* ---------- Screenshot frame: a browser window made of glass ---------- */
.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight), var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(160%);
}
.shot .bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.6rem;
}
.shot .bar i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--line);
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-lg) - 0.5rem);
  background: var(--surface);
}
.shot figcaption {
  padding: 0.75rem 0.75rem 0.35rem;
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: center;
}

/* Detail crop of a screenshot: the bookmark groups on the left of the dashboard. */
.shot.crop-groups img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 0 42%;
}
.sub {
  margin-top: 2.25rem;
}
.more {
  margin: 2rem 0 0;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight);
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats span {
  color: var(--text-2);
  font-size: 0.9rem;
}
@media (max-width: 44rem) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Feature sections ---------- */
.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head .lead {
  margin: 1rem 0 0;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .copy {
  order: 2;
}
.feature .copy .lead {
  margin: 1rem 0 1.5rem;
}
@media (max-width: 60rem) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }
  .feature.flip .copy {
    order: 0;
  }
}
.checks {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.checks .icon {
  margin-top: 0.15rem;
  padding: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.checks b {
  font-weight: 600;
}
.checks span {
  color: var(--text-2);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight), var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(160%);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--highlight), var(--shadow-lg);
}
.card .badge {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 0.8rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.card h3 {
  margin-bottom: 0.35rem;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.card .tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 600;
}
.widgets-shot {
  margin-bottom: 2.5rem;
}

/* ---------- Header layouts ---------- */
.layouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}
@media (max-width: 30rem) {
  .layouts {
    grid-template-columns: repeat(2, 1fr);
  }
}
.layout {
  padding: 0.6rem 0.6rem 0.75rem;
  border-radius: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.layout .mini {
  position: relative;
  height: 3.6rem;
  margin-bottom: 0.5rem;
  border-radius: 0.6rem;
  background: var(--surface);
  overflow: hidden;
}
.layout .mini i {
  position: absolute;
  border-radius: 0.25rem;
  background: var(--text-3);
  opacity: 0.55;
}
/* Positions of the clock (i) and the search (i.s) in each layout. */
.mini.corner i { left: 8%; top: 14%; width: 22%; height: 16%; }
.mini.corner i.s { left: 36%; top: 14%; width: 40%; height: 14%; }
.mini.center i { left: 30%; top: 12%; width: 40%; height: 16%; }
.mini.center i.s { left: 22%; top: 40%; width: 56%; height: 14%; }
.mini.bar i { left: 8%; top: 14%; width: 14%; height: 12%; }
.mini.bar i.s { left: 26%; top: 14%; width: 58%; height: 12%; }
.mini.custom i { left: 58%; top: 52%; width: 32%; height: 30%; }
.mini.custom i.s { left: 8%; top: 62%; width: 44%; height: 14%; }
.layout .mini i.s {
  background: var(--accent);
  opacity: 0.8;
}

/* ---------- Settings map ---------- */
.settings-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 64rem) {
  .settings-map {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 36rem) {
  .settings-map {
    grid-template-columns: 1fr;
  }
}
.settings-map .card ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.settings-map .card li {
  padding-left: 1rem;
  position: relative;
}
.settings-map .card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Privacy ---------- */
.privacy-band {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight), var(--shadow-sm);
}
.perm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.perm li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
}
.perm .icon {
  grid-row: span 2;
  margin-top: 0.15rem;
  color: var(--accent);
}
.perm b {
  font-weight: 600;
}
.perm span {
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--narrow);
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
}
.faq details {
  border-radius: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  min-height: 2.75rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--text-3);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq details p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-2);
}

/* ---------- Final call to action ---------- */
.cta-band {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
  background:
    radial-gradient(40rem 20rem at 50% 0%, var(--accent-soft), transparent 70%),
    var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight), var(--shadow-lg);
}
.cta-band img {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
}
.cta-band .lead {
  max-width: 34rem;
  margin: 1rem auto 2rem;
}

/* ---------- Footer ---------- */
footer.site {
  padding-block: 2.5rem 3rem;
  color: var(--text-3);
  font-size: 0.875rem;
}
footer.site .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
footer.site a {
  color: var(--text-2);
  text-decoration: none;
}
footer.site a:hover {
  color: var(--text);
}

/* ---------- Text pages (privacy policy, 404) ---------- */
article {
  margin-top: 3rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight), var(--shadow-sm);
}
article h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}
article h2 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.6rem;
}
article p,
article li {
  color: var(--text-2);
}
.table {
  overflow-x: auto;
  margin-top: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--text-3);
  font-weight: 600;
}
td:first-child {
  font-weight: 600;
  color: var(--text);
}
code {
  font: 0.88em var(--mono);
}
.wrap > footer {
  margin-top: 2.5rem;
  color: var(--text-3);
  font-size: 0.875rem;
  text-align: center;
}
.center {
  text-align: center;
}

/* ---------- Scroll reveal (no script): only where supported and motion is welcome ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(1.5rem);
      }
    }
  }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .hero-shot .shot {
    transform: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass: var(--glass-strong);
  }
  .nav,
  .shot,
  .card,
  .btn.ghost {
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --glass-border: var(--text-3);
    --text-2: var(--text);
  }
}

.center-img {
  margin: 0 auto 1.5rem;
}
