/* Tabuntu Workspace — marketing site
   Color tokens mirror the extension's own UI (newtab/sidepanel CSS) so the
   site and the product feel like the same thing. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --text: #1c1d21;
  --muted: #6b6f76;
  --border: #e2e4e8;
  --border-strong: #cfd2d8;
  --accent: #2f6bd8;
  --accent-bg: #e8f0fd;
  --accent-2: #2f7d32;
  --accent-2-bg: #e7f3e8;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(20, 22, 30, 0.04), 0 8px 24px rgba(20, 22, 30, 0.06);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --surface: #1f2228;
    --surface-2: #262a31;
    --text: #e7e9ec;
    --muted: #9aa0a8;
    --border: #313641;
    --border-strong: #3c424e;
    --accent: #6ea0f0;
    --accent-bg: #21304a;
    --accent-2: #57c76b;
    --accent-2-bg: #1c3020;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { overflow-x: clip; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
}

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

.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.large { padding: 14px 24px; font-size: 15px; }
.btn.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}
.hero-copy .accent-word { color: var(--accent); }
.hero-copy p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 13px;
  color: var(--muted);
}
.hero-permissions {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.hero-permissions span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Hero mockup ---------- */

.mock-browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-tabgroup {
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.mock-tabgroup .sw { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.mock-body {
  display: grid;
  grid-template-columns: 190px 1fr;
}

/* mini side panel */
.mock-side {
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  background: var(--surface);
}
.mock-side .ws-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px 8px;
}
.mock-wf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}
.mock-wf.active { background: var(--accent-bg); color: var(--accent); }
.mock-wf.dim { border-left-color: var(--border-strong); color: var(--muted); font-weight: 500; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text);
}
.mock-row .rdot { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--muted); }
.mock-row.open .rdot { background: var(--accent-2); border-color: var(--accent-2); }
.mock-row.active { background: var(--surface-2); font-weight: 600; }

/* mini new tab dashboard */
.mock-main { padding: 18px; }
.mock-main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.mock-main-head h4 { margin: 0 0 2px; font-size: 15px; }
.mock-main-head p { margin: 0; font-size: 11px; color: var(--muted); }
.mock-open-btn {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mock-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-card .ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.mock-card .name { font-size: 11px; font-weight: 600; }

/* ---------- Section shell ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.01em; margin: 0 0 14px; }
.section-head p { font-size: 17px; color: var(--muted); margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Problem / story strip ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.chaos-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chaos-tab {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.story-arrow { text-align: center; color: var(--muted); font-size: 20px; margin: 8px 0; }
.tidy-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  width: fit-content;
}
.tidy-group .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.story-copy p { color: var(--muted); font-size: 16px; }
.story-copy ul { padding-left: 20px; margin: 20px 0 0; }
.story-copy li { margin-bottom: 10px; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.privacy-list { list-style: none; margin: 0; padding: 0; }
.privacy-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.privacy-list li:last-child { border-bottom: none; }
.privacy-list .ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-2-bg);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.privacy-list h4 { margin: 0 0 4px; font-size: 15px; }
.privacy-list p { margin: 0; font-size: 13.5px; color: var(--muted); }

.perm-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.perm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.perm-row:last-child { border-bottom: none; }
.perm-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}
.perm-row span.why { color: var(--muted); text-align: right; max-width: 56%; }
.perm-table .heading {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 20px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 15px;
  max-width: 68ch;
}

/* ---------- Origin story ---------- */

.origin {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  box-shadow: var(--shadow);
}
.origin-badge img { width: 32px; height: 32px; border-radius: 8px; }
.origin-badge span { font-weight: 700; font-size: 14px; }
.origin-copy p { color: var(--muted); font-size: 16px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { margin: 0 0 12px; font-size: 30px; }
.cta-band p { margin: 0 0 28px; opacity: 0.9; font-size: 16px; }
.cta-band .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn:hover { filter: brightness(0.97); }
.cta-band-wrap { max-width: var(--max); margin: 0 auto; padding: 88px 0; }

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

footer.site {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

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

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { font-size: 34px; }
  .story, .privacy-grid, .origin { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta .btn.large-hide { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .cta-band { padding: 40px 24px; }
}

@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
}

.nav.open .nav-links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 16px;
}
