/* trop. product page. Same paper and type as sendrop's page (Things-like), in the app's forest green
   instead of its blue, with the doodle layer
   of the app's onboarding (after tally.so): yellow marker under key words, inked stickers instead of flat
   icons, pastel blobs behind the screenshots, outdoor stickers (sun, peak, pine, tent, trail sign). The app's own
   screens are the pictures. */
:root {
  --paper: #ffffff;
  --page: #f6f7f9;
  --well: #f3f4f6;
  --hair: #e6e7ea;
  --ink: #1d1e22;
  --muted: #858a94;
  --accent: #2e5e5a;
  --accent-soft: #e4eeed;
  --green: #33b35c;
  --orange: #f59421;
  --red: #e64540;
  --purple: #8b5cf6;
  --marker: #ffe479;
  --mint: #d5e8e2;
  --blush: #ffdeea;
  --bezel: #1d1e22;
  --shadow: 0 1px 2px rgba(20, 24, 33, .05), 0 8px 28px rgba(20, 24, 33, .09);
  --shadow-lg: 0 2px 4px rgba(20, 24, 33, .05), 0 24px 60px rgba(20, 24, 33, .16);
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1e1f22; --page: #161719; --well: #2a2b2f; --hair: #34363b;
    --ink: #ecedef; --muted: #8e929b; --accent: #3e7a76; --accent-soft: #1a2a29; --bezel: #0d0e10;
    --marker: #7a6624; --mint: #1f3733; --blush: #552d3b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1e1f22; --page: #161719; --well: #2a2b2f; --hair: #34363b;
  --ink: #ecedef; --muted: #8e929b; --accent: #3e7a76; --accent-soft: #1a2a29; --bezel: #0d0e10;
  --marker: #7a6624; --mint: #1f3733; --blush: #552d3b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative; margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased;
}
/* Faint contour lines behind the whole page, like the library's hero card in the app. The SVG is only a mask,
   so the lines take the accent in both themes; bands are a little see-through to let them show. */
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--accent); opacity: .13;
  -webkit-mask: url(assets/contours.svg) center top / 1600px auto repeat-y;
  mask: url(assets/contours.svg) center top / 1600px auto repeat-y;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: .22; } }
:root[data-theme="dark"] body::before { opacity: .22; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.sprite { position: absolute; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.022em; }
p { margin: 0; }
.wm-dot { color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 9;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-icon { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.lang { font-size: 14px; font-weight: 600; color: var(--muted); }
.lang:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) {
  .nav-links { display: none; } .nav .lang { margin-left: auto; }
  /* A page without the language switch (the GPX editor landing): the button goes right. */
  .nav .nav-links + .btn { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff; font-weight: 600; border-radius: 12px;
  padding: 10px 18px;
  transition: transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn.big { padding: 14px 24px; font-size: 17px; }
.btn.ghost { background: var(--well); color: var(--ink); }
.btn.soon { cursor: default; }
.btn.soon:hover { transform: none; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.fine { color: var(--muted); font-size: 13.5px; margin-top: 14px; text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 64px 0 24px; }
.app-icon {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 22px;
}
h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.04; font-weight: 800; }
.lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.lede b { color: var(--ink); font-weight: 600; }

/* ---------- phones ---------- */
.phone {
  margin: 0; padding: 9px; border-radius: 46px; background: var(--bezel);
  box-shadow: var(--shadow-lg); width: 280px; max-width: 100%;
}
.phone img { border-radius: 38px; width: 100%; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 56px; }
.phones .main { width: 300px; z-index: 1; }
.phones .side { width: 250px; margin-bottom: 26px; opacity: .97; }
@media (max-width: 860px) {
  .phones { gap: 14px; }
  .phones .side { width: 30%; }
  .phones .main { width: 36%; }
  .phone { padding: 5px; border-radius: 26px; }
  .phone img { border-radius: 22px; }
}
@media (max-width: 520px) {
  .phones .side { display: none; }
  .phones .main { width: 72%; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.band { background: color-mix(in srgb, var(--page) 82%, transparent); }
.eyebrow {
  display: flex; align-items: baseline; gap: 10px; color: var(--accent); font-weight: 650; font-size: 15px;
  padding-bottom: 10px; border-bottom: 1px solid var(--hair); margin-bottom: 26px;
}
.eyebrow span { color: var(--muted); font-weight: 500; margin-left: auto; font-size: 14px; }
.eyebrow.green { color: var(--green); }
.eyebrow.purple { color: var(--purple); }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; font-weight: 800; }
.sub { max-width: 640px; margin-top: 16px; color: var(--muted); font-size: 18px; }
.sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 20px; }
.steps .n {
  flex: none; width: 38px; height: 38px; border-radius: 11px; border: 2px solid var(--ink); background: var(--marker);
  color: var(--ink); display: grid; place-items: center; font: 800 17px/1 ui-rounded, var(--display); transform: rotate(-6deg);
}
.steps li:nth-child(2) .n { background: var(--mint); transform: rotate(5deg); }
.steps li:nth-child(3) .n { background: var(--blush); transform: rotate(-3deg); }
.steps h4 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 96px; }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 750; }
.feature p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.feature p b { color: var(--ink); font-weight: 600; }
.demo { display: flex; justify-content: center; gap: 18px; }
.demo .phone { width: 280px; }
.demo.duo .phone { width: 230px; }
.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.bullets li { position: relative; padding-left: 28px; font-size: 15.5px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--mint);
}
.bullets li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .feature.flip .copy { order: 0; }
  .demo .phone { width: 62%; }
  .demo.duo .phone { width: 46%; }
}

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.fact { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 20px; }
.fact .ic {
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center;
  color: var(--ink); margin-bottom: 14px; transform: rotate(-5deg);
}
.fact:nth-child(even) .ic { transform: rotate(4deg); }
.fact .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fact h4 { font-size: 16.5px; }
.fact p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.bg-mint { background: var(--mint); } .bg-soft { background: var(--accent-soft); } .bg-marker { background: var(--marker); }
.bg-blush { background: var(--blush); } .bg-paper { background: var(--paper); }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.wide-shot { position: relative; margin: 56px auto 0; max-width: 340px; padding: 9px; border-radius: 46px; background: var(--bezel); box-shadow: var(--shadow-lg); }
.wide-shot img { border-radius: 38px; }

/* GPX editor: a browser window drawn in the doodle style (ink edge, three pastel dots) and two close-ups. */
.cta-row.start { justify-content: flex-start; }
.fine.start { text-align: left; }
.browser-wrap { margin-top: 48px; }
.browser-wrap.blobbed::before { inset: 10% -5% -6%; }
.browser {
  margin: 0; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser .bar { display: flex; gap: 7px; padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--well); }
.browser .bar span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--blush); }
.browser .bar span:nth-child(2) { background: var(--marker); }
.browser .bar span:nth-child(3) { background: var(--mint); }
.editor-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.tile { margin: 0; }
.tile img { border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.tile figcaption { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.tile figcaption b { color: var(--ink); font-weight: 650; }
@media (max-width: 720px) {
  .editor-pair { grid-template-columns: 1fr; }
  .browser { border-radius: 12px; }
  .browser .bar { padding: 7px 10px; gap: 5px; }
  .browser .bar span { width: 9px; height: 9px; }
}

/* privacy */
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.promise { position: relative; padding: 20px 20px 20px 64px; border: 2px solid var(--ink); border-radius: 18px; }
.promise .tick {
  position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; border: 2px solid var(--ink);
  background: var(--mint); color: var(--ink); display: grid; place-items: center; transform: rotate(-6deg);
}
.promise:nth-child(2) .tick { background: var(--marker); transform: rotate(5deg); }
.promise:nth-child(3) .tick { background: var(--blush); transform: rotate(-3deg); }
.promise:nth-child(4) .tick { background: var(--accent-soft); transform: rotate(6deg); }
.promise .tick svg { width: 15px; height: 15px; }
.promise h4 { font-size: 16.5px; }
.promise p { color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (max-width: 720px) { .manifesto { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 28px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* final + footer */
.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: clamp(32px, 5vw, 52px); }
footer { border-top: 1px solid var(--hair); padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

/* ---------- doodle layer ---------- */
/* Marker highlight under a key word (mark.hl), like the swash under "trop." in the app. */
mark.hl { position: relative; z-index: 0; background: none; color: inherit; white-space: nowrap; }
mark.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.14em; bottom: .04em; height: .44em;
  background: var(--marker);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 7Q50 1 100 2L97 19Q50 16 0 20Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 7Q50 1 100 2L97 19Q50 16 0 20Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Pastel blob behind screenshots; the colour class picks the pastel. */
.blobbed { position: relative; isolation: isolate; }
.blobbed::before {
  content: ""; position: absolute; z-index: -1; inset: 6% -8% 2%; background: var(--accent-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M91.1 36.1Q98.9 50.0 92.7 65.3Q86.4 80.6 72.2 88.0Q58.0 95.4 43.0 91.8Q28.0 88.2 18.7 76.5Q9.5 64.7 6.5 48.9Q3.6 33.1 14.4 20.0Q25.2 7.0 41.2 7.9Q57.2 8.9 70.2 15.5Q83.2 22.1 91.1 36.1Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M91.1 36.1Q98.9 50.0 92.7 65.3Q86.4 80.6 72.2 88.0Q58.0 95.4 43.0 91.8Q28.0 88.2 18.7 76.5Q9.5 64.7 6.5 48.9Q3.6 33.1 14.4 20.0Q25.2 7.0 41.2 7.9Q57.2 8.9 70.2 15.5Q83.2 22.1 91.1 36.1Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.blobbed.alt::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M92.1 34.5Q97.2 50.0 91.2 64.8Q85.3 79.6 71.3 85.6Q57.3 91.6 42.4 90.4Q27.4 89.2 14.5 78.4Q1.7 67.6 4.2 50.9Q6.8 34.3 18.1 24.3Q29.4 14.3 43.7 9.4Q58.0 4.4 72.5 11.7Q87.0 19.0 92.1 34.5Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M92.1 34.5Q97.2 50.0 91.2 64.8Q85.3 79.6 71.3 85.6Q57.3 91.6 42.4 90.4Q27.4 89.2 14.5 78.4Q1.7 67.6 4.2 50.9Q6.8 34.3 18.1 24.3Q29.4 14.3 43.7 9.4Q58.0 4.4 72.5 11.7Q87.0 19.0 92.1 34.5Z'/%3E%3C/svg%3E");
}
.blobbed.mint::before { background: var(--mint); }
.blobbed.sun::before { background: var(--marker); opacity: .7; }
.blobbed.blush::before { background: var(--blush); }
.phones.blobbed::before { inset: 14% 4% -2%; }
.wide-shot.blobbed::before { inset: 8% -40% 4%; }

/* Outdoor stickers: sun, peak, pine, tent and trail sign in yellow (or pastel) with an ink edge. */
.spark { position: absolute; width: 36px; height: 36px; fill: var(--marker); stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.spark.sm { width: 26px; height: 26px; }
.spark.blush { fill: var(--blush); }
.spark.mint { fill: var(--mint); }
.hero .s1 { left: 8%; top: 22%; } .hero .s2 { right: 9%; top: 12%; } .hero .s3 { right: 4%; bottom: 30%; }
.final { position: relative; }
.final .s1 { left: calc(50% - 92px); top: 70px; } .final .s2 { left: calc(50% + 64px); top: 110px; }
.demo .spark { right: 6%; top: 4%; }

/* Hand-drawn arrow with a note, pointing at the ride screen (wide screens only). */
.doodle-note { position: absolute; left: calc(50% - 330px); top: 4%; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font: italic 600 15px/1.2 var(--display); color: var(--ink); transform: rotate(-4deg); pointer-events: none; }
.doodle-note svg { width: 110px; height: 70px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-right: -70px; }
@media (max-width: 960px) { .doodle-note { display: none; } }

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

/* privacy policy page */
.policy h3 { margin-top: 32px; font-size: 20px; line-height: 1.25; }
.policy p { margin-top: 8px; max-width: 680px; font-size: 17px; }
.policy a, #prywatnosc .sub a, #privacy .sub a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Decorative blobs may bleed past the edges; never let them widen the page on a phone. */
main { overflow-x: clip; }

/* Icon inside a button (download arrow on the App Store placeholder). */
.btn-ic { width: 20px; height: 20px; flex: none; }
.final .btn { white-space: nowrap; }
