/* ================================================
   PROMOCAL — index.css
   ================================================ */

:root {
  --pc-primary:    #00B771;  /* ActionPrimaryColor light (P3→sRGB) */
  --pc-dark:       #006940;  /* derived dark */
  --pc-accent:     #8A4BFF;  /* AccentColor light (P3→sRGB) */
  --pc-container:  #00BB88;  /* SecondaryContainerColor light (P3→sRGB) */
  --pc-light:      #E6F7EF;  /* derived light tint */
  --pc-surface:    #F9FAFA;  /* BackgroundColor light (P3→sRGB) */
  --pc-border:     rgba(0, 183, 113, 0.18);
  --pc-text:       #0E1318;  /* TextPrimaryColor light (P3→sRGB) */
  --pc-text-soft:  #696B74;  /* TextSecondaryColor light (P3→sRGB) */
  --text-color:    #0E1318;
  --link-color:    #00B771;
  --link-visited-color: #006940;
}

a:not(.ui)::before {
  content: '';
}

body {
  display: flex;
  flex-flow: column nowrap;
  font-size: 1.6rem;
  color: var(--pc-text);
}

body > section {
  padding-top: 64px;
  padding-bottom: 64px;
}

hr.separator {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--pc-primary);
  margin: 16px auto 20px auto;
}

/* ---- HERO ---- */

body > header {
  background: linear-gradient(135deg, #006940 0%, #00BB88 100%);
  --text-color: #ffffff;
  padding: 64px 0;
}

body > header > div.column {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1 1 0;
  min-width: 0;
}

.hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: block;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-headline {
  font-size: 3.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 14px 0;
}

.hero-sub {
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 32px 0;
  line-height: 1.55;
  max-width: 520px;
}

.hero-download {
  display: flex;
  flex-flow: row wrap;
  gap: 16px;
  align-items: center;
}

.hero-download img {
  height: 48px;
  width: auto;
  display: block;
}

.hero-image {
  flex: 0 0 220px;
  align-self: flex-start;
}

.hero-image img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25));
}

.hero-image img.screenshot {
  filter: none;
  border-radius: 32px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* ---- STATS ---- */

body > section.stats {
  background: var(--pc-light);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 5rem;
  font-weight: 900;
  color: var(--pc-primary);
  line-height: 1;
}

.stat-number.stat-word {
  font-size: 3rem;
}

.stat-label {
  display: block;
  font-size: 1.4rem;
  color: var(--pc-text-soft);
  margin-top: 8px;
  font-weight: 500;
}

/* ---- FEATURES ---- */

body > section.features > div.column > h2 {
  text-align: center;
  color: var(--pc-text);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

body > section.features > div.column > p.section-intro {
  text-align: center;
  color: var(--pc-text-soft);
  margin-bottom: 40px;
  font-size: 1.7rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 28px rgba(45, 184, 166, 0.10);
  border: 1px solid var(--pc-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card .fc-icon {
  font-size: 3.4rem;
  line-height: 1;
  display: block;
}

.feature-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pc-text);
  font-style: normal;
  font-family: arial, sans-serif;
  text-transform: none;
  margin: 0;
}

.feature-card p {
  color: var(--pc-text-soft);
  font-size: 1.5rem;
  line-height: 1.6em;
  margin: 0;
}

/* ---- HOW IT WORKS ---- */

body > section.howto {
  background: var(--pc-surface);
}

body > section.howto > div.column > h2 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pc-accent);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pc-text);
  font-style: normal;
  font-family: arial, sans-serif;
  text-transform: none;
  margin: 0;
}

.step p {
  color: var(--pc-text-soft);
  font-size: 1.5rem;
  line-height: 1.55em;
  margin: 0;
}

/* ---- FAQ ---- */

body > section.faq > div.column > h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 32px;
}

body > section.faq > div.column > ul > li {
  margin-bottom: 10px;
}

body > section.faq > div.column > ul > li > details {
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: background 150ms ease;
}

body > section.faq > div.column > ul > li > details[open] {
  background: var(--pc-light);
}

body > section.faq > div.column > ul > li > details > summary {
  outline: none;
  cursor: pointer;
  box-shadow: none;
}

body > section.faq > div.column > ul > li > details > summary::marker,
body > section.faq > div.column > ul > li > details > summary::-webkit-details-marker {
  display: none;
}

body > section.faq > div.column > ul > li > details > summary {
  list-style: none;
}

body > section.faq > div.column > ul > li > details > summary > p {
  margin: 0;
  padding: 18px 64px 18px 20px;
  font-weight: 700;
  font-size: 1.7rem;
  width: 100%;
  border: 0;
  background-color: transparent;
  color: var(--pc-text);
}

body > section.faq > div.column > ul > li > details > summary > span.icon {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 16px;
  width: 28px;
  height: 28px;
  background-color: var(--pc-primary);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5"/></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5"/></svg>') no-repeat center;
  mask-size: 100%;
  -webkit-mask-size: 100%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 200ms ease-in-out;
}

body > section.faq > div.column > ul > li > details[open] > summary > span.icon {
  transform: translateY(-50%) rotate(180deg);
}

body > section.faq > div.column > ul > li > details > .content {
  padding: 4px 24px 20px 20px;
  color: var(--pc-text-soft);
  font-size: 1.5rem;
  line-height: 1.6em;
}

/* ---- FOOTER ---- */

body > footer {
  background: var(--pc-light);
  border-top: none;
  margin-top: 0;
  padding: 56px 0 32px 0;
}

body > footer a:not(.ui) {
  font-weight: 400;
  color: var(--pc-dark);
  transition: color 150ms ease;
}

body > footer a:not(.ui)::before {
  content: '';
}

body > footer a:not(.ui):hover,
body > footer a:not(.ui):focus {
  margin: 0;
  color: var(--pc-primary);
  text-decoration: underline;
  font-weight: 400;
}

body > footer a:not(.ui):visited {
  color: var(--pc-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--pc-border);
  margin-bottom: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pc-text-soft);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 1.4rem;
}

.footer-lang-col {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--pc-border);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pc-dark);
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.lang-btn:hover,
.lang-btn:focus {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: #fff;
}

.footer-bottom p {
  text-align: center;
  color: var(--pc-text-soft);
  font-size: 1.2rem;
  margin: 0;
}

/* ---- CALCULATOR TOOL ---- */

body > section.calc-tool {
  background: #fff;
}

body > section.calc-tool > div.column > h2 {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--pc-text);
  margin-bottom: 10px;
}

body > section.calc-tool > div.column > p.section-intro {
  text-align: center;
  color: var(--pc-text-soft);
  font-size: 1.7rem;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.calc-widget {
  max-width: 580px;
  margin: 0 auto;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 24px;
  padding: 36px;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.calc-field label {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pc-text-soft);
  margin-bottom: 8px;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--pc-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 150ms ease;
}

.calc-input-wrap:focus-within {
  border-color: var(--pc-primary);
}

.calc-input-wrap input {
  flex: 1;
  padding: 12px 10px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pc-text);
  border: none;
  outline: none;
  background: transparent;
  width: 0;
}

.calc-unit {
  padding: 0 14px 0 4px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pc-text-soft);
  flex-shrink: 0;
}

.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.preset-btn {
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pc-dark);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--pc-accent);
  color: #fff;
  border-color: var(--pc-accent);
}

.calc-results {
  border-top: 1px solid var(--pc-border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-label {
  font-size: 1.5rem;
  color: var(--pc-text-soft);
  font-weight: 500;
}

.result-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--pc-text);
}

.result-value.savings {
  color: var(--pc-accent);
}

.calc-cta-hint {
  text-align: center;
  font-size: 1.5rem;
  color: var(--pc-text-soft);
  margin: 28px 0 16px;
}

.calc-cta {
  text-align: center;
}

/* ---- RESPONSIVE ---- */

@media screen and (max-width: 900px) {
  body > header > div.column {
    flex-flow: column-reverse nowrap;
    text-align: center;
    gap: 32px;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-download {
    justify-content: center;
  }

  .hero-image {
    flex: 0 0 auto;
    width: 180px;
    align-self: center;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 600px) {
  body > header {
    padding: 48px 0;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .hero-label {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body > section.features > div.column > h2,
  body > section.howto > div.column > h2,
  body > section.faq > div.column > h2,
  body > section.calc-tool > div.column > h2 {
    font-size: 2.6rem;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
  }

  .calc-widget {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-lang-col {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
