/* getkaiwu.com: one stylesheet for every page. Colors follow the app (src/theme/colors.ts). */
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('fonts/Nunito_800ExtraBold.ttf') format('truetype');
}

:root {
  --bg: #fbf6ec;
  --surface: #ffffff;
  --border: #ece3d2;
  --text: #16181d;
  --muted: #646873;
  --primary: #c8372d;
  --primary-soft: #fbe6e3;
  --gold: #e0a526;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f;
    --surface: #1e1b17;
    --border: #332d25;
    --text: #f3efe7;
    --muted: #a8a196;
    --primary: #e5574c;
    --primary-soft: #3a1a17;
    --gold: #f2b230;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Inter,
    Roboto,
    'Helvetica Neue',
    Arial,
    'PingFang SC',
    'Noto Sans SC',
    sans-serif;
}

h1,
h2,
h3,
.brand-name {
  font-family:
    'Nunito',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: var(--primary);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header on the inner pages */
.site-header {
  padding: 20px 0 8px;
}

.site-header img {
  display: block;
  height: 44px;
  width: auto;
}

/* Home */
.hero {
  text-align: center;
  padding: 48px 0 24px;
}

.hero .logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(30px, 8vw, 44px);
  margin: 28px 0 8px;
}

.hero .lede {
  color: var(--muted);
  margin: 0 auto;
  max-width: 30em;
}

.cta {
  margin: 28px 0 8px;
  min-height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge img {
  display: block;
  height: 54px;
  width: auto;
}

.coming-soon {
  display: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 18px;
}

/* The launch flag on <html>: data-app-live="false" shows "Coming soon", "true" shows the badge. */
[data-app-live='false'] .badge {
  display: none;
}

[data-app-live='false'] .coming-soon {
  display: inline-block;
}

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 48px;
  display: grid;
  gap: 12px;
}

.features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 18px;
}

.features .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: 'PingFang SC', 'Noto Sans SC', sans-serif;
}

.features strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.features span.text {
  display: block;
  margin-top: 2px;
  line-height: 1.45;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

/* Inner pages: legal documents and support */
.doc {
  padding-top: 8px;
  padding-bottom: 32px;
}

.doc h1 {
  font-size: clamp(28px, 7vw, 36px);
  margin: 20px 0 16px;
}

.doc h2 {
  font-size: 21px;
  margin: 36px 0 8px;
}

.doc p,
.doc li {
  overflow-wrap: anywhere;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 6px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc th {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 16px 0;
}

.card h2 {
  margin-top: 0;
}

.email {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 20px;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--primary);
}

/* Features page */
:root {
  --tone1: #d93a3a;
  --tone2: #e07b12;
  --tone3: #2e9a4e;
  --tone4: #8a3fd1;
  --tone5: #8a8f98;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tone1: #ff6b6b;
    --tone2: #ffa24c;
    --tone3: #5bd17f;
    --tone4: #b98aff;
    --tone5: #a3a8b1;
  }
}

.doc .lede {
  color: var(--muted);
  font-size: 18px;
}

.feature-list {
  list-style: none;
  padding: 0 !important;
  margin: 12px 0;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.feature-list li + li {
  margin-top: 10px;
}

.tone-demo {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
  font-size: 20px;
  font-weight: 700;
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  vertical-align: -2px;
}

.t1 {
  color: var(--tone1);
}

.t2 {
  color: var(--tone2);
}

.t3 {
  color: var(--tone3);
}

.t4 {
  color: var(--tone4);
}

.t5 {
  color: var(--tone5);
}

.doc table.plans {
  min-width: 0;
}

.plans td:not(:first-child),
.plans th:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}

.more-link {
  text-align: center;
  margin: -24px 0 48px;
  font-weight: 600;
}
