:root {
  --ink: #2a2140;
  --muted: #6b6280;
  --paper: #fbf8ff;
  --white: #ffffff;
  --line: #e4dcf3;
  --accent: #7c5cbf;
  --navy: #6d4aad;
  --ph: #6d28d9;
  --ph-bg: #f3e8ff;
  --radius: 14px;
  --font: "Segoe UI", "Calibri", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:has(body.is-wizard) {
  height: 100%;
  overflow: hidden;
}

body.is-wizard {
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.kit-card {
  cursor: default;
}

.btn-quiet {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: var(--ink);
  border-radius: 8px;
}

.btn-quiet:hover {
  border-color: #d1d5db;
}

.btn-job {
  width: 100%;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 650;
  text-align: left;
}

.btn-job:hover {
  border-color: var(--navy);
}

.kit-essential {
  margin: 0 0 1.2rem;
  padding: 0.75rem 0.85rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.kit-essential h2 {
  font-size: 0.88rem;
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.kit-essential ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.kit-essential li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  align-items: start;
  font-size: 0.86rem;
}

.kit-essential a {
  display: inline-block;
  font-weight: 650;
  text-decoration: none;
  font-size: 0.8rem;
}

.kit-badge {
  display: inline-flex;
  width: 1.4rem;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1.3;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 0.25rem;
}

.kit-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.9rem 0.95rem 1rem;
  text-align: left;
  cursor: default;
  box-shadow: none;
}

.kit-card:hover {
  border-color: #e5e7eb;
  box-shadow: none;
}

.kit-card strong {
  display: block;
  margin: 0.25rem 0 0.35rem;
  font-size: 0.95rem;
}

.job-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.success-screen {
  display: grid;
  gap: 3rem;
}

.success-block h2 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

a {
  color: var(--navy);
}

.ph {
  color: var(--ph);
  background: var(--ph-bg);
  font-weight: 650;
  padding: 0 0.2em;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-badge {
  flex: none;
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.42rem;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(42, 33, 64, 0.12);
}

/* Landing: slim “might interest you” Amazon strip (not in the hero). */
.amz-pulse {
  --amz-ink: #131921;
  --amz-navy: #232f3e;
  --amz-orange: #ff9900;
  --amz-amber: #febd69;
  --amz-cloud: #eaeded;
  margin: 0;
  padding: 0.5rem 6vw;
  background:
    linear-gradient(90deg, var(--amz-ink) 0%, var(--amz-navy) 42%, #37475a 100%);
  border-bottom: 2px solid var(--amz-orange);
  box-shadow: inset 0 -1px 0 rgba(254, 189, 105, 0.35);
}

.amz-pulse-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 1120px;
  margin: 0 auto;
  min-width: 0;
}

.amz-pulse-kicker {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
  max-width: 9.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.amz-pulse-kicker::before {
  content: "";
  display: block;
  width: 1.65rem;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amz-orange), var(--amz-amber));
  margin-bottom: 0.12rem;
}

.amz-pulse-status {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(254, 189, 105, 0.9);
}

.amz-pulse-track {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  min-width: 0;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
}

.amz-pulse-track::-webkit-scrollbar {
  display: none;
}

.amz-pulse-track > [role="listitem"] {
  flex: none;
}

.amz-pulse-item {
  display: block;
  max-width: 11rem;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: #f3f3f3;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.amz-pulse-item:hover {
  border-color: var(--amz-amber);
  background: rgba(254, 189, 105, 0.16);
  color: #fff;
}

.amz-pulse-item b {
  display: none;
}

.amz-pulse-more {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amz-ink);
  background: linear-gradient(180deg, var(--amz-amber) 0%, var(--amz-orange) 100%);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
  white-space: nowrap;
}

.amz-pulse-more:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

@media (max-width: 720px) {
  .amz-pulse-kicker {
    max-width: 6.2rem;
    font-size: 0.66rem;
  }

  .amz-pulse-more {
    display: none;
  }
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: #2c3440;
  white-space: nowrap;
}

.brand:hover .brand-text {
  color: var(--navy);
}

.type-controls {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

@media (min-width: 720px) {
  .type-controls {
    grid-template-columns: 1.4fr 1fr;
    gap: 0.75rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.lang-orb-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: 0.35rem;
  z-index: 40;
}

.lang-orb {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  line-height: 0;
}

.lang-orb:hover {
  box-shadow: 0 0 0 2px rgba(109, 74, 173, 0.35);
}

.lang-orb.is-on {
  box-shadow: 0 0 0 2px var(--navy);
}

.flag-ball {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.flag-it {
  background: linear-gradient(to right, #009246 33.34%, #fff 33.34% 66.66%, #ce2b37 66.66%);
}

.flag-fr {
  background: linear-gradient(to right, #002395 33.34%, #fff 33.34% 66.66%, #ed2939 66.66%);
}

.flag-de {
  background: linear-gradient(to bottom, #000 33.34%, #dd0000 33.34% 66.66%, #ffce00 66.66%);
}

.flag-es {
  background: linear-gradient(to bottom, #c60b1e 25%, #ffc400 25% 75%, #c60b1e 75%);
}

.flag-gb {
  background-color: #012169;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.lang-orb-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(42, 33, 64, 0.14);
}

.lang-orb-menu[hidden] {
  display: none;
}

.job-city {
  display: grid;
  gap: 0.3rem;
  max-width: 22rem;
  margin: 0.75rem 0 0;
}

.job-city input {
  margin-top: 0;
}

.job-place-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 40rem;
}

.nav a {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--navy);
}

.btn:disabled,
.btn-mini:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.btn:disabled:hover,
.btn-primary:disabled:hover {
  border-color: var(--line);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-ghost {
  background: transparent;
}

.btn-lg {
  padding: 0.7rem 1.2rem;
}

.hero {
  padding: 4.5rem 6vw 3rem;
  max-width: 920px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0.3rem 0 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0.7rem;
}

.fineprint {
  color: var(--muted);
  font-size: 0.9rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 6vw 3rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strip strong {
  display: block;
  font-size: 1.15rem;
}

.strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 2.5rem 6vw 3.5rem;
}

.section-alt {
  background: #f3eefb;
}

.section h2,
.builder-head h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
}

.seo-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
  margin-top: 1.25rem;
}

.seo-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}

.seo-faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.seo-article {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 6vw 3.5rem;
}

.seo-article h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.8rem;
}

.seo-article h2 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.6rem;
}

.seo-article .lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.seo-olist,
.seo-ulist {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.seo-olist li,
.seo-ulist li {
  margin: 0.35rem 0;
}

.support-section {
  max-width: 46rem;
}

.support-section .section-intro {
  margin-bottom: 0;
}

.support-section a {
  font-weight: 650;
  color: var(--ink);
}

.seo-kw {
  border-top: 1px solid var(--line);
}

.seo-kw-wall {
  max-width: 46rem;
  margin: 0.85rem 0 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.seo-kw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  max-width: 46rem;
}

.seo-kw-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.seo-footer-kw {
  max-width: 36rem;
  margin: 0.45rem 0 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.card:hover,
.card.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(109, 74, 173, 0.18);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0 0.4rem;
}

.check input {
  width: auto;
  margin: 0;
}

.card-swatch {
  display: block;
  height: 10px;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.card small {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.price-card {
  max-width: 36rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
}

.price {
  font-size: 3rem;
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.price-sub {
  margin: 0 0 1rem;
  color: var(--muted);
}

.btn-kofi {
  background: #fff8ef;
  border-color: #f0d2a8;
  color: #7a4a12;
}

.btn-kofi:hover {
  border-color: #d4a056;
}

#wizard-app[hidden],
#landing[hidden] {
  display: none !important;
}

#wizard-app {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
}

.wiz-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.wiz-progress-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.wiz-progress-title {
  margin: 0.1rem 0 0.45rem;
  font-weight: 650;
}

.wiz-track {
  height: 4px;
  background: #efe8f8;
  border-radius: 0;
}

.wiz-fill {
  height: 100%;
  width: 25%;
  background: var(--navy);
  transition: width 0.25s ease;
}

.wiz-top-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.wiz-body {
  display: grid;
  grid-template-columns: minmax(300px, 46%) 1fr;
  min-height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wiz-form {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.4rem 6% 0;
  background: #fff;
}

.wizard-step.is-on {
  flex: 1 1 auto;
}

.wiz-nav {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 0 1.1rem;
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-shrink: 0;
}

.wiz-nav .js-wiz-back {
  margin-right: auto;
}

.wiz-h1 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.wiz-lead {
  color: var(--muted);
  margin: 0 0 1.3rem;
  max-width: 36rem;
}

.wiz-block {
  margin: 0 0 1.5rem;
}

.wiz-block h2 {
  font-size: 1.02rem;
  margin: 0 0 0.6rem;
}

.contact-with-photo {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 1rem;
  align-items: start;
}

.photo-slot {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 650;
}

.photo-slot input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-circle {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  aspect-ratio: 1 / 1;
  margin: 0.35rem auto;
  border-radius: 50%;
  background: #eef1f6;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#photo-placeholder {
  font-size: 1.6rem;
  color: var(--navy);
}

.linkish {
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 0.4rem 0;
}

.preview-nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-mini {
  font-size: 0.72rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-weight: 650;
  line-height: 1.2;
}

.empty-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.4rem 0 0;
}

.mini-label {
  margin: 0.4rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.mini-stack {
  display: grid;
  gap: 0.35rem;
}

.mini-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem;
  align-items: center;
}

.suggest-field {
  position: relative;
  min-width: 0;
}

.suggest-menu {
  position: fixed;
  z-index: 220;
  max-height: 13rem;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(42, 33, 64, 0.14);
}

.suggest-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
}

.suggest-menu button:hover {
  background: #f3e8ff;
}

.mini-mark {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn-del {
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 50%;
  background: #e23d3d;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  flex-shrink: 0;
}

.item-card:hover .btn-del,
.item-card:focus-within .btn-del,
.mini-line:hover .btn-del,
.mini-line:focus-within .btn-del {
  opacity: 1;
}

.item-toolbar .grip {
  opacity: 0;
}

.item-card:hover .item-toolbar .grip,
.item-card:focus-within .item-toolbar .grip {
  opacity: 1;
}

.gallery-wiz {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 0.8rem;
}

.gallery-wiz .card p {
  display: none;
}

.wiz-preview {
  background: #eef0f6;
  overflow: auto;
  padding: 1rem 1.2rem 1.4rem;
  min-height: 0;
}

.wiz-preview .sheet-frame {
  background: transparent;
  box-shadow: none;
  padding: 0.4rem 0;
  max-height: none;
  overflow: visible;
}

.wiz-preview .a4-sheet {
  transform: scale(var(--cv-scale, 0.52));
  transform-origin: top center;
  margin-bottom: calc(-297mm * (1 - var(--cv-scale, 0.52)) + 1.2rem);
}

.wiz-preview .a4-clip {
  width: 210mm;
  height: 297mm;
}

.donate-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  margin: 0 0 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbf8ff;
}

.donate-inline p {
  margin: 0;
  color: var(--muted);
  max-width: 26rem;
}

.kit-inline {
  margin-top: 0.6rem;
}

.wiz-success {
  min-height: 0;
  overflow: auto;
  padding: 2rem 6vw 3rem;
  background: var(--paper);
}

#wizard-app:has(#success-screen:not([hidden])) .wiz-progress {
  visibility: hidden;
}

.builder-section {
  padding: 2rem 4vw 4rem;
}

.builder-head {
  margin-bottom: 1.2rem;
}

.builder {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 1.2rem;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 1rem 1.2rem;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.4rem 0 0;
  padding: 0.9rem 0 0.3rem;
}

legend {
  font-weight: 750;
  padding-right: 0.5rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin: 0.55rem 0;
  color: var(--muted);
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: #fff;
}

textarea {
  resize: vertical;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.stack {
  display: grid;
  gap: 0.7rem;
}

.item-card {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.6rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.acc-tools {
  display: flex;
  gap: 0.4rem;
  margin: 0.4rem 0 0.6rem;
}

.acc {
  border-top: 1px solid var(--line);
  padding: 0.2rem 0 0.5rem;
}

.acc > summary {
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
}

.acc > summary::-webkit-details-marker {
  display: none;
}

.acc > summary::after {
  content: "▾";
  color: var(--muted);
  font-weight: 400;
}

.acc[open] > summary::after {
  content: "▴";
}

.acc.is-flash,
.wiz-block.is-flash {
  box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.35);
  border-radius: 10px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.item-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.item-toolbar .btn-del {
  margin-left: auto;
}

.grip {
  cursor: grab;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
  font: inherit;
  letter-spacing: -0.15em;
}

.grip:active {
  cursor: grabbing;
}

.item-card.is-dragover {
  outline: 2px dashed var(--navy);
}

.click-hint {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 650;
  max-width: 22rem;
}

.click-hint.is-on {
  color: var(--navy);
}

.page-pill {
  font-size: 0.8rem;
  color: var(--muted);
  align-self: center;
}

.a4-sheet {
  margin: 0 auto 1rem;
}

.a4-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #6b6280;
}

.a4-clip {
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(18, 32, 44, 0.18);
}

.a4-shift .cv {
  min-height: 297mm;
}

#cv-print {
  display: none;
}

.field-flash {
  animation: flash 1.1s ease;
}

@keyframes flash {
  from {
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.55);
  }
  to {
    box-shadow: none;
  }
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.sheet-frame {
  background: #ebe3f6;
  border-radius: var(--radius);
  padding: 1rem;
  overflow: auto;
  max-height: calc(100vh - 7rem);
}

.prose {
  max-width: 46rem;
}

.prose li {
  margin: 0.5rem 0;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.7rem;
}

.wizard-step[hidden] {
  display: none !important;
}

.success-screen[hidden],
#builder-workspace[hidden],
#offer-modal[hidden] {
  display: none !important;
}

.done-title {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

.done-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.3rem;
  line-height: 1.45;
}

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 3vh 4vw;
}

.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 64, 0.42);
}

.offer-modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(42, 33, 64, 0.28);
}

.offer-modal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.offer-modal-bar p {
  margin: 0;
  font-weight: 700;
}

.offer-modal-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-cancel {
  gap: 0.35rem;
}

.btn-cancel span {
  font-size: 1.15rem;
  line-height: 1;
}

.offer-modal-body {
  padding: 1.35rem 1.5rem 2rem;
  display: grid;
  gap: 1.8rem;
}

.kit-card p {
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 0;
  margin: 0 0 0.7rem;
}

.kit-card .btn {
  margin-top: 0.15rem;
}

.affiliate-note {
  font-size: 0.75rem;
  line-height: 1.45;
  max-width: 46rem;
  margin: 0.35rem 0 0;
  color: #4f4860;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 980px) {
  .builder,
  .strip,
  .split-fields,
  .wiz-body,
  .contact-with-photo,
  .wiz-top {
    grid-template-columns: 1fr;
  }

  .wiz-body {
    grid-template-rows: minmax(0, 1fr) minmax(160px, 38vh);
  }

  .preview-wrap {
    position: static;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .lang-orb-wrap {
    margin-left: 0;
  }

  .wiz-preview .a4-clip {
    max-width: 100%;
  }

  .wiz-nav {
    margin: 0 -6% 0;
  }

  .offer-modal-bar {
    flex-wrap: wrap;
  }

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

@media print {
  #landing,
  #wizard-app,
  .site-header,
  .hero,
  .strip,
  .section,
  .builder-head,
  .panel,
  .preview-toolbar,
  .site-footer,
  .sheet-frame,
  #cv-pages,
  .success-screen,
  .wiz-top,
  .preview-toolbar,
  .wiz-nav,
  .offer-modal,
  .wiz-form {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .builder,
  .builder-section,
  .preview-wrap,
  main {
    display: block;
    padding: 0;
    margin: 0;
    background: #fff;
    max-height: none;
    overflow: visible;
  }

  #cv-print {
    display: block !important;
  }

  #cv-print .cv {
    box-shadow: none;
  }
}

/* Homepage document suite promo */

.suite-promo {
  padding: 2.75rem 6vw 3.25rem;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(124, 92, 191, 0.16), transparent 60%),
    radial-gradient(900px 380px at 92% 0%, rgba(109, 74, 173, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f3ff 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.suite-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(109, 74, 173, 0.1);
  border: 1px solid rgba(109, 74, 173, 0.22);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.suite-promo h2 {
  max-width: 22ch;
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.suite-lede {
  max-width: 46rem;
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 960px;
}

.suite-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.45rem;
  min-height: 11rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  animation: suite-rise 0.55s ease both;
}

.suite-card:nth-child(2) { animation-delay: 0.06s; }
.suite-card:nth-child(3) { animation-delay: 0.12s; }
.suite-card:nth-child(4) { animation-delay: 0.18s; }

.suite-card:hover,
.suite-card:focus-visible {
  border-color: rgba(109, 74, 173, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42, 33, 64, 0.08);
  outline: none;
}

.suite-card-accent {
  background: linear-gradient(165deg, #fff 0%, #f3eefb 100%);
  border-color: rgba(109, 74, 173, 0.35);
}

.suite-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(109, 74, 173, 0.1);
  color: var(--navy);
}

.suite-card strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.suite-card > span:not(.suite-icon):not(.suite-cta) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.suite-cta {
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

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

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

  .suite-promo h2 {
    max-width: none;
  }
}

