/* Fitburner's own site: the app's colours and fonts (docs/design.md), served
   with the site itself, nothing from another server. */

@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --background: #0b0d10;
  --surface-low: #111419;
  --surface: #161a20;
  --surface-high: #1d222a;
  --outline: #272d36;
  --text: #f3f5f8;
  --muted: #9aa4b2;
  --accent: #3db5ff;
  --on-accent: #00131f;
  --accent-container: #0f3048;
  --radius: 18px;
  --page: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 26px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.top nav a:hover {
  color: var(--text);
}

.lang {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 4px 10px;
}

/* Into the app's sign-in: the one thing in the bar that stands out. */
.signin {
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 5px 12px;
  white-space: nowrap;
}

.signin:hover {
  filter: brightness(1.08);
}

@media (max-width: 720px) {
  .top nav {
    display: none;
  }

  .lang,
  .signin {
    margin-left: auto;
  }

  .signin + .lang {
    margin-left: 0;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button.secondary {
  border-color: var(--outline);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--muted);
}

/* Something on its way, not a button: nothing happens on a tap. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 6px;
  color: var(--muted);
  font-weight: 600;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Hero */

.hero {
  padding: 64px 0 40px;
  background: radial-gradient(
    circle at 75% 40%,
    rgba(61, 181, 255, 0.16),
    rgba(61, 181, 255, 0) 45%
  );
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero .lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 34em;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* A phone with a real screen of the app. */

.phone {
  width: min(300px, 80vw);
  margin: 0 auto;
  border-radius: 34px;
  border: 8px solid var(--surface-high);
  background: var(--surface-high);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* Sections */

section {
  padding: 56px 0;
}

.alt {
  background: var(--surface-low);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature.flip .text {
  order: 2;
}

.feature ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.feature li {
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature.flip .text {
    order: 0;
  }
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(61, 181, 255, 0.6);
  background: linear-gradient(160deg, var(--accent-container), var(--surface) 60%);
}

.plan h3 {
  margin-bottom: 4px;
}

.price {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  margin: 10px 0 2px;
}

.price small {
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.plan ul {
  padding-left: 18px;
  margin: 14px 0 0;
  color: var(--muted);
}

.plan li {
  margin-bottom: 6px;
}

/* The way to ask for the plan priced by quote. */
.plan .quote {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

.note {
  margin-top: 18px;
  font-size: 15px;
}

/* Questions */

details {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

/* A plain chevron that turns as the answer opens. */
summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}

details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

/* The last word of the page: what to do now. */
.closing {
  text-align: center;
}

.closing h1,
.closing h2 {
  margin-bottom: 8px;
}

.closing .buttons {
  justify-content: center;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Footer */

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

footer a {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* A page of text: privacy. */

.doc {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.doc h2 {
  font-size: 28px;
  margin-top: 36px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}
