/* Tikadu website. System fonts only, no third-party resources. */

:root {
  --accent: #4f5bd5;
  --accent-2: #7c86f0;
  --deep: #3b46b8;
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1c1c1f;
  --muted: #5e5e66;
  --line: rgba(28, 28, 31, 0.09);
  --brand: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 22px;
  --shadow: 0 18px 50px rgba(79, 91, 213, 0.16);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #1c1d21;
    --text: #f3f3f5;
    --muted: #a3a4ac;
    --line: rgba(243, 243, 245, 0.1);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: #9aa3f5; } }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background: var(--brand);
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.app-icon { width: 128px; height: 128px; border-radius: 22.5%; box-shadow: var(--shadow); }
h1 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 28px 0 16px;
}
.gradient-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  box-shadow: var(--shadow);
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button[aria-disabled="true"] { cursor: default; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Screens */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 28px;
  margin: 0 auto;
  max-width: 1280px;
}
.screens img { width: 100%; height: auto; border-radius: 26px; scroll-snap-align: center; box-shadow: var(--shadow); }

/* Features */
section { padding: 56px 0; }
h2 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
  text-align: center;
}
.section-lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
}

.privacy-band {
  background: var(--brand);
  color: #fff;
  border-radius: 28px;
  padding: 44px 28px;
  text-align: center;
}
.privacy-band h2 { color: #fff; }
.privacy-band p { max-width: 640px; margin: 0 auto; opacity: 0.92; }

/* Documents */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 6vw, 48px); margin-top: 0; }
.doc h2 { text-align: left; font-size: 24px; margin-top: 36px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.placeholder {
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--muted);
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

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

@media (max-width: 600px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-small { display: none; }
  .hero { padding-top: 48px; }
  .app-icon { width: 104px; height: 104px; }
  section { padding: 40px 0; }
}

/* Tables in the legal documents; scroll sideways on narrow screens. */
.doc h3 { font-size: 19px; margin-top: 28px; }
.doc li { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--surface); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Device pairing page (/p/<token>). */
.steps { max-width: 560px; margin: 32px auto 0; text-align: left; }
.steps li { margin-bottom: 12px; }
