/*
Theme Name: TurnirPro
Theme URI: https://turnirpro.com
Author: TurnirPro
Author URI: https://turnirpro.com
Description: Samostalna WordPress tema za TurnirPro — aplikaciju za sportske turnire, lige i utakmice. Landing stranica (hero, funkcionalnosti, cijene, FAQ), kontakt forma, uslovi korištenja i blog. Sve stranice i podešavanja se kreiraju automatski pri aktivaciji teme. Bez build koraka — instaliraj i radi.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: turnirpro
*/

/* ==========================================================================
   Design tokens (portovano iz Lovable dizajna — coral on cream)
   ========================================================================== */
:root {
  --radius: 0.75rem;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --primary: oklch(0.66 0.22 12);
  --primary-foreground: oklch(1 0 0);
  --primary-light: oklch(0.95 0.04 12);
  --primary-glow: oklch(0.74 0.19 18);

  --background: oklch(0.985 0.012 75);
  --foreground: oklch(0.22 0.04 250);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.04 250);

  --secondary: oklch(0.96 0.012 75);
  --secondary-foreground: oklch(0.22 0.04 250);

  --muted: oklch(0.95 0.012 75);
  --muted-foreground: oklch(0.5 0.03 250);

  --accent: oklch(0.95 0.04 12);
  --accent-foreground: oklch(0.22 0.04 250);

  --destructive: oklch(0.58 0.24 27);
  --destructive-foreground: oklch(1 0 0);

  --border: oklch(0.9 0.012 75);
  --input: oklch(0.9 0.012 75);
  --ring: oklch(0.66 0.22 12);

  --surface: oklch(0.97 0.014 75);
  --surface-foreground: oklch(0.35 0.04 250);

  --shadow-card: 0 1px 3px 0 oklch(0 0 0 / 0.06), 0 1px 2px -1px oklch(0 0 0 / 0.06);
  --shadow-card-hover: 0 10px 40px -10px oklch(0 0 0 / 0.1), 0 4px 12px -2px oklch(0 0 0 / 0.05);

  --maxw: 80rem;      /* max-w-7xl */
  --maxw-3xl: 48rem;
  --maxw-4xl: 56rem;
  --maxw-5xl: 64rem;
  --maxw-6xl: 72rem;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container-3xl { max-width: var(--maxw-3xl); }
.container-4xl { max-width: var(--maxw-4xl); }
.container-5xl { max-width: var(--maxw-5xl); }
.container-6xl { max-width: var(--maxw-6xl); }

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

.eyebrow {
  display: inline-block;
  border-radius: 9999px;
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head { text-align: center; max-width: 36rem; margin: 0 auto 3.5rem; }
.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--foreground);
}
.section-head p { margin-top: 1rem; color: var(--muted-foreground); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.btn-outline { border-color: var(--border); background: var(--background); color: var(--foreground); }
.btn-outline:hover { background: var(--accent); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-dark { background: var(--foreground); color: var(--background); }
.btn-dark:hover { opacity: 0.9; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-badge {
  display: inline-flex; height: 2.25rem; width: 2.25rem;
  align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: var(--primary); color: var(--primary-foreground);
}
.brand-badge svg { width: 18px; height: 18px; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--foreground); }
.brand-logo { height: 2.25rem; width: auto; }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: color .2s; }
.nav-desktop a:hover { color: var(--foreground); }

.header-actions { display: none; align-items: center; gap: 1rem; }
.header-actions .login { font-size: 0.875rem; font-weight: 500; color: var(--foreground); transition: color .2s; }
.header-actions .login:hover { color: var(--primary); }

.nav-toggle { display: inline-flex; padding: 0.5rem; color: var(--foreground); background: none; border: none; }
.nav-toggle svg { width: 24px; height: 24px; }

.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--background); padding: 0 1.25rem 1.25rem; }
.nav-mobile.open { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; }
.nav-mobile a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); padding: 0.5rem 0; }
.nav-mobile .btn { margin-top: 0.5rem; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 7rem 0 4rem; position: relative; overflow: hidden; }
.hero-wash {
  pointer-events: none; position: absolute; inset-inline: 0; top: 0; height: 420px;
  background: radial-gradient(60% 60% at 80% 0%, color-mix(in oklab, var(--primary) 14%, transparent) 0%, transparent 70%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; background: var(--primary-light);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; color: var(--primary);
  margin-bottom: 1.5rem;
}
.badge-pill svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800; line-height: 1.05; color: var(--foreground);
}
.hero h1 .accent { color: var(--primary); }
.hero-lead { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.6; max-width: 32rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-checks { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.hero-checks span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero-checks svg { width: 16px; height: 16px; color: var(--primary); }

@media (min-width: 768px) {
  .hero { padding: 9rem 0 6rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

/* Live match card */
.match-wrap { position: relative; }
.top-scorer {
  position: absolute; top: -1rem; right: 1rem; z-index: 10;
  display: none; align-items: center; gap: 0.75rem;
  border-radius: 1rem; background: var(--card); padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card-hover); border: 1px solid var(--border);
}
.top-scorer .ic { display: inline-flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: 0.75rem; background: var(--primary); color: var(--primary-foreground); }
.top-scorer .ic svg { width: 16px; height: 16px; }
.top-scorer .lbl { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.top-scorer .val { font-size: 0.875rem; font-weight: 700; color: var(--foreground); }
@media (min-width: 640px) { .top-scorer { display: flex; } }

.match-card { border-radius: 1.5rem; background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card-hover); border: 1px solid var(--border); }
@media (min-width: 768px) { .match-card { padding: 1.75rem; } }
.match-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.live-pill { display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 9999px; background: var(--primary-light); padding: 0.25rem 0.75rem; font-size: 0.6875rem; font-weight: 700; color: var(--primary); }
.dot { height: 0.375rem; width: 0.375rem; border-radius: 9999px; background: var(--primary); }
.pulse { animation: tp-pulse 1.6s ease-in-out infinite; }
@keyframes tp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.match-min { font-size: 0.75rem; color: var(--muted-foreground); }

.match-teams { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 0.75rem; }
.team { text-align: center; }
.team .crest { margin: 0 auto; height: 3.5rem; width: 3.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; }
.team .crest.home { background: var(--primary-light); }
.team .crest.home svg { color: var(--primary); }
.team .crest.away { background: color-mix(in oklab, var(--foreground) 5%, transparent); }
.team .crest.away svg { color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.team .crest svg { width: 22px; height: 22px; }
.team .name { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--foreground); }
.score { text-align: center; }
.score .n { font-size: 2.25rem; font-weight: 800; color: var(--foreground); font-variant-numeric: tabular-nums; }
.score .g { margin-top: 0.25rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }

.events { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.event { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.event .m { display: inline-flex; height: 1.5rem; min-width: 2.25rem; align-items: center; justify-content: center; border-radius: 0.375rem; padding: 0 0.375rem; font-size: 0.6875rem; font-weight: 700; font-variant-numeric: tabular-nums; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.event.muted .m { background: var(--muted); color: var(--muted-foreground); }
.event .t { color: var(--foreground); }

.mini-table { margin-top: 1.5rem; border-radius: 1rem; background: var(--surface); padding: 1rem; }
.mini-table .h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.mini-table .h .title { font-size: 0.875rem; font-weight: 700; color: var(--foreground); }
.mini-table table { font-size: 0.875rem; }
.mini-table thead th { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); font-weight: 600; padding-bottom: 0.25rem; text-align: left; }
.mini-table thead th.r, .mini-table td.r { text-align: right; }
.mini-table tbody tr { border-top: 1px solid var(--border); }
.mini-table tbody td { padding: 0.375rem 0; }
.mini-table td.pos { color: var(--primary); font-weight: 700; }
.mini-table td.team { color: var(--foreground); }
.mini-table td.pts { text-align: right; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; }
.live-tag { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 10%, transparent); padding: 0.125rem 0.5rem; font-size: 0.625rem; font-weight: 700; color: var(--primary); }

/* ==========================================================================
   Stats / logos strip
   ========================================================================== */
.logos-strip { padding: 3.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--background); }
.logos-strip p { text-align: center; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.logos { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; }
.logos span { font-size: 0.875rem; font-weight: 700; color: color-mix(in oklab, var(--foreground) 60%, transparent); transition: color .2s; }
.logos span:hover { color: var(--foreground); }
@media (min-width: 768px) { .logos span { font-size: 1rem; } }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--card); border-radius: 1.5rem; padding: 1.75rem; border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: box-shadow .3s; }
.step-card:hover { box-shadow: var(--shadow-card-hover); }
.step-card .num { font-size: 3rem; font-weight: 800; color: color-mix(in oklab, var(--primary) 15%, transparent); line-height: 1; }
.step-card h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; color: var(--foreground); }
.step-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ==========================================================================
   Features
   ========================================================================== */
.bg-surface { background: var(--surface); }
.features-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { background: var(--card); border-radius: 1rem; padding: 1.5rem; border: 1px solid var(--border); transition: border-color .3s, box-shadow .3s; }
.feature-card:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); box-shadow: var(--shadow-card-hover); }
.feature-ic { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-ic svg { width: 20px; height: 20px; color: var(--primary); }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--foreground); }
.feature-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ==========================================================================
   Live locations (dark section)
   ========================================================================== */
.dark-section { padding: 5rem 0; position: relative; overflow: hidden; background: var(--foreground); color: var(--background); }
.dark-section .glow {
  pointer-events: none; position: absolute; inset: 0; opacity: 0.4;
  background:
    radial-gradient(60% 60% at 80% 0%, color-mix(in oklab, var(--primary) 50%, transparent) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in oklab, var(--primary) 35%, transparent) 0%, transparent 60%);
}
.dark-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .dark-grid { grid-template-columns: 1fr 1fr; } }
.eyebrow-dark { display: inline-block; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 20%, transparent); padding: 0.25rem 0.75rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.dark-section h2 { margin-top: 1rem; font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; }
.dark-section h2 .accent { color: var(--primary); }
.dark-lead { margin-top: 1rem; color: color-mix(in oklab, var(--background) 70%, transparent); line-height: 1.6; }
.points { margin-top: 2rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .points { grid-template-columns: repeat(2, 1fr); } }
.point .ic { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: color-mix(in oklab, var(--primary) 20%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.point .ic svg { width: 18px; height: 18px; color: var(--primary); }
.point h3 { font-size: 1rem; font-weight: 700; }
.point p { margin-top: 0.375rem; font-size: 0.875rem; color: color-mix(in oklab, var(--background) 70%, transparent); line-height: 1.6; }

.live-panel { background: color-mix(in oklab, var(--background) 5%, transparent); backdrop-filter: blur(4px); border-radius: 1.5rem; padding: 1.5rem; border: 1px solid color-mix(in oklab, var(--background) 10%, transparent); }
.live-panel .h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.live-panel .h h3 { font-size: 1.125rem; font-weight: 700; }
.live-panel .count { display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 20%, transparent); padding: 0.25rem 0.75rem; font-size: 0.6875rem; font-weight: 700; color: var(--primary); }
.live-list { display: flex; flex-direction: column; gap: 0.75rem; }
.live-row { border-radius: 1rem; background: color-mix(in oklab, var(--background) 5%, transparent); border: 1px solid color-mix(in oklab, var(--background) 10%, transparent); padding: 1rem; display: flex; align-items: center; justify-content: space-between; }
.live-row .city { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in oklab, var(--background) 60%, transparent); display: inline-flex; align-items: center; gap: 0.25rem; }
.live-row .city svg { width: 11px; height: 11px; }
.live-row .teams { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 700; }
.live-row .teams .vs { color: color-mix(in oklab, var(--background) 50%, transparent); font-weight: 400; }
.live-row .rs { text-align: right; }
.live-row .rs .s { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-row .rs .m { font-size: 0.6875rem; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.billing-switch { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.billing-switch .group { display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid var(--border); background: var(--card); padding: 0.25rem; box-shadow: var(--shadow-card); }
.billing-switch button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); background: none; border: none; transition: background-color .2s, color .2s; }
.billing-switch button:hover { color: var(--foreground); }
.billing-switch button.active { background: var(--foreground); color: var(--background); }
.billing-switch .save { border-radius: 9999px; padding: 0.125rem 0.5rem; font-size: 0.625rem; font-weight: 700; background: var(--primary-light); color: var(--primary); }
.billing-switch button.active .save { background: var(--primary); color: var(--primary-foreground); }

.plans { display: grid; gap: 1.5rem; max-width: var(--maxw-4xl); margin: 0 auto; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { position: relative; border-radius: 1.5rem; padding: 2rem; border: 2px solid var(--border); background: var(--card); transition: box-shadow .3s; }
.plan:hover { box-shadow: var(--shadow-card-hover); }
.plan.popular { background: var(--foreground); color: var(--background); border-color: var(--foreground); box-shadow: var(--shadow-card-hover); }
.plan .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.plan .tag { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.plan.popular .tag { color: var(--primary); }
.plan .pop-badge { border-radius: 9999px; background: var(--primary); padding: 0.25rem 0.75rem; font-size: 0.6875rem; font-weight: 700; color: var(--primary-foreground); }
.plan h3 { font-size: 1.5rem; font-weight: 800; color: var(--foreground); }
.plan.popular h3 { color: var(--background); }
.plan .desc { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.plan.popular .desc { color: color-mix(in oklab, var(--background) 70%, transparent); }
.plan .price-row { margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.plan .old { font-size: 1.125rem; text-decoration: line-through; color: var(--muted-foreground); }
.plan.popular .old { color: color-mix(in oklab, var(--background) 50%, transparent); }
.plan .now { font-size: 2.25rem; font-weight: 800; color: var(--foreground); }
.plan.popular .now { color: var(--background); }
.plan .per { font-size: 0.875rem; color: var(--muted-foreground); }
.plan.popular .per { color: color-mix(in oklab, var(--background) 70%, transparent); }
.plan .yearly-note { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
.plan.popular .yearly-note { color: color-mix(in oklab, var(--background) 60%, transparent); }
.plan .plan-cta { margin-top: 1.5rem; width: 100%; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; transition: background-color .2s, opacity .2s; background: var(--foreground); color: var(--background); }
.plan .plan-cta:hover { opacity: 0.9; }
.plan.popular .plan-cta { background: var(--primary); color: var(--primary-foreground); }
.plan.popular .plan-cta:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); opacity: 1; }
.plan ul { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.plan li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--foreground); }
.plan.popular li { color: var(--background); }
.plan li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.pricing-note { margin-top: 2.5rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }
.pricing-note a { color: var(--primary); font-weight: 600; }
.pricing-note a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--card); border-radius: 0.75rem; border: 1px solid var(--border); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; text-align: left; background: none; border: none; }
.faq-q span { font-size: 0.875rem; font-weight: 600; color: var(--foreground); padding-right: 1rem; }
.faq-q svg { width: 20px; height: 20px; color: var(--muted-foreground); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .inner { padding: 0 1.5rem 1rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.faq .section-head { margin-bottom: 3.5rem; }
.faq .section-head .eyebrow-text { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.faq .section-head h2 { margin-top: 0.75rem; font-size: clamp(1.875rem, 4vw, 2.25rem); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-box { border-radius: 1.5rem; background: var(--foreground); color: var(--background); padding: 2.5rem; text-align: center; position: relative; overflow: hidden; }
@media (min-width: 768px) { .cta-box { padding: 3.5rem; } }
.cta-box .glow { pointer-events: none; position: absolute; inset: 0; opacity: 0.3; background: radial-gradient(50% 80% at 50% 0%, color-mix(in oklab, var(--primary) 60%, transparent) 0%, transparent 70%); }
.cta-box .inner { position: relative; }
.cta-box h2 { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 800; }
.cta-box p { margin-top: 1rem; color: color-mix(in oklab, var(--background) 70%, transparent); max-width: 32rem; margin-left: auto; margin-right: auto; }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn-outline-dark { border: 2px solid color-mix(in oklab, var(--background) 30%, transparent); color: var(--background); background: transparent; }
.btn-outline-dark:hover { background: color-mix(in oklab, var(--background) 10%, transparent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .top { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .site-footer .top { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-brand p { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.site-footer h4 { font-size: 0.875rem; font-weight: 700; color: var(--foreground); }
.site-footer ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer ul a { font-size: 0.875rem; color: var(--muted-foreground); transition: color .2s; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom { margin-top: 3rem; border-top: 1px solid var(--border); padding: 1.5rem 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted-foreground); }
.footer-bottom .links { display: flex; gap: 1.5rem; }
.footer-bottom .links a { font-size: 0.75rem; color: var(--muted-foreground); transition: color .2s; }
.footer-bottom .links a:hover { color: var(--foreground); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ==========================================================================
   Interior page (kontakt / uslovi / generic page)
   ========================================================================== */
.page-main { padding: 7rem 0 5rem; }
.page-hero { text-align: center; max-width: 42rem; margin: 0 auto; }
.page-hero h1 { margin-top: 1rem; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; color: var(--foreground); }
.page-hero p { margin-top: 1rem; color: var(--muted-foreground); }

/* Contact */
.contact-cards { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; transition: border-color .2s; }
.contact-card:hover { border-color: var(--primary); }
.contact-card .ic { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.contact-card .ic svg { width: 20px; height: 20px; color: var(--primary); }
.contact-card h3 { margin-top: 1rem; font-weight: 700; color: var(--foreground); }
.contact-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.contact-form-wrap { margin-top: 2.5rem; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); padding: 2rem; max-width: var(--maxw-3xl); margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .contact-form-wrap { padding: 2.5rem; } }
.contact-form-wrap h2 { font-size: 1.5rem; font-weight: 800; color: var(--foreground); }
.contact-form-wrap > p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.contact-form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field { display: block; }
.field span { font-size: 0.75rem; font-weight: 600; color: var(--foreground); }
.field input, .field textarea { margin-top: 0.375rem; width: 100%; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--background); padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--foreground); font-family: inherit; outline: none; transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { resize: none; }
.form-success { margin-top: 2rem; border-radius: 1rem; background: var(--primary-light); padding: 1.5rem; text-align: center; }
.form-success p:first-child { font-weight: 700; color: var(--foreground); }
.form-success p:last-child { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.hp { position: absolute; left: -9999px; }

/* Legal / prose */
.prose { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; color: var(--foreground); line-height: 1.7; }
.prose h2 { font-size: 1.25rem; font-weight: 700; }
.prose p { margin-top: 0.5rem; color: var(--muted-foreground); }
.prose a { color: var(--primary); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.page-date { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
/* Editable WP page content */
.entry-content { margin-top: 2rem; line-height: 1.7; color: var(--foreground); }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2rem; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; }
.entry-content a { color: var(--primary); font-weight: 600; }
.entry-content ul, .entry-content ol { margin-left: 1.25rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { border-radius: 1rem; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid { margin-top: 3rem; display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--card); border-radius: 1.5rem; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .3s, border-color .3s; }
.post-card:hover { box-shadow: var(--shadow-card-hover); border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--primary-light); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-light), color-mix(in oklab, var(--primary) 12%, var(--surface))); }
.post-thumb-fallback svg { width: 40px; height: 40px; color: var(--primary); opacity: 0.7; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-meta { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.post-meta .cat { color: var(--primary); }
.post-meta .sep { color: var(--muted-foreground); }
.post-meta .date { color: var(--muted-foreground); font-weight: 500; text-transform: none; letter-spacing: 0; }
.post-card h2, .post-card h3 { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 700; color: var(--foreground); line-height: 1.3; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--primary); }
.post-excerpt { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; flex: 1; }
.post-more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.post-more svg { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .post-more svg { transform: translateX(3px); }

.pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--card); font-size: 0.875rem; font-weight: 600; color: var(--foreground); transition: background-color .2s, color .2s, border-color .2s; }
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.pagination .page-numbers.dots { border: none; background: none; }

/* Single post */
.single-hero { text-align: center; max-width: var(--maxw-3xl); margin: 0 auto; }
.single-hero h1 { margin-top: 1rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--foreground); line-height: 1.1; }
.single-featured { margin: 2.5rem auto 0; max-width: var(--maxw-4xl); border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); }
.single-featured img { width: 100%; }
.single-body { margin: 2.5rem auto 0; max-width: var(--maxw-3xl); }
.post-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-tags a { border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }
.post-tags a:hover { border-color: var(--primary); color: var(--primary); }
.back-link { margin-top: 3rem; text-align: center; }
.back-link a { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }

.comments { margin: 3.5rem auto 0; max-width: var(--maxw-3xl); }
.comments .comment-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.comments li { list-style: none; }
.comments .comment-body { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; }
.comments input[type="text"], .comments input[type="email"], .comments input[type="url"], .comments textarea {
  width: 100%; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--background); padding: 0.75rem 1rem; font-size: 0.875rem; font-family: inherit; margin-top: 0.5rem;
}

/* Empty state */
.empty-state { text-align: center; padding: 4rem 0; }
.empty-state svg { width: 48px; height: 48px; color: var(--muted-foreground); margin: 0 auto 1rem; }
.empty-state p { color: var(--muted-foreground); }

/* Utility */
.text-center { text-align: center; }
.mt-note { margin-top: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
