/* Tabtile site: one stylesheet for every page, light and dark. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #15171c;
  --muted: #5d6470;
  --line: #e2e5ea;
  --accent: #2f6fed;
  --accent-text: #ffffff;
  --tile-a: #dbe6ff;
  --tile-b: #e7efe0;
  --tile-c: #f6e7d6;
  --tile-d: #eadff6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px rgb(0 0 0 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --text: #eef0f4;
    --muted: #9aa3b0;
    --line: #262a33;
    --accent: #5b8cff;
    --tile-a: #23304d;
    --tile-b: #24311f;
    --tile-c: #3a2c1f;
    --tile-d: #2f2540;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and footer */

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}

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

.brand img {
  width: 30px;
  height: 30px;
}

header.top nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 15px;
}

header.top nav a {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

footer .grow {
  flex: 1 1 auto;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  /* Only top and bottom: the sides are .wrap's. */
  padding-top: 64px;
  padding-bottom: 40px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 26px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.small {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

/* A screen of tiles, drawn rather than pictured. */

.screen {
  aspect-ratio: 21 / 10;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.screen .tile {
  border-radius: 9px;
  position: relative;
}

.screen .a {
  background: var(--tile-a);
  grid-row: span 2;
}

.screen .b {
  background: var(--tile-b);
  grid-row: span 2;
}

.screen .c {
  background: var(--tile-c);
}

.screen .d {
  background: var(--tile-d);
}

.screen .tile::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 10px;
  width: 30px;
  height: 7px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.08);
}

.screen .grip {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 6px;
  height: 34px;
  margin-top: -17px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
  z-index: 1;
}

/* Sections */

section {
  padding: 40px 0;
}

section h2 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

section > .wrap > p.intro {
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 680px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Plans */

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

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.plan.best {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan h3 {
  margin: 0;
  font-size: 16px;
}

.plan .price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}

.plan .per {
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
}

.plan ul {
  padding-left: 18px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.plan .button {
  text-align: center;
}

/* FAQ and documents */

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 2px;
}

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

.doc h1 {
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.doc h2 {
  font-size: 20px;
  margin: 30px 0 8px;
}

.doc p,
.doc li {
  color: var(--text);
}

/* Narrow screens */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 34px;
  }

  .features,
  .plans {
    grid-template-columns: 1fr;
  }

  header.top nav {
    gap: 12px;
    font-size: 14px;
  }

  header.top nav .hide-narrow {
    display: none;
  }
}
