/* KellnerApp website. Everything is served from this origin: no scripts, trackers or third-party
   requests. Colours follow the app's theme tokens (apps/mobile/src/ui/theme.ts); the app's font
   Geist is self-hosted under the SIL Open Font License (static/fonts/OFL.txt). */

@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/Geist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/Geist-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f4f4fa;
  --surface: #ffffff;
  --text: #15162c;
  --muted: #5b5d7a;
  --line: #e3e3ef;
  --accent: #6a45f0;
  --accent-soft: #ede8fe;
  --glow-a: rgba(127, 65, 246, 0.26);
  --glow-b: rgba(46, 72, 233, 0.1);
  --radius: 18px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121329;
    --surface: #1b1d3a;
    --text: #f3f3fb;
    --muted: #a9abc9;
    --line: #2a2c4e;
    --accent: #b49cff;
    --accent-soft: #2a2552;
    --glow-a: rgba(116, 54, 227, 0.36);
    --glow-b: rgba(28, 62, 196, 0.14);
  }
}

h1,
h2,
h3,
strong,
.brand {
  font-weight: 600;
}

*,
*::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 var(--font);
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-header nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--text);
}

/* Landing page */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: 72px;
  padding-bottom: 56px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -40px;
  left: 50%;
  width: min(760px, 100%);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 60%, transparent);
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(40, 24, 80, 0.18);
}

.hero h1 {
  margin: 28px 0 12px;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 72px;
}

.feature {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.features-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Legal and support pages */

.page {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page h2 {
  margin: 40px 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.page h3 {
  margin: 24px 0 4px;
  font-size: 1.05rem;
}

.page p,
.page li {
  overflow-wrap: break-word;
}

.page ul,
.page ol {
  padding-left: 1.2em;
}

.page address {
  font-style: normal;
}

.meta {
  margin: 0 0 32px;
  color: var(--muted);
}

.toc {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc ol {
  margin: 0;
}

.faq h2 {
  margin-top: 32px;
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.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(--text);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .app-icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }
}
