/* Tandem home page: the app's dark look, one orange accent. */
:root {
  --bg: #17181a;
  --panel: #1f2023;
  --panel-2: #26282c;
  --line: #33363b;
  --text: #e6e6e6;
  --dim: #a3a7ae;
  --faint: #73777f;
  --accent: #ff9f1c;
  --accent-ink: #1b1306;
  --ok: #57c78a;
  --radius: 12px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 750; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

/* ---------- layout */
.top, main > section, footer { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
main > section { padding: 88px 0 0; }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand img { border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a:not(.button) { color: var(--dim); }
.top nav a:not(.button):hover { color: var(--text); }

/* ---------- buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  transition: border-color .15s, transform .15s;
}
.button:hover { border-color: #50545b; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { transform: translateY(-1px); }
.button.small { padding: 7px 14px; font-size: 14px; }
.button.disabled { opacity: .5; pointer-events: none; }

/* ---------- hero */
.hero { text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -60px 0 auto; height: 420px; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255, 159, 28, .16), transparent 70%);
}
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.lead { color: var(--dim); font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin-inline: auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 14px; }
.small-print { color: var(--faint); font-size: 14px; }
.shot { margin: 48px 0 0; }
.shot img, .feature img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02);
}

/* ---------- cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--dim); margin: 0; }
.problem h2, .how h2, .pricing h2, .download h2 { text-align: center; margin-bottom: 36px; }
.pricing h2 { margin-bottom: 12px; }

/* ---------- steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.steps li { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 159, 28, .14); color: var(--accent); font-weight: 700;
}
.steps p { color: var(--dim); margin: 0; }
.steps i { color: var(--text); font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

/* ---------- features */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin-bottom: 88px; }
.feature.flip .text { order: 2; }
.feature p { color: var(--dim); }
.small-cards .card h3 { font-size: 17px; }

/* ---------- pricing */
.plans { max-width: 820px; margin: 36px auto 16px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(255, 159, 28, .55); box-shadow: 0 0 0 1px rgba(255, 159, 28, .2), 0 20px 60px -30px rgba(255, 159, 28, .35); }
.plan h3 { margin-bottom: 4px; }
.price { font-size: 40px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 12px; }
.price span { font-size: 16px; font-weight: 500; color: var(--dim); }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--dim); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .note { font-size: 14px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 14px; }
.plan .button { margin-top: auto; text-align: center; }
.badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: rgba(255, 159, 28, .12); border-radius: 99px; padding: 3px 10px; margin-bottom: 12px;
}

/* ---------- download */
.dl h3 { font-size: 22px; }
.dl > p { margin-bottom: 18px; }
.dl details { margin-top: 18px; color: var(--dim); font-size: 15px; }
.dl summary { cursor: pointer; color: var(--text); }
.dl details p { margin-top: 8px; }
.download .small-print { margin-top: 20px; }

/* ---------- footer */
footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 0 48px; color: var(--faint); font-size: 14px; }
footer p { margin: 0 0 6px; }
.legal { max-width: 640px; }

/* ---------- small screens */
@media (max-width: 820px) {
  main > section { padding-top: 64px; }
  .grid.two, .grid.three, .steps, .feature { grid-template-columns: 1fr; }
  .feature { gap: 24px; margin-bottom: 64px; }
  .feature.flip .text { order: 0; }
  .top nav a:not(.button) { display: none; }
}
