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

:root {
  --primary: #0277BD;
  --primary-dark: #01579B;
  --primary-light: #0288D1;
  --primary-container: #B3E5FC;
  --primary-container-dark: #81D4FA;
  --accent: #29ABE2;
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --on-surface: #1C1B1F;
  --on-surface-variant: #49454F;
  --outline: #79747E;
  --outline-variant: #CAC4D0;
  --error: #D32F2F;
  --error-container: #FDECEA;
  --success: #2E7D32;
  --success-container: #E8F5E9;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-brand .brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--primary-container);
  color: var(--primary-dark);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-container);
}

/* ── LAYOUT ── */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-content.narrow {
  max-width: 720px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  object-fit: cover;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2,119,189,0.35);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(2,119,189,0.45); }

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-container); }

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 22px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.06);
}

/* ── SECTION ── */
.section {
  padding: 64px 24px;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 16px;
  color: var(--on-surface-variant);
  max-width: 560px;
  line-height: 1.65;
}

/* ── STEPS GRID ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.step-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.4;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.06);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--primary-container);
  padding: 56px 24px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}

/* ── STORE BADGES ── */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--on-surface);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.store-badge:hover { background: #000; transform: translateY(-2px); }

.store-badge-icon { font-size: 24px; }

.store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge-text small { font-size: 10px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.5px; }
.store-badge-text span { font-size: 15px; font-weight: 600; }

/* ── LEGAL PAGES ── */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--outline-variant);
}

.page-header h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.page-header .meta {
  font-size: 13px;
  color: var(--on-surface-variant);
}

.prose h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  margin-top: 36px;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  margin-top: 20px;
  margin-bottom: 8px;
}

.prose p {
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  margin: 0 0 14px 22px;
}

.prose li {
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.75;
  margin-bottom: 6px;
}

.prose a {
  color: var(--primary);
  text-decoration: none;
}
.prose a:hover { text-decoration: underline; }

.info-banner {
  background: var(--primary-container);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--primary-dark);
  line-height: 1.6;
}

.success-banner {
  background: var(--success-container);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--success);
  line-height: 1.6;
  display: none;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 6px;
}

.form-label .required { color: var(--error); }

.form-control {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--outline);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  background: var(--surface);
  color: var(--on-surface);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2,119,189,0.15);
}

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

.form-control::placeholder { color: #9E9E9E; }

/* ── DELETE DATA PAGE ── */
.delete-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.delete-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.delete-step .step-badge {
  flex-shrink: 0;
  margin-top: 1px;
}

.delete-step .step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.delete-step .step-content p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--on-surface);
  color: #fff;
  padding: 40px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(179,229,252,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 320px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: 960px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 56px 20px; }
  .section { padding: 48px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
