/* Vidimo Design Tokens & Style System */

/* ---------------------------------------------------------------------------
   Onest — self-hosted (variable font, one file per subset covers 400–600).
   Deliberately NOT loaded from Google's CDN: that would send every visitor's
   IP address to Google and would have to be disclosed in privacy.html.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:          #FFFFFF;
  --bg-alt:      #FAFAFA;
  --text:        #111827;
  --text-body:   #374151;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --accent:      #00B4A0;
  --accent-dark: #009B8A;
  --error:       #B91C1C;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Onest', sans-serif;
  background-color: var(--bg);
  color: var(--text-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Onest', sans-serif;
  font-feature-settings: "locl" 1;
  -webkit-font-feature-settings: "locl" 1;
  background-color: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Tabular numbers for prices and counts */
.tabular-nums, .price-number, td, .quote-row span,
.quote-total span, .pricing-price, .pricing-note, .step-number {
  font-variant-numeric: tabular-nums;
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Section Spacing */
.section {
  padding: 112px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Typography Hierarchy */
h1, .h1 {
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
}

h2, .h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

h3, .h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

p, .body-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
}

.small-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease;
  line-height: 1;
}

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

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
  line-height: 1;
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-muted);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
}

.logo-i {
  position: relative;
  display: inline-block;
}

.logo-i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 400;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--text);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 40;
}

.mobile-nav.open {
  display: flex;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.hero-left {
  text-align: left;
}

.hero-left h1 {
  margin-bottom: 20px;
}

.hero-left p {
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-subtext {
  margin-top: 14px;
  display: block;
}

/* Signature Itemized Quote Card */
.quote-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
}

.quote-eyebrow {
  margin-bottom: 20px;
}

.quote-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-body);
  position: relative;
}

.quote-row-label {
  background-color: var(--bg);
  padding-right: 8px;
  z-index: 1;
}

.quote-row-value {
  background-color: var(--bg);
  padding-left: 8px;
  z-index: 1;
  font-weight: 500;
  color: var(--text);
}

.quote-row-dots {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  border-bottom: 1px dotted var(--border);
  z-index: 0;
}

.quote-divider {
  height: 1px;
  background-color: var(--border);
  margin: 16px 0 8px 0;
}

.quote-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.quote-total-price {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}

.quote-caption {
  margin-top: 14px;
  display: block;
}

/* Sector Strip */
.sector-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}

/* Comparison Table */
.comparison-table-wrapper {
  margin-top: 40px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 16px;
}

.comparison-table th {
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.comparison-table th.col-accent {
  color: var(--accent);
}

.comparison-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table td.col-label {
  color: var(--text-muted);
  font-size: 15px;
  width: 30%;
}

.comparison-table td.col-agency {
  color: var(--text-body);
  width: 35%;
}

.comparison-table td.col-vidimo {
  color: var(--text);
  font-weight: 500;
  width: 35%;
}

.table-subtext {
  margin-top: 24px;
}

/* Examples / Showcase Section */
.example-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
  margin-bottom: 36px;
  overflow-x: auto;
  /* overflow-x alone makes overflow-y compute to auto, which rendered a
     stray vertical scrollbar at the end of the tab row. Pin it shut. */
  overflow-y: hidden;
  scrollbar-width: none;
}

.example-tabs::-webkit-scrollbar {
  display: none;
}

.example-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
  margin-bottom: -1px;
  flex-shrink: 0;
  white-space: nowrap;
}

.example-tab:hover {
  color: var(--text);
}

.example-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* --- Device-framed mock sites ---------------------------------------------
   The mock sites are built at real widths (375px phone / 1100px desktop) and
   scaled down, so proportions and type sizes stay authentic. Everything
   inside the frames is decorative: aria-hidden and not focusable.
   -------------------------------------------------------------------------- */
.example-panel {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  max-width: 1080px;
  margin-bottom: 20px;
  overflow: hidden;
}

.mock-stage {
  position: relative;
  width: 620px;
  max-width: 100%;
  /* left-of-centre, with room for the phone to hang below the browser */
  margin: 0 auto 0 8px;
  padding-bottom: 110px;
}

/* Browser frame */
.browser-frame {
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background-color: #FFFFFF;
}

.browser-bar {
  background-color: #374151;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6B7280;
}

.browser-address {
  flex: 1 1 auto;
  max-width: 240px;
  margin: 0 auto;
  background-color: #1F2937;
  color: #9CA3AF;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  padding: 4px 12px;
  border-radius: 999px;
}

.browser-viewport {
  width: 100%;
  height: 448px;   /* ~800px of content at 0.56 — the whole mock page fits */
  overflow: hidden;
}

/* Phone frame — the hero of the composition. The one shadow on the site:
   without depth it stops reading as a device. */
.phone-frame {
  position: absolute;
  right: -66px;
  bottom: 0;
  width: 241px;
  padding: 8px;
  background-color: #1F2937;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.phone-notch {
  display: block;
  width: 52px;
  height: 4px;
  margin: 1px auto 6px;
  background-color: #4B5563;
  border-radius: 999px;
}

.phone-screen {
  width: 225px;    /* 375px of content at 0.6 */
  height: 468px;   /* 780px of content at 0.6 */
  overflow: hidden;
  background-color: #FFFFFF;
  border-radius: 22px;
}

/* --- Client screenshots inside the frames --- */
.shot {
  display: block;
  width: 100%;
  /* height:auto is load-bearing — without it the width/height attributes act
     as a presentation hint and the shot renders at full natural height. */
  height: auto;
  object-fit: cover;
  object-position: top center;
  transform: translateY(0);
  transition: transform 2500ms ease-in-out;
}

/* Hover (or keyboard focus anywhere in the section) scrolls the shot down to
   reveal the rest of the page. --travel is set per image in script.js from
   its rendered height minus the frame height, so it never overscrolls. */
.example-panel:hover .shot,
#examples:focus-within .shot {
  transform: translateY(calc(-1 * var(--travel, 0px)));
}

@media (prefers-reduced-motion: reduce) {
  .shot {
    transition: none;
  }

  .example-panel:hover .shot,
  #examples:focus-within .shot {
    transform: none;
  }
}

/* --- Real client attribution under the frames --- */
.client-caption {
  max-width: 1080px;
  text-align: center;
  margin-top: 28px;
  margin-bottom: 32px;
}

.client-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.client-trade {
  margin-top: 4px;
}

.client-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* padding, not margin — keeps the tap target ~45px tall on a phone */
  margin-top: 6px;
  padding: 10px 8px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

.client-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}

.step-card {
  text-align: left;
}

.step-number {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.step-card h3 {
  margin-bottom: 12px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  transition: border-color 150ms ease;
}

.pricing-card:not(.featured):hover {
  border-color: var(--text-muted);
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-featured-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.pricing-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.pricing-price-box {
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
}

.pricing-unit {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-note {
  font-size: 14px;
  color: var(--text-muted);
  min-height: 22px;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 12px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-body);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-subtext {
  text-align: center;
  margin-top: 32px;
}

/* FAQ Accordion */
.accordion {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.accordion-header:hover {
  color: var(--accent);
}

.accordion-icon {
  transition: transform 150ms ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 150ms ease;
}

.accordion-item.active .accordion-content {
  max-height: 480px;
  padding-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px 0;
  font-size: 14px;
  color: var(--text-muted);
  background-color: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li,
.footer-links a {
  overflow-wrap: anywhere;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-bottom a:hover {
  color: var(--text);
}

.footer-legal-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.footer-identity {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.quote-total-value {
  text-align: right;
}

.site-footer.slim {
  padding: 32px 0;
}

.site-footer.slim .footer-bottom {
  border-top: none;
  padding-top: 0;
}

/* Legal Pages Styling */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 0;
}

.legal-content h1 {
  margin-bottom: 8px;
}

.legal-date {
  display: block;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 21px;
  line-height: 1.3;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content p, .legal-content ul {
  margin-bottom: 18px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Entity block — rendered from legal.js, never hardcoded */
.entity-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.entity-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.entity-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entity-row:first-child {
  padding-top: 0;
}

.entity-key {
  color: var(--text-muted);
  flex: 0 0 200px;
}

.entity-value {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Price rows inside legal prose */
.legal-price-list {
  list-style: none;
  padding-left: 0;
}

.legal-price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.legal-price-list .lev {
  color: var(--text-muted);
  font-size: 14px;
}

/* Withdrawal form block — copy-pasteable */
.withdrawal-form {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.9;
}

.withdrawal-form p {
  margin-bottom: 14px;
}

.withdrawal-form .wf-fields {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  color: var(--text-muted);
}

/* Dual currency display — mandatory until 08.08.2026 */
.price-bgn {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

/* Onboarding Page Styles */
.onboarding-main {
  padding: 64px 0 96px 0;
}

.onboarding-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.onboarding-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.confirm-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.confirm-block h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.step-head .small-text {
  display: block;
  margin-top: 4px;
}

.check-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  margin-top: 6px;
}

.progress-track {
  margin-bottom: 32px;
}

.progress-bar-container {
  width: 100%;
  height: 2px;
  background-color: var(--border);
  margin-bottom: 8px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent);
  transition: width 150ms ease;
  width: 33.33%;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
}

.wizard-controls .push-right {
  margin-left: auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 150ms ease;
}

textarea.form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.style-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.option-card {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 150ms ease;
  font-size: 15px;
  color: var(--text);
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-card:hover {
  border-color: var(--text-muted);
}

.option-card:has(input:checked) {
  border-color: var(--accent);
}

.option-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.option-card .option-title {
  font-weight: 500;
  display: block;
}

.option-card .option-desc {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.style-swatches {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

select.form-control {
  padding: 0 36px 0 12px;
  background-color: var(--bg);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.form-notice {
  margin-top: 12px;
  padding: 12px 14px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
}

.upload-box {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease;
  position: relative;
  color: var(--text-body);
  font-size: 15px;
}

.upload-box svg {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: var(--accent);
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.uploaded-files {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Миниатюри на качените файлове */
.file-count {
  margin-top: 12px;
}

.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.file-tile {
  width: 72px;
}

.file-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-thumb-generic {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.file-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.file-remove:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.file-name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-hint {
  margin-top: 8px;
}

/* Consent checkboxes */
.consent-block {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 32px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.55;
}

.consent-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-item a {
  color: var(--accent);
  text-decoration: none;
}

.consent-item a:hover {
  text-decoration: underline;
}

.consent-note {
  margin-top: 4px;
}

.form-error {
  display: none;
  color: var(--error);
  font-size: 14px;
  margin-top: 16px;
}

.form-error.visible {
  display: block;
}

.success-actions {
  margin-top: 24px;
}

.success-check {
  margin: 0 0 20px 0;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
  
  h1, .h1 {
    font-size: 34px;
    line-height: 1.15;
  }
  
  h2, .h2 {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .steps-grid, .pricing-grid, .style-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile is what we actually promise — show only the phone, centred. */
  .browser-frame {
    display: none;
  }

  .example-panel {
    padding: 28px 20px;
  }

  .mock-stage {
    width: auto;
    margin: 0;
    padding-bottom: 0;
  }

  .phone-frame {
    position: static;
    width: 260px;
    margin: 0 auto;
  }

  .phone-screen {
    width: 244px;
    height: 507px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .confirm-block h1 {
    font-size: 28px;
  }

  .legal-content {
    padding: 64px 0;
  }

  .entity-row {
    flex-direction: column;
    gap: 2px;
  }

  .entity-key {
    flex: none;
  }

  .legal-price-list li {
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .example-tabs {
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-card {
    padding: 24px;
  }

  .example-preview-box {
    padding: 24px;
  }

  .confirm-block {
    flex-direction: column;
    gap: 16px;
  }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
