/* External concepts preview — intentionally isolated from production styles. */
.concept-heading {
  max-width: 48rem;
  margin-block-end: clamp(1.75rem, 4vw, 3rem);
}

.concept-heading > p:last-child {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.85;
}

.planner-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--paper) 96%, transparent), color-mix(in srgb, var(--accent) 10%, var(--paper)));
  box-shadow: 0 1.5rem 5rem color-mix(in srgb, var(--ink) 8%, transparent);
}

.planner-shell::before {
  content: '';
  position: absolute;
  inset-inline-end: -5rem;
  inset-block-start: -7rem;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 46% 54% 42% 58%;
  transform: rotate(24deg);
  pointer-events: none;
}

.planner-controls {
  position: relative;
  z-index: 1;
}

.planner-controls {
  display: grid;
  gap: 0.8rem;
}

.planner-step {
  margin: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.planner-step legend {
  padding-inline: 0.2rem;
  color: var(--ink);
  font-weight: 700;
}


.planner-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.planner-chip {
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.planner-chip:hover,
.planner-chip:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.planner-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.planner-eyebrow {
  color: var(--accent-soft, #d9c49b);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.journey-section {
  overflow: hidden;
}

.journey-player {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: clamp(1.4rem, 3vw, 2.1rem);
  background:
    radial-gradient(circle at 12% 12%, rgb(217 196 155 / 13%), transparent 28%),
    linear-gradient(145deg, #4a432a, #272216);
  color: #f7ead8;
  box-shadow: none;
}

.journey-viewport {
  padding: clamp(1rem, 3vw, 2rem);
}

.journey-slides {
  position: relative;
  min-height: 22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-slides > li {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  min-height: 22rem;
  align-items: center;
}

.journey-slides > li.is-active {
  display: grid;
  animation: journey-frame-in 520ms cubic-bezier(.22,.8,.22,1) both;
}

@keyframes journey-frame-in {
  from { opacity: 0; transform: translateX(2.25rem); }
  to { opacity: 1; transform: translateX(0); }
}

.journey-copy {
  max-width: 48rem;
  margin-inline-end: auto;
  padding-inline: clamp(0.25rem, 4vw, 3rem);
}

.journey-copy small {
  color: #d9c49b;
  font-size: 0.74rem;
}

.journey-copy h3 {
  margin-block: 0.55rem 0.9rem;
  color: #f7ead8;
  font-size: clamp(1.8rem, 4.2vw, 3.3rem);
  line-height: 1.15;
}

.journey-copy p {
  max-width: 31rem;
  color: rgb(247 234 216 / 68%);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  line-height: 1.9;
}

.journey-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  direction: ltr;
}

.journey-arrow {
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(247 234 216 / 28%);
  border-radius: 50%;
  color: #f7ead8;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.journey-arrow:hover,
.journey-arrow:focus-visible {
  transform: scale(1.06);
}

.journey-next {
  border-color: #d9c49b;
  background: #d9c49b;
  color: #3e3822;
}

.journey-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.journey-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(247 234 216 / 28%);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.journey-dots button.is-active {
  width: 1.6rem;
  background: #d9c49b;
}

.journey-progress {
  height: 3px;
  background: rgb(247 234 216 / 10%);
}

.journey-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #d9c49b;
  transition: width 420ms cubic-bezier(.22,.8,.22,1);
}

html[dir='rtl'] .journey-progress span {
  margin-right: 0;
  margin-left: auto;
}

html[data-theme='dark'] .planner-shell,
html[data-theme='dark'] .planner-step {
  background-color: color-mix(in srgb, var(--paper) 88%, transparent);
}

@media (max-width: 980px) {
  .planner-shell { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .concept-heading { margin-block-end: 1.5rem; }
  .planner-shell { padding: 0.7rem; border-radius: 1.45rem; }
  .planner-step { padding: 1rem; }
  .planner-options { display: grid; grid-template-columns: 1fr 1fr; }
  .planner-chip { width: 100%; padding-inline: 0.55rem; font-size: 0.74rem; }

  .journey-viewport { padding: 1rem; }
  .journey-slides { min-height: 27rem; }
  .journey-slides > li {
    grid-template-columns: 1fr;
    min-height: 27rem;
    align-content: center;
  }
  .journey-copy { padding-inline: 0.25rem; }
  .journey-copy h3 { font-size: 1.65rem; }
  .journey-copy p { font-size: 0.8rem; line-height: 1.75; }
  .journey-controls { gap: 0.6rem; }
  .journey-arrow { width: 2.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-slides > li.is-active { animation: none; }
  .journey-progress span { transition: none; }
}

/* Concept v2: linked planner + balanced project-discussion window */

.form-heading {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.form-heading p {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.form-heading span,
.form-note {
  color: var(--muted);
  font-size: 0.7rem;
}

.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-note {
  margin: -0.25rem 0 0;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 780px) {

  .form-heading {
    margin-bottom: 1rem;
  }

  .form-pair {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ui-balance-v1: open planner, readable summary, compact automatic journey */
.planner-shell {
  gap: 1.25rem;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.planner-shell::before {
  display: none !important;
  content: none !important;
}

.planner-step {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: #fffaf2;
  box-shadow: 0 1rem 2.25rem rgb(62 56 34 / 5%);
}

html[data-theme='dark'] .planner-shell {
  background: none;
}

html[data-theme='dark'] .planner-step {
  background: #4a432a;
}

.planner-step legend {
  float: inline-start;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
  line-height: 1.6;
}

.planner-options {
  clear: both;
  margin-top: 0;
}

.journey-viewport {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.journey-slides,
.journey-slides > li {
  min-height: 10rem;
}

.journey-copy {
  max-width: 42rem;
  padding-inline: clamp(0.25rem, 2vw, 1.5rem);
}

.journey-copy h3 {
  font-size: clamp(1.65rem, 3.4vw, 2.65rem);
}

.journey-copy p {
  color: rgb(247 234 216 / 82%);
}

html[dir='rtl'] .journey-dots {
  direction: rtl;
}

@media (max-width: 600px) {
  .planner-shell {
    padding: 0;
    border-radius: 0;
  }

  .planner-step {
    padding: 1rem;
  }

  .planner-step legend {
    margin-bottom: 0.75rem;
  }

  .journey-viewport {
    padding: 1rem;
  }

  .journey-slides,
  .journey-slides > li {
    min-height: 10.5rem;
  }

  .journey-copy h3 {
    font-size: 1.55rem;
  }
}

/* form-validation-v1: keep the full desktop form reachable on short laptop viewports */

/* content-flow-v2: visually distinguish the lead-generation step after the journey */
main > .concept-planner {
  position: relative;
  margin-block: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3.75rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sand) 30%, var(--line));
  border-radius: clamp(1.6rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 85% 10%, rgb(137 126 87 / 13%), transparent 34%),
    color-mix(in srgb, var(--paper) 94%, var(--sand) 6%);
  box-shadow: 0 1.8rem 5rem rgb(62 56 34 / 8%);
}

html[data-theme='dark'] main > .concept-planner {
  border-color: rgb(234 215 188 / 20%);
  background:
    radial-gradient(circle at 85% 10%, rgb(234 215 188 / 10%), transparent 36%),
    #3e3822;
  box-shadow: none;
}

/* ux-round-v1: trust cue and compact hero actions */
.planner-note {
  margin: 0.85rem 0 0;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 600px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

}
