/*
 * TabsPack, the site.
 *
 * One stylesheet, no framework, no build step, and nothing loaded from anyone
 * else's server: no font service, no analytics, no tag manager, no embedded
 * player. That is not minimalism for its own sake. The product's whole claim is
 * that it does not phone home, and a marketing site that quietly loads six
 * third party scripts while saying so is the loudest possible contradiction.
 *
 * Contents
 *   1. Tokens
 *   2. Reset and base
 *   3. Layout
 *   4. Navigation
 *   5. Buttons and links
 *   6. Hero
 *   7. Sections and cards
 *   8. Tables
 *   9. Accordion, quotes, callouts
 *  10. Prose, for the legal pages
 *  11. Footer
 *  12. Motion and print
 */

/* 1. Tokens --------------------------------------------------------------- */

:root {
  /*
   * One brand hue, in one place. The extension's mark is still being chosen;
   * when it is, this is the line that changes and the whole site follows.
   */
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #eef2ff;
  --accent: #f59e0b;

  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --card: #ffffff;

  --ok: #15803d;
  --warn: #b45309;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgb(15 23 42 / 6%), 0 1px 3px rgb(15 23 42 / 4%);
  --shadow-2: 0 4px 6px -1px rgb(15 23 42 / 7%), 0 12px 24px -8px rgb(15 23 42 / 12%);
  --shadow-3: 0 24px 60px -20px rgb(15 23 42 / 28%);

  --wide: 1140px;
  --narrow: 720px;
  --gutter: clamp(20px, 5vw, 40px);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #818cf8;
    --brand-strong: #a5b4fc;
    --brand-soft: #1e1b4b;
    --accent: #fbbf24;

    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --ink-3: #94a3b8;
    --line: #27313f;
    --line-2: #1c2431;
    --bg: #0b1017;
    --bg-2: #0f1620;
    --bg-3: #141c28;
    --card: #111a25;

    --ok: #4ade80;
    --warn: #fbbf24;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-2: 0 4px 6px -1px rgb(0 0 0 / 45%), 0 12px 24px -8px rgb(0 0 0 / 55%);
    --shadow-3: 0 24px 60px -20px rgb(0 0 0 / 75%);
  }
}

/* 2. Reset and base ------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 680;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  letter-spacing: -0.028em;
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--brand-strong);
}

code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  background: var(--bg-3);
  border-radius: 6px;
  padding: 0.14em 0.4em;
}

kbd {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1em 0.42em;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus {
  left: 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 3. Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: var(--narrow);
}

section {
  padding-block: clamp(56px, 8vw, 104px);
}

.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.center {
  text-align: center;
}
.center .lede {
  margin-inline: auto;
}

/* 4. Navigation ----------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  min-height: 24px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 520;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--bg-3);
  color: var(--ink);
}
.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    inset: 66px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 18px;
    box-shadow: var(--shadow-2);
  }
  .nav-links[hidden] {
    display: none;
  }
  .nav-links a {
    padding: 11px 12px;
    font-size: 1rem;
  }
  .nav-links .btn {
    margin-top: 8px;
    justify-content: center;
  }
}

/* 5. Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--ink);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.04rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.center .btn-row {
  justify-content: center;
}

/* 6. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 112px) 0;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 50% auto -10%;
  height: 80vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -30% -20% auto 40%;
  height: 70vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  max-width: 17ch;
}
.hero .lede {
  font-size: clamp(1.1rem, 1rem + 0.65vw, 1.4rem);
  max-width: 58ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  font-size: 0.86rem;
  font-weight: 560;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.pill b {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shot {
  margin-top: clamp(38px, 6vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  background: var(--card);
}
.shot img {
  width: 100%;
}
.shot .dark-only {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .shot .light-only {
    display: none;
  }
  .shot .dark-only {
    display: block;
  }
}

/* The explainer animation, embedded. It carries its own pause button and
   plays only while on screen; the frame gives it the site's corners. */
.explainer {
  margin: clamp(30px, 5vw, 48px) auto 0;
  max-width: 1040px;
}
.explainer iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  background: #2563ff;
}

.trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 68px);
  color: var(--ink-3);
  font-size: 0.92rem;
  font-weight: 540;
}
.trustbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trustbar svg {
  color: var(--ok);
  flex: none;
}

/* 7. Sections and cards --------------------------------------------------- */

/*
 * Every track floor below is wrapped in `min()`. Without it a `minmax(300px,
 * 1fr)` column is 300px wide even inside a 280px container, and the whole page
 * gains a horizontal scrollbar on a small phone. Found by measuring, at 320px.
 */
.grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 276px), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-1);
}
.card h3 {
  margin-bottom: 8px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-1);
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.steps h3 {
  margin-bottom: 6px;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.split {
  display: grid;
  min-width: 0;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--ink-2);
}
.checklist svg {
  color: var(--ok);
  margin-top: 5px;
}
.checklist b {
  color: var(--ink);
}

/* 8. Tables --------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  /* A grid or flex item will not shrink below its content without this, and
     then the table pushes the page wide instead of scrolling inside its box. */
  min-width: 0;
  max-width: 100%;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 560px;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
thead th {
  background: var(--bg-2);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--line);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td b {
  color: var(--ink);
}
.yes {
  color: var(--ok);
  font-weight: 640;
}
.no {
  color: var(--ink-3);
}

/* 9. Accordion, callouts -------------------------------------------------- */

.faq {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  box-shadow: var(--shadow-1);
}
.faq summary {
  cursor: pointer;
  font-weight: 620;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-3);
  flex: none;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details > :not(summary) {
  color: var(--ink-2);
  padding-bottom: 6px;
}

.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.note :last-child {
  margin-bottom: 0;
}
.note.warn {
  border-left-color: var(--warn);
}

.cta {
  /* Indigo into violet. The earlier version ran into amber at the far corner
     and went muddy where the two met, which a gradient between neighbouring
     hues does not. */
  background: linear-gradient(135deg, #4338ca, #6d28d9 58%, #7c3aed);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 68px);
  text-align: center;
  box-shadow: var(--shadow-3);
}
.cta h2,
.cta p {
  color: #fff;
}
.cta p {
  opacity: 0.94;
  max-width: 54ch;
  margin-inline: auto;
}
.cta .btn-ghost {
  background: rgb(255 255 255 / 14%);
  color: #fff;
  border-color: rgb(255 255 255 / 34%);
}
.cta .btn-ghost:hover {
  background: rgb(255 255 255 / 24%);
  color: #fff;
}
.cta .btn-primary {
  background: #fff;
  color: var(--brand-strong);
}
.cta .btn-primary:hover {
  background: #f1f5f9;
  color: var(--brand-strong);
}

/* 10. Prose, for the legal and auxiliary pages ---------------------------- */

.page-head {
  padding-block: clamp(44px, 7vw, 80px) 0;
}
.page-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  max-width: 22ch;
}
.page-meta {
  color: var(--ink-3);
  font-size: 0.92rem;
}

.prose {
  padding-block: 40px clamp(56px, 8vw, 96px);
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.1em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type {
  margin-top: 1.2em;
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.7em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  color: var(--ink-2);
}
.prose li {
  margin-bottom: 0.5em;
}
.prose p {
  color: var(--ink-2);
}
.prose table {
  min-width: 0;
}
.prose .table-scroll {
  margin-block: 24px;
}
.prose strong {
  color: var(--ink);
}

.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 36px;
}
.toc p {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 10px;
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 30px;
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

/* 11. Footer -------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 56px 36px;
  font-size: 0.94rem;
}
.foot-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  }
}
.foot h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.foot a {
  /* Inline-block with vertical padding, so a footer link is something you can
     actually hit with a thumb rather than a 19px line of glyphs. */
  display: inline-block;
  padding-block: 3px;
  color: var(--ink-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.foot p {
  color: var(--ink-3);
  max-width: 34ch;
}
.foot-base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.88rem;
}

/* 12. Motion and print ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .nav,
  .foot,
  .cta,
  .btn-row {
    display: none;
  }
  body {
    font-size: 11pt;
  }
}
