/* meetka.eu – light and clean, the app itself is the picture (design B, design/web/b.html).
   Light by default; dark follows the system until chosen with the toggle (site.js, data-theme on <html>). */
:root {
  --bg: #ffffff;
  --alt: #f7f3f0;
  --card: #ffffff;
  --ink: #17120f;
  --muted: #5e544e;
  --line: #ebe3dd;
  --accent: #9a4521;
  --accent-ink: #ffffff;
  --accent-text: #9a4521;
  --accent-soft: #f8e8df;
  --bezel: #1d1714;
  --edge: rgb(0 0 0 / 0.05);
  --liked: #2e7d32;
  --ok: #8a6d00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121010; --alt: #1a1615; --card: #1f1a18; --ink: #f3ede9; --muted: #b1a69f; --line: #2f2826;
    --accent: #ef9f78; --accent-ink: #2a1208; --accent-text: #f2ab87; --accent-soft: #3a2419; --bezel: #050404;
    --edge: rgb(255 255 255 / 0.14); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121010; --alt: #1a1615; --card: #1f1a18; --ink: #f3ede9; --muted: #b1a69f; --line: #2f2826;
  --accent: #ef9f78; --accent-ink: #2a1208; --accent-text: #f2ab87; --accent-soft: #3a2419; --bezel: #050404;
  --edge: rgb(255 255 255 / 0.14); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
a { color: inherit; }
p { margin: 0; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent-text); letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header: logo, language, light / dark, the app */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
header .wrap { display: flex; align-items: center; gap: 10px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.spacer { flex: 1; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--alt); }
.seg button { border: 0; background: none; color: var(--muted); font: 600 12px/1 Inter, sans-serif; padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.theme { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 999px; border: 0; background: var(--alt); color: var(--ink); cursor: pointer; }
.theme svg { width: 18px; height: 18px; }
.theme[aria-pressed="false"] .sun, .theme[aria-pressed="true"] .moon { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 16px/1 Inter, sans-serif; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); cursor: default; }
.btn.ghost:hover { filter: none; }
.btn.outline { background: transparent; color: var(--accent-text); }

/* Hero with the app */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font: 600 13px/1 Inter, sans-serif; letter-spacing: 0.02em; margin-bottom: 24px; }
h1 { font: 700 clamp(2.7rem, 6.2vw, 5rem)/1.02 "Bricolage Grotesque", sans-serif; letter-spacing: -0.035em; margin: 0 0 24px; }
h1 em { font-size: 1.1em; line-height: 0.9; }
.lead { font-size: 19px; color: var(--muted); max-width: 34rem; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 32rem; }

.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 270px; border-radius: 42px; background: var(--bezel); padding: 9px; box-shadow: 0 30px 60px -20px rgb(40 20 10 / 0.35), 0 0 0 1px var(--edge); }
.phone img { display: block; width: 100%; height: auto; border-radius: 33px; }
/* The app screenshots follow the page theme. */
.phone img.d { display: none; }
:root[data-theme="dark"] .phone img.l { display: none; }
:root[data-theme="dark"] .phone img.d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone img.l { display: none; }
  :root:not([data-theme="light"]) .phone img.d { display: block; }
}
.phone.back { left: 6%; top: 40px; transform: rotate(-6deg); }
.phone.front { right: 4%; top: 0; transform: rotate(4deg); }
.glow { position: absolute; inset: 10% 2% 6% 2%; border-radius: 40px; background: var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 72px; }
.chips span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: 15px; background: var(--card); }

/* Sections */
section { padding: 104px 0; }
.alt { background: var(--alt); }
.kicker { font: 600 13px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
h2 { font: 700 clamp(2rem, 4.2vw, 3.3rem)/1.08 "Bricolage Grotesque", sans-serif; letter-spacing: -0.03em; margin: 0 0 16px; }
h3 { font: 600 19px/1.35 Inter, sans-serif; margin: 0 0 8px; }
.muted { color: var(--muted); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: center; }
.feature.flip { grid-template-columns: 300px minmax(0, 1fr); }
.feature .phone { position: relative; width: 280px; margin: 0 auto; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.steps .n { font: 700 28px/1 "Bricolage Grotesque", sans-serif; color: var(--accent-text); }

.ranking { margin-top: 32px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.ranking div { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ranking div:last-child { border-bottom: 0; }
.ranking b { font: 700 15px/1 Inter, sans-serif; color: var(--muted); width: 1.2em; }
.ranking .name { flex: 1; min-width: 0; }
.ranking small { display: block; color: var(--muted); font-size: 13px; }
.score { font: 700 15px/1 Inter, sans-serif; padding: 9px 12px; border-radius: 10px; background: var(--liked); color: #fff; }
.score.ok { background: var(--ok); }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.rule { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.rule .bar { display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 20px; }

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.langs span { padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.center { text-align: center; max-width: 46rem; margin: 0 auto; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 19px/1.35 Inter, sans-serif; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
details p { padding-bottom: 22px; color: var(--muted); }

.cta { margin: 0 auto 96px; border-radius: 32px; background: var(--accent-soft); padding: 72px 32px; text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.cta p { color: var(--muted); margin: 0 auto 32px; max-width: 30rem; }

/* Footer with the author's discreet signature */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.sig { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.sig img { width: 18px; height: 18px; opacity: 0.7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sig img { filter: invert(1); } }
:root[data-theme="dark"] .sig img { filter: invert(1); }

/* Simple pages: invitation, not found, privacy policy */
main.page { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
main.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; margin-bottom: 20px; }
main.page .lead { margin-bottom: 28px; }
main.page .note { margin-top: 20px; }
.back { margin-top: 28px; }
.back a { color: var(--accent-text); font-weight: 600; }
article h1 { margin-bottom: 24px; }
article h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; margin: 48px 0 12px; }
article p, article ul { margin: 0 0 14px; }
article li { margin-bottom: 6px; }
article a { color: var(--accent-text); }
.draft { padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--alt); font-weight: 600; }

@media (max-width: 960px) {
  .hero, .feature, .feature.flip, .faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .phone { order: 2; }
  .phones { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 220px; border-radius: 36px; padding: 8px; }
  .phone img { border-radius: 28px; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  section { padding: 80px 0; }
}
@media (max-width: 720px) {
  /* The privacy table becomes one card per row on phones (labels for its four columns). */
  .table { border: 0; border-radius: 0; overflow: visible; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr:first-child { display: none; }
  .table tr { border: 1px solid var(--line); border-radius: 16px; padding: 6px 0; margin-bottom: 10px; background: var(--card); }
  .table td { border: 0; padding: 6px 16px; }
  .table td:first-child { font-weight: 600; }
  .table td:nth-child(2)::before { content: "Kde je: "; color: var(--muted); }
  .table td:nth-child(3)::before { content: "Proč: "; color: var(--muted); }
  .table td:nth-child(4)::before { content: "Kdo ho vidí: "; color: var(--muted); }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  header .btn { display: none; }
  .hero { padding-top: 40px; }
  .actions .btn { width: 100%; }
  .phones { height: 430px; }
  .phone { width: 180px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 23px; }
  .phone.back { left: 2%; top: 34px; }
  .phone.front { right: 2%; }
  .feature .phone { width: 240px; }
  .steps li, .rule { padding: 20px; }
  .cta { border-radius: 24px; padding: 56px 20px; }
  main.page { padding: 40px 16px 72px; }
}
