/* Demo & pricing page (Views/Home/Demo.cshtml): three steps to a decision, demos on sample data, reference pricing,
   a cost estimator and how a quote is made. Behaviour (currency switch, estimator) in wwwroot/js/demo.js. */
body {
  background-image: none;
  background-color: #ffffff;
}
.demo-page {
  --demo-cyan: #00c2cb;
  --demo-deep: #00838c;
  --demo-navy: #0e2a38;
  --demo-teal-text: #00737a;
  --demo-line: #d4eff1;
  --demo-yellow: #fddd59;
  --demo-yellow-deep: #f2c230;
}

/* ---------- Banner: three steps on one wire, ending at your decision ---------- */
.demo-hero {
  background-image: radial-gradient(ellipse 45% 60% at 75% 50%, rgba(0, 194, 203, 0.12), transparent 70%), radial-gradient(ellipse 30% 30% at 92% 8%, rgba(47, 127, 224, 0.1), transparent 70%), linear-gradient(110deg, #f5fcfd 0%, #ffffff 45%, #eaf8fa 100%);
}
.demo-hero:before {
  background: linear-gradient(rgba(0, 194, 203, 0.06) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(90deg, rgba(0, 194, 203, 0.06) 1px, transparent 1px) 0 0/44px 44px;
}
.top-banner.demo-hero .container .content-banner {
  padding-right: 0;
}
.demo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.8rem;
  align-items: center;
}
.demo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.demo-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-top: 9.7rem;
  padding-left: 2rem;
}
.demo-steps__wire {
  position: absolute;
  top: 4rem;
  bottom: 6rem;
  left: 5.1rem;
  width: 3px;
}
.demo-steps__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.6rem 2.2rem 1.6rem 1.6rem;
  border: 1px solid var(--demo-line);
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 1.8rem 3.6rem -2.8rem rgba(14, 42, 56, 0.45);
  color: var(--demo-navy);
  transition: border-color 0.25s;
}
.demo-steps__step:hover {
  border-color: var(--demo-cyan);
  color: var(--demo-navy);
}
.demo-steps__dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid var(--demo-cyan);
  border-radius: 50%;
  background: #ffffff;
}
.demo-steps__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1.4rem;
  color: #3e5662;
}
.demo-steps__body strong {
  font-size: 1.8rem;
  color: var(--demo-navy);
}
.demo-steps__step .tag {
  align-self: center;
}
.demo-steps__gate {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 2.2rem 1.2rem 1.4rem;
  border: 2px solid var(--demo-yellow-deep);
  border-radius: 999px;
  background: #fffaeb;
  font-size: 1.7rem;
  color: var(--demo-navy);
}
.demo-steps__mark {
  width: 2.2rem;
  height: 2.2rem;
  margin-left: 0.6rem;
  border-radius: 0.5rem;
  background: var(--demo-yellow);
  transform: rotate(45deg);
}

/* ---------- Demos ---------- */
.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}
.demo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: 2.4rem;
  background: #ffffff;
  box-shadow: 0 2.4rem 4.8rem -3.6rem rgba(14, 42, 56, 0.45);
}
.demo-card__media {
  padding: 1.4rem 1.4rem 0;
  background: linear-gradient(180deg, #eefafb, #ffffff);
}
.demo-card__window {
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-bottom: 0;
  border-radius: 1.4rem 1.4rem 0 0;
  background: #ffffff;
}
.demo-card__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #eef4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  color: #5a7380;
}
.demo-card__bar i {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #c9d5d9;
}
.demo-card__bar i:nth-child(2) {
  background: var(--demo-yellow);
}
.demo-card__bar i:nth-child(3) {
  margin-right: 0.8rem;
  background: var(--demo-cyan);
}
.demo-card__screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 17rem;
  background-image: repeating-linear-gradient(135deg, #f4fbfc 0 10px, #ffffff 10px 20px);
  color: #9fb6bf;
}
.demo-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 2.2rem 2.4rem 2.4rem;
  font-size: 1.4rem;
  line-height: 1.6;
}
.demo-card__group {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--demo-teal-text);
}
.demo-card h3 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--demo-navy);
}
.demo-card p {
  margin: 0;
}
.demo-card__see {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--demo-line);
}
.demo-card__see > span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5a7380;
}
.demo-card__see ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.demo-card__see li {
  display: flex;
  gap: 0.8rem;
  color: var(--demo-navy);
}
.demo-card__see li::before {
  content: "\2713";
  color: #00a3ab;
}
.demo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

/* ---------- Reference pricing ---------- */
.demo-price {
  background-image: radial-gradient(ellipse 40% 50% at 15% 30%, rgba(0, 194, 203, 0.08), transparent 70%), linear-gradient(180deg, #f3fbfc 0%, #ffffff 100%);
}
.demo-currency {
  display: inline-flex;
  padding: 0.4rem;
  border: 1px solid var(--demo-line);
  border-radius: 999px;
  background: #ffffff;
}
.demo-currency__option {
  min-height: 3.8rem;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 800;
  color: #3e5662;
  cursor: pointer;
}
.demo-currency__option.is-active {
  background: var(--demo-cyan);
  color: #ffffff;
}
.demo-currency__option:focus-visible {
  outline: 2px solid var(--demo-cyan);
  outline-offset: 2px;
}
.demo-starters__head {
  margin: 0 0 1.4rem;
  font-size: 1.4rem;
}
.demo-starters__head strong {
  margin-right: 0.8rem;
  font-size: 1.8rem;
  color: var(--demo-navy);
}
.demo-starters__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0 0 2.2rem;
  padding: 0;
  list-style: none;
}
.demo-starter {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.8rem;
  border: 1px solid var(--demo-line);
  border-radius: 1.8rem;
  background: #ffffff;
  font-size: 1.3rem;
  line-height: 1.5;
}
.demo-starter strong {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--demo-navy);
}
.demo-starter--next {
  border: 1.5px solid var(--demo-cyan);
  background: linear-gradient(180deg, #f0fbfc, #ffffff);
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.08);
}
.demo-rates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: stretch;
}
.demo-box {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.6rem;
  border: 1px solid var(--demo-line);
  border-radius: 2.4rem;
  background: #ffffff;
  box-shadow: 0 2.4rem 4.8rem -3.6rem rgba(14, 42, 56, 0.45);
}
.demo-box__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 1.4rem;
}
.demo-box__head strong {
  font-size: 1.9rem;
  color: var(--demo-navy);
}
.demo-box__note {
  padding-top: 1rem;
  border-top: 1px dashed var(--demo-line);
  font-size: 1.3rem;
  color: #5a7380;
}
/* Rates rise with the level: the bars only show the order */
.demo-ladder {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.demo-ladder li {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr) 13rem;
  align-items: center;
  gap: 1.4rem;
}
.demo-ladder__level {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--demo-navy);
}
.demo-ladder__bar {
  height: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eef6f7;
}
.demo-ladder__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--demo-cyan), #2f7fe0);
}
.demo-ladder__price {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: right;
  color: var(--demo-teal-text);
}
/* Project sizes grow from left to right */
.demo-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.demo-size {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: 15rem;
  padding: 1.6rem;
  border: 1px solid var(--demo-line);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(0, 194, 203, 0.04), #ffffff);
  font-size: 1.3rem;
  line-height: 1.5;
}
.demo-size--2 {
  min-height: 18rem;
  background: linear-gradient(180deg, rgba(0, 194, 203, 0.09), #ffffff);
}
.demo-size--3 {
  min-height: 21rem;
  background: linear-gradient(180deg, rgba(0, 194, 203, 0.14), #ffffff);
}
.demo-size__name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--demo-teal-text);
}
.demo-size__ex {
  color: var(--demo-navy);
}
.demo-size__time {
  color: #5a7380;
}
.demo-size strong {
  font-size: 1.5rem;
  color: var(--demo-navy);
}
.demo-price__note {
  margin: 2.8rem 0 0;
  font-size: 1.4rem;
  color: #5a7380;
}

/* ---------- Cost estimate: your choices → hub → the formula ---------- */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 9rem minmax(0, 1fr);
  align-items: stretch;
}
.estimator__needs,
.estimator__result {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 2.6rem;
  border-radius: 2.4rem;
}
.estimator__needs {
  border: 1px solid #f6dc7a;
  background: #fffcf0;
}
.estimator__result {
  gap: 1.6rem;
  border: 1.5px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, var(--demo-cyan), rgba(47, 127, 224, 0.45)) border-box;
  box-shadow: 0 0 0 6px rgba(0, 194, 203, 0.05), 0 3rem 6rem -3.6rem rgba(0, 194, 203, 0.6);
}
.estimator__kicker {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a5c00;
}
.estimator__kicker--out {
  color: var(--demo-teal-text);
}
.estimator__mode {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  animation: demo-in 0.35s ease;
}
.estimator__mode[hidden],
.estimator__included[hidden] {
  display: none;
}
.estimator__field {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.estimator__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.estimator__label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--demo-navy);
}
.estimator__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.est-chip {
  min-height: 4.2rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--demo-line);
  border-radius: 999px;
  background: #ffffff;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--demo-navy);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.est-chip:hover {
  border-color: var(--demo-cyan);
}
.est-chip.is-active {
  border-color: var(--demo-navy);
  background: var(--demo-navy);
  color: #ffffff;
}
.est-chip:focus-visible,
.est-step:focus-visible {
  outline: 2px solid var(--demo-cyan);
  outline-offset: 2px;
}
.estimator__count {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.estimator__count strong {
  min-width: 3.4rem;
  font-size: 2.2rem;
  text-align: center;
  color: var(--demo-navy);
}
.est-step {
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--demo-line);
  border-radius: 1.2rem;
  background: #ffffff;
  font-family: inherit;
  font-size: 2rem;
  color: var(--demo-navy);
  cursor: pointer;
}
.estimator__link {
  position: relative;
}
.estimator__wire {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 3px;
  margin-top: -1.5px;
}
.estimator__hub {
  --hub: 6rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: none;
}
.estimator__range {
  font-size: 3.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--demo-navy);
}
.estimator__how {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid #e3eef0;
  border-radius: 1.4rem;
  background: #f4fbfc;
}
.estimator__how > span:first-child {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5a7380;
}
.estimator__formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--demo-navy);
}
.estimator__included {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.4rem;
  color: var(--demo-navy);
}
.estimator__included li {
  display: flex;
  gap: 0.8rem;
}
.estimator__included li::before {
  content: "\2713";
  color: #00a3ab;
}
.estimator__cta {
  margin-top: auto;
  border-radius: 1.4rem;
}
.estimator__prefill {
  font-size: 1.2rem;
  text-align: center;
  color: #5a7380;
}
@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ---------- How a quote is made ---------- */
.quote-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quote-steps::before {
  content: "";
  position: absolute;
  top: 2.1rem;
  right: 12.5%;
  left: 12.5%;
  height: 3px;
  background-image: linear-gradient(90deg, var(--demo-cyan) 50%, transparent 50%);
  background-size: 14px 100%;
  animation: flow-x 0.8s linear infinite;
}
.quote-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.quote-step__dot {
  position: relative;
  z-index: 1;
  width: 4.4rem;
  height: 4.4rem;
  border: 3px solid var(--demo-cyan);
  border-radius: 50%;
  background: #ffffff;
}
.quote-step--you .quote-step__dot {
  border-color: var(--demo-yellow-deep);
  background: #fffaeb;
}
.quote-step--gate .quote-step__dot {
  border: 0;
  border-radius: 1rem;
  background: var(--demo-yellow);
  box-shadow: 0 0 0 6px rgba(253, 221, 89, 0.25);
  transform: rotate(45deg);
}
.quote-step__card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 0.8rem;
  padding: 1.8rem;
  border: 1px solid var(--demo-line);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 1.6rem 3.2rem -2.6rem rgba(14, 42, 56, 0.45);
  font-size: 1.4rem;
  line-height: 1.55;
}
.quote-step__card > strong {
  font-size: 1.7rem;
  color: var(--demo-navy);
}
.quote-step__who {
  align-self: center;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: #dff6f7;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--demo-teal-text);
}
.quote-step--you .quote-step__who {
  background: #fff3c4;
  color: #7a5c00;
}
.quote-step__out {
  padding-top: 0.8rem;
  border-top: 1px dashed var(--demo-line);
  font-size: 1.3rem;
  color: var(--demo-navy);
}
html[lang=ja] .demo-card h3,
html[lang=ja] .quote-step__card > strong,
html[lang=ja] .demo-steps__body strong {
  word-break: auto-phrase;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .demo-starters__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .demo-rates {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1024px) {
  .demo-hero {
    height: auto;
    padding: 12rem 0 13rem;
  }
  .demo-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .top-banner.demo-hero .container .content-banner {
    margin-top: 0;
  }
  .demo-steps {
    margin-top: 0;
  }
  .demo-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 56rem;
    margin: 0 auto;
  }
  /* The estimator stacks: your choices, then the result */
  .estimator {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
  .estimator__link {
    display: none;
  }
  .quote-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-steps::before {
    display: none;
  }
}
@media (max-width: 767px) {
  .demo-hero {
    padding: 10rem 0 11rem;
  }
  .demo-steps {
    padding-left: 0;
  }
  .demo-steps__wire {
    left: 3.1rem;
  }
  .demo-steps__step {
    flex-wrap: wrap;
  }
  .demo-starters__list,
  .demo-sizes,
  .quote-steps,
  .estimator__pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-ladder li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .demo-ladder__bar {
    display: none;
  }
  .demo-size,
  .demo-size--2,
  .demo-size--3 {
    min-height: 0;
  }
  .estimator__needs,
  .estimator__result,
  .demo-box {
    padding: 2rem 1.6rem;
  }
  .estimator__range {
    font-size: 2.8rem;
  }
}
@media screen and (min-width: 1025px) {
  .top-banner .container .content-banner {
    max-width: 56rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .estimator__mode,
  .quote-steps::before {
    animation: none;
  }
}
