/* ---------- Inter, self-hosted (see tools/fetch_fonts.py) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --line: #d0d7de;
  --muted: #656d76;
  --text: #1f2328;
  --accent: #24292f;
  --accent-strong: #1f2328;
  --tint: #eaeef2;
  --primary: #1f883d;
  --primary-strong: #1a7f37;
  --danger: #cf222e;
  --shadow: 0 1px 0 rgba(31, 35, 40, 0.04), 0 3px 8px rgba(31, 35, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(31, 35, 40, 0.14);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 45%, #eceff2 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

.wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  /* Horizontal only: keep `section`'s vertical padding intact so adjacent
     sections keep a gap. */
  padding-inline: 18px;
}

.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border-radius: 0 0 8px 0;
}
.skipLink:focus { left: 0; }

:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 2px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.headActions { display: inline-flex; align-items: center; gap: 8px; }

.navlink {
  display: none;
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 8px;
}
.navlink:hover { color: var(--accent-strong); background: var(--tint); }
.navlink[aria-current="page"] { color: var(--accent-strong); background: var(--tint); }
/* Features and FAQ carry the content — keep them reachable from the header as
   soon as there is room; the legal links fit only on wider screens. All four
   are always in the footer. */
@media (min-width: 460px) { .navlink[data-primary] { display: inline-flex; padding: 8px 7px; } }
@media (min-width: 760px) { .navlink { display: inline-flex; padding: 8px 10px; } }

/* Language segmented control — real links, one per language version. */
.langToggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.langToggle a {
  color: var(--muted);
  font-weight: 850;
  font-size: 0.82rem;
  padding: 5px 9px;
  border-radius: 6px;
  text-decoration: none;
}
.langToggle a[aria-current="true"] { background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 56px 18px 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 28px; }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero p.lead {
  margin: 0 0 24px;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.5vw, 1.14rem);
  line-height: 1.6;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.chip svg { color: var(--primary); }

/* Play badge */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.playBadge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.12s ease;
}
.playBadge:hover { transform: translateY(-1px); }
.playBadge strong { display: block; font-size: 1.16rem; font-weight: 800; line-height: 1.1; }
.ctaGhost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 850;
}
.ctaGhost:hover { background: var(--tint); }

/* Phone frame */
.heroPhoneWrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(280px, 74vw);
  padding: 9px;
  border-radius: 34px;
  background: #0d1117;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(31, 35, 40, 0.06);
}
.phone::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: #2b323b;
  z-index: 2;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  background: var(--surface-soft);
}

/* ---------- Section scaffolding ---------- */
section { padding: 40px 0; }
.sectionHead { max-width: 40rem; margin: 0 auto 28px; text-align: center; }
.sectionHead h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: -0.02em;
}
.sectionHead p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }

/* ---------- Carousel ---------- */
.galleryOuter { position: relative; }
.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 18px;
  padding: 6px 18px 22px;
  margin: 0 -18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto;
  width: min(232px, 62vw);
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}
.slide .phone { width: 100%; padding: 8px; border-radius: 30px; }
.slide .phone::before { top: 13px; width: 74px; height: 5px; }
.slide .phone img { border-radius: 23px; }
.slideCap { margin-top: 14px; }
.slideCap strong { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.slideCap span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

/* Premium badge overlaid on premium-feature screenshots */
.proBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(31, 136, 61, 0.35);
}
.proBadge svg { width: 11px; height: 11px; }

.galleryNav {
  position: absolute;
  top: 40%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.galleryNav:hover { background: #fff; }
.galleryNav.prev { left: -6px; }
.galleryNav.next { right: -6px; }
@media (min-width: 760px) { .galleryNav { display: inline-flex; } }

.hint { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature .ic {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent);
}
.feature h3 { margin: 2px 0 0; font-size: 1.12rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.96rem; }

/* ---------- Prose (the long-form copy) ---------- */
.prose { max-width: 46rem; margin: 0 auto; }
.prose.wide { max-width: 62rem; }
.prose h2 {
  margin: 44px 0 12px;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 30px 0 8px;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}
.prose p { margin: 0 0 14px; line-height: 1.68; color: #3d444d; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: #3d444d; line-height: 1.65; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--primary-strong); font-weight: 700; }
.prose strong { color: var(--text); }
.prose address { font-style: normal; line-height: 1.65; margin-bottom: 16px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose .updated { color: var(--muted); font-size: 0.92rem; }

/* One prose block: copy on the left, its screenshot on the right, both centred
   against each other. A float would pin the text to the top of the image and
   leave a ragged gap underneath — the screenshots are much taller than the two
   paragraphs beside them. */
.proseRow {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 30px;
  align-items: center;
  margin: 36px 0;
}
/* Zero the outer margins so `align-items: center` centres the visible text,
   not the text plus its collapsed heading margin. */
.proseRowText > :first-child { margin-top: 0; }
.proseRowText > :last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .proseRow { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .proseRowText { justify-self: stretch; }
}

.proseShot {
  width: 100%;
  max-width: 190px;
  margin: 0;
}
@media (max-width: 700px) {
  .proseShot { max-width: min(200px, 55vw); }
}
.proseShot .phone { width: 100%; padding: 7px; border-radius: 26px; }
.proseShot .phone::before { top: 11px; width: 62px; height: 4px; }
.proseShot .phone img { border-radius: 20px; }
.proseShot figcaption { margin-top: 10px; color: var(--muted); font-size: 0.8rem; line-height: 1.4; text-align: center; }

/* ---------- Comparison table ---------- */
.tableWrap { overflow-x: auto; margin: 0 0 8px; }
table.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
table.compare caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
table.compare th, table.compare td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--surface-soft); font-weight: 850; }
table.compare th[scope="row"] { font-weight: 600; }
table.compare td { text-align: center; width: 22%; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--primary-strong); font-weight: 800; }
.no { color: var(--muted); }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plan.premium {
  border-color: #b7e0c2;
  background:
    linear-gradient(135deg, rgba(31, 136, 61, 0.07), rgba(36, 41, 47, 0.03)),
    var(--surface);
}
.planHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.planName { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; }
.planBadge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.planPrice { margin: 0; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.planPrice small { font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.planNote { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.planList { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.planList li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; line-height: 1.45; }
.planList li svg { flex: 0 0 auto; margin-top: 3px; color: var(--primary); }

/* ---------- FAQ ---------- */
.faqList { max-width: 46rem; margin: 0 auto; display: grid; gap: 14px; }
.faqItem {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.faqItem h2, .faqItem h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.faqItem p { margin: 0 0 10px; color: #3d444d; line-height: 1.62; }
.faqItem p:last-child { margin-bottom: 0; }
.faqItem a { color: var(--primary-strong); font-weight: 700; }

/* ---------- Callout band ---------- */
.band {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(31, 136, 61, 0.08), rgba(36, 41, 47, 0.04)),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.band h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 1.9rem); letter-spacing: -0.02em; }
.band p { margin: 0 auto; max-width: 42rem; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.linkBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: center;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}
.linkBtn:hover { background: var(--accent-strong); }
.bandBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.linkBtn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
.linkBtn--ghost:hover { background: var(--tint); }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 8px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- Page head (subpages) ---------- */
.pageHead { padding: 18px 0 8px; }
.pageHead h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pageHead p.lead {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer.site {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { text-decoration: none; font-weight: 800; color: var(--accent-strong); }
footer a:hover { text-decoration: underline; }
footer .fbrand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--accent); }
footer .fbrand img { width: 24px; height: 24px; border-radius: 6px; }
footer nav { display: inline-flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Language gate (/) ---------- */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.gate .gateInner { display: grid; gap: 18px; justify-items: center; }
.gate img { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--shadow); }
.gate h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.gate p { margin: 0; color: var(--muted); }
