/* chaika.cz — design system (shadcn-inspired, hand-built for static site) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --surface:   #f6f6f7;
  --surface-2: #efeff1;
  --text:      #15171a;
  --muted:     #6b7280;
  --line:      rgba(17, 19, 23, .08);
  --track:     #e7e7ea;
  --accent:    #2563eb;
  --accent-ring: rgba(37, 99, 235, .30);
  --primary:   #111317;
  --primary-fg:#ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 19, 23, .05);
  --shadow:    0 1px 2px rgba(17, 19, 23, .04), 0 14px 32px -12px rgba(17, 19, 23, .14);
  --radius:    14px;
  /* back-compat aliases for any inline styles */
  --border: var(--line);
  --card: var(--surface);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0a0a0b;
    --surface:   #161618;
    --surface-2: #1d1d20;
    --text:      #f4f4f5;
    --muted:     #9aa0a8;
    --line:      rgba(255, 255, 255, .08);
    --track:     #2a2a2e;
    --accent:    #6691ff;
    --accent-ring: rgba(102, 145, 255, .28);
    --primary:   #fafafa;
    --primary-fg:#0a0a0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 22px 48px -16px rgba(0, 0, 0, .7);
  }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.container { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.container--wide { max-width: 1040px; }

/* ---- Header ---- */
header {
  position: sticky; top: 0; z-index: 30;
  padding: 1rem 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; display: block; box-shadow: var(--shadow-sm); }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link, .lang-link { font-size: .875rem; color: var(--muted); transition: color .15s; }
.nav-link:hover, .lang-link:hover { color: var(--text); text-decoration: none; }

/* ---- Hero ---- */
.hero { padding: 5rem 0 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-ring); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-ring); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1.15rem;
}
.hero-sub { font-size: 1.0625rem; color: var(--muted); max-width: 480px; line-height: 1.6; }

/* ---- Form ---- */
.form-wrap { margin-top: 2.25rem; }
.hp { display: none !important; }
.field-stack { display: flex; flex-direction: column; gap: .625rem; max-width: 420px; }

.field-stack input[type="url"],
.field-stack input[type="email"] {
  width: 100%; height: 2.875rem; padding: 0 1rem;
  font-family: inherit; font-size: .9375rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field-stack input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.field-stack input::placeholder { color: var(--muted); opacity: .7; }

.btn-primary {
  height: 2.875rem; padding: 0 1.5rem;
  font-family: inherit; font-size: .9375rem; font-weight: 500;
  color: var(--primary-fg); background: var(--primary);
  border: none; border-radius: 10px; cursor: pointer; white-space: nowrap;
  align-self: flex-start;
  transition: transform .12s ease, box-shadow .18s ease, opacity .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }

.offer-note { margin-top: 1rem; font-size: .875rem; color: var(--muted); max-width: 440px; line-height: 1.55; }
.offer-note strong { color: var(--text); font-weight: 600; }

.form-note { margin-top: .75rem; font-size: .875rem; color: var(--muted); min-height: 1.4em; }
.form-note.success { color: #16a34a; }
.form-note.error   { color: #ef4444; }

/* ---- Sample report card ---- */
.scan {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem; user-select: none;
}
.scan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.scan-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.scan-url { font-size: .75rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.scan-score { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.5rem; }
.scan-score .num { font-size: 3.25rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.scan-score .max { font-size: 1rem; color: var(--muted); }
.scan-row { margin-bottom: 1rem; }
.scan-row:last-of-type { margin-bottom: 0; }
.scan-row-top { display: flex; justify-content: space-between; font-size: .8125rem; margin-bottom: .4rem; }
.scan-row-top .v { color: var(--muted); font-variant-numeric: tabular-nums; }
.scan-bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.scan-bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 1.1s cubic-bezier(.22, 1, .36, 1); }
.scan-hint { margin-top: 1.5rem; font-size: .75rem; color: var(--muted); line-height: 1.5; }

/* ---- How it works (hero steps) ---- */
.steps { display: flex; flex-direction: column; gap: 1.85rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600; color: var(--text);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.step-body h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .25rem; }
.step-body p { font-size: .9375rem; color: var(--muted); margin: 0; max-width: 360px; }

/* ---- Sections ---- */
.divider { border: 0; height: 0; margin: 0; }
section.features, section.build, section.who, section.author, section.faq { padding: 2.75rem 0; }

.features h2, .build h2, .author h2, .who h2, .faq h2 {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2rem;
}

.feature-list { display: flex; flex-direction: column; gap: 2rem; }
.feature h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: .4rem; letter-spacing: -.01em; }
.feature p { font-size: .9375rem; color: var(--muted); max-width: 520px; }
.feature .more { display: inline-block; margin-top: .6rem; font-size: .875rem; font-weight: 500; color: var(--accent); }
.feature .more:hover { text-decoration: underline; }

/* ---- Build (I make sites) ---- */
.build-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.build-card h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .7rem; }
.build-card p { font-size: .9375rem; color: var(--muted); max-width: 540px; margin-bottom: 1.4rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 2.625rem; padding: 0 1.25rem;
  font-size: .9rem; font-weight: 500; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  transition: background .15s, transform .12s;
}
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; transform: translateY(-1px); }

/* ---- Prices (soft disclosure) ---- */
.prices { margin-top: 1.5rem; }
.prices summary { list-style: none; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: .45rem; padding: .25rem 0; }
.prices summary::-webkit-details-marker { display: none; }
.prices summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.prices[open] summary::after { content: "–"; }
.price-list { list-style: none; margin: 1.25rem 0 .85rem; padding: 1.25rem; max-width: 460px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; font-size: .9375rem; }
.price-list li + li { border-top: 1px solid var(--line); }
.price-list .amount { font-weight: 600; white-space: nowrap; }
.price-note { font-size: .8125rem; color: var(--muted); max-width: 460px; line-height: 1.55; }

/* ---- Who / Author / Contact ---- */
.who p { font-size: .9375rem; color: var(--muted); max-width: 520px; }
.who p + p { margin-top: .9rem; }
.author-text { font-size: .9375rem; color: var(--text); max-width: 520px; margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.contact-list li { font-size: .9375rem; color: var(--muted); }
.contact-list a { color: var(--accent); }
.contact-list a:hover { text-decoration: underline; }

/* ---- FAQ ---- */
.faq-item { padding: .25rem 0; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.05rem 0; font-size: 1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.25rem; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a, .faq-item p { font-size: .9375rem; color: var(--muted); padding-bottom: 1.05rem; margin: 0; max-width: 560px; }

/* ---- Footer ---- */
footer { padding: 2.5rem 0; margin-top: 2rem; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-copy { font-size: .8125rem; color: var(--muted); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Blog: breadcrumbs + article ---- */
.crumbs { font-size: .8125rem; color: var(--muted); padding: 1.75rem 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

article { padding: 1.5rem 0 1rem; line-height: 1.75; }
article h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; margin: .85rem 0; }
.post-meta { font-size: .875rem; color: var(--muted); margin-bottom: 2.25rem; }
.lede { font-size: 1.1875rem; color: var(--text); margin-bottom: 1.85rem; line-height: 1.6; }
article h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; margin: 2.75rem 0 .9rem; }
article h3 { font-size: 1.1rem; font-weight: 600; margin: 1.85rem 0 .55rem; letter-spacing: -.01em; }
article p { margin-bottom: 1.15rem; }
article ol, article ul { margin: 0 0 1.15rem 1.25rem; }
article li { margin-bottom: .55rem; }
article strong { font-weight: 600; }
article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }

.tip { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1.1rem 1.35rem; margin: 1.35rem 0 1.85rem; font-size: .9375rem; color: var(--muted); }
.tip strong { color: var(--text); }

.price-table { width: 100%; border-collapse: collapse; margin: 1.35rem 0 1.85rem; font-size: .9375rem; }
.price-table th, .price-table td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-weight: 600; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.price-table .price { font-weight: 600; white-space: nowrap; }

.cta { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; margin: 2.75rem 0; }
.cta h2 { margin: 0 0 .55rem; font-size: 1.3rem; letter-spacing: -.02em; }
.cta p { color: var(--muted); margin-bottom: 1.4rem; }

.related { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }

/* ---- Blog index ---- */
.intro { padding: 4rem 0 2.25rem; }
.intro h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; margin-bottom: .85rem; }
.intro p { font-size: 1.0625rem; color: var(--muted); max-width: 520px; }
.posts { padding-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.post-card { display: block; padding: 1.6rem 1.75rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.post-card h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .45rem; }
.post-card p { font-size: .9375rem; color: var(--muted); margin-bottom: .6rem; }
.post-card .date { font-size: .8125rem; color: var(--muted); }
.back { display: inline-block; margin: 1.25rem 0 0; font-size: .9rem; color: var(--accent); }

/* ---- Motion / responsive ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-bar > span { transition: none; }
  .badge .dot { animation: none; }
  .post-card:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; }
}

@media (max-width: 860px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .scan { order: 2; }
}
@media (max-width: 540px) {
  .hero { padding: 2.75rem 0 3rem; }
  .btn-primary { width: 100%; align-self: stretch; }
  .field-stack { max-width: none; }
  footer .container { flex-direction: column; align-items: flex-start; }
  .post-card { padding: 1.35rem 1.4rem; }
}
