/* gPeta website, direction A ("Night drive"). Classes only: the CSP allows no inline style. */

@font-face {
  font-family: 'Figtree';
  src: url('/assets/figtree-latin-wght-normal.4ba7d3d096.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0d121c;
  --surface: #151c2a;
  --band: #111827;
  --border: #222b3b;
  --border-subtle: #1e2635;
  --outline: #2a3446;
  --text: #eef2f6;
  --text-secondary: #a7b0be;
  --accent: #2cc690;
  --on-accent: #06231a;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Type */

h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--text);
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.placeholder {
  color: var(--text-secondary);
}

a {
  color: var(--text);
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* The skip link's target: focused by the link, never outlined. */
main:focus {
  outline: none;
}

/* Layout */

.container {
  width: 100%;
  max-width: calc(1200px + 2 * 24px);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
  color: var(--on-accent);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(1200px + 2 * 24px);
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--outline);
  border-radius: 999px;
}

.lang a {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lang a[aria-current='true'] {
  background: var(--surface);
  color: var(--text);
}

main {
  display: block;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  max-width: calc(1200px + 2 * 24px);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Components */

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button {
  background: var(--accent);
  color: var(--on-accent);
}

.button:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
  color: var(--on-accent);
}

.button-secondary {
  border: 1px solid var(--outline);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--band);
}

.phone {
  width: 264px;
  max-width: 100%;
  overflow: hidden;
  border: 10px solid var(--border-subtle);
  border-radius: 44px;
  background: var(--band);
}

.phone img {
  width: 100%;
}

.card h3,
.card h2 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.card p {
  color: var(--text-secondary);
}

.card > :last-child {
  margin-bottom: 0;
}

/* The home page */

.hero {
  position: relative;
  overflow: hidden;
}

/* The canvas's dashed route, placed as the canvas places it: behind the text, 40 px below the hero's top. */
.hero-route {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  max-width: none;
  height: 520px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 72px;
  padding-bottom: 40px;
  text-align: center;
}

.hero-inner > * {
  margin: 0;
}

.hero h1 {
  max-width: 900px;
}

.hero .lead {
  max-width: 640px;
}

.eyebrow {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.availability {
  color: var(--text-secondary);
  font-size: 14px;
}

.screenshots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 96px;
}

.screenshots figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}

/* The middle phone stands 40 px higher, as on the canvas. */
.screenshots figure:nth-child(2) {
  margin-bottom: 40px;
}

.screenshots figcaption {
  color: var(--text-secondary);
  font-size: 15px;
}

.features {
  padding-bottom: 96px;
}

.features h2 {
  margin-bottom: 40px;
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.band-text {
  flex: 1 1 460px;
}

.band-text p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 18px;
}

.band-text p:last-child {
  margin-bottom: 0;
}

.band-text a {
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

.band-text a:hover {
  color: var(--text);
}

/* The privacy points, numbered 01 to 03. */
.points {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}

.points li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  counter-increment: point;
}

.points li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.points li::before {
  content: counter(point, decimal-leading-zero);
  color: var(--accent);
  font-weight: 800;
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 88px;
  padding-bottom: 88px;
  text-align: center;
}

.download > * {
  margin: 0;
}

.download p:not(:last-child) {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 18px;
}

/* In the button's place while there is no App Store link. */
.coming-soon {
  color: var(--text-secondary);
  font-size: 16px;
}

/* The contact page */

.contact {
  padding-top: 56px;
  padding-bottom: 96px;
}

.contact h1 {
  font-size: clamp(40px, 5vw, 64px);
}

.contact .lead {
  max-width: 620px;
  margin-bottom: 48px;
  font-size: 19px;
  line-height: 1.6;
}

.contact-cards,
.contact-more {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-cards .card {
  flex: 1 1 340px;
}

.contact-more {
  margin-top: 20px;
}

.card-dashed {
  flex: 2 1 520px;
  border-style: dashed;
  border-color: var(--outline);
  background: none;
}

.card-outline {
  flex: 1 1 320px;
  background: none;
}

.email {
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.email a {
  color: var(--accent);
}

.email a:hover {
  color: var(--text);
}

.company {
  line-height: 1.7;
}

/* The 404 page */

.not-found {
  padding-top: 96px;
  padding-bottom: 96px;
}

.not-found section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

/* The campaign links' page, /go/: a moment's stop on the way to the App Store or home. */

.go {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.go h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.go .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

/* The cookie notice: a bar at the foot of the window until OK, never in the way of the page's own links. */

.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.cookie-notice .button {
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

/* The legal pages: a 720 px reading measure, line height 1.7. */

.legal {
  width: 100%;
  max-width: calc(720px + 2 * 24px);
  margin: 0 auto;
  padding: 56px 24px 96px;
  line-height: 1.7;
}

.legal header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 15px;
}

.legal-meta strong {
  color: var(--text);
}

.toc {
  margin-bottom: 48px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* The headings carry their own numbers. */
.toc ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 720px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 24px;
}

.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 36px 0 12px;
  font-size: 20px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li > p {
  margin-bottom: 8px;
}

.prose a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--text);
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

/* A heading's self-link: muted until the heading is hovered or the link is focused. */
.prose .anchor {
  color: var(--text-secondary);
  font-weight: 400;
  text-decoration: none;
}

.prose h2:hover .anchor,
.prose h3:hover .anchor,
.prose .anchor:focus-visible {
  color: var(--accent);
}

/* A table scrolls sideways inside its own region, never the page. */
.table-wrap {
  max-width: 100%;
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.table-wrap th,
.table-wrap td {
  min-width: 160px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--surface);
  font-weight: 700;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshots figure:nth-child(2) {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 24px;
  }

  .lang {
    margin-left: auto;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    padding-top: 48px;
  }

  .screenshots,
  .features {
    padding-bottom: 64px;
  }

  .band-inner,
  .download {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .card {
    padding: 24px;
  }

  .legal {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .toc {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container,
  .site-header,
  .site-footer,
  .legal {
    padding-left: 16px;
    padding-right: 16px;
  }
}
