/* Tokens follow the app's theme (apps/glp1-log-mobile/src/ui/theme.ts, "Ink & Lime"). System fonts only: no external requests. */
:root {
  color-scheme: light dark;
  --bg: #F3F4F0;
  --surface: #FFFFFF;
  --text: #111311;
  --text2: #666C63;
  --line: #E3E6E0;
  --lime: #C6F25B;
  --lime-soft: #E6F6BE;
  --lime-text: #3F6A00;
  --cta-bg: #111311;
  --cta-text: #C6F25B;
  --shadow: rgba(17, 19, 17, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E0C;
    --surface: #171A17;
    --text: #F1F3EC;
    --text2: #9CA297;
    --line: #2A2E2A;
    --lime-soft: #2A3418;
    --lime-text: #C6F25B;
    --cta-bg: #C6F25B;
    --cta-text: #111311;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

a { color: var(--text); text-decoration-color: var(--lime-text); text-underline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }

figure { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Hero: copy first; on wide screens the screenshot sits beside it on a lime panel. */
.hero { padding: 20px 0 8px; }

.hero-grid { display: grid; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.brand img { flex-shrink: 0; border-radius: 9px; }

h1 {
  margin: 14px 0 10px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tagline { margin: 0 0 12px; color: var(--text2); font-size: 16px; }

.price {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--lime-soft);
  font-size: 15px;
}

.cta {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  text-decoration: none;
}
.cta:hover, .cta:focus-visible { filter: brightness(1.15); }
/* Before the App Store record exists (build-site.mjs APP_STORE_ID): same place and size, plainly not a link. */
.cta.soon { background: transparent; color: var(--text); border: 1.5px dashed var(--text2); }

.cta-note { margin: 8px 0 0; color: var(--text2); font-size: 13px; }

.hero-shot {
  padding: 22px 0;
  border-radius: 28px;
  background: var(--lime);
}

.hero-shot img, .shot img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px var(--shadow);
}
.hero-shot img { border-color: transparent; }

/* Brand on the left, language menu on the right, on one line so the first screen keeps its height. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.langs { position: relative; font-size: 14px; }
.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.langs summary::-webkit-details-marker { display: none; }
.langs ul {
  position: absolute;
  right: 0;
  z-index: 10;
  min-width: 160px;
  margin: 6px 0 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px var(--shadow);
  list-style: none;
}
.langs li a, .langs li span { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.langs li a:hover, .langs li a:focus-visible { background: var(--lime-soft); }
.langs li span { color: var(--text2); }

/* Offers the visitor's own language; one line, so the price stays on the first screen. */
.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  background: var(--lime-soft);
  font-size: 14px;
}
.hint[hidden] { display: none; }
.hint button {
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--text2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Sections */
.band { padding-top: 44px; padding-bottom: 8px; }

h2 { margin: 0 0 16px; font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 17px; }
p { margin: 0 0 12px; }

.cols { display: grid; gap: 14px; }
.cols > div {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
}
.cols p { color: var(--text2); font-size: 16px; margin: 0; }

.split { display: grid; gap: 24px; align-items: center; }
.split p { color: var(--text2); }

.checks { margin: 0 0 12px; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0 0 10px 30px; color: var(--text2); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid #111311;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.split .big { font-size: 20px; color: var(--text); }

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--text2); }

.foot { padding-top: 40px; padding-bottom: 40px; color: var(--text2); font-size: 13px; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--text2); }
.notice { max-width: 640px; }

/* Short phones: keep the four first-screen answers above the fold. */
@media (max-height: 600px) {
  .hero { padding-top: 12px; }
  h1 { font-size: 25px; margin-top: 10px; }
  .tagline { font-size: 15px; }
}

@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .hero { padding-top: 40px; padding-bottom: 24px; }
  .band { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
  .hero-shot { padding: 36px 0; }
  h1 { font-size: 44px; }
  .tagline { font-size: 18px; }
  .price { display: inline-block; font-size: 16px; }
  .cols { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .split { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .split.reverse > figure { order: -1; }
  h2 { font-size: 30px; }
}

/* Landscape tablets and laptops: the screenshot must not push the copy below the fold. */
@media (min-width: 760px) and (max-height: 820px) {
  .hero-shot img { max-height: calc(100vh - 150px); width: auto; }
}

@media (min-width: 1200px) {
  h1 { font-size: 52px; }
}

/* Policy and support pages */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 8px; }
.doc h2 { margin-top: 28px; font-size: 20px; }
.doc p, .doc li { color: var(--text2); }
.doc li { margin-bottom: 8px; }
.doc .brand { margin: 0; }
.doc .brand a { text-decoration: none; }
.fine { color: var(--text2); font-size: 13px; }
