/* tabvault.ca: the app's look on the web. A soft grey canvas, white rounded cards, black accents. */

:root {
  --text: #0b0b0f;
  --muted: #6e6e78;
  --bg: #f0f0f4;
  --bg-top: #f8f8fb;
  --card: #ffffff;
  --border: #e8e8ee;
  --accent: #0b0b0f;
  --on-accent: #ffffff;
  --link: #2f6ee6;
  --green: #1fb45a;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.05), 0 8px 24px rgba(20, 20, 30, 0.07);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #9a9aa3;
    --bg: #050507;
    --bg-top: #121217;
    --card: #18181c;
    --border: #26262d;
    --accent: #f5f5f7;
    --on-accent: #0b0b0f;
    --link: #6b9bff;
    --green: #34d374;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 28px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 480px) var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

main {
  flex: 1;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header and footer */

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

.top-row,
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-row {
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.brand.small {
  font-size: 15px;
}

.brand.small img {
  border-radius: 6px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

nav a[aria-current='page'],
nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.foot {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.foot-row {
  align-items: flex-start;
}

.foot p {
  margin: 6px 0 0;
}

.foot nav {
  justify-content: flex-end;
  max-width: 560px;
}

.foot nav a {
  font-size: 14px;
}

/* Home */

.hero {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 48px;
}

.hero-icon {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

h1 {
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 24px 0 14px;
}

.lead {
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.pill {
  display: inline-block;
  margin: 28px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
  margin: 24px 0;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.card p {
  margin: 0 0 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.feature .emoji {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 14px;
}

.feature p {
  color: var(--muted);
  font-size: 15.5px;
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 16px;
  padding: 28px;
}

.split p {
  color: var(--muted);
}

.langs {
  font-size: 15px;
  line-height: 1.8;
}

.more {
  font-weight: 600;
}

/* Documents */

.doc {
  max-width: 760px;
  padding-top: 40px;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin-top: 0;
}

.meta,
.muted {
  color: var(--muted);
}

.meta {
  font-size: 15px;
  margin-top: -6px;
}

.intro {
  font-size: 19px;
}

.doc section h2,
.spaced {
  font-size: 21px;
  margin: 36px 0 10px;
}

.doc section p {
  margin: 0 0 12px;
}

.note {
  margin-top: 40px;
}

.steps {
  margin: 20px 0;
}

.steps ol {
  margin: 8px 0;
  padding-left: 22px;
}

.steps li {
  margin: 4px 0;
}

.faq {
  margin: 12px 0;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq[open] summary::after {
  content: '−';
}

.faq p {
  padding: 0 22px 18px;
  color: var(--muted);
}

/* Phones */

@media (max-width: 760px) {
  .grid,
  .grid.two,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .top nav {
    gap: 4px 14px;
  }

  .foot-row {
    flex-direction: column;
  }

  .foot nav {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .top nav a:nth-child(3) {
    display: none;
  }
}
