:root {
  --cyan: #00abc8;
  --dark: #202020;
  --ink: #292929;
  --muted: #666;
  --paper: #fdfdfc;
  --page: #ececea;
  --line: #d6d6d3;
  --white: #fff;
}

:root[data-theme="black"] {
  --cyan: #111;
  --dark: #111;
  --page: #e7e7e3;
}

:root[data-theme="burgundy"] {
  --cyan: #9b1d35;
  --dark: #2a171c;
  --page: #eee7e2;
  --paper: #fffaf6;
}

:root[data-theme="forest"] {
  --cyan: #0f7a5f;
  --dark: #14231d;
  --page: #e6ebe5;
  --paper: #fbfdf9;
}

:root[data-theme="holo"] {
  --cyan: #00abc8;
  --dark: #111;
  --page: #eef6f5;
  --paper: #fffdfa;
  --line: #cfdadd;
}

:root[data-theme="holo"] .cv-shell {
  border: 4px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
}

:root[data-theme="holo"] .sidebar {
  border-color: #00abc8;
}

:root[data-theme="holo"] .cv-section {
  border-top-color: rgba(0, 171, 200, .55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.43;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 14px auto 0;
  border: 1px solid rgba(0, 171, 200, .28);
  border-top: 4px solid transparent;
  border-image: var(--rainbow) 1;
  background: rgba(255, 255, 255, .82);
  padding: 13px 16px 11px;
  color: #2a2a2a;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .07);
}

.landing-page {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 32px;
}

.landing-copy h1 {
  max-width: 620px;
  margin: 10px 0 20px;
  color: #141414;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  line-height: .88;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: min(430px, 92vw);
  height: 148px;
  margin: 0 0 18px -12px;
  object-fit: cover;
  object-position: center 63%;
  filter: drop-shadow(0 18px 34px rgba(0, 171, 200, .16));
}

.landing-lead {
  max-width: 560px;
  color: #3f3f3f;
  font-size: 1.08rem;
  line-height: 1.45;
}

.landing-cta {
  margin-top: 30px;
  border: 2px solid var(--cyan);
  background: var(--cyan);
  color: #fff;
  cursor: pointer;
  padding: 14px 18px 13px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.landing-cta:hover {
  background: transparent;
  color: var(--cyan);
}

.landing-showcase {
  position: relative;
  display: grid;
  gap: 18px;
}

.landing-screen {
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .16);
}

.demo-profile {
  max-width: 430px;
  margin-left: auto;
  padding: 22px 24px;
  background: var(--dark);
  color: #fff;
  border-left: 7px solid var(--cyan);
  transform: translateY(-72px);
}

.demo-profile h2 {
  margin: 4px 0 10px;
  font-size: 1.8rem;
  line-height: .95;
  text-transform: uppercase;
}

.demo-profile p,
.demo-profile li {
  color: #ececec;
  font-size: .82rem;
}

.demo-profile ul {
  margin-top: 12px;
  list-style: none;
}

.demo-profile li {
  margin-bottom: 5px;
}

.demo-profile li::before {
  content: "- ";
  color: var(--cyan);
}

.app-toolbar h1 {
  margin: 0;
  color: #141414;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.app-logo-link {
  display: inline-block;
  color: #111;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.app-logo-link::after {
  content: "";
  display: block;
  width: 78px;
  height: 3px;
  margin-top: 6px;
  background: linear-gradient(90deg, #ff2faf, #ffe94f, #00d084, #2548ff);
}

.app-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app-kicker {
  color: var(--cyan);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-brand strong {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-nav .pdf-button {
  border-color: #111;
}

.template-picker,
.layout-picker,
.theme-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.template-picker select,
.layout-picker select,
.theme-picker select,
.pdf-button {
  border: 1px solid var(--cyan);
  background: transparent;
  color: #555;
  cursor: pointer;
  padding: 5px 8px 4px;
  font: inherit;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.pdf-button:hover {
  background: var(--cyan);
  color: #fff;
}

.template-picker select:focus-visible,
.layout-picker select:focus-visible,
.theme-picker select:focus-visible,
summary:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.cv-layout {
  padding-bottom: 28px;
}

.ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 22px auto 24px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 7px solid var(--cyan);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .08);
}

.ai-panel h2 {
  margin: 4px 0 10px;
  color: #141414;
  font-size: 2.2rem;
  line-height: .95;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.ai-panel p {
  color: var(--muted);
  font-size: .82rem;
}

.ai-panel-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.quick-compile {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  background: rgba(0, 171, 200, .045);
  padding: 16px;
}

.quick-compile h3 {
  margin-bottom: 4px;
  color: #141414;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
}

.quick-compile p {
  color: var(--muted);
  font-size: .76rem;
}

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

.route-card {
  display: grid;
  gap: 10px;
  min-height: 250px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 26px;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.route-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .09);
}

.route-card span {
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.route-card strong {
  color: #141414;
  font-size: 2rem;
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.route-card small {
  max-width: 330px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.35;
}

.photo-preview {
  max-width: 220px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

.photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-position-controls {
  display: grid;
  gap: 10px;
  max-width: 320px;
}

.photo-position-controls label {
  gap: 7px;
}

.photo-position-controls input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.ai-panel-form label {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ai-panel-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: .86rem;
  line-height: 1.45;
}

.ai-panel-form textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.ai-panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wizard-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.wizard-dot {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.wizard-dot.is-active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

.wizard-dot.is-done {
  border-color: var(--cyan);
  color: var(--cyan);
}

.wizard-viewport {
  overflow: hidden;
}

.wizard-step {
  display: grid;
  gap: 15px;
  border: 0;
}

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

.wizard-step legend {
  margin-bottom: 12px;
  color: #141414;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.wizard-target {
  margin: -6px 0 2px;
  border-left: 3px solid var(--cyan);
  padding: 7px 0 7px 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.wizard-step input,
.wizard-step textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
  font-size: .86rem;
}

.ai-panel-form input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--muted);
  padding: 10px 11px;
  font: inherit;
  font-size: .78rem;
}

.wizard-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(0, 171, 200, .06);
  padding: 11px 12px;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
  text-transform: none;
}

.wizard-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--cyan);
}

.result-screen {
  max-width: 1120px;
  margin: 0 auto;
}

.result-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0 18px;
  padding: 22px 24px;
  background: var(--paper);
  border-left: 7px solid var(--cyan);
}

.result-header h2 {
  margin: 3px 0 8px;
  color: #141414;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.result-header p {
  color: var(--muted);
  font-size: .82rem;
}

.result-primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.result-primary-nav .pdf-button {
  border-color: #111;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.result-primary-nav .pdf-button:hover,
.result-primary-nav .pdf-button:focus-visible {
  background: #fff;
  color: #111;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.publish-url-field {
  display: grid;
  grid-template-columns: auto minmax(120px, 180px);
  flex-basis: 100%;
  align-items: center;
  justify-content: end;
  gap: 6px;
  color: #111;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.publish-url-field span {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: right;
}

.publish-url-field strong {
  font-size: .62rem;
  letter-spacing: .02em;
  text-transform: none;
}

.publish-url-field input {
  width: 100%;
  border: 1px solid var(--cyan);
  background: #fff;
  color: #111;
  padding: 7px 9px;
  font: inherit;
  font-size: .7rem;
  letter-spacing: .02em;
  text-transform: none;
}

.publish-url-field input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.result-actions .pdf-button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}

.style-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin: -8px 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 16px;
}

.style-toolbar .pdf-button,
.style-toolbar select {
  border-color: #111;
}

.publish-status {
  flex-basis: 100%;
  color: #1f4d3a;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.publish-status a {
  color: #111;
  text-decoration-color: var(--cyan);
  text-underline-offset: 3px;
}

.publish-status.is-error {
  color: #8f1d35;
}

.user-area-screen {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 34px;
  max-width: 1040px;
  margin: 36px auto 80px;
  border: 1px solid rgba(0, 171, 200, .24);
  background: rgba(255, 255, 255, .9);
  padding: 38px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .08);
}

.user-area-copy {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.user-area-copy h2 {
  margin: 6px 0 14px;
  color: #111;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .95;
  text-transform: uppercase;
}

.user-area-copy p:not(.app-kicker) {
  color: var(--muted);
  line-height: 1.45;
}

.user-area-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.user-area-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.user-area-panel input {
  border: 1px solid rgba(0, 171, 200, .5);
  background: #fff;
  color: #111;
  padding: 12px;
  font: inherit;
  font-size: .88rem;
  letter-spacing: 0;
  text-transform: none;
}

.user-area-panel input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.auth-tabs .pdf-button[aria-pressed="true"],
.settings-tabs .pdf-button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}

.auth-form,
.project-space,
.settings-pane {
  display: grid;
  gap: 14px;
}

.settings-pane {
  border: 1px solid rgba(0, 171, 200, .24);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .86)),
    radial-gradient(circle at 84% 18%, rgba(255, 47, 175, .1), transparent 36%);
  padding: 18px;
}

.settings-pane h3 {
  margin: 0;
  color: #111;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.settings-pane p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.plans-screen {
  max-width: 1120px;
  margin: 36px auto 80px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(0, 171, 200, .28);
  background:
    radial-gradient(circle at 10% 80%, rgba(255, 47, 175, .13), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(0, 171, 200, .14), transparent 28%),
    radial-gradient(circle at 82% 86%, rgba(255, 233, 79, .13), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(248, 253, 255, .86));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .08);
}

.plans-hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.plans-hero h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(2.25rem, 6vw, 5.4rem);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.plans-hero p:not(.app-kicker) {
  max-width: 620px;
  margin: 18px auto 0;
  color: #334047;
  font-size: 1rem;
  line-height: 1.5;
}

.plan-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.plan-showcase-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 14px;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  border: 2px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, .94), rgba(255, 255, 255, .86)) padding-box,
    linear-gradient(135deg, rgba(0, 171, 200, .55), rgba(255, 47, 175, .35), rgba(39, 96, 255, .5)) border-box;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .08);
}

.plan-showcase-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -28% -30%;
  height: 44%;
  background: linear-gradient(90deg, rgba(255, 47, 175, .18), rgba(255, 233, 79, .2), rgba(0, 171, 200, .2), rgba(39, 96, 255, .2));
  filter: blur(18px);
  pointer-events: none;
}

.plan-showcase-card.is-featured {
  transform: translateY(-10px);
  background:
    linear-gradient(rgba(10, 10, 12, .94), rgba(22, 22, 26, .9)) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  color: #fff;
}

.plan-showcase-card.is-current {
  box-shadow: 0 0 0 3px rgba(0, 171, 200, .16), 0 28px 70px rgba(0, 0, 0, .12);
}

.plan-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  color: #111;
  font-size: .78rem;
  font-weight: 900;
}

.plan-showcase-card span,
.plan-ribbon {
  color: #005d78;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.plan-showcase-card.is-featured span,
.plan-showcase-card.is-featured .plan-ribbon {
  color: #82f0ff;
}

.plan-showcase-card h3,
.plan-showcase-card strong {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #111;
  text-transform: uppercase;
}

.plan-showcase-card h3 {
  font-size: 2rem;
  line-height: .95;
}

.plan-showcase-card strong {
  font-size: 1.55rem;
}

.plan-showcase-card p,
.plan-showcase-card li {
  position: relative;
  z-index: 1;
  color: #3d464c;
  line-height: 1.45;
}

.plan-showcase-card p {
  margin: 0;
}

.plan-showcase-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-showcase-card li {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 171, 200, .22);
  font-size: .88rem;
}

.plan-showcase-card.is-featured h3,
.plan-showcase-card.is-featured strong,
.plan-showcase-card.is-featured p,
.plan-showcase-card.is-featured li {
  color: #fff;
}

.plan-showcase-card .pdf-button {
  position: relative;
  z-index: 1;
  align-self: end;
}

.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  padding: 6px 10px 5px;
}

.plan-virtues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 24px auto 0;
}

.plan-virtues article {
  border-top: 1px solid rgba(0, 0, 0, .14);
  padding-top: 14px;
}

.plan-virtues span {
  color: #111;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-virtues p {
  margin: 8px 0 0;
  color: #4a545b;
  line-height: 1.45;
}

.plan-page-status {
  display: block;
  min-height: 20px;
  margin-top: 18px;
  color: #005d78;
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
}

.plan-page-status[data-state="error"] {
  color: #8f1d35;
}

.plan-page-status[data-state="success"] {
  color: #006b42;
}

.danger-pane {
  border-color: rgba(143, 29, 53, .42);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(0, 171, 200, .24);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  padding: 14px;
}

.plan-grid article.is-current {
  border-color: #111;
  box-shadow: inset 0 4px 0 #111;
}

.plan-grid span {
  color: #005d78;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-grid strong {
  color: #111;
  font-size: 1.25rem;
  line-height: 1;
}

.plan-grid p {
  font-size: .72rem;
}

#settings-status {
  min-height: 18px;
  color: #005d78;
  font-size: .76rem;
  font-weight: 900;
}

#settings-status[data-state="error"] {
  color: #8f1d35;
}

#settings-status[data-state="success"] {
  color: #006b42;
}

.project-space {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-space h3 {
  color: #111;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, .94), rgba(255, 255, 255, .88)) padding-box,
    linear-gradient(135deg, rgba(255, 47, 175, .58), rgba(255, 233, 79, .5), rgba(0, 171, 200, .68), rgba(37, 72, 255, .56)) border-box;
  color: #111;
  padding: 14px;
  text-align: left;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .1);
}

.project-list-item::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 79, .32), rgba(255, 47, 175, .14) 44%, transparent 68%);
  pointer-events: none;
}

.project-preview-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(241, 255, 252, .9)),
    radial-gradient(circle at 88% 12%, rgba(255, 47, 175, .16), transparent 34%),
    radial-gradient(circle at 72% 92%, rgba(37, 72, 255, .14), transparent 40%);
  color: #111;
  cursor: pointer;
  padding: 0;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.project-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, #ff2faf, #ffe94f, #00abc8, #2548ff) 1;
  pointer-events: none;
}

.preview-sidebar {
  display: grid;
  place-items: start center;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(180deg, rgba(255, 47, 175, .45), rgba(0, 171, 200, .35)) border-box;
  border-right: 3px solid transparent;
  padding-top: 26px;
}

.preview-sidebar i {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  background: #d7d7d7 center / cover no-repeat;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .08), 0 10px 22px rgba(0, 0, 0, .22);
}

.preview-page {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 32px 18px 18px;
}

.preview-page strong {
  color: #111;
  font-size: 1.08rem;
  line-height: 1;
}

.preview-page em {
  color: var(--muted);
  font-size: .58rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.preview-page b {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 171, 200, .44) 0 62%, rgba(255, 47, 175, .2) 62%);
  opacity: .9;
}

.preview-page b:nth-of-type(2) {
  width: 84%;
}

.preview-page b:nth-of-type(3) {
  width: 68%;
}

.project-card-meta {
  display: grid;
  gap: 3px;
}

.project-card-meta strong {
  font-size: .78rem;
  text-transform: uppercase;
}

.project-card-meta span {
  color: var(--muted);
  font-size: .68rem;
}

.project-card-sections,
.project-card-public-link {
  color: #555;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-card-public-link {
  position: relative;
  z-index: 1;
  color: #005d78;
  text-decoration: none;
}

.project-card-public-link:hover {
  color: #111;
  text-decoration: underline;
}

.project-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.new-cv-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  border: 2px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .82)) padding-box,
    linear-gradient(135deg, rgba(255, 47, 175, .55), rgba(255, 233, 79, .5), rgba(0, 171, 200, .68), rgba(37, 72, 255, .55)) border-box;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
}

.new-cv-panel h3 {
  margin: 2px 0 0;
  color: #111;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.new-cv-panel.is-plan-limited {
  background:
    linear-gradient(rgba(255, 250, 252, .94), rgba(255, 255, 255, .86)) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #2548ff) border-box;
}

.new-cv-panel.is-plan-limited h3 {
  color: #8f1d35;
}

.danger-button {
  border-color: #8f1d35;
  color: #8f1d35;
}

.danger-button:hover {
  background: #8f1d35;
  color: #fff;
}

.builder-app .toolbar-nav .pdf-button,
.builder-app .result-actions .pdf-button,
.builder-app .style-toolbar .pdf-button,
.builder-app .new-cv-panel .pdf-button,
.builder-app .project-card-actions .pdf-button,
.builder-app .auth-tabs .pdf-button,
.builder-app .settings-tabs .pdf-button,
.builder-app .settings-pane .pdf-button,
.builder-app .auth-form .pdf-button {
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(255, 47, 175, .78), rgba(255, 233, 79, .68), rgba(0, 171, 200, .86), rgba(37, 72, 255, .78)) border-box;
  color: #111;
  padding: 9px 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.builder-app .toolbar-nav .pdf-button:hover,
.builder-app .result-actions .pdf-button:hover,
.builder-app .style-toolbar .pdf-button:hover,
.builder-app .new-cv-panel .pdf-button:hover,
.builder-app .project-card-actions .pdf-button:hover,
.builder-app .auth-tabs .pdf-button:hover,
.builder-app .settings-tabs .pdf-button:hover,
.builder-app .settings-pane .pdf-button:hover,
.builder-app .auth-form .pdf-button:hover {
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  color: #fff;
}

.builder-app .danger-button,
.builder-app .project-card-actions .danger-button,
.builder-app .result-actions .danger-button {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ff2faf, #8f1d35) border-box;
  color: #8f1d35;
}

.builder-app .danger-button:hover,
.builder-app .project-card-actions .danger-button:hover,
.builder-app .result-actions .danger-button:hover {
  background:
    linear-gradient(#8f1d35, #8f1d35) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f) border-box;
  color: #fff;
}

.publish-panel {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
  margin: 0 0 18px;
  padding: 22px;
  border: 3px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .78)) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .08);
}

.publish-panel h3 {
  margin: 4px 0 8px;
  color: #111;
  font-size: 1.35rem;
  line-height: .96;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.publish-panel p {
  color: var(--muted);
  font-size: .82rem;
}

.publish-panel-tools {
  display: grid;
  gap: 12px;
}

.publish-reset {
  justify-self: end;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  padding: 9px 14px;
  font: inherit;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.publish-section-list {
  display: grid;
  gap: 8px;
}

.publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 171, 200, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}

.publish-row.is-muted {
  opacity: .52;
}

.publish-row-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  min-width: 0;
}

.publish-row-number {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.publish-row-meta strong {
  overflow: hidden;
  color: #111;
  font-size: .82rem;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.publish-row-meta small {
  color: var(--muted);
  font-size: .7rem;
}

.publish-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.publish-row-actions button,
.publish-toggle {
  border: 1px solid rgba(0, 171, 200, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: #111;
  cursor: pointer;
  padding: 7px 10px;
  font: inherit;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.publish-row-actions button:disabled {
  cursor: default;
  opacity: .35;
}

.publish-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.publish-toggle input {
  accent-color: var(--cyan);
}

.wizard-step input:focus-visible,
.wizard-step textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#ai-status {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

#ai-status[data-state="error"] {
  color: #9b1d35;
}

#ai-status[data-state="success"] {
  color: #0f7a5f;
}

#photo-status {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

#photo-status[data-state="error"] {
  color: #9b1d35;
}

#photo-status[data-state="success"] {
  color: #0f7a5f;
}

.cv-shell {
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 28px rgba(0, 0, 0, .08);
}

.sidebar {
  background: var(--dark);
  color: #fff;
}

.portrait {
  display: block;
  object-fit: cover;
}

.side-block {
  border-top: 2px solid var(--cyan);
  padding-top: 14px;
  margin-top: 20px;
}

.cv-meta-panel {
  margin: 0 0 28px;
  padding: 18px 0 4px;
  border-top: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.cv-meta-panel .meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 18px;
}

.cv-meta-panel .side-block {
  margin-top: 0;
}

.side-block h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.side-block p,
.side-block li,
.side-block a {
  font-size: .72rem;
  line-height: 1.4;
}

.side-block a {
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

.side-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-list,
.cv-list {
  list-style: none;
}

.side-list li,
.cv-list li {
  margin-bottom: 7px;
}

.side-list li::before,
.cv-list li::before {
  content: "- ";
}

.content {
  min-width: 0;
}

.hero {
  margin-bottom: 28px;
}

.kicker {
  display: none;
}

h1 {
  margin-bottom: 14px;
  color: #141414;
  font-size: 2.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.role {
  max-width: 430px;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 12px;
  color: #626262;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.cv-section {
  border-top: 2px solid var(--cyan);
}

.cv-section > summary,
.cv-section > h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  color: #202020;
  cursor: pointer;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: .01em;
  list-style: none;
  text-transform: uppercase;
}

.cv-section > h2 {
  cursor: default;
}

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

.cv-section > summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: 18px;
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.cv-section[open] > summary::after {
  content: "-";
}

.cv-section > summary:hover {
  color: var(--cyan);
}

.section-editor-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 10px;
  opacity: .72;
  transition: opacity .18s ease;
}

#cv-root:not(.is-section-editing) .section-editor-actions {
  display: none;
}

.cv-section > summary:hover .section-editor-actions,
.cv-section > summary:focus-within .section-editor-actions {
  opacity: 1;
}

.section-editor-actions button {
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(255, 47, 175, .7), rgba(255, 233, 79, .6), rgba(0, 171, 200, .85), rgba(37, 72, 255, .75)) border-box;
  color: #111;
  cursor: pointer;
  padding: 5px 9px;
  font: inherit;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.section-editor-actions button:disabled {
  cursor: default;
  opacity: .32;
}

.cv-inline-editable {
  border-radius: 4px;
  outline: 1px dashed rgba(0, 171, 200, .35);
  outline-offset: 3px;
  cursor: text;
}

.cv-inline-editable:hover,
.cv-inline-editable:focus {
  background: rgba(0, 171, 200, .06);
  outline-color: var(--cyan);
}

.cv-inline-editable:focus {
  box-shadow: 0 0 0 3px rgba(0, 171, 200, .1);
}

.cv-section.is-publish-hidden {
  opacity: .48;
}

.cv-section.is-publish-hidden > summary {
  color: var(--muted);
}

.cv-section.is-publish-hidden > summary::before {
  content: "spenta";
  margin-right: 10px;
  border: 1px solid rgba(0, 171, 200, .35);
  border-radius: 999px;
  color: var(--cyan);
  padding: 3px 7px;
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cv-section.is-publish-hidden > .section-body {
  display: none;
}

.section-body {
  padding: 0 0 18px;
}

.section-body p {
  margin-bottom: 11px;
}

.section-body strong,
.side-block strong,
.card strong {
  color: #111;
  font-weight: 800;
}

.layout-showcase .section-body strong,
.layout-showcase .side-block strong {
  color: #fff;
}

.sidebar strong {
  color: #fff;
}

.section-body h3 {
  margin: 13px 0 1px;
  color: #222;
  font-size: .9rem;
  font-weight: 700;
}

.section-body .meta {
  color: #454545;
  font-size: .82rem;
}

.section-body ul {
  margin: 8px 0 0;
}

.experience-item + .experience-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.section-intro {
  margin-bottom: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.card[hidden] {
  display: none;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  background: #f5f5f5;
  object-fit: contain;
}

.card-copy {
  margin: 10px;
  border-top: 2px solid var(--cyan);
  padding: 10px 2px 2px;
}

.card h3 {
  margin: 0;
  font-size: .76rem;
  line-height: 1.15;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.2;
}

.gallery-card .card-copy p:empty {
  display: none;
}

.gallery-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-top: 1px solid rgba(0, 171, 200, .25);
  background: rgba(255, 255, 255, .92);
  padding: 8px;
}

.gallery-editor-actions button {
  border: 1px solid rgba(0, 171, 200, .5);
  background: #fff;
  color: #111;
  cursor: pointer;
  padding: 7px 8px;
  font: inherit;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gallery-editor-actions button:hover {
  background: var(--cyan);
  color: #fff;
}

.gallery-editor-actions .danger-inline {
  border-color: #8f1d35;
  color: #8f1d35;
}

.gallery-editor-actions .danger-inline:hover {
  background: #8f1d35;
  color: #fff;
}

.gallery-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.gallery-pager button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #202020;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.gallery-pager button:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.gallery-pager button:disabled {
  cursor: default;
  opacity: .32;
}

.gallery-page-status {
  min-width: 52px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}

@media screen and (max-width: 820px) {
  body {
    background: var(--paper);
  }

  .app-toolbar {
    display: block;
    padding: 12px 24px;
  }

  .landing-page {
    display: block;
    min-height: 0;
    padding: 38px 24px;
  }

  .landing-copy h1 {
    font-size: 3.1rem;
  }

  .landing-showcase {
    margin-top: 34px;
  }

  .demo-profile {
    margin: -34px 18px 0;
    transform: none;
  }

  .ai-panel {
    display: block;
    margin: 0 0 18px;
    padding: 18px 24px;
    box-shadow: none;
  }

  .user-area-screen {
    display: block;
    margin: 0 18px 28px;
    padding: 24px;
  }

  .user-area-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding: 0 0 18px;
  }

  .result-header {
    display: block;
    margin: 0;
  }

  .result-header .pdf-button {
    margin-top: 14px;
  }

  .result-actions {
    justify-content: stretch;
    margin-top: 14px;
  }

  .result-actions .pdf-button {
    width: 100%;
    margin-top: 0;
  }

  .ai-panel-copy {
    margin-bottom: 16px;
  }

  .app-brand {
    margin-bottom: 10px;
  }

  .template-picker,
  .layout-picker,
  .theme-picker,
  .template-picker select,
  .layout-picker select,
  .theme-picker select,
  .pdf-button {
    width: 100%;
  }

  .toolbar-actions {
    display: grid;
    gap: 8px;
  }

  .toolbar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .route-card {
    min-height: 190px;
  }

  .cv-shell {
    box-shadow: none;
  }

  h1 {
    font-size: 2rem;
  }

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

@media screen and (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cv-section > summary,
  .cv-section > h2 {
    min-height: 52px;
    font-size: .92rem;
  }

  .section-body {
    font-size: .93rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
    color: #000;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-toolbar {
    display: none;
  }

  .ai-panel {
    display: none;
  }

  .result-header,
  .publish-panel {
    display: none;
  }

  .section-editor-actions {
    display: none;
  }

  .cv-section.is-publish-hidden {
    display: none !important;
  }

  .cv-layout {
    padding: 0;
  }

  .cv-shell {
    max-width: none;
    min-height: 0;
    margin: 0;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cv-section {
    break-inside: avoid;
  }

  details:not([open]) > *:not(summary) {
    display: block;
  }

  summary::after {
    display: none;
  }

  .gallery-pager {
    display: none;
  }

  .card[hidden] {
    display: block;
  }
}

/* Holographic interface restyle */
:root {
  --holo-pink: #ff2faf;
  --holo-yellow: #ffe94f;
  --holo-green: #00d88f;
  --holo-blue: #2548ff;
  --holo-violet: #5b2dff;
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 171, 200, .13), transparent 28vw),
    linear-gradient(135deg, #f8f8f4 0%, var(--page) 48%, #f7f3ef 100%);
}

.landing-page {
  position: relative;
  overflow: hidden;
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(0, 0, 0, .08);
  pointer-events: none;
}

.landing-page::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -18vw;
  width: 58vw;
  height: 58vw;
  background:
    radial-gradient(circle at 30% 28%, rgba(0, 223, 255, .76), transparent 18%),
    radial-gradient(circle at 62% 34%, rgba(37, 72, 255, .72), transparent 20%),
    radial-gradient(circle at 70% 66%, rgba(255, 47, 175, .55), transparent 18%),
    radial-gradient(circle at 32% 70%, rgba(255, 233, 79, .72), transparent 20%);
  filter: blur(28px) saturate(1.25);
  opacity: .34;
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: holoFloat 18s ease-in-out infinite alternate;
}

.landing-copy,
.landing-showcase {
  position: relative;
  z-index: 1;
}

.brand-logo {
  animation: setupEnter .38s ease both;
}

.landing-copy h1 {
  line-height: .82;
  letter-spacing: -.085em;
  color: #000;
  background: none;
  -webkit-text-fill-color: #000;
}

.landing-copy h1::after {
  content: "";
  display: block;
  width: min(420px, 70%);
  height: 6px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--holo-pink), var(--holo-yellow), var(--holo-green), var(--cyan), var(--holo-blue));
  filter: saturate(1.2);
}

.landing-cta {
  border: 1px solid rgba(0, 0, 0, .18);
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(110deg, var(--holo-pink), var(--holo-yellow), var(--holo-green), var(--cyan), var(--holo-blue)) border-box;
  padding: 16px 22px 15px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.landing-cta:hover {
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(110deg, var(--holo-pink), var(--holo-yellow), var(--holo-green), var(--cyan), var(--holo-blue)) border-box;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 171, 200, .28);
}

.landing-screen {
  transform: none;
}

.demo-profile {
  background: rgba(20, 20, 20, .92);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .22);
}

.holo-orb {
  display: none;
}

.holo-stack {
  position: absolute;
  right: 7%;
  top: 13%;
  width: 330px;
  height: 470px;
  pointer-events: none;
  opacity: .38;
  mix-blend-mode: multiply;
}

.holo-stack span {
  position: absolute;
  inset: 0;
}

.holo-stack span:nth-child(1) {
  background: linear-gradient(180deg, rgba(255, 47, 175, .58), rgba(255, 126, 55, .36), transparent);
  transform: translateX(-68px);
}

.holo-stack span:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 233, 79, .62), rgba(255, 72, 72, .34), transparent);
  transform: translateX(-34px);
}

.holo-stack span:nth-child(3) {
  background: linear-gradient(180deg, rgba(0, 216, 143, .62), rgba(37, 72, 255, .25), transparent);
  transform: translateX(34px);
}

.holo-stack span:nth-child(4) {
  background: linear-gradient(180deg, rgba(0, 171, 200, .62), rgba(255, 255, 255, .18), transparent);
  transform: translateX(68px);
}

.builder-app {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.setup-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.setup-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px) saturate(1.12);
  opacity: .2;
  mix-blend-mode: multiply;
  animation: holoFloat 20s ease-in-out infinite alternate;
}

.setup-glow-a {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -90px;
  background: radial-gradient(circle at 30% 35%, var(--cyan), transparent 36%), radial-gradient(circle at 72% 68%, var(--holo-pink), transparent 34%);
}

.setup-glow-b {
  width: 520px;
  height: 520px;
  right: -120px;
  bottom: 2%;
  background: radial-gradient(circle at 28% 28%, var(--holo-yellow), transparent 32%), radial-gradient(circle at 70% 40%, var(--holo-green), transparent 34%), radial-gradient(circle at 64% 72%, var(--holo-blue), transparent 30%);
  animation-delay: -4s;
}

.setup-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 171, 200, .45), transparent);
}

.app-toolbar,
.ai-panel,
.result-screen {
  position: relative;
  z-index: 1;
}

.ai-panel {
  background: rgba(253, 253, 252, .86);
  border: 1px solid rgba(255, 255, 255, .74);
  border-top: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px);
  animation: setupEnter .28s ease both;
}

.ai-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(110deg, var(--holo-pink), var(--holo-yellow), var(--holo-green), var(--cyan), var(--holo-blue)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .48;
  pointer-events: none;
}

.ai-panel h2 {
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: .84;
  letter-spacing: -.075em;
}

.ai-panel-form,
.quick-compile,
.route-card {
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.setup-phase {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.setup-phase span {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.setup-phase i {
  display: block;
  width: 76px;
  height: 3px;
  background: linear-gradient(90deg, var(--holo-pink), var(--holo-yellow), var(--holo-green), var(--cyan));
  animation: phasePulse 2.4s ease-in-out infinite alternate;
}

.route-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
}

.route-card::before {
  content: "";
  position: absolute;
  inset: auto -22% -42% -22%;
  height: 68%;
  background: linear-gradient(90deg, rgba(255, 47, 175, .24), rgba(255, 233, 79, .26), rgba(0, 216, 143, .22), rgba(0, 171, 200, .24));
  filter: blur(10px);
  opacity: .42;
  transition: transform .22s ease, opacity .22s ease;
}

.route-card:hover::before {
  opacity: .72;
  transform: translateY(-10px);
}

.route-card span,
.route-card strong,
.route-card small {
  position: relative;
}

.wizard-dot.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--holo-pink), var(--holo-yellow), var(--cyan));
}

.wizard-step:not([hidden]),
.quick-compile:not([hidden]) {
  animation: setupEnter .22s ease both;
}

@keyframes holoFloat {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-10px, 8px, 0) rotate(3deg); }
}

@keyframes holoOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8px, -6px, 0) scale(1.03); }
}

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

@keyframes phasePulse {
  from {
    opacity: .45;
    transform: scaleX(.58);
    transform-origin: left;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* BombCV home layout cleanup */
.landing-page {
  grid-template-columns: minmax(360px, .72fr) minmax(620px, 1.28fr);
  gap: clamp(34px, 5vw, 74px);
  max-width: 1400px;
  padding: clamp(34px, 5vw, 76px) clamp(26px, 5vw, 68px);
  align-items: center;
}

.landing-page::before {
  display: none;
}

.landing-copy {
  align-self: center;
}

.brand-logo {
  width: min(520px, 100%);
  height: 178px;
  margin: 0 0 8px -18px;
  object-fit: cover;
  object-position: center 63%;
}

.landing-copy h1 {
  max-width: 680px;
  margin-top: 6px;
  font-size: clamp(3.45rem, 6.7vw, 7.8rem);
}

.landing-lead {
  max-width: 620px;
  font-size: 1.14rem;
}

.landing-showcase {
  display: block;
  align-self: center;
}

.landing-screen {
  width: min(100%, 920px);
  max-height: none;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  object-position: top left;
  border: 0;
  background: transparent;
  box-shadow: 0 28px 78px rgba(0, 0, 0, .18);
}

.demo-profile {
  display: none;
}

.holo-stack {
  right: -2%;
  top: 8%;
  width: 520px;
  height: 760px;
  opacity: .22;
}

@media screen and (max-width: 980px) {
  .landing-page {
    grid-template-columns: 1fr;
  }

  .landing-screen {
    width: 100%;
    aspect-ratio: 1 / 1;
  }
}

@media screen and (max-width: 760px) {
  .brand-logo {
    height: 132px;
  }

  .landing-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }
}

/* Marketing homepage structural correction */
.marketing-nav {
  justify-content: flex-end;
  min-height: 64px;
  padding: 0 62px;
}

.marketing-nav .nav-links {
  margin-left: 0;
}

.landing-hero {
  grid-template-columns: minmax(360px, .74fr) minmax(560px, 1.26fr);
  padding-top: 96px;
  padding-bottom: 70px;
}

.marketing-home .landing-copy h1 {
  font-size: clamp(3.4rem, 5.4vw, 6.45rem);
  line-height: .82;
  letter-spacing: -.078em;
}

.marketing-home .landing-screen {
  width: min(100%, 820px);
  max-height: 620px;
  aspect-ratio: 1.08 / 1;
  object-position: top left;
}

.floating-profile {
  right: -10px;
  bottom: 34px;
  width: 190px;
  border-left-color: var(--cyan);
}

.step-grid article span,
.feature-grid article span {
  background: linear-gradient(135deg, var(--cyan), var(--holo-blue));
  color: #fff;
}

.feature-grid article span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.35rem;
}

.portfolio-section li {
  color: #244b5a;
}

.portfolio-section li::before {
  color: var(--cyan);
}

.marketing-section h2 {
  border-bottom-color: var(--cyan);
}

.pricing-grid .is-featured > span,
.pricing-grid .is-featured button {
  background: linear-gradient(90deg, var(--cyan), var(--holo-blue));
}

@media screen and (max-width: 1100px) {
  .landing-hero {
    padding-top: 68px;
  }

  .marketing-home .landing-screen {
    max-height: none;
    width: 100%;
  }
}

/* Full marketing homepage */
.marketing-home {
  display: block;
  max-width: min(1480px, calc(100% - 36px));
  min-height: 100vh;
  margin: 18px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 171, 200, .13), transparent 28%),
    radial-gradient(circle at 92% 30%, rgba(255, 47, 175, .11), transparent 30%),
    linear-gradient(135deg, #fbfbf7, #f4f6f2 62%, #fff8fb);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .13);
}

.marketing-home .holo-stack {
  right: 0;
  top: 60px;
  opacity: .16;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 14px 52px;
  border-bottom: 1px solid var(--cyan);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
}

.nav-logo {
  width: 154px;
  height: 38px;
  object-fit: cover;
  object-position: center 63%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 54px);
  margin-left: auto;
}

.nav-links a,
.nav-login {
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}

.landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(620px, 1.22fr);
  gap: clamp(36px, 5vw, 86px);
  align-items: center;
  padding: 70px 78px 58px;
}

.responsive-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, .56fr) minmax(560px, 1.44fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  min-height: 560px;
  padding: clamp(48px, 6vw, 88px) clamp(34px, 6vw, 92px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 47, 175, .18), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(0, 180, 220, .16), transparent 30%),
    #090909;
}

.responsive-showcase::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--pink), #ffdb4d, #3ed38f, var(--cyan), var(--holo-blue));
}

.responsive-showcase-copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.responsive-showcase-copy .app-kicker {
  margin-bottom: 14px;
  color: var(--cyan);
}

.responsive-showcase-copy h2 {
  max-width: 390px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.7rem, 4.5vw, 5.6rem);
  line-height: .88;
}

.responsive-showcase-copy p:not(.app-kicker) {
  max-width: 380px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  line-height: 1.6;
}

.responsive-showcase-copy a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .66);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.responsive-showcase-copy a:hover {
  border-color: var(--cyan);
  background: rgba(0, 180, 220, .12);
}

.responsive-showcase-media {
  position: relative;
  z-index: 1;
  margin: 0;
}

.responsive-showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, .48));
}

.marketing-home .landing-copy {
  align-self: center;
}

.marketing-home .brand-logo {
  width: min(520px, 100%);
  height: 170px;
  margin: 0 0 2px -18px;
  object-fit: cover;
  object-position: center 63%;
}

.marketing-home .landing-copy h1 {
  max-width: 680px;
  margin: 6px 0 18px;
  color: #000;
  font-size: clamp(3.5rem, 6.3vw, 7.7rem);
  line-height: .78;
  letter-spacing: -.086em;
}

.marketing-home .landing-copy h1::after {
  width: min(460px, 80%);
}

.marketing-home .landing-lead {
  max-width: 560px;
  color: #303439;
  font-size: 1.14rem;
  line-height: 1.5;
}

.marketing-home .landing-cta {
  min-width: 300px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.social-proof {
  max-width: 360px;
  margin-top: 18px;
  color: #70777b;
  font-size: .82rem;
}

.marketing-home .landing-showcase {
  position: relative;
  display: block;
}

.landing-showcase-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.marketing-home .landing-screen {
  display: block;
  width: min(100%, 900px);
  aspect-ratio: 1.02 / 1;
  object-fit: cover;
  object-position: top left;
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
}

.marketing-home .landing-showcase-link .landing-screen {
  aspect-ratio: 891 / 880;
  object-fit: contain;
  object-position: center top;
  background: #0c0a09;
}

.landing-template-tag {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 8px 11px 7px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(8, 8, 8, .78);
  color: #fff6ec;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  font-size: .64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.floating-profile {
  position: absolute;
  right: -22px;
  bottom: 44px;
  width: 210px;
  padding: 24px 22px;
  border-left: 5px solid var(--cyan);
  border-radius: 12px;
  background: rgba(20, 20, 20, .94);
  color: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .3);
  text-align: center;
}

.floating-profile img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
}

.floating-profile h2 {
  margin: 12px 0 4px;
  font-size: 1rem;
  line-height: 1.05;
}

.floating-profile p {
  color: #d9d9d9;
  font-size: .72rem;
}

.floating-profile button {
  margin-top: 16px;
  border: 1px solid var(--cyan);
  background: #111;
  color: #fff;
  cursor: pointer;
  padding: 9px 12px;
  font: inherit;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.marketing-section {
  position: relative;
  z-index: 1;
  scroll-margin-top: 92px;
  padding: 34px 78px;
  text-align: center;
}

.marketing-home {
  scroll-margin-top: 0;
}

.marketing-section h2 {
  display: inline-block;
  margin: 0 auto 26px;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 8px;
  color: #111;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.step-grid,
.feature-grid,
.example-grid,
.pricing-grid {
  display: grid;
  gap: 20px;
}

.step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.step-grid article,
.feature-grid article,
.pricing-grid article,
.example-grid article,
.portfolio-cards article {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .04);
}

.step-grid article {
  position: relative;
  min-height: 170px;
  padding: 28px 22px;
}

.step-grid article span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-weight: 900;
}

.step-grid article strong,
.feature-grid article strong {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-size: .88rem;
}

.step-grid article p,
.feature-grid article p,
.pricing-grid article p,
.examples-section > p,
.portfolio-section p {
  color: #697075;
  font-size: .78rem;
  line-height: 1.4;
}

.feature-grid article {
  min-height: 150px;
  padding: 28px 18px;
}

.feature-grid article span {
  display: inline-grid;
  min-width: 44px;
  height: 28px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 171, 200, .55);
  border-radius: 999px;
  color: #111;
  padding: 0 9px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.example-grid article {
  overflow: hidden;
  text-align: left;
}

.example-grid article:not(.example-real) {
  display: none;
}

.example-card-link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.example-grid img {
  display: block;
  width: 100%;
  height: 360px;
  background: #f6f6f3;
  object-fit: contain;
  object-position: top center;
}

.example-grid div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: #111;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.example-grid span {
  color: #111;
}

.example-grid article p {
  padding: 0 16px 16px;
  color: #697075;
  font-size: .75rem;
  line-height: 1.35;
}

.portfolio-section {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  text-align: left;
}

.portfolio-section h2 {
  margin-left: 0;
}

.portfolio-section ul {
  margin-top: 18px;
  list-style: none;
}

.portfolio-section li {
  margin-bottom: 8px;
  color: #2f5754;
  font-size: .86rem;
}

.portfolio-section li::before {
  content: "✓ ";
  color: var(--cyan);
  font-weight: 900;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-cards article {
  overflow: hidden;
}

.portfolio-cards img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-cards strong,
.portfolio-cards span {
  display: block;
  padding: 0 12px;
}

.portfolio-cards strong {
  margin-top: 12px;
  font-size: .78rem;
}

.portfolio-cards span {
  margin-bottom: 12px;
  color: #697075;
  font-size: .7rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: 22px auto 0;
}

.pricing-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  text-align: left;
}

.pricing-grid .is-featured {
  border-color: var(--cyan);
  padding-top: 42px;
  transform: translateY(-8px);
}

.pricing-grid .is-featured > span {
  position: absolute;
  inset: 0 0 auto;
  background: var(--cyan);
  color: #fff;
  padding: 5px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.pricing-grid h3 {
  margin-top: 10px;
  font-size: .95rem;
  text-transform: uppercase;
}

.pricing-grid strong {
  display: block;
  margin: 10px 0;
  color: #111;
  font-size: 2rem;
}

.pricing-grid button {
  position: static;
  width: 100%;
  margin-top: auto;
  border: 1px solid var(--cyan);
  background: transparent;
  cursor: pointer;
  padding: 10px;
  font: inherit;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pricing-grid .is-featured button {
  background: var(--cyan);
  color: #fff;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 34px auto;
  padding: 34px 42px;
  border-radius: 12px;
  background: #171717;
  color: #fff;
}

.final-cta h2 {
  font-size: 1.65rem;
  line-height: .95;
  text-transform: uppercase;
}

.final-cta p {
  color: #d9d9d9;
  font-size: .86rem;
}

.marketing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 62px;
  border-top: 1px solid var(--cyan);
  background: rgba(255, 255, 255, .72);
}

.marketing-footer img {
  width: 120px;
  height: 30px;
  object-fit: cover;
  object-position: center 63%;
}

.marketing-footer nav {
  display: flex;
  gap: 32px;
}

.marketing-footer a,
.marketing-footer small {
  color: #697075;
  font-size: .7rem;
  text-decoration: none;
}

.features-landing-page {
  background: #f7f8f5;
}

.is-features-route .fixed-refresh-badge,
.is-features-route .holo-stack {
  display: none;
}

.features-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
  min-height: 660px;
  padding: clamp(74px, 9vw, 138px) clamp(42px, 8vw, 126px);
  color: #fff;
  background: #090a0c;
}

.features-hero h1 {
  max-width: 860px;
  margin: 14px 0 28px;
  color: #fff;
  font-size: clamp(4rem, 7vw, 8.4rem);
  line-height: .82;
}

.features-hero > div:first-child > p:not(.app-kicker) {
  max-width: 720px;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.62;
}

.features-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.features-hero-actions > a,
.features-template-band a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--cyan);
  color: inherit;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.features-signal {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.features-signal span,
.features-signal strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.features-signal span::after {
  color: var(--cyan);
  content: "+";
  font-size: 1rem;
}

.features-signal strong {
  color: #fff;
  font-size: 1rem;
}

.features-capabilities {
  padding: clamp(72px, 9vw, 136px) clamp(34px, 8vw, 126px);
}

.features-capabilities > header {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 58px;
  border-bottom: 1px solid #bcc4c4;
  padding-bottom: 34px;
}

.features-capabilities h2,
.features-workflow h2,
.features-template-band h2,
.features-final-cta h2 {
  margin: 0;
  color: #0c0d0f;
  font-size: clamp(2.7rem, 5vw, 6rem);
  line-height: .9;
}

.features-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #c9cece;
  border-left: 1px solid #c9cece;
}

.features-capability-grid article {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  border-right: 1px solid #c9cece;
  border-bottom: 1px solid #c9cece;
  padding: 32px;
  background: rgba(255, 255, 255, .72);
}

.features-capability-grid article > span {
  color: #008eaa;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.features-capability-grid h3 {
  max-width: 290px;
  margin: 52px 0 18px;
  color: #111;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: .95;
}

.features-capability-grid p {
  max-width: 360px;
  margin: 0;
  color: #62696d;
  font-size: .88rem;
  line-height: 1.6;
}

.features-capability-grid strong {
  margin-top: auto;
  padding-top: 26px;
  color: #111;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.features-workflow {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(560px, 1.2fr);
  gap: clamp(50px, 8vw, 128px);
  padding: clamp(70px, 9vw, 130px) clamp(34px, 8vw, 126px);
  color: #fff;
  background: #111316;
}

.features-workflow h2 {
  margin: 14px 0 26px;
  color: #fff;
}

.features-workflow-intro > p:not(.app-kicker) {
  max-width: 520px;
  color: rgba(255, 255, 255, .66);
  line-height: 1.65;
}

.features-workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features-workflow li {
  display: grid;
  grid-template-columns: 54px minmax(120px, .45fr) 1fr;
  gap: 22px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding: 26px 0;
}

.features-workflow li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.features-workflow li span {
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 900;
}

.features-workflow li strong {
  font-size: 1.2rem;
}

.features-workflow li p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .82rem;
  line-height: 1.5;
}

.features-template-band {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
  gap: clamp(50px, 8vw, 126px);
  align-items: center;
  padding: clamp(72px, 9vw, 132px) clamp(34px, 8vw, 126px);
  background: #eef8f7;
}

.features-template-band h2 {
  margin: 14px 0 24px;
}

.features-template-band p:not(.app-kicker) {
  max-width: 580px;
  color: #62696d;
  line-height: 1.65;
}

.features-template-band a {
  margin-top: 24px;
  color: #111;
}

.template-name-stack {
  display: grid;
}

.template-name-stack span {
  display: block;
  border-top: 1px solid rgba(0, 0, 0, .22);
  padding: 15px 0 12px;
  color: #111;
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 900;
  line-height: .9;
}

.template-name-stack span:nth-child(2) {
  color: #008eaa;
}

.template-name-stack span:nth-child(4) {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.template-name-stack span:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, .22);
}

.features-final-cta {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 80px 30px;
  text-align: center;
  background: #fff;
}

.features-final-cta h2 {
  max-width: 900px;
  margin: 12px auto 34px;
}

@media screen and (max-width: 1100px) {
  .landing-hero,
  .portfolio-section {
    grid-template-columns: 1fr;
  }

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

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

  .floating-profile {
    right: 18px;
  }

  .features-hero,
  .features-workflow,
  .features-template-band {
    grid-template-columns: 1fr;
  }

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

@media screen and (max-width: 760px) {
  .marketing-home {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .marketing-nav,
  .landing-hero,
  .marketing-section,
  .marketing-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .floating-profile {
    display: none;
  }

  .marketing-nav {
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .marketing-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-home-link {
    flex: 0 0 auto;
  }

  .nav-links {
    display: flex;
    flex: 1 0 auto;
    gap: 16px;
    margin-left: 6px;
    white-space: nowrap;
  }

  .nav-links a,
  .nav-login {
    font-size: .62rem;
  }

  .nav-login {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid #111;
    padding: 7px 9px 6px;
    white-space: nowrap;
  }

  .marketing-home .marketing-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 14px;
    overflow: visible;
    padding: 14px 18px 16px;
  }

  .marketing-home .nav-home-link {
    align-self: center;
    min-width: 0;
  }

  .marketing-home .nav-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0;
    white-space: normal;
  }

  .marketing-home .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    text-align: center;
  }

  .marketing-home .nav-login {
    justify-self: end;
    min-height: 34px;
    border-radius: 999px;
    padding: 8px 12px 7px;
  }

  .step-grid,
  .feature-grid,
  .example-grid,
  .portfolio-cards,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    display: block;
    margin: 24px;
  }

  .final-cta .landing-cta {
    width: 100%;
    min-width: 0;
    margin-top: 20px;
  }

  .marketing-footer {
    display: grid;
    gap: 14px;
  }

  .features-hero {
    min-height: 0;
    gap: 54px;
    padding: 72px 24px 56px;
  }

  .features-hero h1 {
    font-size: clamp(3.1rem, 15vw, 5.2rem);
  }

  .features-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .features-hero-actions .landing-cta,
  .features-hero-actions > a {
    width: 100%;
    justify-content: center;
  }

  .features-capabilities,
  .features-workflow,
  .features-template-band {
    padding: 66px 24px;
  }

  .features-capabilities > header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .features-capability-grid article {
    min-height: 300px;
    padding: 28px;
  }

  .features-workflow {
    gap: 46px;
  }

  .features-workflow li {
    grid-template-columns: 42px 1fr;
  }

  .features-workflow li p {
    grid-column: 2;
  }

  .features-template-band {
    gap: 54px;
  }

  .features-final-cta {
    min-height: 440px;
    padding: 68px 24px;
  }
}

/* Final homepage overrides */
.marketing-nav {
  position: static !important;
  top: auto;
  z-index: 10;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  flex: 0 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, .88);
}

.nav-home-link {
  position: relative;
  color: #111;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-decoration: none;
}

.nav-home-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, #ff2faf, #ffe94f, #00abc8, #2548ff);
  transform: scaleX(.72);
  transform-origin: left center;
  transition: transform .18s ease;
}

.nav-home-link:hover::after {
  transform: scaleX(1);
}

.marketing-nav .nav-logo {
  display: none;
}

.marketing-nav .nav-links {
  margin-left: auto;
}

.step-grid article,
.feature-grid article {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.step-grid article::before,
.feature-grid article::before {
  display: none;
}

.step-grid article span,
.feature-grid article span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border: 4px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box !important;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 171, 200, .16);
}

.step-grid article span {
  font-size: .82rem;
  font-weight: 900;
}

.feature-grid article span {
  display: inline-grid;
  width: auto;
  min-width: 42px;
  height: 24px;
  margin-bottom: 14px;
  border-width: 2px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
}

.feature-grid article {
  min-height: 158px;
  padding-top: 18px;
  text-align: left;
}

.feature-grid article strong {
  max-width: 190px;
  font-size: .92rem;
  line-height: 1.12;
}

.feature-grid article p {
  max-width: 210px;
}

.fixed-refresh-badge {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 128px;
  height: 128px;
  border: 4px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .28), 0 0 38px rgba(0, 171, 200, .18);
  color: #fff;
  padding: 15px;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

.fixed-refresh-badge::before {
  content: "";
  width: 54px;
  height: 3px;
  margin-bottom: 3px;
  background: linear-gradient(90deg, #ff2faf, #ffe94f, #00abc8, #2548ff);
}

.fixed-refresh-badge span {
  display: block;
  max-width: 102px;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.fixed-refresh-badge strong {
  display: block;
  max-width: 96px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.fixed-refresh-badge em {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1;
}

.fixed-refresh-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 54px rgba(0, 0, 0, .28), 0 0 42px rgba(0, 171, 200, .22);
}

/* Setup form visual refresh */
.builder-app .ai-panel {
  max-width: min(1120px, calc(100% - 56px));
  margin: 34px auto;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 36px;
  overflow: hidden;
  border: 4px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .84)) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .16), 0 0 48px rgba(0, 171, 200, .1);
}

.builder-app .ai-panel::before {
  display: none;
}

.builder-app .ai-panel-form,
.builder-app .quick-compile,
.builder-app .route-card {
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 171, 200, .08), transparent 28%),
    linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 38px rgba(0, 0, 0, .07);
}

.builder-app .ai-panel-copy {
  min-width: 0;
  overflow: hidden;
}

.builder-app .ai-panel-copy h2 {
  max-width: 320px;
  font-size: clamp(2.5rem, 3.15vw, 3.35rem);
  line-height: .86;
  letter-spacing: -.075em;
}

.builder-app .ai-panel-copy p:not(.app-kicker) {
  max-width: 300px;
}

.builder-app .ai-panel-form {
  gap: 18px;
  padding: 28px;
}

.builder-app .ai-panel-form label {
  display: grid;
  gap: 9px;
  color: #111;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.builder-app .wizard-step input,
.builder-app .wizard-step textarea,
.builder-app .ai-panel-form textarea,
.builder-app .ai-panel-form input[type="file"] {
  border: 1px solid rgba(0, 0, 0, .11);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
  padding: 14px 15px;
}

.builder-app .ai-panel-form input[type="file"] {
  border: 2px dashed rgba(0, 171, 200, .32);
  background:
    linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .86)) padding-box,
    linear-gradient(135deg, rgba(255, 47, 175, .18), rgba(255, 233, 79, .15), rgba(0, 171, 200, .2), rgba(37, 72, 255, .14)) border-box;
  padding: 18px;
}

.builder-app .wizard-step input:focus-visible,
.builder-app .wizard-step textarea:focus-visible,
.builder-app .ai-panel-form textarea:focus-visible,
.builder-app .ai-panel-form input[type="file"]:focus-visible {
  border-color: transparent;
  outline: 3px solid rgba(0, 171, 200, .24);
  outline-offset: 3px;
}

.builder-app .ai-panel-actions {
  gap: 14px;
  padding-top: 4px;
}

.builder-app .ai-panel-actions .pdf-button,
.builder-app .quick-compile .pdf-button {
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.builder-app .photo-preview {
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .12);
}

.builder-app .upload-hint {
  margin-top: -8px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.project-tile-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.project-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(38px, auto);
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ff2faf, #ffe94f, #00abc8, #2548ff) border-box;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
}

.project-tile:nth-child(5n + 1) {
  grid-row: span 2;
}

.project-tile:nth-child(7n + 3) {
  grid-column: span 2;
}

.project-tile img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
}

.project-tile figcaption {
  border-top: 1px solid rgba(0, 171, 200, .55);
  background: rgba(255, 255, 255, .9);
  padding: 8px;
}

.project-tile input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  outline: 0;
  text-transform: uppercase;
}

.builder-app .style-toolbar {
  display: grid;
  grid-template-columns: repeat(2, max-content) max-content;
  align-items: end;
  justify-content: end;
  gap: 14px;
  max-width: 1120px;
  min-height: 58px;
  margin: -8px auto 18px;
  border: 1px solid rgba(0, 0, 0, .1);
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}

.builder-app .style-toolbar .template-picker,
.builder-app .style-toolbar .theme-picker {
  display: inline-grid;
  grid-template-columns: auto minmax(150px, max-content);
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
}

.template-plan-note {
  grid-column: 2;
  align-self: center;
  width: max-content;
  max-width: 190px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  padding: 4px 8px 3px;
  color: #111;
  background: linear-gradient(90deg, rgba(255, 47, 166, .12), rgba(0, 171, 200, .12), rgba(39, 96, 255, .12));
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
}

.builder-app .style-toolbar .template-picker select,
.builder-app .style-toolbar .theme-picker select {
  width: auto;
  min-width: 150px;
}

.builder-app .style-toolbar .pdf-button {
  width: auto;
  white-space: nowrap;
}

.builder-app .result-header {
  margin-bottom: 18px;
}

@media screen and (max-width: 760px) {
  .new-cv-panel {
    grid-template-columns: 1fr;
  }

  .settings-tabs {
    grid-template-columns: 1fr;
  }

  .builder-app .style-toolbar {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .builder-app .style-toolbar .template-picker,
  .builder-app .style-toolbar .theme-picker {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .template-plan-note {
    grid-column: 1;
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .builder-app .style-toolbar .template-picker select,
  .builder-app .style-toolbar .theme-picker select,
  .builder-app .style-toolbar .pdf-button {
    width: 100%;
  }
}

@media screen and (min-width: 900px) {
  .landing-hero {
    grid-template-columns: minmax(360px, .74fr) minmax(560px, 1.26fr);
    align-items: start;
    padding-top: 72px;
    padding-bottom: 34px;
    min-height: 0;
  }

  .marketing-home .brand-logo {
    display: none;
  }

  .marketing-home .landing-copy {
    align-self: start;
  }

  .marketing-home .landing-showcase {
    align-self: start;
    margin-top: 0;
  }

  .marketing-home .landing-copy h1 {
    font-size: clamp(3.4rem, 5.4vw, 6.45rem);
    line-height: .82;
  }

  .marketing-home .landing-screen {
    width: min(100%, 820px);
    max-height: 620px;
    aspect-ratio: 1.08 / 1;
  }
}

@media screen and (max-width: 899px) {
  .publish-panel {
    grid-template-columns: 1fr;
    margin-inline: 14px;
    padding: 18px;
  }

  .publish-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .publish-row-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .publish-reset {
    justify-self: start;
  }

  .builder-app .ai-panel {
    grid-template-columns: 1fr;
    max-width: calc(100% - 28px);
    gap: 22px;
    padding: 24px;
  }

  .builder-app .ai-panel-copy h2,
  .builder-app .ai-panel-copy p:not(.app-kicker) {
    max-width: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .responsive-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 30px;
    padding: 54px 24px 34px;
  }

  .responsive-showcase-copy {
    max-width: 620px;
  }

  .responsive-showcase-copy h2 {
    max-width: 560px;
  }

  .responsive-showcase-media {
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .marketing-home .landing-screen {
    width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .marketing-home .landing-showcase-link .landing-screen {
    aspect-ratio: 891 / 880;
  }

  .landing-template-tag {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    font-size: .56rem;
    white-space: normal;
  }

  .fixed-refresh-badge {
    right: 14px;
    bottom: 14px;
    width: 102px;
    height: 102px;
    border-width: 3px;
    padding: 13px;
  }

  .fixed-refresh-badge span {
    font-size: .48rem;
  }

  .fixed-refresh-badge strong {
    font-size: .86rem;
  }

  .fixed-refresh-badge em {
    font-size: 1rem;
  }

  .project-tile-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-tile:nth-child(7n + 3) {
    grid-column: span 1;
  }
}

/* Emergency stable home patch: keep the original base.css home layout,
   only adapt the fixed badge to the current HTML structure. */
.fixed-refresh-badge .badge-copy,
.fixed-refresh-badge .badge-copy span,
.fixed-refresh-badge .badge-copy strong,
.fixed-refresh-badge .badge-arrow {
  display: block;
  color: #fff;
  visibility: visible;
  opacity: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.fixed-refresh-badge .badge-copy {
  max-width: 86px;
}

.fixed-refresh-badge .badge-copy span {
  margin-bottom: 3px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
}

.fixed-refresh-badge .badge-copy strong {
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
}

.fixed-refresh-badge .badge-arrow {
  margin-top: 8px;
  font-size: 1.12rem;
  line-height: 1;
}

@media screen and (max-width: 760px) {
  .marketing-home .marketing-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 10px;
    min-height: 0;
    overflow: visible;
    padding: 14px 18px 16px;
  }

  .marketing-home .nav-home-link {
    min-width: 0;
    font-size: .68rem;
  }

  .marketing-home .nav-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0;
    white-space: normal;
  }

  .marketing-home .nav-links a,
  .marketing-home .nav-login {
    min-height: 34px;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    font-size: .56rem;
    line-height: 1;
    text-align: center;
  }

  .marketing-home .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px 7px;
  }

  .marketing-home .nav-login {
    justify-self: end;
    padding: 8px 12px 7px;
  }
}

@media screen and (max-width: 760px) {
  .builder-app .app-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .builder-app .toolbar-actions,
  .builder-app .toolbar-nav {
    width: 100%;
  }

  .builder-app .toolbar-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .builder-app .toolbar-nav .pdf-button {
    width: auto;
    min-width: 0;
    min-height: 32px;
    padding: 7px 4px 6px;
    font-size: .54rem;
    line-height: 1;
    white-space: nowrap;
  }

  .builder-app .result-header {
    padding: 18px 16px;
  }

  .builder-app .result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .builder-app .result-actions .publish-url-field,
  .builder-app .result-actions .publish-status {
    grid-column: 1 / -1;
  }

  .builder-app .result-actions .pdf-button {
    width: auto;
    min-width: 0;
    min-height: 34px;
    margin-top: 0;
    padding: 8px 6px 7px;
    font-size: .56rem;
    line-height: 1;
    white-space: nowrap;
  }

  .builder-app .style-toolbar {
    padding: 14px 16px;
  }

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

  .plans-screen {
    margin: 18px 12px 42px;
    padding: 24px 16px;
  }

  .plan-showcase-grid,
  .plan-virtues {
    grid-template-columns: 1fr;
  }

  .plan-showcase-card.is-featured {
    transform: none;
  }
}
