/* Frama — the app's design system on the web (design/DESIGN_SYSTEM.md, the
   Locka design system): flat, square, black and white, a page divided by
   hairline grid lines. No brand colour; the only colour is the PRO silver and
   PRO+ gold badges, and the user's own screens. Same layout as the Locka and
   Growa sites. */

:root {
  --bg: #ffffff;
  --hover: rgba(0, 0, 0, 0.035);
  /* stroke: solid, so lines that meet in the grid don't darken where they overlap. */
  --line: #e5e5ea;
  --text: #1a1a1a;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --button: #1a1a1a;
  --button-text: #ffffff;
  --silver-1: #f1f3f6;
  --silver-2: #c9ced6;
  --silver-line: #a3aab5;
  --silver-text: #3a3f47;
  --gold-1: #f6e3a8;
  --gold-2: #d6b25e;
  --gold-line: #b8913a;
  --gold-text: #4a3a12;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --hover: rgba(255, 255, 255, 0.06);
    --line: #2c2c2e;
    --text: #ffffff;
    --muted: #98989d;
    --faint: #6e6e73;
    --button: #ffffff;
    --button-text: #000000;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

code {
  font: 0.86em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 1px 5px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.price { font-variant-numeric: tabular-nums; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* --- Header ------------------------------------------------------------ */

/* The one glass surface, like the floating menu bar in the design system. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; border: 1px solid var(--line); }

.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }

.nav a { text-decoration: none; color: var(--muted); }

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 720px) {
  .nav { display: none; }
  .top .button { margin-left: auto; }
}

/* --- Buttons and chips ------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover { opacity: 0.88; }

.button:active { transform: scale(0.97); }

.button.small { padding: 8px 16px; font-size: 14px; }

.button.line { background: transparent; color: var(--text); border: 1px solid var(--text); padding: 11px 21px; }

.button svg { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

/* PRO silver, PRO+ gold — as in the app. */
.tier {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid var(--silver-line);
  background: linear-gradient(var(--silver-1), var(--silver-2));
  color: var(--silver-text);
}

.tier.plus {
  border-color: var(--gold-line);
  background: linear-gradient(var(--gold-1), var(--gold-2));
  color: var(--gold-text);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 56px;
  align-items: center;
  padding: 56px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lead {
  margin: 20px 0 26px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 34em;
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.cta .note { font-size: 14px; color: var(--muted); }

.hero .chips { margin-top: 26px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* A screen captured from the app, in a drawn phone. Flat: no drop shadow,
   just a hairline so the black bezel still reads on a black page. */
.phone {
  width: min(310px, 74vw);
  margin-inline: auto;
  padding: 11px;
  border-radius: 56px;
  background: #0b0b0c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px var(--line);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 46px;
  background: #ffffff;
}

.phone.small { width: min(240px, 64vw); padding: 9px; border-radius: 44px; }

.phone.small img { border-radius: 36px; }

/* --- Sections ------------------------------------------------------------ */

section { padding: 56px 0; }

section + section { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-lead { margin: 0 0 30px; color: var(--muted); font-size: 18px; max-width: 40em; }

/* Cells share one hairline: each draws its own lines inside and out, and
   neighbours' lines land on the same pixel, whatever the cell count. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  padding: 28px 26px;
  box-shadow:
    inset 1px 1px 0 var(--line),
    1px 0 0 var(--line),
    0 1px 0 var(--line),
    1px 1px 0 var(--line);
}

.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }

.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.card .icon { margin-bottom: 22px; }

.card .icon svg { display: block; width: 22px; height: 22px; }

a.card { text-decoration: none; display: block; transition: background 0.15s ease; }

a.card:hover { background: var(--hover); }

/* Three screens in a row, each with what it shows underneath. */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); }

.grid + .screens { margin-top: -1px; }

@media (max-width: 860px) { .screens { grid-template-columns: 1fr; } }

.screens figure { margin: 0; padding: 32px 22px 26px; }

.screens figcaption { margin-top: 22px; text-align: center; }

.screens figcaption strong { display: block; font-size: 18px; letter-spacing: -0.01em; }

.screens figcaption span { color: var(--muted); font-size: 15.5px; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* .card .price, so it wins over .card p (Growa's sheet loses this one). */
.card .price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 2px; color: var(--text); }

.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; font-size: 15.5px; }

.ticks li { padding: 5px 0 5px 26px; position: relative; }

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.75;
}

.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* --- Text pages (FAQ, support, privacy) ---------------------------------- */

.page { padding: 48px 0 24px; }

.page h1 { font-size: clamp(34px, 4.6vw, 48px); margin-bottom: 14px; }

.page .lead { margin-bottom: 8px; }

.updated { font-size: 14px; color: var(--faint); margin: 0 0 32px; }

.prose h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.015em; }

.prose h3 { font-size: 19px; margin: 28px 0 8px; }

.prose p, .prose li { color: var(--text); }

.prose p { margin: 0 0 14px; }

.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }

.prose li { margin: 6px 0; }

.prose a { text-underline-offset: 3px; }

.prose .answer { font-size: 18px; }

.qa { padding: 6px 0 22px; border-bottom: 1px solid var(--line); }

.qa:last-of-type { border-bottom: 0; }

.callout {
  padding: 18px 20px;
  border: 1px solid var(--line);
  margin: 22px 0;
}

.callout p:last-child { margin-bottom: 0; }

.end-cta {
  margin: 48px 0 8px;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.end-cta p { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.end-cta p span { display: block; font-size: 15.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* --- Footer ---------------------------------------------------------------- */

footer {
  margin-top: 40px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

footer a { text-decoration: none; }

footer a:hover { color: var(--text); }

footer .legal { margin-left: auto; }

footer .disclaimer { width: 100%; margin: 0; color: var(--faint); }

@media (max-width: 720px) { footer .legal { margin-left: 0; width: 100%; } }

/* FAQ: each question is an h2 for the outline, sized like a sub-heading. */
.qa h2 { font-size: 20px; margin: 22px 0 8px; }
