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



body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 32px 24px 80px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Base Utility Classes */
.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Header & Spec Bar */
.spec-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.spec-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.spec-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 820px;
  margin-top: 6px;
}
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Section Headlines */
.section-headline {
  margin-top: 48px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-headline h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}
.section-headline p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Phone Mockup Frame Architecture (390px) */
.mobile-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 28px;
  align-items: start;
}

.phone-mockup {
  width: 390px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(10, 22, 40, 0.08);
  display: flex;
  flex-direction: column;
}

.phone-top-bar {
  padding: 12px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}
.phone-notch {
  width: 110px;
  height: 22px;
  background: var(--bg);
  border-radius: var(--radius-full);
}

.app-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.app-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-icon-back {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.app-bar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.app-bar-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Phone Screen Scrollable Area */
.phone-screen-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
}

/* Value Offer / Inclusion Banner */
.inclusion-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.inclusion-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.inclusion-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.inclusion-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.inclusion-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 10px;
}
.fact-item {
  display: flex;
  flex-direction: column;
}
.fact-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.fact-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.25;
}
.honest-key-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  gap: 6px;
}
.honest-key-note strong {
  color: var(--text);
}

/* Independent Affiliation Disclaimer Banner */
.disclaimer-banner {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.disclaimer-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-dim);
}

/* Two-Path Tabs (Kod vs Zakup) */
.path-selector-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}
.path-tab {
  border: none;
  background: transparent;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.path-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.path-tab:focus-visible {
  outline: 2px solid var(--focus-ring);
}

/* Form & Input Elements */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}
.field-sublabel {
  font-size: 11px;
  color: var(--text-muted);
}
.input-text {
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.input-text.code-mono {
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Form Validation States */
.input-text.is-valid {
  border-color: var(--success);
  background: var(--success-bg);
}
.input-text.is-invalid {
  border-color: var(--danger);
  background: var(--danger-bg);
}
.feedback-msg {
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}
.feedback-msg.valid {
  color: var(--success);
}
.feedback-msg.invalid {
  color: var(--danger);
}
.feedback-msg.info {
  color: var(--text-muted);
}

/* Pricing Card & Placeholders */
.pricing-box {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pricing-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.price-currency {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.price-period {
  font-size: 11px;
  color: var(--text-muted);
}
.price-placeholder-notice {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Payment Methods Grid */
.payment-methods-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pay-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 64px;
  transition: all 0.15s ease;
}
.pay-card:hover {
  border-color: var(--accent);
}
.pay-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.pay-card:focus-visible {
  outline: 2px solid var(--focus-ring);
}
.pay-badge-logo {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}
.logo-blik {
  background: #000000;
  color: #FFFFFF;
}
.logo-p24 {
  background: #0D47A1;
  color: #FFFFFF;
  font-size: 10px;
}
.logo-card {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 10px;
}
.pay-label-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

/* Buttons */
.btn {
  height: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, transform 0.05s;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--surface-raised);
}
.btn-blik {
  background: #E83F21;
  color: #FFFFFF;
}
.btn-blik:hover {
  filter: brightness(1.08);
}
.btn-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* State Boxes (Processing, Success, Failure, Cancelled) */
.state-box {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.state-box.processing {
  background: var(--surface-raised);
  border-color: var(--accent);
}
.state-box.success {
  background: var(--success-bg);
  border-color: var(--success-border);
}
.state-box.failure {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}
.state-box.cancelled {
  background: var(--surface-raised);
  border-color: var(--border);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Active Access View */
.active-access-card {
  border: 1.5px solid var(--success-border);
  background: var(--success-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.active-access-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.active-pill {
  background: var(--success);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.expiry-display {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.expiry-display strong {
  font-weight: 700;
}

/* Expired Access View */
.expired-access-card {
  border: 1.5px solid var(--warning-border);
  background: var(--warning-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.expired-pill {
  background: var(--warning);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Desktop 1280px Master View Layout */
.desktop-browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 48px -16px rgba(10, 22, 40, 0.1);
  margin-top: 24px;
}
.browser-top-bar {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C5C1B9;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }
.browser-url-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  flex-grow: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-body {
  display: flex;
  min-height: 720px;
}
.desktop-sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.desktop-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.desktop-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.desktop-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.desktop-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}
.desktop-nav-item:hover {
  background: var(--surface-raised);
  color: var(--text);
}
.desktop-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.desktop-main-workspace {
  flex-grow: 1;
  background: var(--surface);
  padding: 36px 48px;
  overflow-y: auto;
}

/* Two-column layout inside desktop */
.desktop-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

/* Technical & Ethical Audit Matrix Table */
.audit-table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}
.audit-table th {
  background: var(--surface-raised);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.audit-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.4;
}
.audit-table tr:last-child td {
  border-bottom: none;
}
.audit-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.audit-tag.strict {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}
.audit-tag.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* Visual state labels */
.state-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.state-pill-badge.offer { background: var(--accent-soft); color: var(--accent); }
.state-pill-badge.active { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.state-pill-badge.code { background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); }
.state-pill-badge.payment { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }

/* Micro-states switcher bar for phone previews */
.preview-card-header {
  margin-bottom: 10px;
}
.preview-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.preview-card-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}
