.recommendation--highlight {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 22px;
}

.recommendation--highlight h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
}

#recommendation-summary {
  margin: 6px 0 12px;
  font-weight: 600;
  color: #4b5563;
  font-size: 14px;
}

.recommendation-banner {
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.recommendation-banner--switch {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
}

.recommendation-banner--stay {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.recommendation-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #1a202c;
}

.analysis-badge {
  display: inline-block;
  background: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.3px;
}

#recommendation-summary-banner {
  font-size: 16px;
  margin: 12px 0;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.6;
}

.recommendation-details {
  margin-top: 20px;
}

.plan-comparison {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0;
  padding: 18px;
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
}

.plan-comparison-item {
  flex: 1;
  text-align: center;
}

.plan-comparison-item h4 {
  margin: 0 0 12px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  font-weight: 700;
}

.plan-comparison-item .plan-rate {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 6px 0;
  color: #1a202c;
  letter-spacing: -0.5px;
}

.plan-comparison-item .plan-cost {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 12px 0;
  color: #6b7280;
}

.plan-comparison-item .plan-provider {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 4px 0;
  color: #10b981;
}

.plan-comparison-item--best {
  background: rgba(255,255,255,0.95);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px;
}

.plan-comparison-arrow {
  font-size: 2rem;
  font-weight: bold;
  color: #059669;
  flex-shrink: 0;
}

.recommendation-reason {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
}

.plan-details p {
  margin: 6px 0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background: #fafbfc;
  color: #1a202c;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
  color: #fff;
  padding: 56px 24px;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

.hero--landing {
  padding: 80px 24px;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a3a9f 0%, #234dd4 50%, #0fb2ff 100%);
  position: relative;
}

.hero__content { max-width: 1400px; margin: 0 auto; }

.hero__content--landing {
  max-width: 1400px;
  text-align: center;
}

.hero__badge { 
  display: inline-block; 
  margin-bottom: 24px; 
  padding: 10px 20px; 
  background: rgba(255,255,255,0.15); 
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 28px; 
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  backdrop-filter: blur(10px);
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px 0;
  letter-spacing: -1.2px;
}

.hero__subtitle {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.95;
}
  opacity: 0.95;
  font-weight: 400;
}

.cta-section {
  margin-top: 48px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 280px;
  padding: 14px 18px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  font-size: 16px;
  background: rgba(255,255,255,0.97);
  transition: all 0.3s ease;
  font-weight: 500;
}

.email-input:focus {
  outline: none;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.email-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.cta-button {
  padding: 14px 36px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.35);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-hint {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.cta-login-toggle {
  margin-top: 12px;
  font-size: 14px;
}

.login-toggle-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
}

.login-toggle-link:hover {
  color: #fff;
}

.features {
  background: #fff;
  padding: 100px 24px;
}

.features__container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.feature {
  text-align: center;
  padding: 32px 28px;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.feature:hover {
  background: #f0f4f8;
  transform: translateY(-4px);
}

.feature__icon {
  font-size: 52px;
  margin-bottom: 24px;
  display: inline-block;
}

.feature h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #1a202c;
  letter-spacing: -0.3px;
}

.feature p {
  font-size: 16px;
  color: #5b6473;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

.how-it-works {
  background: #f8fafc;
  padding: 100px 24px;
}

.how-it-works__container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.how-it-works h2 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 80px 0;
  color: #1a202c;
  letter-spacing: -1px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step__number {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.step h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #1a202c;
  letter-spacing: -0.2px;
}

.step p {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.step p {
  font-size: 15px;
  color: #5b6473;
  line-height: 1.6;
  margin: 0;
}

.hero h1 { margin: 0 0 12px; font-size: 36px; }
.hero p { margin: 0 0 8px; font-size: 18px; }
.hero__badge { display: inline-block; margin-top: 12px; padding: 8px 12px; background: rgba(255,255,255,0.14); border-radius: 8px; font-weight: 600; }

.landing { display: flex; justify-content: center; padding: 48px 24px; }
.dashboard { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 32px 24px; 
  display: grid; 
  gap: 28px; 
}
.card--center { 
  max-width: 500px; 
  width: 100%;
  margin: 0 auto;
}
.hero--sm { 
  padding: 28px 24px; 
  position: relative; 
}
.hero--sm .hero__content { 
  max-width: 1200px; 
  position: relative; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero--sm h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.user-info { 
  position: relative;
  display: flex; 
  align-items: center; 
  gap: 16px; 
}
.hero--sm .user-email { 
  font-size: 14px; 
  margin: 0; 
  font-weight: 600;
  opacity: 0.95; 
}
.logout-btn { 
  color: #fff; 
  text-decoration: none; 
  padding: 8px 18px; 
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px; 
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}
.logout-btn:hover { 
  background: rgba(255,255,255,0.25);
}
.subtitle { 
  color: #5b6473; 
  margin: 4px 0 16px; 
  font-size: 15px;
  font-weight: 500; 
}
.back-link { 
  display: inline-block; 
  margin-top: 16px; 
  color: #2563eb; 
  text-decoration: none; 
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}
.back-link:hover { 
  text-decoration: underline;
  opacity: 0.8;
}
.btn-primary { 
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); 
  color: #fff; 
  border: none; 
  cursor: pointer; 
  font-weight: 700; 
  padding: 12px 24px; 
  border-radius: 10px; 
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
}
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 20px; 
  padding: 32px;
  max-width: 1200px; 
  margin: -24px auto 32px; 
}
.card { 
  background: #fff; 
  border-radius: 16px; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
  padding: 32px;
  border: 1px solid #f0f0f0;
}
.card h2 { 
  margin-top: 0;
  margin-bottom: 8px; 
  font-size: 28px;
  font-weight: 800;
  color: #1a202c;
  letter-spacing: -0.5px;
}
.card .subtitle {
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 24px 0;
}
label { 
  display: block; 
  font-weight: 600; 
  margin: 12px 0 8px;
  color: #1a202c;
  font-size: 14px;
}
input, select, button { 
  width: 100%; 
  padding: 12px 14px; 
  border: 1.5px solid #e5e7eb; 
  border-radius: 10px; 
  font-size: 14px; 
  font-weight: 500;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
select { 
  height: 44px; 
  line-height: 1.5;
}
input:focus, select:focus { 
  outline: none; 
  border-color: #2563eb; 
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #f8fafc;
}
button { 
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); 
  color: #fff; 
  border: none; 
  cursor: pointer; 
  font-weight: 700;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
}
button:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
button:active {
  transform: translateY(0);
}
.hint { 
  color: #6b7280; 
  font-size: 13px; 
  margin-top: 8px;
  font-weight: 500;
}
.grid-2 { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 16px; 
}
.inline { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-weight: 600; 
}
.inline input { 
  width: auto; 
}
.output { background: #0e1726; color: #dff1ff; padding: 12px; border-radius: 10px; min-height: 120px; overflow: auto; }
.toast { position: fixed; bottom: 16px; right: 16px; padding: 12px 14px; border-radius: 10px; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.toast--ok { background: #0fa36a; }
.toast--err { background: #e54b4b; }

.analysis-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.plan-card { padding: 16px; border: 2px solid #e5e7eb; border-radius: 8px; }
.plan-card--best { border-color: #059669; background: #f0fdf4; }
.plan-card h3 { margin-top: 0; font-size: 18px; }
.plan-card p { margin: 8px 0; }
.form-stack {
  display: grid;
  gap: 12px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-row input,
.form-row select {
  width: 100%;
  box-sizing: border-box;
}

.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fieldset {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
}
.recommendation { margin-top: 20px; padding: 16px; background: #f9fafb; border-radius: 8px; border-left: 4px solid #234dd4; }
.recommendation h3 { margin-top: 0; font-size: 20px; }

.code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 20px;
}

.code-digit {
  width: 54px !important;
  height: 64px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 12px 0 !important;
  line-height: 28px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  vertical-align: middle;
  background: #f8fafc;
}

.code-digit:focus {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  transform: scale(1.08);
}

.pricing-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
  padding: 100px 24px;
}

.pricing-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.pricing-container h2 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 80px 0;
  color: #1a202c;
  letter-spacing: -0.5px;
}

.pricing-card {
  background: white;
  border-radius: 18px;
  padding: 48px 44px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border: 1.5px solid #e5e7eb;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  transform: translateY(-6px);
  border-color: #2563eb;
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-header h3 {
  margin: 0 0 20px 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.3px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.price .amount {
  font-size: 54px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price .period {
  font-size: 18px;
  font-weight: 600;
  color: #6b7280;
}

.price-highlight {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #fcd34d;
}

.price-highlight p {
  margin: 0;
  font-weight: 500;
  color: #92400e;
  font-size: 15px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.pricing-features li {
  margin: 12px 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.roi-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
}

.roi-box p {
  margin: 0;
  font-size: 14px;
  color: #0369a1;
  line-height: 1.6;
}

.hero__logo {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
  border-top: 1px solid #e5e7eb;
  padding: 80px 32px 32px;
  margin-top: 100px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.footer__content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer__section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.2px;
}

.footer__section p {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.7;
}

.footer__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__section ul li {
  margin: 10px 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.footer__bottom p {
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

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

.badge {
  display: inline-block;
  background: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.badge:hover {
  background: #f0f4f8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

@media (max-width: 640px) { .hero h1 { font-size: 28px; } .grid { padding: 16px; } }
