/* Same palette and typeface as the app (lib/ui/core/theme). Fonts are
   self-hosted so the site, like the app, makes no third-party requests. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --background: #f7f4ee;
  --surface: #ffffff;
  --surface-muted: #efeadf;
  --ink: #2b2a28;
  --ink-muted: #6f6a64;
  --brand: #ff6b3d;
  --brand-soft: #ffe4d6;
  --brand-deep: #e6502a;
  --success: #2ba893;
  --shadow: 0 4px 16px rgba(181, 85, 31, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171513;
    --surface: #23201d;
    --surface-muted: #322e29;
    --ink: #f2eee7;
    --ink-muted: #a59e95;
    --brand-soft: #4a2b1f;
    --brand-deep: #ff8a63;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 3px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.lang {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
}

/* Hero */

.hero > *,
.features > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 64px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero p {
  font-size: 19px;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 34em;
}

.hero-icon {
  justify-self: center;
  width: min(240px, 60vw);
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: 0 24px 48px rgba(230, 80, 42, 0.18);
}

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

.store {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--background);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.store[aria-disabled="true"] {
  background: transparent;
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1.5px var(--surface-muted);
  cursor: default;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 64px;
}

.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 12px 0 6px;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.dot {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  position: relative;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--accent, var(--brand));
}

/* Privacy band */

.privacy-band {
  background: var(--brand-soft);
  border-radius: 28px;
  padding: 36px;
  margin-bottom: 64px;
}

.privacy-band h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
}

.privacy-band p {
  margin: 0;
  max-width: 40em;
}

/* Long-form pages */

.doc {
  max-width: 720px;
  padding: 24px 0 64px;
}

.doc h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 16px 0 4px;
}

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

.doc .updated {
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.doc li {
  margin-bottom: 8px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--surface-muted);
  padding: 24px 0 40px;
  color: var(--ink-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

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

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }
  .hero-icon {
    order: -1;
    width: 128px;
    justify-self: start;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .privacy-band {
    padding: 24px;
  }
}
