/* StartKind marketing + legal site.
   Mobile-first, no dependencies, no tracking. */

:root {
  --ink: #14201a;
  --ink-soft: #5b6b62;
  --accent: #1c7349;
  --accent-soft: #e7f2ec;
  --warm: #faf3e4;
  --surface: #fffefb;
  --page: #f6f8f6;
  --line: #dfe6e1;
  --radius: 14px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3ef;
    --ink-soft: #a8b8ae;
    --accent: #6fca9b;
    --accent-soft: #17281f;
    --warm: #241f16;
    --surface: #131a16;
    --page: #0d120f;
    --line: #26332c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Narrow screens: brand and the language toggle share the first row, and the
   section links get a full row of their own instead of wrapping raggedly. */
nav {
  order: 3;
  width: 100%;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
nav a { white-space: nowrap; }

@media (min-width: 620px) {
  .bar { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  nav { order: 0; width: auto; overflow: visible; gap: 2px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 6px;
  border-radius: 8px;
}
nav a:hover { color: var(--accent); }

/* Language toggle */
.lang {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.lang:hover { border-color: var(--accent); color: var(--accent); }

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

.hero {
  display: grid;
  gap: 32px;
  padding: 52px 0 40px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(32px, 7vw, 50px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.lead { font-size: clamp(16px, 4vw, 19px); color: var(--ink-soft); margin: 0 0 26px; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}
.button:hover { filter: brightness(1.06); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* ---------- shots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 8px 0 44px;
}

figure { margin: 0; text-align: center; }

figure img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(20, 32, 26, .10);
}

figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* ---------- sections ---------- */

section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  /* The header is sticky, so anchor jumps must clear it. */
  scroll-margin-top: 120px;
}

@media (min-width: 620px) {
  section { scroll-margin-top: 72px; }
}

h2 { font-size: clamp(22px, 5vw, 28px); margin: 0 0 8px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 0 0 6px; }

.sub { color: var(--ink-soft); margin: 0 0 26px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.card .icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 17px;
}

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan.highlight { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.price { font-size: 25px; font-weight: 700; margin: 4px 0 14px; }
.plan ul { margin: 0; padding-left: 19px; color: var(--ink-soft); font-size: 15px; }
.plan li { margin-bottom: 7px; }

.note {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.note strong { color: var(--ink); }

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

.prose { max-width: 720px; padding: 40px 0 12px; }
.prose h2 { margin-top: 34px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.updated { font-size: 14px; color: var(--ink-soft); }

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

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--ink-soft); font-size: 14px; }
footer a { color: var(--accent); text-decoration: none; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.footer-row .spacer { margin-left: auto; }

/* ---------- language switching ---------- */

[data-zh] { display: none; }
html[lang="zh-Hans"] [data-en] { display: none; }
html[lang="zh-Hans"] [data-zh] { display: revert; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.05fr .95fr; padding: 68px 0 48px; }
}
