/* Theme tokens from https://devora-studio.com/ */
:root,
html[data-theme="light"] {
  --tp-theme-primary: #8c52ff;
  --tp-theme-primary-hover: #7340e0;
  --tp-theme-primary-soft: rgba(140, 82, 255, 0.12);
  --tp-theme-primary-ring: rgba(140, 82, 255, 0.28);
  --tp-heading-primary: #020b18;
  --tp-heading-secondary: #021d35;
  --tp-text-body: #55585b;
  --tp-text-1: #767a7d;
  --tp-common-white: #ffffff;
  --tp-common-black: #020b18;
  --tp-common-black-5: #171718;
  --tp-surface: #ffffff;
  --tp-grey-1: #f6f7f9;
  --tp-grey-3: #f6f9ff;
  --tp-border-primary: #eaebed;
  --tp-border-secondary: #f0f2f4;
  --tp-input-bg: #ffffff;
  --tp-input-focus-bg: #fcfbff;
  --tp-chip-bg: #f6f7f9;
  --tp-placeholder: #9aa0a6;
  --tp-danger: #dc3545;
  --tp-danger-bg: #f8d7da;
  --tp-danger-border: #f1aeb5;
  --tp-danger-text: #842029;
  --tp-ok-bg: #d1e7dd;
  --tp-ok-border: #a3cfbb;
  --tp-ok-text: #0a3622;
  --tp-radius: 6px;
  --tp-radius-lg: 12px;
  --tp-ff-body: "DM Sans", sans-serif;
  --tp-ff-heading: "Playfair Display", "EB Garamond", Georgia, serif;
  --tp-ff-ui: "Poppins", "DM Sans", sans-serif;
  --tp-shadow: 0 18px 50px rgba(2, 11, 24, 0.08);
  --tp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tp-atmosphere:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(140, 82, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 10%, rgba(231, 236, 255, 0.9), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 48%, #eef1f8 100%);
  color-scheme: light;
}

html[data-theme="dark"] {
  --tp-theme-primary: #8c52ff;
  --tp-theme-primary-hover: #a074ff;
  --tp-theme-primary-soft: rgba(140, 82, 255, 0.2);
  --tp-theme-primary-ring: rgba(140, 82, 255, 0.35);
  --tp-heading-primary: #f4f6fb;
  --tp-heading-secondary: #e7ecff;
  --tp-text-body: #b7b7c5;
  --tp-text-1: #8d92a7;
  --tp-common-white: #ffffff;
  --tp-common-black: #020b18;
  --tp-common-black-5: #171718;
  --tp-surface: #121416;
  --tp-grey-1: #1a1d24;
  --tp-grey-3: #0a0c12;
  --tp-border-primary: #2a2e3a;
  --tp-border-secondary: #222632;
  --tp-input-bg: #0e1016;
  --tp-input-focus-bg: #151822;
  --tp-chip-bg: #1a1d24;
  --tp-placeholder: #6b7185;
  --tp-danger: #ff6b8a;
  --tp-danger-bg: rgba(255, 107, 138, 0.12);
  --tp-danger-border: rgba(255, 107, 138, 0.35);
  --tp-danger-text: #ffd0da;
  --tp-ok-bg: rgba(125, 255, 179, 0.1);
  --tp-ok-border: rgba(125, 255, 179, 0.3);
  --tp-ok-text: #c9ffe0;
  --tp-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --tp-atmosphere:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(140, 82, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 10%, rgba(15, 24, 62, 0.55), transparent 50%),
    linear-gradient(180deg, #0a0c12 0%, #080910 48%, #0d1018 100%);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tp-text-body);
  font-family: var(--tp-ff-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--tp-grey-3);
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--tp-atmosphere);
}

.top-bar {
  width: min(1080px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  justify-content: flex-end;
}

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--tp-border-primary);
  border-radius: 999px;
  background: var(--tp-surface);
  color: var(--tp-heading-primary);
  font-family: var(--tp-ff-ui);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  box-shadow: var(--tp-shadow);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--tp-theme-primary);
  color: var(--tp-theme-primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--tp-theme-primary);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: none;
  line-height: 0;
}

html[data-theme="light"] .theme-toggle__icon--moon,
html[data-theme="dark"] .theme-toggle__icon--sun {
  display: inline-flex;
}

.site-header {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: end;
  animation: rise 0.7s var(--tp-ease) both;
}

.brand-mark {
  display: inline-flex;
  border-radius: 16px;
  line-height: 0;
}

.brand-logo {
  width: clamp(84px, 14vw, 112px);
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(2, 11, 24, 0.12);
}

.brand-copy {
  min-width: 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--tp-ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tp-theme-primary);
}

h1,
h2 {
  margin: 0;
  color: var(--tp-heading-primary);
  font-family: var(--tp-ff-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--tp-text-1);
  font-size: 1.05rem;
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  animation: rise 0.8s var(--tp-ease) 0.06s both;
}

.progress {
  position: sticky;
  top: 1.25rem;
  padding: 1rem 0;
}

.progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  border-left: 1px solid var(--tp-border-primary);
}

.progress-list li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--tp-text-1);
  font-family: var(--tp-ff-ui);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.progress-list li span {
  display: inline-block;
  min-width: 1.6rem;
  margin-right: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: inherit;
}

.progress-list li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tp-border-primary);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.progress-list li.is-active,
.progress-list li.is-done {
  color: var(--tp-heading-primary);
}

.progress-list li.is-active::before,
.progress-list li.is-done::before {
  background: var(--tp-theme-primary);
  box-shadow: 0 0 0 4px var(--tp-theme-primary-soft);
}

.brief-form,
.success {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border-primary);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-height: 34rem;
}

.brief-form[hidden],
.success[hidden],
.form-status[hidden] {
  display: none !important;
}

.shell.is-complete {
  grid-template-columns: 1fr;
}

.shell.is-complete .progress {
  display: none;
}

.panel {
  display: none;
  animation: panelIn 0.4s var(--tp-ease);
}

.panel.is-active {
  display: block;
}

.panel[hidden] {
  display: none !important;
}

.panel-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tp-border-secondary);
}

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

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field > span,
.choice-group legend {
  font-family: var(--tp-ff-ui);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--tp-heading-primary);
}

.field em,
.choice-group legend em {
  font-style: normal;
  font-weight: 400;
  color: var(--tp-text-1);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--tp-border-primary);
  border-radius: var(--tp-radius);
  background: var(--tp-input-bg);
  color: var(--tp-heading-primary);
  font: inherit;
  line-height: 1.4;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--tp-theme-primary) 50%),
    linear-gradient(135deg, var(--tp-theme-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--tp-placeholder);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--tp-text-1);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--tp-theme-primary);
  box-shadow: 0 0 0 3px var(--tp-theme-primary-ring);
  background: var(--tp-input-focus-bg);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: var(--tp-danger);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.choice-group {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 0.7rem;
  padding: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips label {
  cursor: pointer;
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--tp-border-primary);
  background: var(--tp-chip-bg);
  color: var(--tp-text-body);
  font-family: var(--tp-ff-ui);
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s var(--tp-ease);
}

.chips label:hover span {
  border-color: var(--tp-theme-primary);
  color: var(--tp-heading-primary);
}

.chips input:focus-visible + span {
  outline: 2px solid var(--tp-theme-primary);
  outline-offset: 2px;
}

.chips input:checked + span {
  border-color: var(--tp-theme-primary);
  background: var(--tp-theme-primary-soft);
  color: var(--tp-heading-primary);
}

.panel-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tp-border-secondary);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--tp-radius);
  font-family: var(--tp-ff-ui);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.8rem 1.35rem;
  transition: transform 0.2s var(--tp-ease), background 0.2s ease, opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--tp-theme-primary);
  color: var(--tp-common-white);
  box-shadow: 0 10px 24px rgba(140, 82, 255, 0.28);
}

.btn.primary:hover:not(:disabled) {
  background: var(--tp-theme-primary-hover);
  transform: translateY(-1px);
}

.btn.primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--tp-text-body);
  border: 1px solid var(--tp-border-primary);
}

.btn.ghost:hover:not(:disabled) {
  color: var(--tp-heading-primary);
  border-color: var(--tp-theme-primary);
  background: var(--tp-theme-primary-soft);
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--tp-radius);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--tp-ff-ui);
}

.form-status.is-error {
  color: var(--tp-danger-text);
  background: var(--tp-danger-bg);
  border: 1px solid var(--tp-danger-border);
}

.form-status.is-ok {
  color: var(--tp-ok-text);
  background: var(--tp-ok-bg);
  border: 1px solid var(--tp-ok-border);
}

.success {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  min-height: 28rem;
  text-align: left;
  animation: panelIn 0.4s var(--tp-ease);
}

.success p:not(.panel-kicker) {
  margin: 0;
  max-width: 34rem;
  color: var(--tp-text-1);
}

.success .btn {
  justify-self: start;
  margin-top: 0.75rem;
}

.site-footer {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: var(--tp-text-1);
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--tp-heading-primary);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--tp-theme-primary);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .progress {
    position: static;
    padding: 0;
  }

  .progress-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    border-left: 0;
  }

  .progress-list li {
    padding: 0.65rem 0.45rem;
    text-align: center;
    border: 1px solid var(--tp-border-primary);
    border-radius: var(--tp-radius);
    font-size: 0.72rem;
    background: var(--tp-surface);
  }

  .progress-list li span {
    display: block;
    margin: 0 0 0.15rem;
  }

  .progress-list li::before {
    display: none;
  }

  .progress-list li.is-active {
    border-color: var(--tp-theme-primary);
    background: var(--tp-theme-primary-soft);
    color: var(--tp-heading-primary);
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 1.5rem;
  }

  .brand-logo {
    width: 88px;
  }

  h1 {
    max-width: none;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .progress-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-nav {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }

  .brief-form,
  .success {
    min-height: 0;
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
