/* DockEcho landing -- quiet marketing page.
   Same restraint as the app: one accent, six-step scale, generous rhythm. */

:root {
  /* Bear token table (round 6), landing surface = white paper */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #3e3e3e;
  --muted: #8a8a88;
  --faint: #8a8a88;
  --blue: #0a84ff;
  --blue-ink: #0060d0;
  --blue-wash: rgba(10, 132, 255, 0.1);
  --red: #c6403f;
  --hairline: #e5e5e3;
  --hairline-strong: #dcdcda;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.06);
  --t-11: 11px;
  --t-xs: 13px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-lg: 17px;
  --t-xl: 20px;
  --t-2xl: 28px;
  --t-hero: 44px;
  --lh-body: 1.7;
  --lh-ui: 1.4;
  --lh-title: 1.25;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 10px;
  --gap-section: 96px;
  --gap-head: 40px;
  --maxw: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --surface: #252528;
    --text: #d8d8d6;
    --muted: #8a8a88;
    --faint: #8a8a88;
    --blue: #4c9dff;
    --blue-ink: #7bb8ff;
    --blue-wash: rgba(76, 157, 255, 0.14);
    --red: #e05a58;
    --hairline: #38383a;
    --hairline-strong: #454547;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.34);
  }

  body.landing {
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body.landing {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-family:
    -apple-system, "SF Pro Text", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

a {
  color: var(--blue-ink);
}

/* ---------- returning-user banner ---------- */

.return-banner {
  padding: 10px 24px;
  text-align: center;
  background: var(--blue-wash);
  border-bottom: 1px solid var(--hairline);
}

.return-banner a {
  color: var(--blue-ink);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- header ---------- */

.land-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
}

.land-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: var(--t-lg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.land-brand img {
  border-radius: var(--r-sm);
}

.land-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.land-nav-link {
  color: var(--muted);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}

.land-nav-link:hover {
  color: var(--text);
}

.land-lang {
  min-width: 38px;
  height: 30px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  cursor: pointer;
}

.land-lang:hover {
  background: var(--surface);
}

/* ---------- layout ---------- */

.land-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.land-section {
  padding: calc(var(--gap-section) / 2) 0;
}

.land-section + .land-section {
  border-top: 1px solid var(--hairline);
}

.land-section h2 {
  margin: 0 0 var(--gap-head);
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

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

.land-hero {
  padding: 80px 0 88px;
  text-align: center;
}

.land-hero h1 {
  margin: 0 auto 16px;
  max-width: 16ch;
  font-size: clamp(32px, 5.4vw, var(--t-hero));
  font-weight: 600;
  line-height: var(--lh-title);
  letter-spacing: -0.03em;
}

.land-sub {
  margin: 0 auto 32px;
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--t-lg);
  line-height: var(--lh-body);
}

.land-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--t-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.land-btn.primary {
  color: #fff;
  background: var(--blue);
}

.land-btn.primary:hover {
  background: var(--blue-ink);
}

.land-btn.ghost {
  color: var(--text);
  border-color: var(--hairline-strong);
  background: transparent;
}

.land-btn.ghost:hover {
  background: var(--surface);
}

/* demo card given a defined "landing spot" container */
.land-echo-demo {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.demo-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.land-echo-demo strong {
  display: block;
  margin-bottom: 6px;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.demo-why {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-actions span {
  padding: 5px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 600;
}

/* ---------- card grids (equal height) ---------- */

.land-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.land-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.land-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.land-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.land-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--surface);
}

.land-card h3 {
  margin: 0 0 8px;
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.land-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
}

.land-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-wash);
  font-size: var(--t-sm);
  font-weight: 600;
}

/* ---------- switch guide ---------- */

.land-switch-sub {
  max-width: 60ch;
  margin: -24px auto 32px;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
  text-align: center;
}

.switch-card h3 {
  margin-bottom: 10px;
}

.switch-card.featured {
  border: 2px solid var(--blue);
}

.switch-card .switch-note {
  margin-top: 10px;
  color: var(--faint);
  font-size: var(--t-xs);
}

/* ---------- pricing ---------- */

.land-card.price {
  gap: 0;
}

.land-card.price h3 {
  margin-bottom: 4px;
  font-size: var(--t-lg);
}

.price-line {
  margin: 0 0 16px;
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.price-line small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: var(--t-sm);
  font-weight: 400;
}

.land-card.price ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.land-card.price li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--muted);
  font-size: var(--t-sm);
}

.land-card.price li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}

.land-card.price.pro {
  border: 2px solid var(--blue);
}

.price-note {
  margin: 16px 0 0;
  color: var(--blue);
  font-size: var(--t-sm);
  font-weight: 600;
}

/* ---------- founding waitlist ---------- */

.land-founding {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}

.land-founding h3 {
  margin: 0 0 8px;
  font-size: var(--t-lg);
  font-weight: 600;
}

.land-founding > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
}

.hp-field {
  display: none;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.form-row input[type="email"] {
  flex: 1 1 240px;
  max-width: 320px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: var(--t-base);
  color: var(--text);
}

.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-wash);
}

.form-row .land-btn {
  height: 44px;
}

.form-msg {
  margin: 16px 0 0;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--blue);
}

.form-msg.error {
  color: var(--red);
}

/* ---------- FAQ ---------- */

.land-faq {
  max-width: 680px;
  margin: 0 auto;
}

.land-faq details {
  border-bottom: 1px solid var(--hairline);
}

.land-faq summary {
  padding: 16px 0;
  cursor: pointer;
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}

.land-faq summary::-webkit-details-marker {
  display: none;
}

.land-faq summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-weight: 400;
}

.land-faq details[open] summary::after {
  content: "−";
}

.land-faq p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
}

/* ---------- changelog ---------- */

.clog-title {
  margin: 0 0 8px;
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.clog-intro {
  max-width: 52ch;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  text-align: center;
}

.clog-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.clog-entry {
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.clog-entry time {
  color: var(--faint);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.clog-entry h2 {
  margin: 6px 0 6px;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.clog-entry p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
}

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

.land-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--faint);
  font-size: var(--t-xs);
}

.land-footer p {
  margin: 4px 0;
}

.land-footer a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

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

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

@media (max-width: 560px) {
  :root {
    --gap-section: 72px;
  }

  .land-hero {
    padding: 56px 0 64px;
  }

  .land-grid.three,
  .land-grid.four,
  .land-grid.two {
    grid-template-columns: 1fr;
  }
}

/* ---------- privacy policy page ---------- */
.land-section.priv {
  max-width: 640px;
  margin: 0 auto;
}
.land-section.priv .clog-title,
.land-section.priv .clog-intro {
  text-align: left;
}
.priv-eff {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: var(--t-sm);
}
.land-section.priv h2 {
  margin: 32px 0 8px;
  font-size: var(--t-xl);
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.01em;
}
.land-section.priv h2 + p {
  margin: 0;
}
