/* Lark landing page.
   Layers on /style.css: the shared sheet owns the brand tokens, the back link and
   the pill, this one owns everything specific to the page. */

:root {
  --accent: #e8a333;
  --accent-soft: rgba(232, 163, 51, 0.1);
  --line: rgba(244, 241, 234, 0.09);
  --raise: rgba(244, 241, 234, 0.035);
  --warn: #e8734a;
}

/* The shared sheet centres one short column; this page is a scrolling document. */
body {
  display: block;
  min-height: 100dvh;
  background-attachment: fixed;
}

.page-head {
  padding: 1.75rem 1.5rem 0;
  max-width: 62rem;
  margin: 0 auto;
}

/* Legal pages run a narrower column; the back link lines up with it rather than
   floating out on its own left edge. */
.page-head.narrow {
  max-width: 44rem;
}

.lark {
  /* Overrides the shared `main`, which is a centred flex column. */
  display: block;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

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

.hero {
  text-align: center;
  padding: 4rem 0 3.5rem;
}

.lark-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  display: block;
  margin: 0 auto 1.75rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tagline {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-lede {
  max-width: 44ch;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ----------------------------------------------------------------- cta */

.cta {
  margin-top: 2.5rem;
}

/* A span, not a disabled button: there is nothing to press yet, and a real
   control that does nothing is worse than a label that says so. Swapping this
   for `<a class="download is-ready" href="…" download>` is all that shipping
   takes — the tip panel below binds itself to `.download[href]`, so it wakes up
   on its own the moment the span becomes a link. */
.download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: default;
  text-decoration: none;
}

.download-glyph {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Live state for when the build is ready — add `is-ready` to light it up. */
.download.is-ready {
  background: linear-gradient(180deg, #f0b84a, #d9922a);
  border-color: transparent;
  color: #241703;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(232, 163, 51, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download.is-ready:hover,
.download.is-ready:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(232, 163, 51, 0.3);
}

.download-note {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

/* The shared `.pill` carries block margins for the old placeholder layout. */
.pill-inline {
  margin: 0;
}

/* ----------------------------------------------------------- tip panel */

/* Revealed only after the download is already on its way. The order matters: the
   file is yours before there is any mention of money, which is the difference
   between an ask and a toll. Hidden with the `hidden` attribute rather than a
   class, so with JavaScript off the download still works and this never appears. */
.thanks {
  max-width: 30rem;
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(232, 163, 51, 0.1), transparent 70%),
    var(--raise);
  text-align: center;
}

.thanks[hidden] { display: none; }

.thanks-head {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.thanks-body {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.amount {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 163, 51, 0.3);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.amount:hover,
.amount:focus-visible {
  background: rgba(232, 163, 51, 0.18);
  border-color: rgba(232, 163, 51, 0.55);
}

.amount-other {
  border-style: dashed;
  font-variant-numeric: normal;
}

/* A real button — it changes the page rather than going anywhere. */
.thanks-dismiss {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line);
}

.thanks-dismiss:hover { color: var(--text); }

/* ------------------------------------------------------------ showcase */

.showcase {
  display: flex;
  justify-content: center;
  padding: 1rem 0 4.5rem;
}

.panel {
  width: min(23rem, 100%);
  padding: 1rem 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.05), rgba(244, 241, 234, 0.015));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.panel-bar {
  display: flex;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.14);
}

.panel-row {
  padding: 0.7rem 0;
}

.panel-row + .panel-row {
  border-top: 1px solid rgba(244, 241, 234, 0.055);
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.row-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.row-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.row-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.08);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9922a, #f0b84a);
}

.is-low .row-pct { color: var(--warn); }
.is-low .bar-fill { background: linear-gradient(90deg, #c4522c, var(--warn)); }

.buds {
  display: flex;
  gap: 0.4rem;
}

.bud {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: rgba(244, 241, 234, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bud em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bud-charging {
  background: var(--accent-soft);
  color: var(--accent);
}

.bud-charging em { color: rgba(232, 163, 51, 0.75); }

/* ------------------------------------------------------------ features */

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem 2.5rem;
}

.feature h3 {
  margin: 0.9rem 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.feature-icon {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon .solid {
  fill: var(--accent);
  stroke: none;
}

/* ----------------------------------------------------------- works with */

.compat {
  margin-top: 5rem;
}

.compat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

/* Column, so the muted "how it arrives" line can be pushed to the bottom and sit on
   a common baseline across a row however long the sentence above it runs. */
.compat-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--raise);
}

.compat-card h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.compat-card p {
  margin-top: 0.6rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.compat-card .how {
  margin-top: auto;
  padding-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- faq */

.faq {
  margin-top: 5rem;
}

/* Two columns at most, so four questions fill a 2×2 block instead of leaving an
   orphan on a second row. The `min()` matters: a bare 24rem minimum is wider than a
   phone's content column, and the grid would overflow the page rather than collapse. */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: 2rem 3rem;
}

.faq-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.faq-item a {
  color: var(--accent);
  text-decoration: none;
}

.faq-item a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- support */

.support {
  margin-top: 5rem;
  padding: 3.25rem 1.75rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(232, 163, 51, 0.09), transparent 70%),
    var(--raise);
  text-align: center;
}

.support-inner {
  max-width: 42ch;
  margin: 0 auto;
}

.support h2 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.support p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.tip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0b84a, #d9922a);
  color: #241703;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(232, 163, 51, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tip:hover,
.tip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(232, 163, 51, 0.28);
}

.tip-glyph {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-note {
  font-size: 0.8rem;
}

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

/* Privacy and Terms. The wording is the app's, verbatim — these pages exist so a
   link can be shared before anyone has installed anything, not as a second
   version of the policy that can drift away from the one in Settings. */

.legal {
  display: block;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.legal-head {
  padding: 3.5rem 0 2rem;
}

.legal-head h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.doc-updated {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.doc-summary {
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 163, 51, 0.16);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.doc-section {
  margin-top: 2.25rem;
}

.doc-section h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.doc-section p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.doc-section p + p {
  margin-top: 0.85rem;
}

.doc-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line);
}

.doc-section a:hover { text-decoration-color: var(--accent); }

/* The other document, and the app the text belongs to. */
.doc-nav {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
}

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

.doc-nav a:hover { text-decoration: underline; }

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

.page-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.page-foot a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.page-foot a:hover { color: var(--text); }

.foot-legal {
  max-width: 46ch;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(138, 133, 124, 0.8);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 560px) {
  .hero { padding: 2.5rem 0 2.75rem; }
  .lark-icon { width: 96px; height: 96px; border-radius: 21px; }
  .feature-grid { gap: 1.5rem; }
  .compat { margin-top: 3.5rem; }
  .faq { margin-top: 3.5rem; }
  .support { margin-top: 3.5rem; padding: 2.5rem 1.25rem; }
  .legal-head { padding: 2.5rem 0 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tip,
  .download.is-ready {
    transition: none;
  }
  .tip:hover,
  .tip:focus-visible,
  .download.is-ready:hover,
  .download.is-ready:focus-visible {
    transform: none;
  }
}
