/* ==========================================================================
   Share My Dress – veřejný web (dle design.png / adpanel.io)
   ========================================================================== */
:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #3a3a3a;
  --muted: #6f6f6f;
  --muted-2: #9a9a9a;
  --line: #ececea;
  --line-2: #e3e3e0;
  --dark: #0a0a0a;
  --green: #17b26a;
  --amber: #f59e0b;
  --orange: #f97316;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.03), 0 18px 48px -18px rgba(0,0,0,.14);
  --shadow-soft: 0 1px 1px rgba(0,0,0,.03), 0 8px 24px -12px rgba(0,0,0,.10);
  --max: 1400px;
  --pad: clamp(20px, 5vw, 64px);
  --icon-reload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-8 8s3.57 8 8 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* Typography ------------------------------------------------------------- */
.logo { font-family: var(--font-serif); font-style: normal; font-weight: 600; font-size: 22px; letter-spacing: -.01em; --logo-ink: #17182b; color: var(--logo-ink); }
/* „my“ se jednou za 8 s odtočí pryč a na jeho místě se roztočí ikona reload */
.logo em {
  font-style: italic; font-weight: 600;
  position: relative; display: inline-block;
  opacity: .5; margin-left: 3px; margin-right: 3px;
  color: transparent;               /* text zůstává pro čtečky, kreslí ho ::before */
}
.logo em::before {
  content: "my"; position: absolute; inset: 0; color: var(--logo-ink);
  animation: logo-my 8s cubic-bezier(.4, 0, .2, 1) infinite;
}
.logo em::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: .95em; height: .95em; background: var(--logo-ink); opacity: 0;
  -webkit-mask: var(--icon-reload) center / contain no-repeat;
          mask: var(--icon-reload) center / contain no-repeat;
  animation: logo-reload 8s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes logo-my {
  0%, 66%   { opacity: 1; transform: scale(1) rotate(0deg); }
  73%, 88%  { opacity: 0; transform: scale(.35) rotate(-30deg); }
  95%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes logo-reload {
  0%, 68%   { opacity: 0; transform: rotate(-150deg) scale(.3); }
  76%       { opacity: 1; transform: rotate(0deg) scale(1); }
  86%       { opacity: 1; transform: rotate(360deg) scale(1); }
  93%, 100% { opacity: 0; transform: rotate(510deg) scale(.3); }
}
@media (prefers-reduced-motion: reduce) {
  .logo em { color: var(--logo-ink); }
  .logo em::before, .logo em::after { animation: none; }
  .logo em::before { content: none; }
  .logo em::after { display: none; }
}
.logo small { font-family: var(--font-sans); font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
h1, h2, h3, .h1, .h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.035em; margin: 0; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; max-width: 880px; }
.h1-serifless { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; text-align: center; letter-spacing: -.04em; }
.eyebrow { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; }
.eyebrow-light { color: rgba(255,255,255,.6); }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 14px auto 0; font-size: 16px; }
.fine { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px -8px rgba(0,0,0,.18); }
.btn-light:hover { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 10px 24px -8px rgba(0,0,0,.22); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn .icon { width: 18px; height: 18px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* Nav -------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246,246,244,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 30px; justify-content: center; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.nav-login { font-size: 14px; color: var(--muted); }
.nav-login:hover { color: var(--ink); }
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links, .nav-login { display: none; }
  .nav-actions { gap: 10px; }
}

/* Flash ------------------------------------------------------------------ */
.flashes { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { display: flex; align-items: flex-start; gap: 10px; background: #111; color: #fff; padding: 12px 14px; border-radius: 14px; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); animation: flash-in .3s ease both; }
.flash .icon { width: 18px; height: 18px; margin-top: 2px; }
.flash-success { background: #0f3d2a; }
.flash-error { background: #4a1414; }
.flash-info { background: #1b1b1b; }
.flash span { flex: 1; }
.flash-close { background: none; border: 0; opacity: .7; padding: 0; cursor: pointer; }
.flash-close:hover { opacity: 1; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Reveal ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Sections --------------------------------------------------------------- */
body.site section { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Hero */
.hero { text-align: center; padding-top: clamp(64px, 9vw, 128px); }
.hero-title { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 400; }
.hero-title .muted { color: #7d7d7d; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-sub { max-width: 660px; margin: 28px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.hero-visual { padding-top: clamp(64px, 9vw, 130px); }
/* Hero drží JEDNU fotku na šířku (1200×896) — proto širší prostřední sloupec
   a poměr rámu podle předlohy, aby se nekrájely postavy po stranách. */
.hero-visual-grid { display: grid; grid-template-columns: 1fr minmax(320px, 620px) 1fr; align-items: center; gap: clamp(20px, 3vw, 32px); }
.hero-figure { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1200 / 896; margin: 0; box-shadow: var(--shadow-card); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-side { font-family: var(--font-display); font-weight: 400; letter-spacing: -.045em; }
.hero-side-left { font-size: clamp(30px, 4vw, 58px); line-height: 1.02; text-align: right; }
.hero-side-right { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; color: var(--ink-2); margin: 0; letter-spacing: -.03em; }
@media (max-width: 860px) {
  .hero-visual-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-side-left { text-align: center; order: -1; }
  .hero-figure { max-width: 560px; margin: 0 auto; }
}

/* Proof */
.proof { text-align: center; padding-top: clamp(72px, 9vw, 120px); }
.proof-title { color: var(--muted); font-size: clamp(18px, 2vw, 24px); font-family: var(--font-display); letter-spacing: -.02em; margin: 0 0 34px; }
.proof-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(28px, 5vw, 70px); color: #1a1a1a; opacity: .82; }
.proof-logos li { font-size: 22px; }
.lg-1 { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 26px !important; }
.lg-2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; font-size: 15px !important; }
.lg-3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.02em; }
.lg-4 { font-family: var(--font-serif); font-style: italic; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lg-5 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 15px !important; }
.lg-6 { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.02em; font-size: 18px !important; }

/* Banner */
.banner { padding-top: clamp(80px, 10vw, 150px); }
.banner-inner {
  background: #0d0d0d center/cover no-repeat; border-radius: var(--radius); overflow: hidden; color: #fff; position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 96px); padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px);
}
.banner-inner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.6) 55%, rgba(0,0,0,.72)); }
.banner-inner > * { position: relative; }
.banner-left h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.03em; margin: 0 0 32px; max-width: 520px; }
.banner-list { list-style: none; margin: 0; padding: 0; }
.banner-list li { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 6px; }
.banner-list li:first-child { padding-top: 0; }
.banner-list li:last-child { border-bottom: 0; }
.banner-list b { font-size: 15px; }
.banner-list span { font-size: 14px; color: rgba(255,255,255,.66); line-height: 1.55; }
@media (max-width: 860px) { .banner-inner { grid-template-columns: 1fr; } }

/* Flows */
.flows { padding-top: clamp(80px, 10vw, 140px); }
.flow-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.flow-row-rev { grid-template-columns: 1fr 1.15fr; }
.flow-text h3 { font-size: 24px; letter-spacing: -.03em; margin: 0 0 16px; }
.flow-text p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.flow-text .btn { margin-top: 10px; }
.mock { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.mock-item { display: grid; grid-template-columns: 56% 44%; min-height: 380px; }
.mock-item-photo { position: relative; }
.mock-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.mock-brand { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--font-serif); font-style: normal; font-weight: 600; font-size: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.mock-caption { position: absolute; left: 20px; bottom: 18px; color: #fff; font-family: var(--font-display); font-size: 30px; line-height: .95; letter-spacing: -.04em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.mock-caption b { font-weight: 700; font-size: 44px; }
.mock-brand em, .cmp-us em { font-style: italic; }
.mock-thread { padding: 16px 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 14px; }
.mock-thread-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.verified { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: #1d9bf0; color: #fff; font-size: 10px; font-style: normal; align-items: center; justify-content: center; }
.mock-avatar { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; background: hsl(var(--h, 20) 45% 45%); flex: 0 0 auto; }
.mock-avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.mock-msg { display: flex; gap: 10px; align-items: flex-start; }
.mock-msg p { margin: 2px 0 4px; line-height: 1.4; }
.mock-msg small { color: var(--muted-2); font-size: 12px; }
.mock-msg-reply { margin-left: 30px; }
.mock-actions { font-weight: 600; color: var(--muted); }
.mock-ok { color: var(--green); }
.mock-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #f1f1ef; color: var(--ink-2); }
.chip-dark { background: var(--dark); color: #fff; }
@media (max-width: 860px) {
  .flow-row, .flow-row-rev { grid-template-columns: 1fr; }
  .flow-row-rev .flow-text { order: 2; }
  .mock-item { grid-template-columns: 1fr; }
  .mock-item-photo { aspect-ratio: 4/3; }
}

/* Pillars */
.pillars { padding-top: clamp(80px, 10vw, 140px); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.pillar img { border-radius: var(--radius); aspect-ratio: 5/5; object-fit: cover; width: 100%; box-shadow: var(--shadow-soft); }
.pillar h3 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; margin: 26px 0 10px; font-family: var(--font-sans); }
.pillar p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }
@media (max-width: 860px) { .pillars-grid { grid-template-columns: 1fr; } .pillar img { aspect-ratio: 4/3; } }

/* Pricing */
.pricing { padding-top: clamp(90px, 11vw, 160px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.plan { background: #fff; border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-card); position: relative; display: flex; flex-direction: column; }
.plan-featured { border: 1.5px solid var(--dark); }
.plan-tag { position: absolute; top: 18px; right: 18px; background: var(--dark); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-family: var(--font-sans); margin: 0 0 6px; }
.plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-price { margin: 22px 0 14px; color: var(--muted); font-size: 14px; }
.plan-price b { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--ink); letter-spacing: -.03em; margin-right: 4px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Compare */
.compare { padding-top: clamp(90px, 11vw, 150px); }
.table-wrap { margin-top: 44px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { font-weight: 500; color: var(--muted); font-size: 13px; background: #fafaf9; }
.cmp thead th.cmp-us { font-family: var(--font-serif); font-style: normal; font-weight: 600; color: #17182b; font-size: 17px; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp small { color: var(--ink-2); font-weight: 500; font-size: 12.5px; }
.cmp i.ok, .cmp i.no { display: inline-block; }
.cmp i.ok { width: 26px; height: 26px; border-radius: 50%; background: var(--dark); position: relative; }
.cmp i.ok::after { content: ""; position: absolute; left: 8px; top: 6px; width: 7px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cmp i.no { width: 14px; height: 2px; background: #d6d6d3; vertical-align: middle; }

/* Loved */
.loved { padding-top: clamp(90px, 11vw, 150px); }
.loved h2 .heart { color: #cfcfcc; font-family: var(--font-sans); font-weight: 400; }
.loved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: start; }
.tcard { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); position: relative; font-size: 14px; }
.tstamp { display: block; text-align: center; color: var(--muted-2); font-size: 12px; margin-bottom: 8px; }
.tstamp.tright { text-align: right; margin: 6px 0 0; }
.tmsg { display: flex; gap: 10px; align-items: flex-end; }
.bubble { background: #efeff2; border-radius: 18px; padding: 12px 14px; line-height: 1.45; }
.bubble-big { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.bubble-me { background: #1e90ff; color: #fff; margin-left: 15%; }
.react { display: inline-block; margin: -8px 0 0 44px; background: #fff; border-radius: 999px; padding: 2px 6px; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.tinput { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 14px; color: var(--muted-2); font-size: 13px; }
.tcard-comment { display: flex; gap: 12px; align-items: flex-start; }
.tcard-comment .tstamp { text-align: left; margin: 6px 0 0; display: inline; }
.tlike { margin-left: auto; color: var(--muted-2); }
@media (max-width: 860px) { .loved-grid { grid-template-columns: 1fr; } }

/* How */
.how { padding-top: clamp(90px, 11vw, 150px); }
.step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); max-width: 640px; margin: 44px auto 0; padding: 44px 32px 34px; text-align: center; position: relative; }
.step + .step { margin-top: 52px; }
.step-icon { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; border: 4px solid var(--bg); }
.step-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 8px; }
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; font-family: var(--font-sans); margin: 0 0 10px; }
.step > p:not(.step-kicker) { color: var(--ink-2); font-size: 14.5px; max-width: 460px; margin: 0 auto 26px; }
.mock-plans { display: grid; gap: 8px; text-align: left; }
.mock-plan { display: grid; grid-template-columns: 34px 1fr auto 20px; align-items: center; gap: 12px; background: #f3f3f1; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.mock-plan small { color: var(--muted); font-weight: 400; }
.mock-plan-ico { width: 34px; height: 34px; background: #fff; border-radius: 10px; display: grid; place-items: center; }
.mock-plan-ico .icon { width: 16px; height: 16px; }
.mock-plan.is-selected { background: var(--dark); color: #fff; }
.mock-plan.is-selected small { color: rgba(255,255,255,.6); }
.mock-plan.is-selected .mock-plan-ico { background: rgba(255,255,255,.12); }
.mock-check { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #d3d3d0; display: inline-block; }
.mock-check.is-on { background: #fff; border-color: #fff; position: relative; }
.mock-check.is-on::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mock-checklist { background: #f3f3f1; border-radius: 16px; padding: 16px; text-align: left; }
.mock-checklist-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.mock-checklist-head span { color: var(--muted); }
.mock-progress { height: 5px; border-radius: 999px; background: #e3e3e0; overflow: hidden; margin-bottom: 12px; }
.mock-progress span { display: block; height: 100%; background: var(--dark); }
.mock-task { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 8px; border: 1px solid transparent; }
.mock-task small { color: var(--muted); }
.mock-task i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d3d3d0; display: inline-block; position: relative; }
.mock-task.is-done { border-color: #c7eedb; }
.mock-task.is-done small { color: var(--green); font-weight: 600; }
.mock-task.is-done i { background: var(--green); border-color: var(--green); }
.mock-task.is-done i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mock-table { background: #f3f3f1; border-radius: 16px; padding: 12px; text-align: left; }
.mock-table-head { display: grid; grid-template-columns: 1fr 60px 90px; gap: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 6px 14px 10px; font-family: var(--font-mono); }
.mock-row { display: grid; grid-template-columns: 1fr 60px 90px; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 14px; margin-top: 8px; }
.mock-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.st { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; width: max-content; }
.st-wait { background: #fff4e0; color: #c47a00; }
.st-out { background: #ffe9d6; color: #d0541a; }
.st-ok { background: #e2f7ec; color: #0f8a4f; }
.mock-btns { display: flex; gap: 6px; justify-content: flex-end; }
.mbtn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; color: #b5b5b2; }
.mbtn .icon { width: 14px; height: 14px; }
.mbtn-green { background: var(--green); border-color: var(--green); color: #fff; }
.mbtn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.how .center { margin-top: 44px; }

/* Expect */
.expect { padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(80px, 10vw, 120px); }
.expect-list { list-style: none; margin: 36px auto 0; padding: 0; max-width: 580px; display: grid; gap: 12px; }
.expect-list li { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-soft); display: flex; gap: 12px; align-items: center; font-size: 15px; }
.expect-list i { width: 22px; height: 22px; border-radius: 50%; background: var(--dark); position: relative; flex: 0 0 auto; }
.expect-list i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.expect .center { margin-top: 40px; }

/* Footer */
.footer { border-top: 1px solid var(--line); text-align: center; padding: 48px var(--pad) 40px; }
.footer .logo { font-size: 22px; }
.footer-tag { color: var(--muted); font-size: 14px; margin: 10px auto 22px; max-width: 460px; }
.footer-addr { color: var(--muted); font-size: 14px; margin: 0 0 18px; line-height: 1.6; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 30px; }
.footer-social a { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.footer-links { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* Static pages / auth ---------------------------------------------------- */
.page { max-width: 760px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 80px; }
.page h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; margin-bottom: 20px; }
.page .lead { font-size: 19px; color: var(--ink-2); line-height: 1.55; margin: 0 0 40px; font-family: var(--font-display); letter-spacing: -.01em; }
.page h2 { font-size: 24px; letter-spacing: -.03em; margin: 40px 0 12px; }
.page h3 { font-size: 18px; font-weight: 500; margin: 26px 0 8px; font-family: var(--font-sans); letter-spacing: -.01em; }
.page p, .page li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.page ul, .page ol { padding-left: 22px; }
.page .card { background: #fff; border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-soft); margin: 20px 0; }
.page .cta { margin-top: 48px; display: flex; gap: 12px; flex-wrap: wrap; }
.page table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }
.page th, .page td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.page th { font-weight: 600; background: #fafaf9; }
.faq details { background: #fff; border-radius: 16px; padding: 4px 22px; box-shadow: var(--shadow-soft); margin: 10px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.steps-grid .card { margin: 0; }
.steps-grid .n { font-family: var(--font-display); font-size: 40px; letter-spacing: -.04em; color: #cfcfcc; line-height: 1; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }

.auth { max-width: 460px; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 80px; }
.auth-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 36px 32px; }
.auth h1 { font-size: 32px; letter-spacing: -.035em; margin-bottom: 6px; }
.auth .lead { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.auth-alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.invite-card { text-align: center; }
.invite-card .big-avatar { width: 72px; height: 72px; font-size: 24px; margin: 0 auto 14px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 20px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #000; flex: 0 0 auto; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: hsl(var(--h, 20) 40% 42%); color: #fff; font-weight: 600; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 22px; height: 22px; font-size: 9px; }
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 15px; }
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.avatar-xl { width: 96px; height: 96px; font-size: 32px; }

.error-page { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 20px; padding: 40px; }
.error-page h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; }
.error-page h1 span { display: block; font-size: 15px; letter-spacing: .1em; color: var(--muted-2); font-family: var(--font-mono); margin-bottom: 10px; }
.error-page p { display: flex; gap: 10px; justify-content: center; }

/* ==========================================================================
   Mobilní menu veřejného webu – fullscreen overlay
   ========================================================================== */
.nav-burger { position: relative; width: 42px; height: 42px; display: none; place-items: center; background: none; border: 0; padding: 0; border-radius: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 92; }
.nav-burger span { position: absolute; left: 11px; width: 20px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .38s cubic-bezier(.34,1.36,.44,1), opacity .2s ease, width .3s ease; }
.nav-burger span:nth-child(1) { transform: translateY(-6px); }
.nav-burger span:nth-child(2) { width: 14px; }
.nav-burger span:nth-child(3) { transform: translateY(6px); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 20px; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
.nav-burger:active { transform: scale(.92); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex !important; flex-direction: column;
  padding: calc(76px + env(safe-area-inset-top)) 26px calc(30px + env(safe-area-inset-bottom));
  background: var(--bg);
  clip-path: circle(0px at calc(100% - 40px) 40px);
  transition: clip-path .55s cubic-bezier(.7,0,.3,1), visibility .55s;
  visibility: hidden; overflow-y: auto;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu > a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -.035em; line-height: 1.15;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.3,1), color .2s;
  transition-delay: calc(var(--i, 0) * 45ms + 120ms);
}
.mobile-menu.is-open > a { opacity: 1; transform: none; }
.mobile-menu > a::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--muted-2); border-top: 1.6px solid var(--muted-2); transform: rotate(45deg); flex: 0 0 auto; transition: transform .25s, border-color .2s; }
.mobile-menu > a:active { color: var(--accent); }
.mobile-menu > a:active::after { border-color: var(--accent); transform: rotate(45deg) translate(2px, -2px); }
.mobile-menu .mm-cta { margin-top: auto; padding-top: 26px; border: 0; display: grid; gap: 10px; opacity: 0; transform: translateY(16px); transition: opacity .4s ease .34s, transform .5s cubic-bezier(.2,.8,.3,1) .34s; }
.mobile-menu.is-open .mm-cta { opacity: 1; transform: none; }
.mobile-menu .mm-cta .btn { height: 52px; font-size: 15px; }
.mobile-menu .mm-foot { border: 0; padding: 18px 2px 0; font-family: var(--font-sans); font-size: 13px; color: var(--muted); letter-spacing: 0; }
.mobile-menu .mm-foot::after { display: none; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { z-index: 95; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 860px) {
  .nav-burger { display: grid; }
  .nav-actions .btn { display: none; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu > a, .nav-burger span { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Mobilní homepage – nejdřív vizuál, pod ním claim
   ========================================================================== */
@media (max-width: 860px) {
  body.is-home main { display: grid; grid-template-columns: 100%; }
  body.is-home main > * { min-width: 0; width: 100%; margin-left: 0; margin-right: 0; }
  body.is-home .hero-visual { order: -1; padding-top: 18px; }
  body.is-home .hero { padding-top: 30px; }
  body.is-home .hero-title { font-size: clamp(34px, 9vw, 46px); }
  body.is-home .hero-cta { margin-top: 26px; }
  body.is-home .hero-cta .btn { flex: 1 1 auto; min-width: 150px; height: 50px; }
  body.is-home .hero-sub { margin-top: 20px; font-size: 15.5px; }
  /* na mobilu jen samotný vizuál – boční claimy a social proof pryč */
  .hero-side-left, .hero-side-right, .proof { display: none; }
  .hero-visual-grid { gap: 0; }
  .hero-figure { max-width: none; width: 100%; aspect-ratio: 1200 / 896; border-radius: 20px; }
}

/* Login ikona v mobilní hlavičce ---------------------------------------- */
.nav-login-icon { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; color: var(--ink); background: rgba(255,255,255,.7); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 16px -10px rgba(0,0,0,.3); transition: transform .2s, background .2s; }
.nav-login-icon .icon { width: 20px; height: 20px; }
.nav-login-icon .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.nav-login-icon:active { transform: scale(.92); }
@media (max-width: 860px) {
  .nav-login-icon { display: grid; }
  .nav-actions { gap: 6px; }
}
body.menu-open .nav-login-icon { opacity: 0; pointer-events: none; transition: opacity .2s; }

@media (min-width: 861px) { body.site section.hero { display: block; margin-top: 100px; } }

/* Široká tabulka se scrolluje sama, netlačí stránku do šířky */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-hint { display: none; }

/* Mobilní typografie – nadpisy potřebují víc vzduchu mezi řádky --------- */
@media (max-width: 860px) {
  .hero-title { line-height: 1.16; letter-spacing: -.035em; }
  .hero-title span + span { display: inline-block; margin-top: 2px; }
  .h1-serifless { line-height: 1.14; }
  .h2 { line-height: 1.2; }
  .banner-left h2 { line-height: 1.22; }
  .plan h3, .loved-card h3 { line-height: 1.25; }
  .section-sub { margin-top: 12px; }
  .table-hint { display: block; margin: 26px 0 -12px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
}
