/* HikeLog website — shared by the landing page, privacy and terms.
   Colours come from the app icon: forest green, bear brown, cream muzzle. */

:root {
  --forest: #1f5a2a;
  --forest-deep: #143d1d;
  --green: #388e3c;        /* the app's accent colour */
  --leaf: #7cc04f;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #22281f;
  --muted: #5d6657;
  --line: #ddd5c3;
  --bear: #b8662b;
  --mark-red: #d32f2f;
  --mark-blue: #1565c0;
  --mark-green: #2e7d32;
  --mark-yellow: #f2b600;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--forest); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mark-yellow); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Language: with JavaScript one language shows; without it, both do. */
html.js[lang="en"] .sk,
html.js[lang="sk"] .en { display: none; }

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }

.lang { display: flex; gap: 4px; }

.lang button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lang button[aria-pressed="true"] { background: #fff; color: var(--forest); border-color: #fff; }
html:not(.js) .lang { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #2f7a36 0%, var(--forest) 55%, var(--forest-deep) 100%);
}

.hero .contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 48px 0 72px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.hero .lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: block;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.store.soon { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }

.platforms { margin-top: 14px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }

/* ---------- sections ---------- */

section { padding: 64px 0; }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-lead { margin-top: 10px; max-width: 40em; color: var(--muted); }

/* Feature list: each item carries a hiking waymark (white – colour – white). */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 36px;
  margin-top: 36px;
  list-style: none;
}

.features li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }

.mark {
  width: 34px;
  height: 30px;
  margin-top: 4px;
  border-radius: 3px;
  background: linear-gradient(#fff 0 33.3%, var(--c) 33.3% 66.6%, #fff 66.6%);
  box-shadow: 0 0 0 1px var(--line);
}

.mark.red { --c: var(--mark-red); }
.mark.blue { --c: var(--mark-blue); }
.mark.green { --c: var(--mark-green); }
.mark.yellow { --c: var(--mark-yellow); }

.features h3 { font-size: 1.1rem; line-height: 1.3; }
.features p { margin-top: 4px; color: var(--muted); font-size: 0.98rem; }

/* ---------- free / pro ---------- */

.plans-band { background: #ece5d6; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.plan.pro { border-color: var(--bear); box-shadow: inset 0 4px 0 var(--bear); }

.plan h3 { font-size: 1.3rem; }
.plan .sub { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.plan ul { margin-top: 16px; padding-left: 1.2em; }
.plan li { margin-top: 6px; }

.note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; max-width: 46em; }

/* ---------- map credits ---------- */

.credits p { margin-top: 12px; max-width: 46em; color: var(--muted); }

/* ---------- footer ---------- */

footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 36px 0;
  font-size: 0.95rem;
}

footer .links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 14px; }
footer a { color: #fff; }

/* ---------- legal pages ---------- */

.hero.slim .hero-body { display: block; padding: 20px 0 36px; }
.hero.slim h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }

.legal { max-width: 760px; padding: 40px 20px 72px; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal h3 { font-size: 1.05rem; margin-top: 22px; }
.legal p, .legal ul, .legal table { margin-top: 12px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-top: 6px; }

.legal .summary {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 10px;
}

.legal .summary p:first-child { margin-top: 0; }

.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: #ece5d6; }
.table-scroll { overflow-x: auto; }

/* Without JavaScript both languages are on the page: separate them. */
html:not(.js) .legal .sk { margin-top: 56px; padding-top: 32px; border-top: 2px solid var(--line); }

@media (max-width: 720px) {
  .hero-body { grid-template-columns: 1fr; padding: 28px 0 52px; gap: 28px; }
  .hero-icon { width: 120px; height: 120px; border-radius: 27px; order: -1; }
  section { padding: 48px 0; }

  /* Tables become a list of cards: three columns do not fit a phone. */
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal tr:first-child { display: none; }
  .legal tr { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: var(--card); }
  .legal td { border: 0; padding: 0; }
  .legal td + td { margin-top: 6px; }
  .legal td:first-child { font-weight: 700; }
  .legal td:nth-child(2) { color: var(--muted); }
}


/* ---------- variant: an icon for each function instead of the waymarks ---------- */
.features { gap: 16px; }
.features li {
  grid-template-columns: 48px 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: #e4eeda; color: var(--forest);
  display: grid; place-items: center;
}
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
