/* GeoCompass landing page — "field instrument" tokens from GcColors.light */

:root {
  --bg: #F2F0EB;
  --surface: #FFFFFF;
  --ink: #16202A;
  --muted: #56606B;
  --line: #DDD9D0;
  --primary: #1F4E79;
  --primary-soft: #E4ECF4;
  --accent: #C2410C;
  --accent-soft: #FBEADF;
  --dark-accent: #F2813F;
  --dark-surface: #161F27;
  --dark-line: #283440;
  --dark-muted: #9BA8B5;
  --dark-ink: #E7ECF1;
  --player-black: #0B0F13;

  --sans: "IBM Plex Sans", "PingFang TC", "Hiragino Sans", "Noto Sans CJK TC", "Noto Sans CJK JP", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--dark-accent); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 104px 0; }
.section--surface { background: var(--surface); }

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  max-width: 20em;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

.body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- App icon ---------- */

.app-icon { display: block; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 240, 235, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Store buttons ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Official Apple / Google badges, shown at equal height */
.store {
  display: block;
  border-radius: 9px;
}

.store img {
  width: auto;
  height: 56px;
}

/* ---------- Phone frame ---------- */

.phone {
  --w: 248px;
  --pad: 8px;
  --r: 40px;
  --ri: 32px;
  width: var(--w);
  max-width: 100%;
  padding: var(--pad);
  border-radius: var(--r);
  background: var(--ink);
}

.phone img {
  width: 100%;
  border-radius: var(--ri);
}

.phone--hero {
  --w: 320px;
  --pad: 10px;
  --r: 50px;
  --ri: 40px;
  box-shadow: 0 30px 60px -30px rgba(22, 32, 42, 0.45);
}

.phone--record {
  --w: 272px;
  --pad: 9px;
  --r: clamp(26px, calc(8vw - 6px), 44px);
  --ri: calc(var(--r) - var(--pad));
}

.phone--ai {
  --w: 300px;
  --pad: 10px;
  --r: 48px;
  --ri: 38px;
  background: var(--player-black);
  border: 1px solid var(--dark-line);
}

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

.hero { padding: 72px 0 88px; }

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px 48px;
}

.hero__text {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 600px;
}

.hero__media {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 24px 0 24px;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  text-wrap: balance;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.hero .stores { margin-top: 32px; }

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Spec row ---------- */

.specs {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin: 0 -24px;
  overflow: hidden;
}

.spec {
  margin: -1px 0 0 -1px;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec__value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- How it works ---------- */

.illustrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-top: 48px;
}

.illustration {
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.illustration img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px;
}

.illustration .body { margin-top: 6px; font-size: 16px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-top: 16px;
}

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

.step__num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.step .body { margin-top: 6px; font-size: 16px; line-height: 1.6; }

/* ---------- Features ---------- */

.features__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.features__head .body { max-width: 420px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature .body { margin-top: 8px; font-size: 16px; line-height: 1.6; }

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.icon-box--blue { background: var(--primary-soft); color: var(--primary); }
.icon-box--orange { background: var(--accent-soft); color: var(--accent); }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Screens ---------- */

.screens__track {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.screen { flex: 0 0 248px; }

.screen figcaption { margin-top: 20px; }

.screen__title { font-size: 16px; font-weight: 600; }

.screen__desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Field record ---------- */

.record .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px 48px;
}

.record__text {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
}

.record__text .body { margin-top: 20px; }

.checklist { margin-top: 28px; }

.checklist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.checklist li:last-child { border-bottom: 1px solid var(--line); }

.checklist li::before {
  content: "—";
  flex: none;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
}

.record__phones {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.record__phones .phone { flex: 0 1 var(--w); min-width: 0; }
.record__phones .phone + .phone { margin-top: 48px; }

/* ---------- AI assistant ---------- */

.dark {
  background: var(--ink);
  color: var(--dark-ink);
}

.assistant .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px 48px;
}

.assistant__text {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 600px;
}

.assistant .eyebrow { color: var(--dark-accent); }
.assistant .eyebrow .icon { width: 16px; height: 16px; }
.assistant .h2 { color: #FFFFFF; }

.assistant .body {
  margin-top: 20px;
  color: var(--dark-muted);
}

.questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.questions li {
  padding: 10px 16px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: var(--dark-surface);
  font-size: 15px;
  line-height: 1.45;
  color: var(--dark-ink);
}

.assistant__media {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* ---------- Languages ---------- */

.languages {
  padding: 28px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.languages .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
}

.languages__list {
  font-size: 17px;
  font-weight: 500;
}

/* ---------- Download ---------- */

.download {
  padding: 112px 0;
  text-align: center;
}

.download .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download .app-icon {
  filter: drop-shadow(0 12px 24px rgba(22, 32, 42, 0.18));
}

.download h2 {
  max-width: 14em;
  margin-top: 32px;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.download .body { margin-top: 16px; }

.download .stores {
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); text-decoration: underline; }

.footer-legal {
  flex: 1 1 100%;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}
