/* Dashmood website. One stylesheet, no JavaScript. Colours follow the app (direction "Ambiyans"). */
:root {
  --ground: #06080c;
  --surface: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.12);
  --text: #f2f5fa;
  --text-2: #c3ccd9;
  --text-3: #aeb9ca;
  --cyan: #3fe0f0;
  --violet: #9b7bff;
  --radius: 22px;
  --page: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 40px, var(--page)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--cyan); color: var(--ground); padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { left: 12px; z-index: 10; }

/* Header and footer */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
}
.brand { color: var(--text); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding-block: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 96px; padding-block: 34px 48px;
  color: var(--text-3); font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--text-2); text-decoration: none; padding-block: 8px; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
.fine { width: 100%; }

/* The glowing strip: the app's signature */
.strip {
  height: 2px; border: 0; border-radius: 2px; margin: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(63, 224, 240, 0.7), 0 0 30px rgba(155, 123, 255, 0.45);
}

/* Hero */
.hero { position: relative; isolation: isolate; margin-top: -76px; padding-top: 76px; }
.hero-photo {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/hero-cockpit.jpg") center 20% / cover no-repeat;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.72) 0%, rgba(6, 8, 12, 0.25) 35%, rgba(6, 8, 12, 0.85) 78%, var(--ground) 100%);
}
.hero .wrap { padding-block: clamp(150px, 30vh, 300px) 56px; }
.overline { color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 6.6vw, 68px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 18px; max-width: 14ch; }
.lead { color: var(--text-2); font-size: clamp(18px, 2.2vw, 21px); max-width: 46ch; margin: 0 0 28px; }
.hero .strip { max-width: 560px; margin-bottom: 26px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--cyan); color: var(--ground); font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 0 26px rgba(63, 224, 240, 0.35);
}
.button[aria-disabled="true"] { background: rgba(255, 255, 255, 0.1); color: var(--text); box-shadow: none; border: 1px solid var(--hairline); }
.note { color: var(--text-3); font-size: 14px; margin: 14px 0 0; }

/* Sections */
section { padding-block: 64px 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 20ch; }
.section-lead { color: var(--text-2); max-width: 56ch; margin: 0 0 34px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.features h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--text-2); font-size: 16px; }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.screens figure { margin: 0; }
.screens img { border-radius: 30px; border: 1px solid var(--hairline); width: 100%; }
.screens figcaption { color: var(--text-3); font-size: 14px; margin-top: 12px; text-align: center; }

.band { position: relative; isolation: isolate; border-radius: 30px; overflow: hidden; padding: clamp(34px, 6vw, 64px); border: 1px solid var(--hairline); }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 8, 12, 0.94) 0%, rgba(6, 8, 12, 0.7) 55%, rgba(6, 8, 12, 0.35) 100%), url("../img/road-dusk.jpg") center / cover no-repeat;
}
.band h2 { max-width: 16ch; }
.band p { color: var(--text-2); max-width: 46ch; margin: 0 0 12px; }

.steps { counter-reset: step; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; max-width: 720px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 16px 18px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: var(--ground); font-weight: 700; font-size: 15px; }

/* Text pages: privacy, terms, support */
.doc { max-width: 760px; padding-block: 44px 0; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); max-width: none; margin-bottom: 8px; }
.doc .updated { color: var(--text-3); font-size: 15px; margin: 0 0 26px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; max-width: none; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.callout { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 8px; }
.callout p { margin: 0; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.notfound { text-align: center; padding-block: 120px 40px; }
.notfound h1 { max-width: none; }

@media (max-width: 760px) {
  .screens { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .site-nav { gap: 0 16px; }
  .hero .wrap { padding-top: 190px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
