/* Kreido landing page. No external fonts, scripts or images: nothing leaves this origin. */
:root {
  --slate: #1d3a33;
  --slate-deep: #152c26;
  --chalk: #f3efe4;
  --chalk-dim: #d9d3c4;
  --yellow: #f4c84b;
  --bg: #faf8f3;
  --surface: #ffffff;
  --text: #16201d;
  --muted: #55605c;
  --line: #e4dfd3;
  --link: #1d5a4c;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a17;
    --surface: #16241f;
    --text: #ecebe6;
    --muted: #a6aea9;
    --line: #26372f;
    --link: #f4c84b;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.header-link { font-weight: 600; white-space: nowrap; }

/* Hero: the slate is a chalkboard, like the app icon */
.hero {
  background: radial-gradient(120% 140% at 20% 0%, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--chalk);
  padding: 72px 0 80px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: clamp(18px, 2.4vw, 21px); color: var(--chalk-dim); max-width: 38em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  background: var(--yellow); color: var(--slate-deep);
}
.button.ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 2px rgba(243, 239, 228, 0.5); }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 40em; margin: 0 0 32px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

.languages { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.languages li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px; }

.alt { background: var(--surface); border-block: 1px solid var(--line); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; padding-left: 48px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--slate); color: var(--yellow); font-weight: 700;
  display: grid; place-items: center;
}
.steps strong { display: block; }

/* Legal pages */
.legal { padding: 32px 0 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal p, .legal li { max-width: 46em; }
.legal .meta { color: var(--muted); }
.legal address { font-style: normal; }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: inherit; }
