/* Isofitters website. Colors follow the app's main menu (always dark). */
:root {
  --bg: #151719;
  --bg-raised: #1d2023;
  --line: #2a2e32;
  --grid: #25282a;
  --text: #eef1f4;
  --text-dim: #a9b1bb;
  --blue: #4aa8ff;
  --orange: #e8873a;
  --max: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  /* Faint iso grid, like the app's menu backdrop. */
  background-image:
    repeating-linear-gradient(30deg, var(--grid) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(150deg, var(--grid) 0 1px, transparent 1px 48px);
  color: var(--text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--blue); }
a:hover { color: #7cc0ff; }

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand:hover { color: var(--text); }
.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 16px;
  padding: 12px 4px;
}
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 48px;
}
.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero h1 span { color: var(--blue); }
.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  margin: 0 0 24px;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  margin: 0 auto;
  /* Fade the picture's square edges into the page grid. */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.badge {
  display: inline-block;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding-top: 48px; padding-bottom: 72px; }
}

/* Features */
.features h2, .contact h2 {
  font-size: 28px;
  margin: 0 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.card h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.card p { margin: 0; color: var(--text-dim); }

.made-by {
  margin: 40px 0 0;
  color: var(--text-dim);
  text-align: center;
}

/* Contact */
.contact {
  margin-top: 64px;
  padding: 28px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.contact p { margin: 0; color: var(--text-dim); }
.contact a.email {
  display: inline-block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 0;
}

/* Policy page */
.policy {
  max-width: 720px;
  padding-top: 16px;
  padding-bottom: 48px;
}
.policy h1 { font-size: 36px; line-height: 1.15; margin: 0 0 4px; }
.policy .updated { color: var(--text-dim); margin: 0 0 32px; }
.policy h2 { font-size: 22px; margin: 32px 0 8px; }
.policy p { margin: 0 0 12px; }

/* Footer */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--text-dim);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
