/* Katrusik Drive — the app's calm lilac look on the web. Colors mirror ios/Katrusik/DesignSystem/Theme.swift. */

:root {
  --background: #F5F1FC;
  --surface: #FFFFFF;
  --lilac-soft: #ECE5FB;
  --accent: #7556D4;
  --ink: #231C31;
  --muted: #6E6584;
  --coral: #F07F7F;
  --shadow: rgba(74, 46, 153, 0.12);
  --gradient: linear-gradient(135deg, #9878E6, #6748C8);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #14111B;
    --surface: #211B2D;
    --lilac-soft: #30284A;
    --accent: #B79FF6;
    --ink: #F2EEFA;
    --muted: #A69EBB;
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--background);
  /* The app's gentle glow at the top of every screen. */
  background-image: radial-gradient(ellipse 900px 520px at 50% -120px, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; display: block; }

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

/* Header */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px var(--shadow); }
.brand .k { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: var(--lilac-soft); }

.langs { display: inline-flex; background: var(--lilac-soft); border-radius: 999px; padding: 3px; margin-left: 6px; }
.langs a { padding: 4px 11px; font-size: 13px; color: var(--muted); }
.langs a:hover { background: transparent; }
.langs a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px var(--shadow); }

main { flex: 1; }

/* Landing: hero */

.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.eyebrow { display: inline-block; font-weight: 800; font-size: 14px; color: var(--accent); background: var(--lilac-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }

h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; margin: 0 0 18px; font-weight: 900; letter-spacing: -0.02em; }
h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }

.cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.button { display: inline-flex; align-items: center; gap: 10px; background: var(--gradient); color: #fff; font-weight: 800; font-size: 17px; padding: 15px 26px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 24px rgba(103, 72, 200, 0.35); }
.button[aria-disabled="true"] { cursor: default; }
.button svg { width: 20px; height: 20px; fill: currentColor; }

.cta-note { color: var(--muted); font-size: 15px; }

/* Landing: the voice demo card */

.phone {
  background: var(--surface);
  border-radius: 36px;
  padding: 26px 22px;
  box-shadow: 0 24px 60px var(--shadow);
  max-width: 380px;
  justify-self: center;
  width: 100%;
}

.maneuver { display: flex; align-items: center; gap: 14px; background: var(--gradient); color: #fff; border-radius: 20px; padding: 16px 18px; margin-bottom: 20px; }
.maneuver svg { width: 38px; height: 38px; flex: none; }
.maneuver b { display: block; font-size: 22px; line-height: 1.2; }
.maneuver span { opacity: 0.85; font-size: 15px; }

.bubble { position: relative; background: var(--lilac-soft); border-radius: 20px 20px 20px 6px; padding: 12px 16px; margin: 0 26px 10px 0; font-weight: 600; }
.bubble.tail { background: transparent; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.bubble small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

.wave { display: flex; align-items: center; gap: 4px; height: 26px; margin: 16px 0 4px 4px; }
.wave i { width: 4px; border-radius: 4px; background: var(--accent); opacity: 0.75; animation: wave 1.6s ease-in-out infinite; }
.wave i:nth-child(1) { height: 8px; }
.wave i:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.wave i:nth-child(3) { height: 26px; animation-delay: 0.3s; }
.wave i:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.wave i:nth-child(5) { height: 20px; animation-delay: 0.6s; }
.wave i:nth-child(6) { height: 10px; animation-delay: 0.75s; }
@keyframes wave { 50% { transform: scaleY(0.45); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }

/* Landing: sections */

.section { padding: 40px 0; }
.section h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 10px; font-weight: 900; letter-spacing: -0.01em; }
.section .sub { color: var(--muted); font-size: 18px; margin: 0 0 30px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 16px var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 20px; line-height: 1.25; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.card q { display: block; margin-top: 12px; color: var(--accent); font-weight: 700; quotes: "“" "”"; }
:lang(ru) .card q, :lang(uk) .card q { quotes: "«" "»"; }

.badge { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--lilac-soft); display: grid; place-items: center; }
.badge svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience .card { display: flex; gap: 14px; align-items: flex-start; }
.audience .card h3 { margin-top: 0; }

.closing { text-align: center; padding: 56px 0 64px; }
.closing h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; font-weight: 900; margin: 0 0 12px; }
.closing p { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 32em; }

/* Documents: privacy, terms, support */

.doc { padding: 24px 0 56px; }
.doc .wrap { max-width: 820px; }
.doc article { background: var(--surface); border-radius: 28px; padding: 40px 44px; box-shadow: 0 10px 30px var(--shadow); }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 6px; }
.doc .meta { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; font-weight: 800; line-height: 1.3; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; font-weight: 800; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

.summary { background: var(--lilac-soft); border-radius: 18px; padding: 18px 22px; margin: 0 0 8px; }
.summary p { margin: 6px 0; color: var(--ink); }

.callout { border-left: 4px solid var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent); border-radius: 0 16px 16px 0; padding: 14px 20px; margin: 18px 0; }
.callout p { margin: 6px 0; color: var(--ink); }

.faq details { border-bottom: 1px solid var(--lilac-soft); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; }

.path { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Footer */

.site-footer { padding: 28px 0 36px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); padding-top: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--accent); }
.site-footer .copy { margin-left: auto; }

/* Phone width */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid, .audience { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  /* Brand and languages share the first row, the page links take the second. */
  .nav { display: contents; }
  .brand { order: 1; }
  .langs { order: 2; margin-left: auto; }
  .site-header .wrap::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .nav > a { order: 4; }
  .nav > a:first-child { margin-left: -12px; }
  .site-header .wrap { row-gap: 8px; }
  .path { white-space: normal; }
  .hero { padding: 24px 0 36px; }
  .lead { font-size: 18px; }
  .grid, .audience { grid-template-columns: 1fr; }
  .doc article { padding: 26px 20px; border-radius: 22px; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}
