/* Kick Ads website. System fonts only: no third-party font CDN (fast, and reachable in mainland China). */
:root {
  --bg: #fff9f5;
  --surface: #ffffff;
  --surface-2: #f6eee9;
  --text: #231a16;
  --text-2: #6b5d56;
  --outline: #ded1ca;
  --brand: #c2410c;          /* darker than the app's #d94b18 so white button text passes WCAG AA */
  --brand-soft: #ffe1d5;
  --on-brand: #ffffff;
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181210;
    --surface: #211a17;
    --surface-2: #2c231f;
    --text: #f4e8e2;
    --text-2: #cdbcb3;
    --outline: #50423c;
    --brand: #ffb597;
    --brand-soft: #7d2d0d;
    --on-brand: #5e1b05;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--outline); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; }
nav a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px var(--brand); }
nav a:hover { color: var(--text); }
nav .lang { border: 1px solid var(--outline); border-radius: 999px; padding: 4px 12px; }

main > section { padding: 56px 0; }
.hero { padding-top: 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .04em; margin-bottom: .4em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.note { color: var(--text-2); font-size: .9rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--outline); }
.button:hover { filter: brightness(1.06); }
.shot { margin: 0; justify-self: center; }
.shot img, .gallery img { border-radius: 28px; border: 1px solid var(--outline); box-shadow: 0 18px 40px rgb(0 0 0 / .12); background: var(--surface); }
.shot img { width: min(320px, 70vw); }

.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.cards li { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px; }
.cards p { color: var(--text-2); margin: 0; }
.aside { margin-top: 20px; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--text); font-size: .8rem; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }
.solution.split { align-items: center; }
.solution.split > div { background: none; padding: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.split > div { background: var(--surface-2); border-radius: var(--radius); padding: 28px; }
.gallery { display: flex; gap: 24px; overflow-x: auto; padding: 8px 2px 24px; }
.gallery img { width: 260px; flex: none; }
.closing { text-align: center; }
.closing .cta { justify-content: center; }

.prose { max-width: 760px; padding: 48px 0 64px; }
.prose h2 { margin-top: 1.6em; }
.prose .meta { color: var(--text-2); font-size: .95rem; }
details { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 4px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details[open] summary { border-bottom: 1px solid var(--outline); margin-bottom: 12px; }
details ul { padding-left: 1.2em; }
details li { margin: .4em 0; }

.site-footer { border-top: 1px solid var(--outline); padding: 32px 0 48px; color: var(--text-2); font-size: .9rem; }
.site-footer a { color: var(--text-2); }
.notfound { padding: 96px 0; text-align: center; }

@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .bar { padding: 8px 0; gap: 4px; }
  nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 18px; scrollbar-width: none; }
  nav a { white-space: nowrap; }
  main > section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
