/* ============================================================
   AppStarter Wizard — Shared Stylesheet
   Fonty jako zmienne CSS, bez inline font-family w HTML
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Instrument+Sans:wght@400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  /* Fonts */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;

  /* Font sizes */
  --fs-xs:   0.875rem;   /* 14px */
  --fs-sm:   1rem;       /* 16px */
  --fs-base: 1.125rem;   /* 18px */
  --fs-md:   1.25rem;    /* 20px */
  --fs-lg:   1.5rem;     /* 24px */
  --fs-xl:   1.75rem;    /* 28px */
  --fs-2xl:  2rem;       /* 32px */
  --fs-3xl:  2.5rem;     /* 40px */

  /* Colors */
  --black:      #0c0f0a;
  --surface:    #131710;
  --card:       #1a1f16;
  --card2:      #1f2519;
  --accent:     #8fd62f;
  --accent-dim: rgba(143, 214, 47, 0.12);
  --white:      #f0f4e8;
  --muted:      rgba(240, 244, 232, 0.55);
  --border:     rgba(143, 214, 47, 0.18);
  --border2:    rgba(240, 244, 232, 0.07);
  --error:      #f87171;

  /* Spacing */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  14px;
  --radius-xl:  28px;
  --radius-pill: 100px;
}

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

/* --- Base --- */
html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

/* --- Wizard wrapper --- */
.wizard-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Logo --- */
.wizard-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.wizard-logo-text {
  font-family: var(--font-display);
  font-size: 1.94rem;
  font-weight: 800;
  color: var(--white);
}

.wizard-logo-text span {
  color: var(--accent);
}

/* --- Progress dots --- */
.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
  justify-content: center;
}

.prog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
  transition: all 0.3s;
}

.prog-dot.done {
  background: var(--accent);
  opacity: 0.5;
}

.prog-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* --- Card --- */
.card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.35s ease both;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.step-tag {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

.card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

/* --- Option list (single column) --- */
.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.opt {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  color: var(--white);
}

.opt:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateX(4px);
}

.opt-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.opt-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.opt-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1px;
}

/* --- Option cards (2-column grid) --- */
.opt-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.opt-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  color: var(--white);
  text-align: center;
}

.opt-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.opt-card-img {
  width: 100%;
  height: 110px;
  background: var(--card2);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 1px solid var(--border2);
}

.opt-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.opt-card-price {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}

.opt-card-sub {
  font-size: 1rem;
  color: var(--muted);
}

/* --- Inputs --- */
input[type="text"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.4rem;
  outline: none;
  transition: border-color 0.15s;
}

input:focus {
  border-color: var(--accent);
}

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

.input-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}

.input-prefix {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  pointer-events: none;
}

.input-prefix + input {
  padding-left: 3rem;
}

/* --- City search --- */
.city-search-wrap {
  margin-bottom: 0.75rem;
}

.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  max-height: 300px;
  overflow-y: auto;
}

.city-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.city-btn:hover,
.city-btn.sel {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--white);
}

.city-btn.sel {
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  width: 100%;
  background: var(--accent);
  color: #0c0f0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 0.5rem;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(143, 214, 47, 0.28);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border2);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* --- SMS code inputs --- */
.sms-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.sms-digit {
  width: 52px;
  height: 60px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-display);
  outline: none;
  transition: border-color 0.15s;
}

.sms-digit:focus {
  border-color: var(--accent);
}

/* --- Error messages --- */
.error-msg {
  color: var(--error);
  font-size: 1rem;
  margin-top: 0.4rem;
  display: none;
}

.error-msg.show {
  display: block;
}

/* --- Success page --- */
.success-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.success-card {
  text-align: center;
}

.success-card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  margin-bottom: 0.5rem;
}

.success-card p {
  margin-bottom: 1.6rem;
}

/* --- Waitlist banner --- */
.waitlist-banner {
  display: none;
  background: rgba(143, 214, 47, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.waitlist-banner strong {
  color: var(--white);
}

.waitlist-banner .accent {
  color: var(--accent);
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  body {
    padding: 1.25rem;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .opt-cards {
    grid-template-columns: 1fr;
  }

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

  .card {
    padding: 1.8rem 1.5rem;
  }

  .sms-digit {
    width: 44px;
    height: 52px;
    font-size: 1.6rem;
  }
}
