/* HARR Route landing: one stylesheet, no JavaScript, no build step.
   Built from Figma oP7FqDrm2ST9RjjZgiE6he, page «08 Выпуск»: desktop frames 109:208, 110:681, 110:939, 111:823
   (1440 wide) and phone frames 109:527, 110:816, 110:1029, 111:889 (390 wide).
   The phone layout is the base; the desktop layout starts at 1080 px, the one breakpoint (at the end of this file).
   Colours are the «HARR Route» variables (design/tokens.json, after the contrast pass the owner approved on
   23.11.2026): Dark by default, Light with prefers-color-scheme.
   Amber text uses --accentText; amber fills and strokes use --accent. */

/* Fonts: the app's own Onest and JetBrains Mono (SIL OFL 1.1, licences in /fonts). */

@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Colours: Dark values. */

:root {
  color-scheme: dark;
  --bg: #101214;
  --surface: #1A1D20;
  --inset: #24282C;
  --ink: #F2EEE5;
  --ink2: #C0BEB4;
  --ink3: #9DA0A6;
  --line: #2D3237;
  --accent: #FFB224;
  --accentText: #FFB224;
  --onAccent: #17191B;
  --ok: #45C68A;
  --fail: #FF6A50;
  --panel: #1F2326;
  --panelInk: #F2EEE5;
  --panelInk2: #9B998F;
  --panelLine: #353A40;
  --zoneHome: #8C98AB;
  --zoneIsp: #6B95FF;
  --zoneTransit: #A08BFF;
  --zoneServer: #4CC3D6;
  --tintOk: rgba(69, 198, 138, 0.14);
  --tintFail: rgba(255, 106, 80, 0.1);
  --tintHome: rgba(140, 152, 171, 0.18);
  --tintIsp: rgba(107, 149, 255, 0.16);
  --tintTransit: rgba(160, 139, 255, 0.16);
  --tintServer: rgba(76, 195, 214, 0.16);
  --tintInk3: rgba(94, 96, 102, 0.18);
  --tintAccent: rgba(255, 178, 36, 0.16);
  --tintInk: rgba(242, 238, 229, 0.06);
  --scrim: rgba(0, 0, 0, 0.55);
  --shadow: rgba(0, 0, 0, 0.45);

  --sans: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 20px;
  --column: 720px;
}

/* Colours: Light values. */

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #EFEAE0;
    --surface: #FAF7F0;
    --inset: #E4DED1;
    --ink: #17191B;
    --ink2: #44423C;
    --ink3: #636056;
    --line: #D6CFBF;
    --accent: #F5A30A;
    --accentText: #905204;
    --onAccent: #17191B;
    --ok: #096C45;
    --fail: #B8270D;
    --panel: #17191B;
    --panelInk: #F2EEE5;
    --panelInk2: #9B998F;
    --panelLine: #30353A;
    --zoneHome: #5E697C;
    --zoneIsp: #3162D1;
    --zoneTransit: #7250D3;
    --zoneServer: #0C7383;
    --tintOk: rgba(31, 138, 91, 0.14);
    --tintFail: rgba(207, 63, 39, 0.1);
    --tintHome: rgba(122, 134, 153, 0.18);
    --tintIsp: rgba(61, 111, 224, 0.16);
    --tintTransit: rgba(124, 92, 224, 0.16);
    --tintServer: rgba(30, 154, 174, 0.16);
    --tintInk3: rgba(163, 159, 148, 0.18);
    --tintAccent: rgba(245, 163, 10, 0.16);
    --tintInk: rgba(23, 25, 27, 0.06);
    --scrim: rgba(0, 0, 0, 0.55);
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

/* Base */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.inline-link {
  color: var(--accentText);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.more-link {
  color: var(--accentText);
  font-weight: 500;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.wrap {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wide-only {
  display: none;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1;
}

/* Small caps-style labels in JetBrains Mono */

.eyebrow {
  color: var(--accentText);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.eyebrow-page {
  letter-spacing: 1.4px;
}

/* Header (Web · Header, 108:57) */

.site-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  box-shadow: inset 0 -1px 0 var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav ul {
  display: flex;
  gap: 18px;
  font-size: 14px;
  line-height: 20px;
}

.site-nav a {
  color: var(--ink2);
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* App Store badge (Figma 108:106): Apple's official black artwork, unchanged, 48 px high on phones */

.store-badge {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 10px;
}

.store-badge img {
  display: block;
  width: 144px;
  height: 48px;
}

/* Home: hero */

.hero {
  padding: 40px 0 56px;
}

.hero .wrap {
  display: grid;
  gap: 40px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* 52 px as drawn; below about 340 px wide it shrinks so «HARR Route» stays on one line. */
.hero h1 {
  font-weight: 700;
  font-size: min(52px, 15.2vw);
  line-height: 56px;
  letter-spacing: -1px;
}

.lead {
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
}

.hero-body {
  color: var(--ink2);
  font-size: 16px;
  line-height: 26px;
}

.get-app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink2);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.facts .fact-more {
  color: var(--ink3);
}

.hero-card img {
  width: 100%;
  max-width: 402px;
}

/* Home: sections */

.section {
  padding: 56px 0;
}

.section-ruled {
  border-top: 1px solid var(--line);
}

.band {
  background: var(--surface);
}

.section .wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section h2 {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.5px;
}

/* Home: «What it does» */

.features {
  display: grid;
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tintAccent);
}

.feature h3 {
  font-weight: 600;
  font-size: 19px;
  line-height: 24px;
}

.feature p {
  color: var(--ink2);
  font-size: 15px;
  line-height: 24px;
}

.also {
  color: var(--ink2);
  font-size: 15px;
  line-height: 24px;
}

.also strong {
  color: var(--ink);
  font-weight: 600;
}

/* Home: «Private by design» */

.points {
  display: grid;
  gap: 24px;
}

.point {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.point-number {
  color: var(--accentText);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.3px;
}

.point h3 {
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
}

.point p {
  color: var(--ink2);
  font-size: 15px;
  line-height: 24px;
}

.more {
  font-size: 16px;
  line-height: 24px;
}

/* Home: «Free on the App Store» */

.get-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.get-box-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.get-box-text p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 26px;
}

/* Privacy and Terms */

.doc {
  padding: 40px 0 64px;
}

.toc {
  display: none;
}

.doc-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doc-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-title h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.8px;
}

.updated {
  color: var(--ink3);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.5px;
}

.intro {
  font-size: 17px;
  line-height: 26px;
}

.doc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.doc-section h2 {
  font-weight: 600;
  font-size: 21px;
  line-height: 26px;
}

.doc-section p,
.doc-section li {
  color: var(--ink2);
  font-size: 16px;
  line-height: 26px;
}

.doc-section strong {
  color: var(--ink);
  font-weight: 600;
}

.stations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stations li {
  position: relative;
  padding-left: 24px;
}

/* The «station» ring of the route line, drawn in Figma as a 10 pt circle with a 2.5 pt accent stroke. */
.stations li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
}

/* Support */

.support {
  padding: 40px 0 64px;
}

.support .wrap {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.support-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support h1 {
  font-size: 38px;
  line-height: 42px;
  letter-spacing: -0.8px;
}

.email-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.email-label {
  color: var(--ink3);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.email-address {
  color: var(--accentText);
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
}

.email-note {
  color: var(--ink2);
  font-size: 15px;
  line-height: 24px;
}

.privacy-line {
  color: var(--ink2);
  font-size: 15px;
  line-height: 24px;
}

.questions h2 {
  padding-bottom: 16px;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.5px;
}

.qa {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.qa h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}

.qa p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 26px;
}

/* Footer (Web · Footer, 108:105) */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.tagline {
  color: var(--ink2);
  font-size: 14px;
  line-height: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-nav ul,
.footer-email {
  font-size: 14px;
  line-height: 20px;
}

.footer-nav a,
.footer-email {
  font-weight: 500;
}

.footer-email {
  color: var(--accentText);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 13px;
  line-height: 20px;
}

.trademark {
  color: var(--ink3);
  font-size: 12px;
  line-height: 18px;
}

/* Desktop: the 1440 frames. 1080 px is where the hero's text column still holds «HARR Route» at 88 px on one line
   next to the 402 px session card. Below it, the phone layout in a column of at most 720 px. */

@media (min-width: 1080px) {
  :root {
    --gutter: 40px;
    --column: 1200px;
  }

  .wide-only {
    display: inline;
  }

  .narrow-only {
    display: none;
  }

  .eyebrow {
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 1.5px;
  }

  .eyebrow-page {
    letter-spacing: 1.4px;
  }

  /* Header */

  .site-header {
    min-height: 80px;
  }

  .site-header .brand {
    gap: 12px;
    font-size: 18px;
    line-height: 22px;
  }

  .site-header .brand img {
    width: 32px;
    height: 32px;
  }

  .site-nav ul {
    gap: 36px;
    font-size: 15px;
  }

  /* Hero */

  .hero {
    padding: 96px 0 112px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 718px) 402px;
    align-items: center;
    gap: 80px;
  }

  .hero-text {
    gap: 28px;
  }

  .hero h1 {
    font-size: 88px;
    line-height: 92px;
    letter-spacing: -2px;
  }

  .lead {
    font-size: 28px;
    line-height: 38px;
  }

  .hero-body {
    font-size: 18px;
    line-height: 30px;
  }

  /* App Store badge: 56 px high on desktop */

  .store-badge img {
    width: 168px;
    height: 56px;
  }

  .get-app {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .facts {
    font-size: 13px;
    line-height: 16px;
  }

  /* Sections */

  .section {
    padding: 104px 0;
  }

  .section .wrap {
    gap: 48px;
  }

  .section h2 {
    font-size: 44px;
    line-height: 52px;
    letter-spacing: -0.8px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .feature {
    gap: 16px;
    padding: 32px 32px 36px;
    border-radius: 24px;
  }

  .feature h3 {
    font-size: 22px;
    line-height: 28px;
  }

  .feature p,
  .also {
    font-size: 17px;
    line-height: 28px;
  }

  .points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .point {
    padding-top: 20px;
  }

  .point-number {
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 1.5px;
  }

  .point h3 {
    font-size: 19px;
    line-height: 26px;
  }

  .point p {
    font-size: 16px;
    line-height: 26px;
  }

  .more {
    font-size: 17px;
  }

  .get-box {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 48px;
    border-radius: 28px;
  }

  .get-box-text {
    flex: 1;
  }

  .get-box-text p {
    font-size: 18px;
    line-height: 30px;
  }

  /* Privacy and Terms */

  .doc {
    padding: 88px 0 120px;
  }

  .doc .wrap {
    display: grid;
    grid-template-columns: 280px minmax(0, 720px);
    align-items: start;
    column-gap: 120px;
  }

  .toc {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 24px;
    padding-top: 12px;
  }

  .toc-title {
    color: var(--ink3);
    font-family: var(--mono);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
  }

  .toc ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
    line-height: 22px;
  }

  .toc a {
    color: var(--ink2);
    font-weight: 500;
  }

  .doc-content {
    gap: 40px;
  }

  .doc-title {
    gap: 16px;
  }

  .doc-title h1 {
    font-size: 64px;
    line-height: 68px;
    letter-spacing: -1.4px;
  }

  .updated {
    font-size: 13px;
    line-height: 16px;
  }

  .intro {
    font-size: 20px;
    line-height: 32px;
  }

  .doc-section {
    padding-top: 32px;
  }

  .doc-section h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .doc-section p,
  .doc-section li {
    font-size: 17px;
    line-height: 28px;
  }

  .stations {
    gap: 14px;
  }

  .stations li::before {
    top: 9px;
  }

  /* Support */

  .support {
    padding: 88px 0 120px;
  }

  .support .wrap {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    align-items: start;
    gap: 96px;
  }

  .support-contact {
    gap: 28px;
  }

  .support h1 {
    font-size: 56px;
    line-height: 60px;
    letter-spacing: -1.2px;
  }

  .email-card {
    padding: 28px 28px 32px;
    border-radius: 24px;
  }

  .email-label {
    font-size: 12px;
    line-height: 16px;
  }

  .email-address {
    font-size: 24px;
    line-height: 30px;
  }

  .email-note {
    font-size: 16px;
    line-height: 26px;
  }

  .privacy-line {
    font-size: 16px;
  }

  .questions h2 {
    padding-top: 8px;
    padding-bottom: 24px;
    font-size: 36px;
    line-height: 44px;
  }

  .qa {
    padding: 28px 0;
  }

  .qa h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .qa p {
    font-size: 17px;
    line-height: 28px;
  }

  /* Footer */

  .site-footer {
    padding: 56px 0 64px;
  }

  .site-footer .wrap {
    gap: 28px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  .tagline {
    font-size: 15px;
  }

  .footer-links {
    align-items: flex-end;
    gap: 12px;
  }

  .footer-nav ul {
    gap: 8px 32px;
  }

  .footer-nav ul,
  .footer-email {
    font-size: 15px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    padding-top: 28px;
    font-size: 14px;
  }
}
