:root {
  --ink: #0b1c18;
  --ink-soft: #1a332c;
  --paper: #f3f7f5;
  --surface: #ffffff;
  --muted: #5a7269;
  --line: #d5e3dc;
  --accent: #0d9f6e;
  --accent-deep: #087a55;
  --accent-soft: #e6f7f0;
  --excel: #0d9f6e;
  --excel-deep: #087a55;
  --excel-soft: #e6f7f0;
  --pohoda: #1a6f8f;
  --pohoda-deep: #125a74;
  --pohoda-soft: #e4f3f8;
  --warn: #b45309;
  --danger: #c2410c;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(11, 28, 24, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Outfit", "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 159, 110, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(26, 51, 44, 0.08), transparent 50%),
    linear-gradient(180deg, #eef5f1 0%, var(--paper) 40%);
}

.container {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 245, 0.82);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: var(--ink);
  color: #9ef0c9;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
}

.nav-menu-btn:hover,
.header-right.nav-open .nav-menu-btn {
  border-color: var(--accent);
}

.nav-menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1rem;
}

.nav-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.header-right.nav-open .nav-menu-icon span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.header-right.nav-open .nav-menu-icon span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.lang-btn:hover { border-color: var(--accent); }

.lang-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.lang-flag-img {
  display: block;
  width: 1.25rem;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(11, 28, 24, 0.12);
}

.lang-menu .lang-flag-img {
  width: 1.35rem;
}

.lang-caret {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s;
}

.lang-switch.open .lang-caret {
  transform: rotate(225deg) translateY(-1px);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 10rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  z-index: 30;
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button[aria-selected="true"] {
  background: var(--accent-soft);
}

.hero {
  padding: 2.5rem 0 1.5rem;
  animation: rise 0.6s ease both;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}

.hero-alt-link {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.hero-alt-link a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 28ch;
}

.hero-title em {
  font-style: normal;
  color: var(--accent-deep);
  font-weight: 600;
}

.hero-sub {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.workspace { padding-bottom: 2rem; }

.convert-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.format-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  animation: rise 0.7s ease both;
}
.format-switch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
  padding: 0.35rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.format-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.format-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
}
.format-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.format-option input {
  accent-color: var(--accent);
}
.format-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
  opacity: 0.72;
}
.format-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.format-card-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--line);
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.format-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.format-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}
.format-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
}
.format-card-check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.format-card-check::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: transparent;
  transition: background 0.15s;
}
.format-card:hover {
  opacity: 0.92;
}
.format-card:has(input:checked) {
  opacity: 1;
  box-shadow: var(--shadow);
}
.format-card:has(input:checked) .format-card-check {
  border-color: transparent;
  background: currentColor;
  box-shadow: inset 0 0 0 3px var(--surface);
}
.format-card--excel:has(input:checked) {
  border-color: var(--excel);
  background: var(--excel-soft);
  color: var(--excel-deep);
}
.format-card--excel:has(input:checked) .format-card-icon {
  background: var(--excel);
  color: #fff;
}
.format-card--excel:has(input:checked) .format-card-title {
  color: var(--excel-deep);
}
.format-card--pohoda:has(input:checked) {
  border-color: var(--pohoda);
  background: var(--pohoda-soft);
  color: var(--pohoda-deep);
}
.format-card--pohoda:has(input:checked) .format-card-icon {
  background: var(--pohoda);
  color: #fff;
}
.format-card--pohoda:has(input:checked) .format-card-title {
  color: var(--pohoda-deep);
}

.pohoda-ico-row {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  max-width: 28rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--pohoda);
  background: var(--pohoda-soft);
  animation: rise 0.35s ease both;
}
.pohoda-field {
  display: grid;
  gap: 0.35rem;
}
.pohoda-ico-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pohoda-deep);
}
.pohoda-ico-row input {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--pohoda) 35%, var(--line));
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.pohoda-ico-row input:focus {
  outline: 2px solid var(--pohoda);
  outline-offset: 1px;
}
.pohoda-ico-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.vs-cell {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.dropzone {
  --dz: var(--excel);
  --dz-deep: var(--excel-deep);
  --dz-soft: var(--excel-soft);
  background: var(--surface);
  border: 2.5px dashed var(--dz);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.75rem 1.5rem 2.25rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--dz) 18%, transparent);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
  animation: rise 0.7s ease 0.08s both;
}
.dropzone--excel {
  --dz: var(--excel);
  --dz-deep: var(--excel-deep);
  --dz-soft: var(--excel-soft);
}
.dropzone--pohoda {
  --dz: var(--pohoda);
  --dz-deep: var(--pohoda-deep);
  --dz-soft: var(--pohoda-soft);
}
.dropzone:hover,
.dropzone.dragover,
.dropzone:focus-visible {
  border-style: solid;
  border-color: var(--dz-deep);
  background: var(--dz-soft);
  transform: translateY(-2px);
  box-shadow: 0 22px 60px color-mix(in srgb, var(--dz) 28%, transparent);
  outline: none;
}
.dropzone-icon {
  color: var(--dz-deep);
  margin-bottom: 0.75rem;
}
.dropzone-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.dropzone-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}
.dropzone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--dz);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--dz) 35%, transparent);
}
.dropzone:hover .dropzone-cta,
.dropzone.dragover .dropzone-cta {
  background: var(--dz-deep);
}

@media (max-width: 640px) {
  .format-switch-cards {
    grid-template-columns: 1fr;
  }
}

.loading-panel {
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: rise 0.4s ease both;
}

.loading-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.loading-ring svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.35s ease;
}

.progress-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.loading-step {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.loading-checklist {
  list-style: none;
  max-width: 260px;
  margin: 0 auto;
  text-align: left;
}

.loading-checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s;
}

.loading-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all 0.25s;
}

.loading-checklist li.active {
  color: var(--ink);
  font-weight: 600;
}

.loading-checklist li.active::before {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.loading-checklist li.done {
  color: var(--accent-deep);
}

.loading-checklist li.done::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: none;
}

.error-panel {
  margin-top: 1rem;
  background: #fff5f0;
  color: var(--danger);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid #fdd5c4;
  animation: rise 0.3s ease both;
}

.results-panel {
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.done-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.results-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.banner {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  max-width: 280px;
}

.banner.ok { background: var(--accent-soft); color: var(--accent-deep); }
.banner.fail { background: #fff5f0; color: var(--danger); }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 360px;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  position: sticky;
  top: 0;
  background: #f0f6f3;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
td:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }

.amount-neg { color: var(--danger); }
.amount-pos { color: var(--accent-deep); }

.paywall {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #e8f5ef;
  overflow: hidden;
  animation: rise 0.5s ease 0.15s both;
}

.paywall-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -40px;
  top: -60px;
  background: radial-gradient(circle, rgba(13, 159, 110, 0.45), transparent 70%);
  pointer-events: none;
}

.paywall h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  position: relative;
  letter-spacing: -0.015em;
}

.paywall p {
  color: #a8c4b8;
  margin-bottom: 1.1rem;
  position: relative;
  max-width: 32rem;
}

.paywall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: relative;
}

.paywall-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
}

.paywall-quota {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.1);
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.paywall-pricing-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.paywall-pricing-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.device-warning {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(180, 83, 9, 0.35);
  background: rgba(180, 83, 9, 0.08);
  color: var(--warn);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 42rem;
}

.account-page {
  padding-bottom: 4rem;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.account-card h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.account-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.account-dl {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.account-dl div {
  display: grid;
  gap: 0.15rem;
}

.account-dl dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.account-dl dd {
  font-weight: 600;
  font-size: 1.05rem;
}


@media (max-width: 900px) {
  .pricing-grid-3 {
    grid-template-columns: 1fr;
  }
}

.download-ready {
  --dl: var(--excel);
  --dl-deep: var(--excel-deep);
  --dl-soft: var(--excel-soft);
  margin-top: 1.5rem;
  padding: 1.6rem 1.4rem 1.35rem;
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  border: 1.5px solid color-mix(in srgb, var(--dl) 35%, var(--line));
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, color-mix(in srgb, var(--dl) 16%, transparent), transparent 65%),
    var(--surface);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--dl) 12%, transparent);
  animation: rise 0.45s ease both;
}
.download-ready--excel {
  --dl: var(--excel);
  --dl-deep: var(--excel-deep);
  --dl-soft: var(--excel-soft);
}
.download-ready--pohoda {
  --dl: var(--pohoda);
  --dl-deep: var(--pohoda-deep);
  --dl-soft: var(--pohoda-soft);
}
.download-ready-badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--dl-soft);
  color: var(--dl-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.download-ready-quota {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: min(100%, 18rem);
  padding: 1rem 1.75rem;
  border: none;
  border-radius: 14px;
  background: var(--dl);
  color: #fff;
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--dl) 35%, transparent);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.download-btn:hover {
  background: var(--dl-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--dl) 42%, transparent);
}
.download-btn:active {
  transform: translateY(0);
}
.download-btn-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1rem auto 0;
  max-width: 28rem;
  line-height: 1.45;
}
.download-ready-hint {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #e8f5ef;
}

.paywall .btn.primary {
  background: #9ef0c9;
  border-color: #9ef0c9;
  color: var(--ink);
}

.btn.lg { padding: 0.9rem 1.6rem; font-size: 1.05rem; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 2.5rem;
}

.trust-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-item strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-item span { color: var(--muted); font-size: 0.85rem; }

/* FAQ */
.faq {
  padding: 0 0 3.5rem;
}

.faq-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  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: "+";
  font-size: 1.2rem;
  color: var(--accent-deep);
  font-weight: 500;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer .footer-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-feedback {
  margin: 0;
  max-width: 40rem;
  line-height: 1.45;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-feedback .footer-email {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .footer-email:hover { color: var(--accent); }

@media (max-width: 640px) {
  .site-footer .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .footer-feedback {
    font-size: 0.8rem;
  }
}

.legal-page {
  max-width: 42rem;
  padding: 2rem 0 3rem;
}
.legal-page .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.legal-section {
  margin: 1.75rem 0;
}
.legal-section h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.55;
}
.legal-section ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}
.legal-section a {
  color: var(--accent);
}
.legal-updated {
  margin-top: -0.5rem;
}
.legal-disclaimer {
  margin-top: 2.5rem;
  font-size: 0.85rem;
}

.pricing-page { padding: 2rem 0 3rem; }

.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1.25rem;
}
.pricing-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pricing-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.pricing-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}

.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(13, 159, 110, 0.12);
}

.plan-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.plan-card h3 {
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.plan-card .price {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1rem;
}

.plan-card .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-card ul {
  list-style: none;
  margin-bottom: 1.1rem;
}

.plan-card li {
  padding: 0.3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-card li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.plan-card .btn { width: 100%; }
.note { color: var(--muted); font-size: 0.9rem; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 24, 0.55);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  animation: rise 0.35s ease both;
}

.modal-card h3 {
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.modal-card > p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.field input {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcfb;
}

.field input:focus {
  outline: 2px solid rgba(13, 159, 110, 0.35);
  border-color: var(--accent);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.modal .btn.ghost {
  color: var(--muted);
  border-color: var(--line);
}

.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .trust { grid-template-columns: 1fr; }
  .paywall-actions { flex-direction: column; }
  .paywall-actions .btn { width: 100%; }
  .download-btn { width: 100%; min-width: 0; }
  .hero { padding-top: 1.5rem; }
  .hero-title { max-width: none; }

  .nav-menu-btn { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 11.5rem;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 30;
  }

  .header-right.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent-deep);
  }
}
