/* gpxtogps.com: big sky, short words. Warm off-white, near-black ink, the
   app's signal orange. Values follow the "Home — Big sky, short words" design. */

:root {
  --sky: #F4F2EE;
  --ink: #141311;
  --ink-soft: #4A4742;
  --screen: #1E1C19;
  --signal: #E8501A;
  --slate: #2F4256;
  --rule: rgba(20, 19, 17, .2);
  --rule-faint: rgba(20, 19, 17, .15);

  --text: Inter, system-ui, sans-serif;
  --display: "Inter Tight", Inter, system-ui, sans-serif;

  --gutter: clamp(20px, 3vw, 48px);   /* text sections */
  --bleed: clamp(12px, 1.5vw, 24px);  /* near-full-width panels */
  --page: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--signal); }
p { margin: 0; }

h1, h2, .d {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .92;
  margin: 0;
}
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lbl-sm { font-size: 11px; }
.signal { color: var(--signal); }
.soft { color: var(--ink-soft); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout */
.wrap { max-width: var(--page); width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bleed { padding-left: var(--bleed); padding-right: var(--bleed); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--sky); }
.btn:focus-visible, .zoom:focus-visible, a:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.btn-o { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-o:hover { background: var(--ink); border-color: var(--ink); color: var(--sky); }
.btn-w { border-color: var(--sky); color: var(--sky); }
.btn-w:hover { background: var(--sky); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 20px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .d { font-size: 22px; letter-spacing: -.02em; }
.brand .lbl { background: var(--signal); color: var(--ink); padding: 5px 9px; border-radius: 999px; font-size: 11px; }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a:not(.btn) { text-decoration: none; font-size: 14px; font-weight: 500; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 28px; }
.hero-text {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px 48px; align-items: end;
  padding: 24px var(--bleed) 8px;
}
.hero-title { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(60px, 8.4vw, 132px); }
.hero-pitch { display: flex; flex-direction: column; gap: 22px; padding-bottom: 10px; }
.hero-pitch p { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.4; max-width: 460px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll stage: the laptop pins while the recording pops out to a modal,
   then settles back. Chrome, Edge, Safari 26+; elsewhere the laptop simply
   shows the recording. */
.stage { position: relative; height: 2400px; view-timeline-name: --stage; view-timeline-axis: block; }
.stage-pin {
  position: sticky; top: 0; height: min(100vh, 900px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.laptop { width: min(100%, 1100px); position: relative; aspect-ratio: 2910 / 1693; }
.laptop-screen {
  position: absolute; left: 11.993%; top: 7.206%; width: 75.979%; height: 81.335%;
  overflow: hidden; background: var(--screen);
}
.laptop-screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.laptop-frame { position: relative; display: block; width: 100%; height: auto; pointer-events: none; }
.laptop-caption {
  position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
  white-space: nowrap; color: var(--ink-soft);
}
.dim { position: absolute; inset: 0; background: var(--ink); }
.pop {
  margin: 0; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(94%, 1240px, calc((100vh - 96px) * 1.44)); transform-origin: 50% 50%;
}
.pop video {
  display: block; width: 100%; height: auto; aspect-ratio: 1226 / 846; background: var(--screen); border-radius: 14px;
  box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .18);
}
.pop figcaption {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap;
  color: var(--sky); background: rgba(20, 19, 17, .6); padding: 8px 14px; border-radius: 999px;
}
.pop, .dim {
  opacity: 0; pointer-events: none;
  animation: linear both; animation-timeline: --stage; animation-range: contain 0% contain 100%;
}
.pop { animation-name: pop; }
.dim { animation-name: dim; }
@keyframes pop {
  0% { opacity: 0; transform: scale(.66); }
  8% { opacity: 1; transform: scale(.66); }
  26% { transform: scale(1); }
  74% { transform: scale(1); }
  92% { opacity: 1; transform: scale(.66); }
  100% { opacity: 0; transform: scale(.66); }
}
@keyframes dim { 0%, 8% { opacity: 0; } 26%, 74% { opacity: .6; } 92%, 100% { opacity: 0; } }
@supports not (animation-timeline: view()) {
  .stage { height: auto; padding-bottom: 48px; }
  .stage-pin { position: static; height: auto; }
  .pop, .dim { display: none; }
}

/* Statement */
.statement {
  padding-top: 120px; padding-bottom: 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px; align-items: end;
}
.statement h2 { font-size: clamp(36px, 4.6vw, 68px); grid-column: span 2; max-width: 920px; }
.statement p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 360px; }
@media (max-width: 719px) {
  .statement h2 { grid-column: auto; }
  .laptop-caption, .pop figcaption { white-space: normal; width: max-content; max-width: 92%; text-align: center; line-height: 1.5; }
  .laptop-caption { bottom: auto; top: calc(100% + 12px); }
  .pop figcaption { position: static; transform: none; margin: 12px auto 0; }
}

/* Full-width screen recording */
.recording {
  margin: 0 auto; width: min(100%, var(--page)); position: relative;
  border-radius: 18px; overflow: hidden; background: var(--screen);
  box-shadow: 0 30px 80px -30px rgba(20, 19, 17, .45);
}
.recording video { display: block; width: 100%; height: auto; aspect-ratio: 948 / 652; }
.recording figcaption {
  position: absolute; left: 20px; bottom: 18px; margin-right: 20px;
  color: rgba(244, 242, 238, .85); background: rgba(20, 19, 17, .55); padding: 7px 11px; border-radius: 999px;
}

/* What goes in, what comes out */
.io { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; }
.io > h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; color: var(--ink-soft); margin-bottom: 36px; }
.io-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px 56px; align-items: start; padding: 36px 0; border-top: 1.5px solid var(--ink);
}
.io-row:last-child { border-bottom: 1.5px solid var(--ink); }
.io-row h3 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .92; margin: 0;
  font-size: clamp(40px, 5vw, 76px); display: flex; align-items: center; gap: .25em; flex-wrap: wrap;
}
.io-row h3 .arrow { color: var(--signal); font-weight: 500; }
.io-row p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 520px; padding-top: .5em; }

/* Planners marquee */
.marquee { border-top: 1px solid var(--rule-faint); border-bottom: 1px solid var(--rule-faint); padding: 22px 0; overflow: hidden; }
.marq {
  display: flex; gap: 64px; white-space: nowrap; width: max-content;
  font-size: 28px; font-weight: 700; color: rgba(20, 19, 17, .55);
  animation: marq 28s linear infinite;
}
.marq ul { display: flex; gap: 64px; margin: 0; padding: 0; list-style: none; }
@keyframes marq { to { transform: translateX(calc(-50% - 32px)); } }

/* 43 vs 1 */
.counter { margin-top: 24px; }
.counter-panel {
  background: var(--ink); color: var(--sky); border-radius: 18px;
  padding: clamp(56px, 7vw, 120px) clamp(24px, 4vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: center;
}
.counter-panel > div { display: flex; flex-direction: column; gap: 10px; }
.counter-panel .big { font-size: clamp(120px, 18vw, 300px); line-height: .85; }
.counter-panel .says { font-size: clamp(20px, 2vw, 28px); font-weight: 500; }
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.count { --n: 43; counter-reset: n var(--n); }
.count::after { content: counter(n); }
.js .count { --n: 0; }
.js .count.is-counting { animation: count 2.2s cubic-bezier(.2, .7, .2, 1) .3s forwards; }
@keyframes count { to { --n: 43; } }

/* Devices */
.devices { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 36px; }
.devices h2 { font-size: clamp(40px, 5.6vw, 88px); max-width: 1100px; }
.devices .row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.devices .row p { font-size: 15px; color: var(--ink-soft); max-width: 520px; line-height: 1.5; }

/* Inside the app */
.inside { display: flex; flex-direction: column; gap: 20px; }
.inside-head {
  max-width: var(--page); width: 100%; margin: 0 auto; padding: 0 var(--bleed);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.inside-head > span:last-child { font-size: 15px; color: var(--ink-soft); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.panel-card {
  margin: 0; background: var(--ink); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.panel-card figcaption { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 18px; min-height: 120px; }
.panel-card figcaption .d { font-size: 22px; color: var(--sky); letter-spacing: -.02em; }
.panel-card figcaption span:last-child { font-size: 15px; line-height: 1.5; color: rgba(244, 242, 238, .7); }
.zoom {
  display: block; width: calc(100% - 24px); margin: 0 12px 12px; padding: 0; border: 0;
  cursor: zoom-in; position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: var(--slate);
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.zoom img {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84%; height: auto;
  border-radius: 8px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4);
  transition: transform .25s ease;
}
.zoom.wide img { width: 88%; }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  border: 0; padding: 24px; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  background: transparent; cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 19, 17, .82); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: min(96vw, 1100px); max-height: 100%; }
.lightbox img {
  display: block; max-width: 100%; max-height: calc(100vh - 140px); height: auto; border-radius: 10px;
  box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .18);
}
.lightbox figcaption { display: flex; align-items: center; gap: 18px; color: var(--sky); }
.lightbox figcaption .d { font-size: 20px; letter-spacing: -.02em; }
.lightbox .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Beta form */
.beta {
  padding-top: 140px; padding-bottom: 120px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 64px; align-items: start;
}
.beta-intro { display: flex; flex-direction: column; gap: 22px; }
.beta-intro h2 { font-size: clamp(40px, 5vw, 76px); }
.beta-intro p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 440px; }
.beta-form { display: flex; flex-direction: column; gap: 22px; }
.beta-form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.beta-form .field { display: flex; flex-direction: column; gap: 4px; }
.beta-form label.lbl, .beta-form legend { color: var(--ink-soft); }
.beta-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.beta-form legend { padding: 0; }
.beta-form .options { display: flex; gap: 28px; flex-wrap: wrap; }
.beta-form .options.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 0 16px; }
.beta-form input[type=text], .beta-form input[type=email], .beta-form textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  border: 0; border-bottom: 1.5px solid rgba(20, 19, 17, .4); border-radius: 0;
  background: transparent; font: inherit; font-size: 17px; color: var(--ink);
}
.beta-form textarea { min-height: 80px; resize: vertical; }
.beta-form input::placeholder, .beta-form textarea::placeholder { color: rgba(20, 19, 17, .4); }
.beta-form input:focus, .beta-form textarea:focus { outline: 0; border-bottom-color: var(--signal); box-shadow: 0 1.5px 0 var(--signal); }
.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.chk input { width: 20px; height: 20px; accent-color: var(--signal); margin: 0; }
.beta-form .submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.beta-form .submit .btn { min-height: 56px; padding: 0 32px; font-size: 16px; }
.beta-form .submit span { font-size: 13px; color: var(--ink-soft); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 17px; line-height: 1.5; padding: 16px 20px; border-radius: 14px; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ink); color: var(--sky); }
.form-status.error { border: 1.5px solid var(--signal); color: var(--ink); }

/* FAQ */
.faq {
  padding-bottom: 120px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px;
}
.faq > div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 18px; }
.faq h3 { font-size: 18px; font-weight: 700; margin: 0; }
.faq p { line-height: 1.5; color: var(--ink-soft); }

/* Footer */
.site-footer { padding-bottom: 24px; }
.footer-panel {
  background: var(--ink); color: rgba(244, 242, 238, .75); border-radius: 18px;
  padding: 40px clamp(24px, 4vw, 56px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; font-size: 14px;
}
.footer-panel > div { display: flex; flex-direction: column; gap: 10px; }
.footer-panel .d { font-size: 40px; color: var(--sky); }
.footer-panel nav { display: flex; flex-direction: row; gap: 24px; flex-wrap: wrap; }
.footer-panel a { color: var(--sky); }
.footer-panel a:hover { color: var(--signal); }
.footer-panel .legal { width: 100%; font-size: 12px; line-height: 1.5; color: rgba(244, 242, 238, .5); }

/* Plain text pages (privacy) */
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 120px; }
.prose h1 { font-size: clamp(48px, 6vw, 88px); margin-bottom: 40px; }
.prose h2 { font-size: 28px; letter-spacing: -.02em; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }

/* Entrance */
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.rise.r2 { animation-delay: .12s; }
.rise.r3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marq, .rise, .pop, .dim, .js .count.is-counting { animation: none; }
  .js .count { --n: 43; }
  .stage { height: auto; padding-bottom: 48px; }
  .stage-pin { position: static; height: auto; }
  .pop, .dim { display: none; }
}

/* Download page */
.downloads { list-style: none; margin: 32px 0 8px; padding: 0; display: grid; gap: 12px; }
.downloads li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border: 1.5px solid var(--ink); border-radius: 20px; }
.downloads h2 { margin: 0 0 4px; }
.downloads p { margin: 0; }
.downloads .meta { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.downloads li.mine { background: var(--ink); color: var(--sky); }
.downloads li.mine p, .downloads li.mine .meta { color: var(--sky); opacity: .85; }
.downloads li.mine .btn { background: var(--signal); border-color: var(--signal); color: var(--ink); }
@media (max-width: 719px) { .downloads li { flex-direction: column; align-items: flex-start; } }
