/* ==========================================================================
   PrivateByRight VPN — Signup Flow
   Design System & Component Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Satoshi Variable — self-hosted */
@font-face {
  font-family: 'Satoshi';
  src: url('/manus-storage/Satoshi-Variable_fa9ee72a.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --color-bg:              #f7f8fa;
  --color-white:           #ffffff;
  --color-black:           #020617;
  --color-text-primary:    #020617;
  --color-text-secondary:  #475569;
  --color-text-muted:      #94a3b8;
  --color-text-light:      #64748b;

  /* Brand */
  --color-amber:           #fbbf24;
  --color-amber-dark:      #f59e0b;
  --color-amber-light:     rgba(251, 191, 36, 0.10);
  --color-amber-border:    rgba(251, 191, 36, 0.40);

  /* Semantic */
  --color-green:           #16a34a;
  --color-green-dark:      #15803d;
  --color-trustpilot:      #00b67a;
  --color-error:           #ef4444;
  --color-error-light:     rgba(239, 68, 68, 0.08);

  /* Borders & Surfaces */
  --color-border:          #e2e8f0;
  --color-border-input:    #cbd5e1;
  --color-surface:         #ffffff;
  --color-surface-muted:   #f8fafc;

  /* Spacing Scale (8px base) */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-7:   28px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;

  /* Typography */
  --font-family:        'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:       11px;
  --font-size-sm:       13px;
  --font-size-base:     15px;
  --font-size-md:       16px;
  --font-size-lg:       18px;
  --font-size-xl:       22px;
  --font-size-2xl:      26px;
  --font-size-3xl:      32px;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.10);

  /* Transitions */
  --transition: 150ms ease;

  /* Layout */
  --max-width:        1200px;
  --sidebar-width:    420px;
  --content-width:    540px;
  --header-height:    64px;
}

/* --------------------------------------------------------------------------
   3. CSS RESET & BASE
   -------------------------------------------------------------------------- */

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  opacity: 0.75;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

/* Page wrapper */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header__inner {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Main content area */
.main-content {
  flex: 1;
  padding: var(--space-8) var(--space-6);
}

.main-content__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-8);
  align-items: start;
}

/* Left column */
.content-col {
  min-width: 0;
}

/* Right column — order summary */
.summary-col {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
}

/* Site footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
}

.site-footer__platforms {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-footer__legal a {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__legal a:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

.footer-platform-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer-platform-icons {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   5. LOGO COMPONENT
   -------------------------------------------------------------------------- */

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  cursor: default;
  user-select: none;
}

.logo__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.logo__img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo__name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.2px;
}

/* --------------------------------------------------------------------------
   6. BADGE COMPONENTS
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--amber {
  background-color: var(--color-amber);
  color: var(--color-black);
}

.badge--green {
  background-color: var(--color-green);
  color: var(--color-white);
}

.badge--teal {
  background-color: #10b981;
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   7. BUTTON COMPONENTS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-md);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color var(--transition), opacity var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--color-amber);
  color: var(--color-black);
  width: 100%;
}

.btn--primary:hover {
  background-color: var(--color-amber-dark);
  opacity: 1;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background-color: var(--color-surface-muted);
  opacity: 1;
}

.btn--full {
  width: 100%;
}

/* Payment buttons */
.btn--apple-pay {
  background-color: #000000;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  flex: 1;
  min-height: 52px;
}

.btn--google-pay {
  background-color: #ffffff;
  color: var(--color-text-primary);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  flex: 1;
  min-height: 52px;
}

.btn--paypal {
  background-color: #ffc439;
  color: #003087;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  flex: 1;
  min-height: 52px;
}

.btn--apple-pay:hover,
.btn--google-pay:hover,
.btn--paypal:hover {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   8. FORM COMPONENTS
   -------------------------------------------------------------------------- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px var(--space-4);
  border: 1.5px solid var(--color-border-input);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px var(--color-amber-light);
}

.form-input:disabled {
  background-color: var(--color-surface-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.form-input--error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-light);
}

.form-error {
  font-size: var(--font-size-sm);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Input with icon suffix */
.input-wrapper {
  position: relative;
}

.input-wrapper .form-input {
  padding-right: 88px;
}

.input-suffix {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  pointer-events: none;
}

/* Two-column form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   9. CARD / PANEL COMPONENTS
   -------------------------------------------------------------------------- */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.card--plan {
  border: 1.5px solid var(--color-amber-border);
  background: rgba(251, 191, 36, 0.04);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  transition: border-color var(--transition);
}

.card--plan:hover {
  border-color: var(--color-amber);
}

.card--plan.is-selected {
  border-color: var(--color-amber);
  background: rgba(251, 191, 36, 0.06);
}

.plan-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.plan-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.plan-card__name {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text-primary);
}

.plan-card__price {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  margin-right: 2px;
}
.price-current {
  font-weight: 700;
  color: var(--color-text-primary);
}
.plan-card__price .price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  margin-right: 2px;
}
.plan-card__price .price-current {
  font-weight: 700;
  color: var(--color-text-primary);
}

.plan-card__radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-border-input);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color var(--transition);
}

.plan-card__radio.is-selected {
  border-color: var(--color-amber);
}

.plan-card__radio.is-selected::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-amber);
}

/* --------------------------------------------------------------------------
   10. ORDER SUMMARY SIDEBAR
   -------------------------------------------------------------------------- */

.order-summary {
  --order-summary-section-x: var(--space-6);
  --order-summary-section-y: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.order-summary__product {
  padding: var(--order-summary-section-y) var(--order-summary-section-x);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.order-summary__product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: transparent;
  flex-shrink: 0;
  overflow: hidden;
}

.order-summary__product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.order-summary__product-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.order-summary__product-plan {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.order-summary__product-price {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.order-summary__product-price .price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  margin-right: 2px;
}

.order-summary__divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 var(--order-summary-section-x);
}

.order-summary__line-items {
  padding: var(--order-summary-section-y) var(--order-summary-section-x);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-summary__line-items--total {
  padding: var(--order-summary-section-y) var(--order-summary-section-x);
}

.order-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
}

.order-summary__line--total {
  font-weight: 700;
  font-size: var(--font-size-md);
  padding-top: var(--space-1);
}

.order-summary__coupon {
  padding: var(--order-summary-section-y) var(--order-summary-section-x);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.order-summary__coupon-code {
  font-weight: 700;
  color: var(--color-text-primary);
}

.order-summary__coupon-remove {
  color: var(--color-text-secondary);
  text-decoration: underline;
  cursor: pointer;
  font-size: var(--font-size-sm);
}

/* Hide remove button when coupon was applied via URL parameter */
[data-coupon-source="url"] .order-summary__coupon-remove,
[data-coupon-source="url"] .mobile-coupon-row__remove {
  display: none;
}

/* Money-back guarantee block */
.order-summary__guarantee {
  padding: var(--order-summary-section-y) var(--order-summary-section-x);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

.order-summary__guarantee strong {
  color: var(--color-text-primary);
}

.order-summary__support {
  padding: var(--order-summary-section-y) var(--order-summary-section-x);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.order-summary__support a {
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   11. TRUSTPILOT WIDGET
   -------------------------------------------------------------------------- */

.trustpilot {
  padding: var(--order-summary-section-y) var(--order-summary-section-x);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.trustpilot__rating-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.trustpilot__rating-text a {
  font-weight: 700;
  color: var(--color-text-primary);
}

.trustpilot__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.trustpilot__label {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
}

.trustpilot__stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.trustpilot__star {
  width: 28px;
  height: 28px;
  background-color: var(--color-trustpilot);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.trustpilot__star svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   12. ACCORDION STEP COMPONENTS
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   CHECKOUT — Legal copy & guarantee
   -------------------------------------------------------------------------- */

.legal-copy {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.legal-copy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.checkout-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.checkout-guarantee svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   CHECKOUT FLOW — Continuous Email + Payment cards
   -------------------------------------------------------------------------- */

.checkout-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6);
}

.checkout-card__heading {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.steps-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.step-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  user-select: none;
}

.step-panel__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.step-panel__number {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-panel__chevron {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.step-panel__chevron svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-secondary);
}

.step-panel.is-open .step-panel__chevron {
  transform: rotate(180deg);
}

.step-panel__title {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.step-panel.is-open .step-panel__title {
  color: var(--color-text-primary);
  font-weight: 600;
}

.step-panel__secure {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.step-panel__secure svg {
  width: 16px;
  height: 16px;
}

.step-panel__body {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
}

.step-panel.is-open .step-panel__body {
  display: block;
}

.step-panel__body-inner {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   13. SIGNUP STEP SECTIONS (for multi-step flow)
   -------------------------------------------------------------------------- */

.signup-step {
  display: none;
}

.signup-step.is-active {
  display: block;
}

/* --------------------------------------------------------------------------
   14. FEATURE LIST (Step 1)
   -------------------------------------------------------------------------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: var(--space-5) 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
}

.feature-item__icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.feature-item__text {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   15. STEP 1 — PLAN SELECTION HERO
   -------------------------------------------------------------------------- */

.plan-hero {
  padding: var(--space-4) 0;
}

.plan-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.plan-hero__description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

.plan-selection {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   16. PAYMENT SECTION (Step 3)
   -------------------------------------------------------------------------- */

.express-checkout {
  text-align: center;
  margin-bottom: var(--space-5);
}

.express-checkout__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.express-checkout__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

.express-checkout__buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.express-checkout__divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.express-checkout__divider::before,
.express-checkout__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.payment-card-section {
  margin-top: var(--space-4);
}

.payment-card-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.payment-card-label svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.payment-consent {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Card number input with logos */
.card-logos {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-logo {
  height: 20px;
  width: auto;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   17. CONFIRMATION STEP (Step 4)
   -------------------------------------------------------------------------- */

.confirmation-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-4) 0 var(--space-8);
}

.confirmation-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirmation-check svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
}

.confirmation-content {
  flex: 1;
}

.confirmation-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  letter-spacing: -0.5px;
}

.confirmation-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.next-steps {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.next-step-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.next-step-item__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.next-step-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.next-step-item__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-left: 30px;
}

/* Confirmation order summary extras */
.order-summary__renewal {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
}

.order-summary__payment-method {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.order-summary__order-id {
  padding: var(--space-3) var(--space-6) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.order-summary__order-id a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   18. SECURITY GUARANTEE TEXT
   -------------------------------------------------------------------------- */

.security-note {
  margin-top: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   19. APPLE PAY / GOOGLE PAY LOGOS (inline SVG)
   -------------------------------------------------------------------------- */

.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE — TABLET (max 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 360px;
  }

  .main-content__inner {
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE — MOBILE (max 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --space-6: 20px;
  }

  .main-content {
    padding: var(--space-5) var(--space-4);
  }

  .main-content__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .summary-col {
    position: static;
    order: 2;
  }

  .content-col {
    order: 1;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
  }

  .confirmation-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
  }

  .confirmation-title {
    font-size: var(--font-size-2xl);
  }

  .next-step-item__desc {
    padding-left: 0;
  }

  .express-checkout__buttons {
    flex-direction: column;
  }

  .btn--apple-pay,
  .btn--google-pay,
  .btn--paypal {
    flex: none;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .plan-hero__eyebrow {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: var(--space-4) var(--space-4);
  }

  .order-summary__product {
    padding: var(--space-4);
  }

  .order-summary__line-items {
    padding: var(--space-4);
  }

  .order-summary__coupon {
    padding: var(--space-3) var(--space-4);
  }

  .order-summary__support {
    padding: 0 var(--space-4) var(--space-4);
  }

  .trustpilot {
    padding: var(--space-4);
  }

  .trustpilot__label {
    font-size: var(--font-size-xl);
  }

  .trustpilot__star {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   ADDITIONAL POLISH — Visual States, Micro-interactions, Step Indicator
   ========================================================================== */

/* --------------------------------------------------------------------------
   STEP PROGRESS INDICATOR (static, desktop top bar)
   -------------------------------------------------------------------------- */

.step-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-8);
}

.step-progress__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  position: relative;
}

.step-progress__item:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 var(--space-2);
}

.step-progress__item.is-complete::after {
  background: var(--color-amber);
}

.step-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.step-progress__item.is-active .step-progress__dot {
  border-color: var(--color-amber);
  background: var(--color-amber);
  color: var(--color-black);
}

.step-progress__item.is-complete .step-progress__dot {
  border-color: var(--color-green);
  background: var(--color-green);
  color: var(--color-white);
}

.step-progress__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-progress__item.is-active .step-progress__label {
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   ENHANCED FORM INPUT STATES
   -------------------------------------------------------------------------- */

/* Valid state */
.form-input.is-valid {
  border-color: var(--color-green);
}

/* Error message animation */
.form-error {
  animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   PLAN CARD HOVER / FOCUS STATES
   -------------------------------------------------------------------------- */

.card--plan:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   BUTTON FOCUS STATES (accessibility)
   -------------------------------------------------------------------------- */

.btn:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
}

.btn--apple-pay:focus-visible {
  outline-color: #ffffff;
}

/* --------------------------------------------------------------------------
   STEP PANEL TRANSITIONS
   -------------------------------------------------------------------------- */

.step-panel {
  transition: box-shadow var(--transition);
}

.step-panel.is-open {
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   ORDER SUMMARY — STICKY BEHAVIOR ENHANCEMENT
   -------------------------------------------------------------------------- */

.order-summary {
  transition: box-shadow var(--transition);
}

.order-summary:hover {
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   CONFIRMATION CHECK ANIMATION (CSS only, no JS)
   -------------------------------------------------------------------------- */

.signup-step[data-step="3"].is-active .confirmation-check {
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   STEP TRANSITION — fade in active step
   -------------------------------------------------------------------------- */

.signup-step.is-active {
  animation: fadeInStep 0.25s ease-out both;
}

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

/* --------------------------------------------------------------------------
   PAYMENT BUTTON HOVER STATES
   -------------------------------------------------------------------------- */

.btn--apple-pay:hover {
  background-color: #1a1a1a;
  opacity: 1;
}

.btn--google-pay:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  opacity: 1;
}

.btn--paypal:hover {
  background-color: #f0b429;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   PRODUCT THUMBNAIL — VPN shield placeholder
   -------------------------------------------------------------------------- */

.order-summary__product-thumb {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   MOBILE STEP 3 — Express checkout stacked layout
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
  .express-checkout__buttons {
    flex-direction: column;
    gap: var(--space-3);
  }

  .btn--apple-pay,
  .btn--google-pay,
  .btn--paypal {
    flex: none;
    width: 100%;
    min-height: 56px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE HEADER — centered logo
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .site-header__inner {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .btn,
  .step-panel:not(.is-open) {
    display: none !important;
  }

  .main-content__inner {
    grid-template-columns: 1fr;
  }

  .order-summary {
    border: 1px solid #ccc;
  }
}

/* ==========================================================================
   DARK MODE — [data-theme="dark"]
   Colour tokens sourced from 1440wdefault.pdf design system.
   Applied via JS on DOMContentLoaded when ?theme=dark is in the URL.
   ========================================================================== */

[data-theme="dark"] {
  /* ── Backgrounds ─────────────────────────────────────────────────────────── */
  --color-bg:              #020617;   /* Neutral/950 — page background */
  --color-white:           #0F172A;   /* Neutral/900 — card / surface white */
  --color-surface:         #0F172A;   /* Neutral/900 — cards & surfaces */
  --color-surface-muted:   #1E293B;   /* Neutral/800 — subtle surface */

  /* ── Text ────────────────────────────────────────────────────────────────── */
  --color-text-primary:    #F8FAFC;   /* Neutral/50  — headings, core body */
  --color-text-secondary:  #CBD5E1;   /* Neutral/300 — low-emphasis text */
  --color-text-muted:      #94A3B8;   /* Neutral/400 — meta labels, helper text */
  --color-text-light:      #94A3B8;   /* Neutral/400 — footer links etc. */

  /* ── Borders ─────────────────────────────────────────────────────────────── */
  --color-border:          #1E293B;   /* Neutral/800 — dividers, card outlines */
  --color-border-input:    #334155;   /* Neutral/700 — controls, toggles */

  /* ── Brand (unchanged — amber stays the same in dark mode) ──────────────── */
  --color-amber:           #FBBF24;
  --color-amber-dark:      #F59E0B;
  --color-amber-light:     rgba(251, 191, 36, 0.12);
  --color-amber-border:    rgba(251, 191, 36, 0.35);

  /* ── Semantic ────────────────────────────────────────────────────────────── */
  --color-green:           #22c55e;   /* Emerald/500 — success / status */
  --color-green-dark:      #16a34a;
  --color-trustpilot:      #00B67A;
  --color-error:           #FB7185;   /* Rose/400 — errors */
  --color-error-light:     rgba(251, 113, 133, 0.12);

  /* ── Shadows (darker, more diffuse) ─────────────────────────────────────── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.30), 0 1px 2px rgba(0,0,0,0.20);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.40);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.50);
}

/* ── Dark mode: body background ─────────────────────────────────────────── */
[data-theme="dark"] body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

/* ── Dark mode: header ───────────────────────────────────────────────────── */
[data-theme="dark"] .site-header {
  background: #020617;
  border-bottom-color: #1E293B;
}

/* ── Dark mode: cards & panels ───────────────────────────────────────────── */
[data-theme="dark"] .card,
[data-theme="dark"] .step-panel,
[data-theme="dark"] .order-summary {
  background: #0F172A;
  border-color: #1E293B;
}

[data-theme="dark"] .card--plan {
  background: rgba(251, 191, 36, 0.04);
  border-color: rgba(251, 191, 36, 0.25);
}

[data-theme="dark"] .card--plan.is-selected {
  background: rgba(251, 191, 36, 0.08);
  border-color: #FBBF24;
}

/* ── Dark mode: form inputs ──────────────────────────────────────────────── */
[data-theme="dark"] .form-input {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}

[data-theme="dark"] .form-input::placeholder {
  color: #94A3B8;
}

[data-theme="dark"] .form-input:focus {
  border-color: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

[data-theme="dark"] .form-input:disabled {
  background: #1E293B;
  color: #94A3B8;
}

/* ── Dark mode: step progress indicator ─────────────────────────────────── */
[data-theme="dark"] .progress-dot__inner {
  background: #1E293B;
  border-color: #334155;
}

[data-theme="dark"] .progress-dot__number {
  color: #94A3B8;
}

[data-theme="dark"] .progress-connector {
  background: #334155;
}

[data-theme="dark"] .signup-progress__item.is-complete .progress-connector {
  background: #FBBF24;
}

[data-theme="dark"] .signup-progress__item.is-active .progress-dot__inner {
  background: #FBBF24;
  border-color: #FBBF24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.20);
}

[data-theme="dark"] .signup-progress__item.is-active .progress-dot__number {
  color: #020617;
}

[data-theme="dark"] .signup-progress__item.is-complete .progress-dot__inner {
  background: #34D399;
  border-color: #34D399;
}

[data-theme="dark"] .progress-label {
  color: #94A3B8;
}

[data-theme="dark"] .signup-progress__item.is-active .progress-label {
  color: #F8FAFC;
}

[data-theme="dark"] .signup-progress__item.is-complete .progress-label {
  color: #34D399;
}

/* ── Dark mode: step panel header ────────────────────────────────────────── */
[data-theme="dark"] .step-panel__chevron {
  background: #1E293B;
}

[data-theme="dark"] .step-panel__body-inner {
  border-top-color: #1E293B;
}

/* ── Dark mode: order summary dividers ───────────────────────────────────── */
[data-theme="dark"] .order-summary__divider {
  background: #1E293B;
}

/* ── Dark mode: trustpilot ───────────────────────────────────────────────── */
[data-theme="dark"] .trustpilot {
  border-top-color: #1E293B;
}

/* ── Base reset & tokens ─────────────────────────────────────────────────── */
/* Checkpoint: synced with GitHub f346ff7 */
[data-theme="dark"] .site-footer {
  border-top-color: #1E293B;
}

[data-theme="dark"] .site-footer__bottom {
  border-top-color: #1E293B;
}

/* ── Dark mode: secondary button ─────────────────────────────────────────── */
[data-theme="dark"] .btn--secondary {
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .btn--secondary:hover {
  background-color: #1E293B;
}

/* ── Dark mode: Google Pay button (keep white bg for brand compliance) ───── */
[data-theme="dark"] .btn--google-pay {
  background-color: #ffffff;
  border-color: #334155;
  color: #0f172a;
}

/* ── Dark mode: payment overlay card ─────────────────────────────────────── */
[data-theme="dark"] .payment-overlay__card {
  background: #0F172A;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.60);
}

[data-theme="dark"] .payment-overlay__title {
  color: #F8FAFC;
}

[data-theme="dark"] .payment-overlay__subtitle {
  color: #94A3B8;
}

/* ── Dark mode: form error state ─────────────────────────────────────────── */
[data-theme="dark"] .form-input--error {
  border-color: #FB7185 !important;
  background-color: rgba(251, 113, 133, 0.08);
  color: #F8FAFC;
}

[data-theme="dark"] .form-input--error:focus {
  border-color: #FB7185 !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.15) !important;
}

[data-theme="dark"] .form-error {
  color: #FB7185;
}

/* ── Dark mode: password toggle ──────────────────────────────────────────── */
[data-theme="dark"] .password-toggle {
  color: #94A3B8;
}

[data-theme="dark"] .password-toggle:hover {
  color: #CBD5E1;
}

/* ── Dark mode: next-step number bubbles ─────────────────────────────────── */
[data-theme="dark"] .next-step-item__number {
  background: #1E293B;
  border-color: #334155;
  color: #CBD5E1;
}

/* ── Dark mode: product thumbnail placeholder ────────────────────────────── */
[data-theme="dark"] .order-summary__product-thumb {
  background: transparent;
}

/* ── Dark mode: express checkout divider line ────────────────────────────── */
[data-theme="dark"] .express-checkout__divider::before,
[data-theme="dark"] .express-checkout__divider::after {
  background: #334155;
}

/* ── Dark mode: plan radio border (unselected) ───────────────────────────── */
[data-theme="dark"] .plan-card__radio {
  border-color: #334155;
}

/* ── Dark mode: renewal / order-id text areas ────────────────────────────── */
[data-theme="dark"] .order-summary__renewal {
  border-top-color: #1E293B;
}

/* ==========================================================================
   COUPON DISCOUNT BREAKDOWN — Unlocator-style
   ========================================================================== */

/* Discount line: green label + green negative amount */
.order-summary__line--discount {
  color: var(--color-green);
  font-weight: 600;
}

.order-summary__line--discount span {
  color: var(--color-green);
}

/* Ensure discount badge text stays white, not overridden by parent green */
.order-summary__line--discount .badge--discount-pct {
  color: #ffffff !important;
}

/* "Due today" line turns green when coupon is active */
.order-summary__line--total-green .order-summary__line > span:last-child,
.order-summary__line--total-green span[id$="-due-today"] {
  color: var(--color-green);
  font-weight: 700;
}

/* Plan card: struck-through original billing total */
.plan-card__billing-original {
  color: var(--color-text-secondary);
  font-size: 0.875em;
  margin-right: 2px;
}

.plan-card__billing-original s {
  text-decoration: line-through;
}

/* Discounted billing total on plan card */
.plan-card__billing-discounted--active {
  color: var(--color-green);
  font-weight: 700;
}

/* V2 billing card: struck-through original total */
.v2-price-total-original {
  color: var(--color-text-secondary);
  font-size: 0.875em;
  margin-right: 2px;
  text-decoration: line-through;
}

/* V2 billing card: discounted total in green */
.v2-price-total--discounted-active {
  color: var(--color-green);
  font-weight: 700;
}

/* Coupon applied row — Unlocator green-check style */
.order-summary__coupon--applied {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.order-summary__coupon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.order-summary__coupon--applied .order-summary__coupon-code {
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
}

.order-summary__coupon--applied .order-summary__coupon-remove {
  margin-left: 4px;
  color: var(--color-text-secondary);
  text-decoration: underline;
  cursor: pointer;
  font-size: var(--font-size-sm);
  background: none;
  border: none;
  padding: 0;
}

/* Dark mode overrides for new coupon discount elements */
[data-theme="dark"] .order-summary__line--discount,
[data-theme="dark"] .order-summary__line--discount span {
  color: var(--color-green);
}

[data-theme="dark"] .order-summary__line--discount .badge--discount-pct {
  color: #ffffff !important;
}

[data-theme="dark"] .plan-card__billing-discounted--active,
[data-theme="dark"] .v2-price-total--discounted-active {
  color: var(--color-green);
}

/* ==========================================================================
   PAYMENT ICONS ROW
   ========================================================================== */

.payment-icons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.payment-icons-row img {
  height: 32px;
  width: auto;
}

/* ==========================================================================
   DISCOUNT PERCENTAGE BADGE
   ========================================================================== */

.badge--discount-pct {
  display: inline-block;
  background: var(--color-green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ==========================================================================
   V1 UNIFIED BOX LAYOUT (Unlocator-style)
   ========================================================================== */

/* When .unified-box is applied, both columns sit inside a single white card */
.main-content__inner.unified-box {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  max-width: 1060px;
  align-items: start;
}

/* Order summary inside unified-box: use same card styling as checkout cards */
.unified-box .order-summary {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: none;
}

.unified-box .content-col {
  padding: 0;
}

.unified-box .summary-col {
  background: transparent;
  border-left: none;
  padding: 0;
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
}

/* Vertical divider between content-col and summary-col */
.main-content__inner.unified-box {
  position: relative;
}

.main-content__inner.unified-box::after {
  display: none;
}

/* Dark mode unified box */
[data-theme="dark"] .main-content__inner.unified-box {
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .unified-box .summary-col {
  background: transparent;
}

[data-theme="dark"] .unified-box .order-summary {
  background: #0F172A;
  border-color: #1E293B;
}

/* ==========================================================================
   AUTOGENERATED PASSWORD BLOCK
   ========================================================================== */

.autogen-password-block {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.autogen-password-block__inner {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: var(--radius-lg);
}

.autogen-password-block__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbbf24;
  border-radius: var(--radius-md);
  color: #1a1a1a;
}

.autogen-password-block__content {
  flex: 1;
  min-width: 0;
}

.autogen-password-block__title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.autogen-password-block__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  line-height: 1.45;
}

.autogen-password-block__field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.autogen-password-block__value {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  flex: 1;
  user-select: all;
}

.autogen-password-block__copy {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.autogen-password-block__copy:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.autogen-password-block__copy.is-copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

/* Dark mode autogen password */
[data-theme="dark"] .autogen-password-block__inner {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.5);
}

[data-theme="dark"] .autogen-password-block__field {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .autogen-password-block__copy {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* ==========================================================================
   CONSENT CHECKBOX
   ========================================================================== */

.form-group--consent {
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

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

.consent-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.consent-text a {
  color: var(--color-amber-dark);
  text-decoration: underline;
}

.consent-text a:hover {
  color: var(--color-amber);
}

.consent-error {
  color: var(--color-error);
  font-size: var(--font-size-xs);
  margin-top: 4px;
  display: none;
}

/* ==========================================================================
   FEATURE LIST (V1 plan hero)
   ========================================================================== */

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 5px 0;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
}

.feature-item__icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   GUARANTEE NOTE (below CTA)
   ========================================================================== */

.guarantee-note {
  text-align: center;
  margin-top: 14px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   SECURITY NOTE (below accordion)
   ========================================================================== */

.security-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
}

/* ==========================================================================
   RESPONSIVE — UNIFIED BOX
   ========================================================================== */

@media (max-width: 860px) {
  .main-content__inner.unified-box {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  /* Hide vertical divider on tablet/mobile */
  .main-content__inner.unified-box::after {
    display: none;
  }

  .unified-box .summary-col {
    border-left: none;
    border-top: 1px solid var(--color-border);
    position: static;
  }

  .unified-box .content-col {
    padding: var(--space-6) var(--space-5);
  }

  .unified-box .summary-col {
    padding: var(--space-6) var(--space-5);
  }

  .autogen-password-block__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   V1 MOBILE LAYOUT — Unlocator-style
   Only affects screens ≤ 767px. Desktop layout is completely untouched.
   Uses body[data-v1-step] attribute set by ui.js to conditionally reorder
   the order summary above or below the content column.
   ========================================================================== */

@media (max-width: 767px) {

  /* ── Header: center logo on mobile ──────────────────────────────────────── */
  .site-header__inner {
    justify-content: center;
    padding: 0 var(--space-4);
  }

  /* ── Unified box: remove card styling, go full-width ────────────────────── */
  .main-content__inner.unified-box {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .main-content {
    padding: 0;
  }

  /* ── Content column: full-width, no card padding ────────────────────────── */
  .unified-box .content-col {
    padding: var(--space-5) var(--space-5);
    order: 2;
  }

   /* ── Summary column: full-width, conditional visibility ───────────────── */
  .unified-box .summary-col {
    border-left: none;
    border-top: none;
    position: static;
    padding: 0 var(--space-4);
    background: transparent;
    order: 1;
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Step 1: HIDE order summary on mobile (plan card is the summary) ────── */
  [data-v1-step="1"] .summary-col {
    display: none !important;
  }

  /* ── DTC override: step 1 IS checkout, so show summary at top ────────────── */
  .variation-dtc[data-v1-step="1"] .summary-col {
    display: block !important;
    order: 1;
    padding: 0 var(--space-4);
  }
  .variation-dtc[data-v1-step="1"] .content-col {
    order: 2;
  }

  /* ── DTC override: step 2 IS confirmation, summary below content ────────── */
  .variation-dtc[data-v1-step="2"] .summary-col {
    order: 3;
  }
  .variation-dtc[data-v1-step="2"] .content-col {
    order: 1;
  }

  /* ── Step 2 (checkout): SHOW order summary at TOP ──────────────────────────────── */
  [data-v1-step="2"] .summary-col {
    display: block !important;
    order: 1;
  }

  [data-v1-step="2"] .content-col {
    order: 2;
  }

  /* ── Step 3 (confirmation): order summary BELOW the confirmation content ── */
  [data-v1-step="3"] .summary-col {
    display: block !important;
    order: 3;
  }

  [data-v1-step="3"] .content-col {
    order: 1;
  }

  /* ── Order summary card: full-width on mobile ──────────────────────────── */
  .unified-box .summary-col .order-summary {
    border-radius: var(--radius-xl);
    margin-bottom: 0;
  }

  /* On step 2 (checkout), hide the guarantee, support, and trustpilot sections
     from the checkout summary to keep it compact */
  [data-v1-step="2"] .order-summary[data-summary="checkout"] .order-summary__guarantee,
  [data-v1-step="2"] .order-summary[data-summary="checkout"] .order-summary__support,
  [data-v1-step="2"] .order-summary[data-summary="checkout"] .trustpilot,
  /* DTC: step 1 is checkout, same hiding rules */
  .variation-dtc[data-v1-step="1"] .order-summary[data-summary="checkout"] .order-summary__guarantee,
  .variation-dtc[data-v1-step="1"] .order-summary[data-summary="checkout"] .order-summary__support,
  .variation-dtc[data-v1-step="1"] .order-summary[data-summary="checkout"] .trustpilot {
    display: none;
  }

  /* Show the coupon applied row in the order summary on mobile step 2 (checkout) */
  [data-v1-step="2"] .order-summary[data-summary="checkout"] .order-summary__coupon--applied,
  .variation-dtc[data-v1-step="1"] .order-summary[data-summary="checkout"] .order-summary__coupon--applied {
    display: flex;
  }

  /* ── Order summary product: smaller thumbnail on mobile ─────────────────── */
  .unified-box .order-summary__product {
    padding: var(--space-4) var(--space-5);
  }

  .unified-box .order-summary__product-thumb {
    width: 56px;
    height: 56px;
  }

  .unified-box .order-summary__product-thumb img {
    width: 56px;
    height: 56px;
  }

  .unified-box .order-summary__product-name {
    font-size: var(--font-size-md);
  }

  /* ── Order summary line items: tighter spacing on mobile ────────────────── */
  .unified-box .order-summary__line-items {
    padding: var(--space-3) var(--space-5);
  }

  .unified-box .order-summary__line {
    font-size: var(--font-size-sm);
  }

  .unified-box .order-summary__divider {
    margin: 0;
  }

  /* ── Step panels: remove border-radius for full-width feel ──────────────── */
  .unified-box .step-panel {
    border-radius: var(--radius-lg);
  }

  /* ── Plan hero: adjust spacing for mobile ───────────────────────────────── */
  .plan-hero {
    padding: 0;
  }

  .plan-hero__eyebrow {
    font-size: var(--font-size-xl);
    line-height: 1.25;
  }

  .plan-hero__description {
    max-width: 100%;
  }

  /* ── Feature list: slightly smaller on mobile ───────────────────────────── */
  .feature-list {
    margin: var(--space-4) 0;
  }

  .feature-item {
    font-size: var(--font-size-sm);
    padding: 4px 0;
  }

  /* ── Plan card: full-width on mobile ────────────────────────────────────── */
  .plan-selection {
    margin-top: var(--space-5);
  }

  .card--plan {
    padding: var(--space-4) var(--space-5);
  }

  /* ── CTA button: full-width with more vertical padding ──────────────────── */
  .unified-box .btn--primary {
    padding: var(--space-5) var(--space-6);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
  }

  /* ── Guarantee note: left-aligned on mobile like Unlocator ──────────────── */
  .guarantee-note {
    text-align: left !important;
  }

  /* ── Coupon applied row: visible on step 1 mobile ───────────────────────── */
  /* (already in the order summary, but on step 1 the summary is hidden,
     so we need to show it inline in the step content) */

  /* ── Security note: tighter on mobile ───────────────────────────────────── */
  .security-note {
    font-size: var(--font-size-xs);
    padding: var(--space-3) 0;
  }

  /* ── Confirmation hero: stack vertically, center ────────────────────────── */
  .confirmation-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
  }

  .confirmation-check {
    width: 56px;
    height: 56px;
  }

  .confirmation-check svg {
    width: 24px;
    height: 24px;
  }

  .confirmation-title {
    font-size: var(--font-size-xl);
  }

  /* ── Autogen password block: stack on mobile ────────────────────────────── */
  .autogen-password-block__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
  }

  /* ── Next steps: tighter spacing ────────────────────────────────────────── */
  .next-steps {
    margin-top: var(--space-5);
  }

  /* ── Express checkout buttons: stack vertically ─────────────────────────── */
  .express-checkout__buttons {
    flex-direction: column;
  }

  .btn--apple-pay,
  .btn--google-pay,
  .btn--paypal {
    flex: none;
    width: 100%;
  }

  /* ── Form rows: single column on mobile ─────────────────────────────────── */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* ── Footer: center everything ──────────────────────────────────────────── */
  .site-footer__platforms {
    padding: var(--space-4) var(--space-5);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4) var(--space-5);
  }

  .site-footer__legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ── Step 1 mobile: show coupon row inline (below guarantee note) ───────── */
  /* The coupon row is inside .order-summary which is hidden on step 1.
     We add a mobile-only coupon display area via JS or duplicate in HTML.
     For now, we handle this by showing the order summary coupon section
     as a standalone element on step 1. */

}

/* ── Dark mode adjustments for mobile unified box ─────────────────────────── */
@media (max-width: 767px) {
  [data-theme="dark"] .main-content__inner.unified-box {
    background: transparent;
    box-shadow: none;
  }

  [data-theme="dark"] .unified-box .summary-col {
    background: transparent;
  }

  [data-theme="dark"] .unified-box .content-col {
    background: transparent;
  }
}

/* ==========================================================================
   MOBILE COUPON ROW — only visible on mobile step 1
   ========================================================================== */

/* Hidden by default — JS adds .is-visible when coupon is applied */
.mobile-coupon-row {
  display: none;
}

@media (max-width: 767px) {
  .mobile-coupon-row.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-primary);
  }

  .mobile-coupon-row .order-summary__coupon-remove {
    display: none;
  }

  .mobile-coupon-row .order-summary__coupon-check {
    color: var(--color-success);
    font-weight: 700;
    font-size: 16px;
  }

  .mobile-coupon-row .order-summary__coupon-code {
    font-weight: 700;
  }


}

/* ==========================================================================
   DTC ENHANCEMENTS — Blue CTA, Secure Checkout, Mobile Bar, Legal Modals
   ========================================================================== */

/* Blue Buy Now CTA (matching V3-2yr style) */
.btn--blue-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 32px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.02em;
}
.btn--blue-cta:hover {
  background-color: #1d4ed8;
}
.btn--blue-cta:active {
  transform: scale(0.98);
}

/* Smaller logo for DTC */
.dtc-logo-sm {
  width: 34px !important;
  height: 34px !important;
}

/* Secure Checkout badge in DTC header */
.dtc-secure-checkout {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.dtc-secure-checkout img {
  display: block;
}

/* Header inner — space between logo and secure checkout */
.variation-dtc .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Plan label styling */
.dtc-plan-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Legal modal link styling (near-black, underlined) */
.legal-modal-link {
  color: #2c2c2c !important;
  text-decoration: underline !important;
}
.legal-modal-link:hover {
  color: #000 !important;
}

/* ── Legal Modal Overlay ─────────────────────────────────────────────────── */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 20px;
}
.legal-modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.legal-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.legal-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.legal-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}
.legal-modal-body {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}
.legal-modal-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: #0f172a;
}
.legal-modal-body p {
  margin-bottom: 12px;
}
.legal-modal-body a {
  color: #2563eb;
  text-decoration: underline;
}

/* ── DTC Mobile Fixed Bar ────────────────────────────────────────────────── */
.dtc-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 12px 20px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.dtc-mobile-bar__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.dtc-mobile-bar__price {
  font-size: 18px;
  font-weight: 700;
}
.dtc-mobile-bar__btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 50px;
}

@media (max-width: 900px) {
  .dtc-mobile-bar {
    display: block;
  }

  /* Hide secure checkout on mobile */
  .dtc-secure-checkout {
    display: none;
  }

  /* Add bottom padding so fixed bar doesn't cover content */
  .variation-dtc .page-wrapper {
    padding-bottom: 160px;
  }
}

/* ── DTC Email Input with Tooltip Icon ──────────────────────────────────── */
.dtc-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.dtc-input-with-icon .form-input {
  padding-right: 44px;
}
.dtc-tooltip-trigger {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.dtc-tooltip-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
}
.dtc-tooltip-trigger:hover svg {
  stroke: #64748b;
}

/* Tooltip popup */
.dtc-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 13px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.dtc-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dtc-tooltip__arrow {
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: #1e293b;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ── DTC Email Error (matching v3 pattern) ──────────────────────────────── */
.dtc-email-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-error, #ef4444);
}
.dtc-email-error.is-visible {
  display: flex;
}
.dtc-email-error svg {
  flex-shrink: 0;
}

/* ── DTC Mobile Express CTA (branded button styles) ─────────────────────── */
.dtc-mobile-bar__btn.dtc-mobile-express-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dtc-mobile-bar__btn.dtc-mobile-express-apple:hover {
  opacity: 0.9;
}
.dtc-mobile-bar__btn.dtc-mobile-express-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #fff;
  color: #3c4043;
  border: 1.5px solid #747775;
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dtc-mobile-bar__btn.dtc-mobile-express-google:hover {
  opacity: 0.9;
}
.dtc-mobile-express-label {
  font-size: 16px;
  font-weight: 600;
}
.dtc-mobile-express-logo {
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* ─── DTC: Guarantee icon row (below coupon row) ─────────────────────────── */
.dtc-guarantee-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  padding: var(--space-1) var(--order-summary-section-x) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.dtc-guarantee-row img {
  flex-shrink: 0;
}

/* ─── DTC: Wider sidebar + column gap matches card gap ───────────────────── */
.variation-dtc .main-content__inner {
  --sidebar-width: 460px;
  gap: var(--space-4);
}

/* ─── DTC: All order summary dividers edge-to-edge except subtotals→total ─── */
.variation-dtc .order-summary__divider {
  margin: 0;
}

.variation-dtc .order-summary__divider--inset {
  margin: 0 var(--order-summary-section-x);
}

/* ============================================================
   STRIPE PAYMENT ELEMENT
   ============================================================ */

.stripe-payment-element-mount {
  min-height: 48px;
  margin-bottom: 16px;
}

.stripe-error-message {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Hide legacy card fields when Stripe Element is mounted */
.stripe-element-active .v3-card-input-row,
.stripe-element-active .v3-card-form-mcafee,
.stripe-element-active .payment-icons-row {
  display: none !important;
}
