/* ==========================================================================
   Veřejné stránky aplikace: úvod, registrace, přihlášení, obnova hesla.
   Navigace, hero a patička odpovídají webu podhaiskydigital.cz.
   ========================================================================== */

/* --- Navigace --- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav-logo { display: inline-flex; align-items: center; gap: .8rem; }
.nav-logo img { height: 34px; width: auto; }
.nav-product { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: .8rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a:not(.btn) { font-size: .9rem; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-cta { display: inline-flex; }
.nav-cta .btn { padding: .5rem 1.15rem; min-height: 40px; font-size: .82rem; gap: .4rem; }
.nav-cta .btn svg { width: 15px; height: 15px; transition: transform .2s ease; }
.nav-cta .btn:hover svg { transform: translateX(3px); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); width: 44px; height: 44px; cursor: pointer; color: var(--text); align-items: center; justify-content: center; transition: border-color .2s, color .2s; flex: none; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle-box { position: relative; width: 20px; height: 14px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, background-color .2s; }
.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { content: ""; top: -6px; }
.nav-toggle-bar::after { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* --- Hero --- */
.page-hero { padding-top: clamp(7.5rem, 15vh, 10.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 55% at 85% 0%, rgba(20, 194, 90, .14), transparent 70%), linear-gradient(180deg, #0d130f, var(--bg)); }
.hero-app::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 18ch; letter-spacing: -.035em; line-height: 1.03; }
.page-hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 58ch; margin-top: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0 2.2rem; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-meta div { padding: .4rem 0; }
.hero-meta dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero-meta dd { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: .15rem; }
.hero-note { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); margin-top: 1.8rem; max-width: 70ch; }

/* --- Sekce --- */
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; max-width: 60ch; }

.site .card { transition: transform .25s ease, border-color .25s ease; display: block; }
.site .card:hover { border-color: var(--line-green); transform: translateY(-4px); }
.svc-num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.site .card h3 { font-size: 1.3rem; margin: .8rem 0 .6rem; }
.site .card p { color: var(--muted); font-size: .96rem; }
.site .card .link { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; transition: gap .2s; }
.site .card .link svg { width: 14px; height: 14px; }
.site .card:hover .link { gap: .65rem; }
.card-link { cursor: pointer; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem; }
.step .n { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.step h3 { font-size: 1.15rem; margin: .7rem 0 .5rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* --- Živá ukázka --- */
.demo-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.demo-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.demo-grid .lead { color: var(--muted); font-size: 1.05rem; }
.demo-login { margin-top: 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem 1.5rem; }
.demo-login h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.demo-login p { color: var(--muted); font-size: .92rem; }
.demo-login dl { display: grid; gap: .6rem; margin-top: 1rem; }
.demo-login dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.demo-login dd { font-size: .95rem; margin-top: .1rem; word-break: break-all; }
.demo-login .hero-note { margin-top: 1.1rem; font-size: .78rem; }
.demo-frame { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.demo-frame-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.demo-frame-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.demo-frame-url { flex: 1; margin-left: .6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .3rem .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-frame-bar a { color: var(--muted); display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); transition: color .2s; }
.demo-frame-bar a:hover { color: var(--accent); }
.demo-frame-bar a .ico { width: 16px; height: 16px; }
.demo-frame iframe { width: 100%; height: 720px; border: 0; display: block; background: var(--bg); }

/* --- Cena --- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.price-card--custom { border-color: var(--line-green); background: linear-gradient(180deg, rgba(20, 194, 90, .06), transparent 40%), var(--surface); }
.price-card .price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.03em; margin-top: .8rem; line-height: 1; }
.price-card .price-sub { color: var(--muted); margin-top: .6rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.checks { list-style: none; display: grid; gap: .6rem; margin: 1.4rem 0 1.8rem; }
.checks li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border: 1px solid var(--accent); border-radius: 1px; transform: rotate(45deg); }

/* --- FAQ --- */
.faq-list { display: grid; gap: .75rem; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-green); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--accent); font-family: var(--font-mono); transition: transform .35s cubic-bezier(.4, 0, .2, 1); flex: none; }
.faq-item[open] summary .plus { transform: rotate(135deg); }
.faq-item .answer { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* --- Závěrečné CTA --- */
.cta-box { background: var(--surface); border: 1px solid var(--line-green); border-radius: var(--r-md); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 80% at 100% 0%, rgba(20, 194, 90, .12), transparent 70%); }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
.cta-box p { color: var(--muted); margin-top: .9rem; max-width: 56ch; }
.cta-box .hero-actions { margin-top: 1.6rem; }

/* --- Patička --- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer img.flogo { height: 36px; width: auto; margin-bottom: 1rem; }
.footer p { color: var(--muted); font-size: .92rem; max-width: 38ch; }
.footer h2 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 700; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { display: grid; gap: .5rem; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.footer-meta a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Přihlášení, registrace, obnova hesla --- */
.auth { padding-top: clamp(7rem, 14vh, 9.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); min-height: 80vh; position: relative; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(55% 45% at 80% 0%, rgba(20, 194, 90, .10), transparent 70%); }
.auth .container { position: relative; z-index: 1; }
.auth-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.auth-aside h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 16ch; letter-spacing: -.03em; }
.auth-aside .lead { color: var(--muted); font-size: 1.1rem; margin-top: 1.1rem; max-width: 48ch; }
.auth-aside .checks { margin: 1.6rem 0; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -.03em; margin-bottom: 1.4rem; }
.auth-card h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.auth-card .eyebrow { margin-bottom: .8rem; }
.auth-intro { color: var(--muted); font-size: .94rem; margin: -.6rem 0 1.3rem; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1.2rem; }
.auth-demo { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.auth-demo p { font-size: .88rem; color: var(--muted); }
.auth-demo .btn { justify-self: start; }
.auth--single .auth-card { max-width: 480px; margin: 0 auto; }

/* --- Responzivita --- */
@media (max-width: 960px) {
  .demo-grid, .price-grid, .auth-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .demo-frame iframe { height: 640px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--bg); backdrop-filter: blur(14px); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.6rem; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: .95rem .2rem; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1.1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; min-height: 52px; font-size: .95rem; }
  .nav-toggle { display: inline-flex; }
  .nav-product { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 0 1.4rem; }
}
