/* Booki website — Csipke theme from the app (BookiTheme.swift). */
:root {
  --page: #F7F6F5;
  --card: #FFFFFF;
  --raised: #EFEDEC;
  --ink: #3F3336;
  --ink-soft: #7A6D70;
  --line: #E6E2E1;
  --pink: #F28DB0;
  --pink-ink: #C9577F;
  --on-ink: #F7F6F5;
  --shadow: 0 1px 2px rgba(63, 51, 54, .06), 0 12px 32px -12px rgba(63, 51, 54, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #140F11; --card: #2A1E22; --raised: #36282D; --ink: #F8E9EE;
    --ink-soft: #BFA9B1; --line: #3A2B30; --pink-ink: #F28DB0; --on-ink: #140F11;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #140F11; --card: #2A1E22; --raised: #36282D; --ink: #F8E9EE;
  --ink-soft: #BFA9B1; --line: #3A2B30; --pink-ink: #F28DB0; --on-ink: #140F11;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 16px/1.6 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Language: both languages are in the page; the toggle shows one. */
html[data-lang="hu"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="hu"]:not(html) { display: none !important; }

.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; margin: 0; line-height: 1.05; }
h1 em, h2 em, h3 em { color: var(--pink-ink); }
.hand { font-family: "Caveat", cursive; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { font-family: "Instrument Serif", Georgia, serif; font-size: 30px; text-decoration: none; line-height: 1; margin-right: auto; }
.brand em { color: var(--pink-ink); }
.nav { display: none; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
@media (min-width: 800px) { .nav { display: flex; margin-right: 12px; } }
.lang { display: inline-flex; background: var(--raised); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: var(--ink-soft); font: 600 13px "Figtree", sans-serif; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Buttons: ink pill with a lip, like the app's RaisedButtonStyle */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: var(--on-ink); border-radius: 999px;
  padding: 14px 22px; font-weight: 600; font-size: 16px;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 60%, #000);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 60%, #000); }
.btn svg { width: 20px; height: 20px; }
.btn small { display: block; font-weight: 500; font-size: 11px; opacity: .75; line-height: 1.1; }
.btn .two { line-height: 1.15; text-align: left; }

/* Hero */
.hero { padding: 32px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero { padding: 56px 0 88px; } }
.hero h1 { font-size: clamp(48px, 9vw, 92px); }
.hero p.lead { font-size: 19px; max-width: 30em; margin: 20px 0 28px; color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.facts li { background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 14px; box-shadow: var(--shadow); }
.facts b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 19px; margin-right: 3px; }

.stage { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.stage .phone { width: min(300px, 74vw); }
.stage .phone.back { position: absolute; width: min(250px, 60vw); transform: translate(54%, 34px) rotate(6deg); opacity: .98; z-index: 0; }
.stage .phone.front { position: relative; z-index: 1; transform: translateX(-12%) rotate(-3deg); }
@media (max-width: 520px) { .stage .phone.back { display: none; } .stage .phone.front { transform: none; } }
.sticker { position: absolute; z-index: 2; width: 116px; filter: drop-shadow(0 6px 10px rgba(63,51,54,.18)); }
.sticker.a { top: -6px; left: 2%; transform: rotate(-10deg); }
.sticker.b { bottom: 8px; right: 0; transform: rotate(8deg); width: 104px; }
@media (max-width: 520px) { .sticker { width: 84px; } .sticker.b { width: 78px; } }

/* Phone frame around real screenshots */
.phone {
  border-radius: 44px; padding: 9px; background: #1d1719;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, var(--shadow), 0 40px 80px -40px rgba(63,51,54,.45);
}
.phone img { border-radius: 36px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: var(--raised); }

/* Sections */
section { padding: 72px 0; }
.head { max-width: 640px; margin-bottom: 40px; }
.head h2 { font-size: clamp(38px, 6vw, 60px); margin-top: 10px; }
.head p { color: var(--ink-soft); font-size: 18px; margin: 14px 0 0; }

.feature { display: grid; gap: 32px; align-items: center; padding: 28px 0; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; padding: 40px 0; }
  .feature.flip .copy { order: 2; }
}
.feature .shot { display: flex; justify-content: center; }
.feature .shot .phone { width: min(290px, 72vw); }
.feature h3 { font-size: clamp(32px, 4.6vw, 46px); margin: 10px 0 14px; }
.feature p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.note { font-family: "Caveat", cursive; font-size: 24px; color: var(--ink-soft); margin-top: 18px; transform: rotate(-1.5deg); display: inline-block; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--raised); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 20px; height: 20px; }
.card h4 { font: 600 17px/1.3 "Figtree", sans-serif; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Themes */
.themes { display: flex; flex-wrap: wrap; gap: 10px; }
.theme { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 999px; padding: 6px 14px 6px 6px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; }
.theme i { width: 28px; height: 28px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* Privacy band */
.promise { background: var(--card); border-radius: 32px; padding: 36px 24px; box-shadow: var(--shadow); display: grid; gap: 28px; }
@media (min-width: 860px) { .promise { grid-template-columns: 1fr 1.2fr; padding: 56px; align-items: center; } }
.promise h2 { font-size: clamp(36px, 5vw, 54px); }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 12px; }
.promise li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.promise li b { display: block; font-weight: 600; }
.promise li span { color: var(--ink-soft); font-size: 15px; }

/* Stickers row */
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 24px; }
.stickers img { width: 104px; filter: drop-shadow(0 4px 8px rgba(63,51,54,.15)); transition: transform .2s ease; }
.stickers img:nth-child(odd) { transform: rotate(-5deg); }
.stickers img:nth-child(even) { transform: rotate(4deg); }
.stickers img:hover { transform: rotate(0) scale(1.06); }

/* Call to action */
.cta { text-align: center; padding: 88px 0 96px; }
.cta h2 { font-size: clamp(42px, 7vw, 76px); }
.cta p { color: var(--ink-soft); font-size: 18px; margin: 16px auto 28px; max-width: 32em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .brand { font-size: 24px; color: var(--ink); margin-right: 0; }
footer .copy { margin-left: auto; }
@media (max-width: 640px) { footer .copy { margin-left: 0; width: 100%; } }

/* Text pages (privacy, terms, support) */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 80px; }
.doc h1 { font-size: clamp(44px, 8vw, 68px); margin: 10px 0 8px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.doc .body { background: var(--card); border-radius: 26px; padding: 28px 22px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .doc .body { padding: 44px 48px; } }
.doc .body p, .doc .body li { font-size: 16px; }
.doc .body > :first-child { margin-top: 0; }
.doc .body ol, .doc .body ul { padding-left: 20px; }
.doc .body li { margin-bottom: 10px; }
.doc h2 { font-size: 32px; margin: 32px 0 10px; }
.doc a:not(.btn) { color: var(--pink-ink); text-underline-offset: 3px; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 0; padding-top: 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-soft); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--ink-soft); }
.mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.mail h2 { margin: 0; font-size: 30px; }
.mail p { margin: 4px 0 0; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
