/* CairnGPS website. Self-hosted fonts only: the site makes no third-party request. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/fraunces.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/roboto-mono.woff2') format('woff2');
}

:root {
  --cream: #f3ebdd;
  --paper: #fbf6ec;
  --line: #e2d7c2;
  --rule: #c9bea8;
  --dash: #b9ae98;

  --forest: #0d3b30;
  --forest-deep: #0a2f26;
  --forest-line: #2a5547;
  --forest-rule: #2e5a4c;
  --on-forest: #f3ebdd;
  --on-forest-muted: #cad6cc;
  --on-forest-faint: #b9cdbf;

  --ink: #0d3b30;
  --text: #3b4f46;
  --muted: #4d5f57;

  --clay: #c2490f;
  --peach: #ffa36b;
  --apricot: #fbebd9;
  --apricot-line: #ebc9a6;
  --rust: #8a3a0b;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: 24px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Hero band ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--on-forest);
}

.hero a {
  color: var(--on-forest);
}

.hero a:hover {
  color: var(--peach);
}

.hero :focus-visible {
  outline-color: var(--peach);
}

.contours {
  position: absolute;
  left: -260px;
  bottom: -320px;
  width: 900px;
  height: 900px;
  pointer-events: none;
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(243, 235, 221, 0.2);
}

.brand span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 600;
}

.nav > a {
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #3f6a5c;
  border-radius: 999px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hero .lang-switch a[aria-current='page'] {
  background: var(--on-forest);
  color: var(--forest);
}

.hero-body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-copy .eyebrow {
  color: var(--on-forest-faint);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* The eyebrow sits inside the h1 so the title carries the app name and category. */
.hero h1 .eyebrow {
  display: block;
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.6;
}

.hero h1 em,
.privacy h2 em {
  color: var(--peach);
}

.lead {
  margin: 0;
  max-width: 540px;
  font-size: 19px;
  color: var(--on-forest-muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: -10px 0 -10px -10px;
}

.stores a {
  display: block;
  border-radius: 12px;
}

/* The official badges carry their own transparent margin. */
.stores img {
  display: block;
  width: auto;
  height: 82px;
}

.meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-forest-faint);
}

/* ---------- Globe ---------- */

.globe {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.globe-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  /* The globe takes every gesture (rotate on both axes, pinch to zoom), like in the app. */
  touch-action: none;
}

.globe-stage canvas:active {
  cursor: grabbing;
}

.globe-stage canvas:focus-visible {
  outline-color: var(--peach);
}

.sat-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border: 1px solid var(--forest-line);
  border-radius: 10px;
  background: var(--forest-deep);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--on-forest-muted);
  white-space: nowrap;
  pointer-events: none;
}

.sat-tooltip[hidden] {
  display: none;
}

.sat-tooltip strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--forest-line);
  border-radius: 999px;
  background: var(--forest-deep);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.dot--you {
  box-shadow: 0 0 0 2px var(--on-forest);
}

.hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--on-forest-faint);
}

/* ---------- Facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 32px 8px;
}

.facts dt {
  font-size: 15px;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
}

/* ---------- Feature tour ---------- */

.tour {
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding-top: 112px;
  padding-bottom: 64px;
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--text);
}

.phones {
  flex: 0 1 500px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone {
  flex: none;
  width: clamp(200px, 60vw, 290px);
  margin: 0;
  padding: 8px;
  border-radius: 42px;
  background: #121a16;
  box-shadow: 0 40px 80px -40px rgba(13, 59, 48, 0.7);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.phones--pair .phone {
  width: clamp(150px, 42vw, 250px);
  padding: 7px;
  border-radius: 38px;
}

.phones--pair .phone img {
  border-radius: 31px;
}

.phones--pair .phone:first-child {
  position: relative;
  z-index: 1;
}

.phones--pair .phone + .phone {
  margin-left: -48px;
  margin-top: 72px;
}

.quality {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 15px;
}

.quality li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quality .dot {
  width: 12px;
  height: 12px;
}

.quality .range {
  min-width: 80px;
}

.quality .label {
  font-family: var(--sans);
  color: var(--muted);
}

.views {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.views li {
  display: flex;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.views .num {
  flex: none;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--clay);
}

.views strong {
  display: block;
  color: var(--ink);
}

.views strong + span {
  font-size: 15px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tags--warm li {
  border-color: var(--apricot-line);
  background: var(--apricot);
  color: var(--rust);
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 72px;
  padding-top: 32px;
  padding-bottom: 112px;
}

.faq-intro {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.faq-list {
  flex: 2 1 560px;
  min-width: 0;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--clay);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 22px;
  max-width: 720px;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* ---------- Privacy ---------- */

.privacy {
  background: var(--forest);
  color: var(--on-forest);
}

.privacy .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
  padding-top: 104px;
  padding-bottom: 104px;
}

.privacy-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy .eyebrow {
  color: var(--peach);
}

.privacy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.privacy p {
  margin: 0;
  max-width: 540px;
  font-size: 18px;
  color: var(--on-forest-muted);
}

.privacy a {
  color: var(--on-forest);
}

.privacy a:hover {
  color: var(--peach);
}

.privacy :focus-visible {
  outline-color: var(--peach);
}

.checks {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--forest-rule);
}

.checks svg {
  flex: none;
  margin-top: 2px;
}

/* ---------- Note, CTA, footer ---------- */

.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 72px;
  padding: 24px 28px;
  border: 1.5px dashed var(--dash);
  border-radius: 18px;
}

.note strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
}

.note p {
  flex: 1 1 520px;
  margin: 0;
  color: var(--text);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 112px;
  padding-bottom: 120px;
  text-align: center;
}

.cta > img {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 20px 40px -20px rgba(13, 59, 48, 0.6);
}

.cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cta h2 em {
  color: var(--clay);
}

.cta p {
  margin: 0;
  color: var(--muted);
}

.cta .stores {
  justify-content: center;
  margin: 0 -10px;
}

.cta .apk {
  font-size: 15px;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .tour {
    gap: 96px;
    padding-top: 80px;
  }

  .stores img {
    height: 68px;
  }

  .phones--pair .phone + .phone {
    margin-left: -32px;
    margin-top: 48px;
  }
}
