:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --fg: #1c211e;
  --muted: #5d6660;
  --accent: #2c6b54;
  --accent-soft: #dfeee6;
  --line: #dfd9cb;
  --forest: #3f7a5c;
  --meadow: #b9cf7a;
  --water: #6fb0c9;
  --hill: #c9a877;
  --pin: #1c211e;
  --strike: #c8493b;
  --shadow: 0 18px 40px -22px rgba(28, 33, 30, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --surface: #19201c;
    --fg: #ecefe9;
    --muted: #a2aca6;
    --accent: #8fd0b4;
    --accent-soft: #1f3129;
    --line: #2a332e;
    --forest: #2f6b4f;
    --meadow: #7f9a4c;
    --water: #3f7f99;
    --hill: #94774d;
    --pin: #ecefe9;
    --strike: #ff7a6b;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header.site, main > section, footer.site, header:not(.site), footer:not(.site) {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
main > section.wide { max-width: 1040px; }

/* Header */
header.site, header:not(.site) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
header.site { max-width: 1040px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.01em; color: var(--fg); text-decoration: none; }
.mark { width: 18px; height: 20px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
nav a:hover, nav a:focus-visible { color: var(--accent); text-decoration: underline; }

/* Type */
h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.02em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; font-weight: 600; }
h3 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
.eyebrow { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.lede { color: var(--muted); font-size: clamp(18px, 2.4vw, 21px); max-width: 34em; }
.fine { color: var(--muted); font-size: 14px; }

/* Sections */
main > section { padding-top: 44px; padding-bottom: 44px; }
main > section + section { border-top: 1px solid var(--line); }
.hero { padding-top: 56px !important; padding-bottom: 60px !important; }

/* App cards */
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.app + .app { margin-top: 28px; }
.status {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tagline { font-size: 19px; color: var(--muted); margin-bottom: 16px; }
.features { margin: 0 0 16px; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.price { font-weight: 600; }

/* Screenshots */
.app-text, .shots, .hexart { min-width: 0; }
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.6vw, 14px);
  padding: 6px 0 14px;
}
.phone {
  margin: 0;
  border-radius: clamp(10px, 3vw, 22px);
  overflow: hidden;
  background: #12100e;
  border: clamp(2px, 0.4vw, 3px) solid #2b2824;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.7);
}
.phone img { display: block; width: 100%; height: auto; }
.phone:nth-child(2) { transform: translateY(14px); }

/* Hex art */
.hexart { display: flex; justify-content: center; }
.hexart svg { width: min(100%, 340px); height: auto; }
.hx use { stroke: var(--surface); stroke-width: 4; }
.forest use { fill: var(--forest); }
.meadow use { fill: var(--meadow); }
.water use { fill: var(--water); }
.hill use { fill: var(--hill); }
.pin circle { fill: var(--pin); stroke: var(--surface); stroke-width: 3; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.principle h3 { font-size: 19px; margin-bottom: 4px; }
.principle p { color: var(--muted); margin: 0; font-size: 16px; }
.picon { width: 52px; height: 52px; margin-bottom: 14px; padding: 9px; border-radius: 16px; background: var(--accent-soft);
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.picon .strike { stroke: var(--strike); stroke-width: 3.4; }

/* Footer */
footer.site, footer:not(.site) { padding-top: 28px; padding-bottom: 48px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
footer.site { max-width: 1040px; }

@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; gap: 20px; }
  .principle { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
  .picon { margin-bottom: 0; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; }
  .phone:nth-child(2) { transform: none; }
  .hexart svg { width: min(72%, 280px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Document pages (privacy) */
main.doc h1 { font-size: clamp(30px, 5vw, 42px); }
main.doc h2 { font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--fg); margin-bottom: 8px; }
main.doc > section { padding-top: 26px; padding-bottom: 26px; }

/* Footer signature */
.made { color: var(--fg); margin-bottom: 6px; }
.flag { display: inline-block; width: 22px; height: 14px; margin-left: 4px; vertical-align: -1px; border-radius: 2px;
  background: linear-gradient(to bottom, #ffffff 50%, #dc143c 50%); box-shadow: 0 0 0 1px var(--line); }

/* Language switcher */
.langs { gap: 2px; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex-wrap: nowrap; }
header.site nav:not(.langs) { margin-left: auto; }
header.site nav:not(.langs) + .langs { margin-left: 0; }
.langs a { padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.langs a:hover, .langs a:focus-visible { text-decoration: none; color: var(--fg); }
.langs a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) {
  header.site nav:not(.langs) { margin-left: 0; width: 100%; order: 3; }
  .langs { margin-left: auto; }
}
