:root {
  --ink: #1f2937;
  --muted: #4b5563;
  --paper: #f4f8f5;
  --se-green: #3dcd58;
  --se-green-deep: #1aa14b;
  --se-green-soft: #dff8e5;
  --pf-red: #e3262f;
  --pf-gold: #f2b705;
  --line: #d1d5db;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(760px 360px at 15% -6%, #ebfff0 0%, transparent 62%),
    radial-gradient(920px 460px at 95% -10%, #f0faf3 0%, transparent 66%),
    linear-gradient(180deg, #f7fbf8 0%, #f2f7f3 100%);
}

h1,
h2,
h3,
legend {
  font-family: Barlow, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  margin-top: 0;
}

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient-1,
.ambient-2 {
  border-radius: 50%;
  filter: blur(44px);
  animation: driftA 10s ease-in-out infinite alternate;
}

.ambient-1 {
  width: 360px;
  height: 360px;
  top: -130px;
  right: -120px;
  background: rgba(61, 205, 88, 0.18);
}

.ambient-2 {
  width: 250px;
  height: 250px;
  left: -90px;
  bottom: 12%;
  background: linear-gradient(160deg, rgba(227, 38, 47, 0.16), rgba(242, 183, 5, 0.12));
  animation-name: driftB;
}

@keyframes driftA {
  from { transform: translateY(0); }
  to { transform: translateY(28px); }
}

@keyframes driftB {
  from { transform: translateX(0); }
  to { transform: translateX(24px); }
}

.topbar,
.section,
.footer {
  position: relative;
  z-index: 2;
  width: min(1120px, 92%);
  margin-inline: auto;
}

.topbar {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 41, 55, 0.09);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #cfe2d2;
  background: #f5fff7;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

.lang-switch a {
  color: #3f4b45;
  text-decoration: none;
}

.lang-switch a.is-active {
  color: var(--se-green-deep);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--se-green) 0 74%, var(--pf-red) 86%, var(--pf-gold) 100%);
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 170px;
  max-width: 42vw;
}

.tag {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.section {
  margin-top: 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.7rem);
  line-height: 0.96;
  margin: 10px 0 14px;
}

.hero-copy p {
  font-size: 1.04rem;
  line-height: 1.56;
  color: #334155;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--se-green-deep);
  font-weight: 800;
  font-size: 0.8rem;
}

.hero-media img,
.catalog-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-points span {
  background: var(--card);
  border: 1px solid rgba(61, 205, 88, 0.28);
  color: #255037;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 41, 55, 0.08);
  padding: 18px;
  transform: translateY(8px);
  opacity: 0;
  animation: riseIn 0.6s ease forwards;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--se-green) 0 78%, var(--pf-red) 90%, var(--pf-gold) 100%);
  border-radius: 16px 16px 0 0;
}

.card h3 {
  margin: 4px 0 8px;
}

.card:nth-child(2) { animation-delay: 0.09s; }
.card:nth-child(3) { animation-delay: 0.16s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}


/* Rental recommendation cards */
.table-wrap {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: auto;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.rental-card {
  background: linear-gradient(120deg, #f8fff9 0%, #e6f7ec 100%);
  border: 1.5px solid var(--se-green);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(61,205,88,0.07);
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 16px 14px 16px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.rental-card:hover {
  box-shadow: 0 8px 32px rgba(61,205,88,0.13);
  transform: translateY(-2px) scale(1.025);
  border-color: var(--se-green-deep);
}
.rental-card-header {
  font-family: Barlow, 'Segoe UI', sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--se-green-deep);
  margin-bottom: 8px;
  text-align: center;
}
.rental-model {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e6f7ec;
  color: #1f5138;
  font-size: 1.01rem;
  font-weight: 700;
}
.rental-card-body {
  margin-bottom: 12px;
  text-align: center;
}
.rental-price-block {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--se-green-deep);
  margin-bottom: 4px;
}
.rental-label {
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}
.rental-price {
  font-size: 1.22rem;
  color: var(--se-green-deep);
  font-weight: 800;
  margin-right: 2px;
}
.rental-per-month {
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 600;
}
.rental-price-ttc {
  font-size: 0.98rem;
  color: #1f5138;
  margin-bottom: 2px;
}
.prescribe-btn {
  margin-top: 8px;
  font-size: 1.04rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 0;
  background: linear-gradient(120deg, var(--se-green-deep), var(--se-green) 72%, var(--pf-gold));
  color: #fff;
  border: none;
  width: 100%;
  box-shadow: 0 2px 8px rgba(61,205,88,0.08);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.prescribe-btn:hover, .prescribe-btn:focus {
  background: linear-gradient(120deg, var(--se-green), var(--se-green-deep) 72%, var(--pf-gold));
  box-shadow: 0 4px 16px rgba(61,205,88,0.16);
  transform: scale(1.03);
}
.prescribe-label {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
@media (max-width: 700px) {
  .table-wrap {
    flex-direction: column;
    gap: 16px;
    padding: 12px 4px 8px 4px;
  }
  .rental-card {
    min-width: 98%;
    max-width: 100%;
    margin-inline: auto;
  }
}

.configurator,
.schneider-selectors {
  background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  box-shadow: var(--shadow);
  padding: 24px;
}

.selector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.selector-tab {
  border: 1px solid #b7e8c2;
  background: #f4fff6;
  color: #225134;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.selector-tab:hover {
  transform: translateY(-1px);
}

.selector-tab.is-active {
  background: linear-gradient(135deg, var(--se-green-deep), var(--se-green));
  color: #fff;
  border-color: var(--se-green-deep);
}

.selector-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 640px;
}

.selector-frame {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
  background: #ffffff;
}

.selector-fallback {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.selector-fallback p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

legend {
  font-weight: 700;
  padding-inline: 6px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cad5cc;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(61, 205, 88, 0.35);
  border-color: var(--se-green-deep);
}

.result {
  background: linear-gradient(135deg, #183227, #1f5138);
  color: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  min-height: 112px;
}

.email-auto-box {
  border: 1px solid #d6e7da;
  background: #f8fff9;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0 12px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
}

.checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

#emailStatus {
  margin: 10px 0 0;
}

.btn {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(120deg, var(--se-green-deep), var(--se-green) 72%, var(--pf-gold));
  color: #fff;
  width: 100%;
}

.btn-outline {
  border: 1px solid rgba(31, 41, 55, 0.26);
  color: #1f2937;
  background: #fff;
}

.btn-subtle {
  border: 1px solid #b7d9bf;
  background: var(--se-green-soft);
  color: #225134;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.story-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 41, 55, 0.1);
  box-shadow: var(--shadow);
  padding: 20px;
}

.story-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.story-list li {
  margin-bottom: 8px;
}

.kpi-stack {
  display: grid;
  gap: 12px;
}

.kpi-card {
  background: linear-gradient(155deg, #ffffff, #f3fff4);
  border: 1px solid #cdecd4;
  border-radius: 14px;
  padding: 16px;
}

.kpi-card strong {
  display: block;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  color: var(--se-green-deep);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.process-strip article {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 14px;
  padding: 16px;
  position: relative;
}

.process-strip span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--se-green), var(--se-green-deep));
  color: #fff;
  font-weight: 700;
}

.process-strip h3 {
  margin: 12px 0 8px;
}

.dual-cta {
  background: linear-gradient(120deg, #15382a 0%, #1d4f39 65%, #2c7253 100%);
  color: #f8fafc;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.dual-cta .eyebrow {
  color: #b4f0c4;
}

.dual-cta p {
  color: rgba(248, 250, 252, 0.92);
}

.dual-cta-actions {
  display: grid;
  gap: 10px;
}

.dual-cta .btn-outline {
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.45);
  background: transparent;
}

.quick-lead {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.score-card {
  margin-top: 14px;
  border: 1px solid #d1e7d7;
  background: #f8fff9;
  border-radius: 12px;
  padding: 14px;
}

.score-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.score-hot {
  background: #ffe9d6;
  color: #9a3412;
}

.score-warm {
  background: #fff8d8;
  color: #854d0e;
}

.score-cold {
  background: #e7f7ec;
  color: #166534;
}

.draft-output {
  margin-top: 16px;
}

pre {
  background: #f9fffa;
  color: #1f2937;
  border-radius: 12px;
  border: 1px solid #d3e8d6;
  padding: 16px;
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.footer {
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 16px;
  padding: 16px;
}

.small {
  font-size: 0.84rem;
  color: #516071;
}

@media (max-width: 960px) {
  .hero,
  .split,
  .config-grid,
  .grid-3,
  .story-grid,
  .process-strip,
  .dual-cta {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .selector-frame-wrap,
  .selector-frame {
    min-height: 520px;
    height: 520px;
  }

  .lead-grid,
  .lead-actions {
    grid-template-columns: 1fr;
  }
}
