:root {
  --cream: #fff5df;
  --ink: #251711;
  --muted: #735f51;
  --red: #e84f3d;
  --orange: #ff8f3d;
  --yellow: #ffd64d;
  --turquoise: #0fa3a8;
  --pink: #ef5da8;
  --green: #35a960;
  --purple: #7c4dff;
  --white: #fffaf2;
  --shadow: 0 22px 70px rgba(93, 48, 28, 0.18);
  --small-shadow: 0 12px 30px rgba(93, 48, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 207, 63, 0.24), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgba(15, 163, 168, 0.2), transparent 25rem),
    linear-gradient(135deg, #fff7e6 0%, #fff1db 52%, #ffe8e9 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing,
.builder-page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.landing::before,
.builder-page::before {
  background-image:
    linear-gradient(45deg, rgba(232, 79, 61, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 163, 168, 0.08) 25%, transparent 25%);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
  opacity: 0.55;
  pointer-events: none;
  position: fixed;
}

.top-nav,
.builder-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 24px;
  position: relative;
  z-index: 3;
}

.brand-mark {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 12px;
  letter-spacing: 0;
  padding: 0;
}

.brand-mark span {
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--pink));
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: var(--small-shadow);
  color: #fff;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 24px;
  font-weight: 800;
}

.account-controls,
.builder-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav-links a {
  color: #5e4638;
}

.nav-cta,
.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 14px 32px rgba(232, 79, 61, 0.28);
  color: #fff;
}

.secondary-button,
.nav-cta {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(37, 23, 17, 0.1);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.nav-cta:hover {
  box-shadow: 0 16px 38px rgba(93, 48, 28, 0.18);
  transform: translateY(-2px);
}

.large {
  min-height: 58px;
  padding: 0 30px;
}

.small-button {
  min-height: 42px;
  padding: 0 16px;
}

.full {
  width: 100%;
}

.section-band,
.feature-section,
.how-section,
.use-case-section,
.final-cta,
.builder-shell {
  margin: 0 auto;
  max-width: 1220px;
  padding: 70px 24px;
  position: relative;
  z-index: 2;
}

.feature-section {
  padding-top: 38px;
}

.hero {
  min-height: clamp(520px, calc(100vh - 190px), 660px);
  padding-bottom: 18px;
  padding-top: 28px;
  position: relative;
}

.hero-copy {
  max-width: 570px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.builder-intro h1 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(3.3rem, 7vw, 7.5rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-sub {
  color: #60483a;
  font-size: 1.28rem;
  line-height: 1.55;
  max-width: 560px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-strip span {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.09);
  border-radius: 999px;
  color: #6b5345;
  font-weight: 800;
  padding: 10px 14px;
}

.mockup-stage {
  aspect-ratio: 1 / 0.92;
  bottom: 18px;
  height: min(610px, 92%);
  max-width: 100%;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 18px;
  width: min(670px, 58vw);
  z-index: 1;
}

.floating-sun {
  background: repeating-conic-gradient(from 0deg, var(--yellow) 0 12deg, var(--orange) 12deg 24deg);
  border: 10px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  filter: drop-shadow(0 16px 25px rgba(255, 143, 61, 0.22));
  height: 150px;
  position: absolute;
  right: 5%;
  top: 2%;
  width: 150px;
}

.mock-board {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.2)),
    #fff4dc;
  border: 8px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
  height: 78%;
  padding: 28px;
  position: absolute;
  right: 0;
  top: 12%;
  transform: rotate(2deg);
  width: 68%;
}

.mock-board::before {
  background: linear-gradient(90deg, var(--turquoise), var(--yellow), var(--pink), var(--green));
  border-radius: 999px;
  content: "";
  height: 12px;
  left: 34px;
  position: absolute;
  right: 34px;
  top: 18px;
}

.mock-board-title {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  font-weight: 950;
  margin: 24px 0 18px;
  text-align: center;
}

.mock-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.mock-cell {
  align-items: end;
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(135deg, rgba(239, 93, 168, 0.9), rgba(15, 163, 168, 0.88));
  border: 4px solid #fff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
}

.mock-cell span {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-size: 0.55rem;
  font-weight: 950;
  max-width: 100%;
  overflow: hidden;
  padding: 4px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-card-stack {
  height: 300px;
  left: 0;
  position: absolute;
  top: 19%;
  width: 230px;
  z-index: 2;
}

.mock-card {
  background: #fff;
  border: 6px solid #fff;
  border-radius: 22px;
  box-shadow: var(--small-shadow);
  height: 245px;
  padding: 10px;
  position: absolute;
  transform-origin: bottom center;
  width: 175px;
}

.mock-card-1 {
  left: 16px;
  top: 28px;
  transform: rotate(-10deg);
}

.mock-card-2 {
  left: 62px;
  top: 0;
  transform: rotate(8deg);
}

.mock-card-3 {
  left: 112px;
  top: 54px;
  transform: rotate(18deg);
}

.mock-photo {
  align-items: flex-start;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--turquoise));
  border-radius: 16px;
  display: flex;
  height: 172px;
  padding: 10px;
}

.mock-photo span {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 950;
  padding: 6px 8px;
}

.mock-card strong {
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1rem;
  margin-top: 10px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  margin: 0 auto 32px;
  max-width: 760px;
  text-align: center;
}

.section-heading h2,
.final-cta h2,
.builder-panel h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 14px;
}

.section-heading p {
  color: #6b5345;
  font-size: 1.08rem;
  line-height: 1.6;
}

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

.feature-card,
.flow-step,
.download-card,
.generator-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
  padding: 26px;
}

.feature-card {
  min-height: 230px;
}

.feature-card h3,
.flow-step h3,
.download-card h3,
.generator-card h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1.05;
  margin-bottom: 12px;
}

.feature-card p,
.flow-step p,
.download-card p,
.soft-copy {
  color: #6a5345;
  line-height: 1.55;
}

.feature-icon {
  border: 5px solid #fff;
  border-radius: 20px;
  height: 66px;
  margin-bottom: 20px;
  width: 66px;
}

.icon-1 {
  background: linear-gradient(135deg, var(--red), var(--orange));
}
.icon-2 {
  background: linear-gradient(135deg, var(--turquoise), var(--green));
}
.icon-3 {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}
.icon-4 {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}
.icon-5 {
  background: linear-gradient(135deg, var(--green), var(--yellow));
}
.icon-6 {
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
}

.flow-step {
  position: relative;
}

.flow-step span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  margin-bottom: 22px;
  width: 42px;
}

.use-case-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.use-case-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 24px;
  box-shadow: var(--small-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 150px;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.use-case-card span {
  border-radius: 16px;
  height: 52px;
  width: 52px;
}

.use-1 span {
  background: linear-gradient(135deg, #f7a9a8, #70d6ff);
}
.use-2 span {
  background: linear-gradient(135deg, #ffe8d6, #c7895a);
}
.use-3 span {
  background: linear-gradient(135deg, #ffcf3f, #ef476f);
}
.use-4 span {
  background: linear-gradient(135deg, #ff8f3d, #7c4dff);
}
.use-5 span {
  background: linear-gradient(135deg, #0fa3a8, #35a960);
}

.final-cta {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(239, 93, 168, 0.16), rgba(15, 163, 168, 0.14)),
    rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 38px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  margin-bottom: 70px;
}

.final-cta h2 {
  margin: 0;
}

.builder-header {
  padding-bottom: 8px;
}

.save-status,
.success-badge,
.warning-badge,
.upload-count,
.busy-banner {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  color: #594337;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 10px 14px;
}

.builder-shell {
  padding-top: 24px;
}

.builder-intro {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  margin-bottom: 24px;
}

.builder-intro h1 {
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  margin-bottom: 0;
}

.builder-intro p:last-child {
  color: #654d3f;
  font-size: 1.06rem;
  line-height: 1.6;
}

.stepper {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 10px;
}

.step-pill {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 20px;
  color: #665045;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 58px;
  padding: 8px;
}

.step-pill span {
  align-items: center;
  background: rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.step-pill small {
  font-weight: 900;
}

.step-pill.active {
  background: #fff;
  box-shadow: 0 10px 24px rgba(93, 48, 28, 0.1);
  color: var(--ink);
}

.step-pill.active span,
.step-pill.complete span {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
}

.builder-panel {
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.two-column {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
}

.form-grid,
.advanced-grid,
.control-pair,
.download-settings {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-title-grid {
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #594337;
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select {
  background: #fff;
  border: 2px solid rgba(37, 23, 17, 0.1);
  border-radius: 18px;
  color: var(--ink);
  min-height: 52px;
  outline: none;
  padding: 0 15px;
  transition: border 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

input[type="color"] {
  min-height: 58px;
  padding: 8px;
}

input[type="range"] {
  accent-color: var(--pink);
  padding: 0;
}

input:focus,
select:focus {
  border-color: rgba(239, 93, 168, 0.75);
  box-shadow: 0 0 0 4px rgba(239, 93, 168, 0.12);
}

.preset-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0;
}

.preset-grid button {
  align-items: center;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 18px;
  display: flex;
  font-weight: 900;
  gap: 10px;
  min-height: 56px;
  padding: 10px;
}

.preset-grid span {
  border-radius: 12px;
  display: inline-block;
  height: 30px;
  overflow: hidden;
  position: relative;
  width: 30px;
}

.preset-grid b {
  font-size: 0.9rem;
  line-height: 1.05;
  text-align: left;
}

.preset-swatch::before {
  background:
    linear-gradient(90deg, var(--board-ribbon), var(--yellow), var(--board-accent)),
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.8), transparent 18px);
  content: "";
  inset: 4px;
  position: absolute;
}

.preset-swatch.theme-wedding::before {
  background:
    radial-gradient(circle at 24% 28%, rgba(255,255,255,0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 58% 58%, var(--board-accent) 0 5px, transparent 6px),
    linear-gradient(135deg, rgba(255,255,255,0.55), var(--board-ribbon));
}

.preset-swatch.theme-bold::before {
  background:
    repeating-linear-gradient(-35deg, var(--board-accent) 0 7px, transparent 7px 13px),
    var(--board-ribbon);
}

.preset-swatch.theme-baby::before,
.preset-swatch.theme-pastel::before {
  background:
    radial-gradient(circle at 30% 30%, var(--board-accent) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 64%, var(--board-ribbon) 0 6px, transparent 7px),
    rgba(255,255,255,0.45);
}

.preset-grid button.selected {
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(239, 93, 168, 0.16);
}

.project-preview-card {
  aspect-ratio: 5 / 7;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.32)),
    #ffedc2;
  border: 9px solid #fff;
  border-radius: 34px;
  box-shadow: var(--small-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.preview-title {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
}

.preview-subtitle {
  color: #6a5345;
  font-weight: 800;
  margin: 10px auto 24px;
  text-align: center;
}

.preview-mini-grid,
.empty-board-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, 1fr);
}

.preview-mini-grid div,
.empty-board-grid span {
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(135deg, var(--pink), var(--turquoise));
  border: 3px solid #fff;
  border-radius: 10px;
}

.panel-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.drop-zone {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    repeating-linear-gradient(45deg, rgba(15, 163, 168, 0.08) 0 8px, transparent 8px 18px);
  border: 3px dashed rgba(239, 93, 168, 0.45);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  min-height: 280px;
  padding: 30px;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease;
}

.drop-zone.dragging {
  border-color: var(--turquoise);
  transform: scale(1.01);
}

.drop-zone input,
.hidden-input {
  display: none;
}

.drop-art {
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--pink));
  border: 7px solid #fff;
  border-radius: 30px;
  box-shadow: var(--small-shadow);
  height: 92px;
  margin-bottom: 20px;
  position: relative;
  width: 120px;
}

.drop-art::before,
.drop-art::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 20px;
  position: absolute;
  width: 20px;
}

.drop-art::before {
  left: 22px;
  top: 22px;
}

.drop-art::after {
  bottom: 24px;
  right: 24px;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.card-editor {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 26px;
  box-shadow: var(--small-shadow);
  padding: 14px;
}

.card-preview,
.card-preview-canvas {
  aspect-ratio: 2.5 / 3.5;
  background: #fff;
  border: 12px solid #fff;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(42, 23, 16, 0.14);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.card-preview-canvas canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.card-preview.compact,
.card-preview-canvas.compact {
  border-radius: 16px;
  border-width: 7px;
  min-width: 94px;
  width: 94px;
}

.card-preview.board-card,
.card-preview-canvas.board-card {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.72);
  box-shadow: none;
}

.card-preview.caption-band-card {
  background: #fff;
}

.card-image {
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--turquoise));
  height: 100%;
  width: 100%;
}

.caption-band-card .card-image {
  height: 82%;
}

.caption-band-card .card-image,
.caption-band-card .card-image img {
  border-radius: 0;
}

.card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, object-position 180ms ease;
  width: 100%;
}

.mode-contain img {
  background: #fff8ec;
  object-fit: contain;
}

.card-number {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(37, 23, 17, 0.1);
  display: flex;
  font-size: 0.85rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  left: 10px;
  min-width: 34px;
  padding: 0 10px;
  position: absolute;
  top: 10px;
  width: max-content;
  z-index: 2;
}

.caption-band-card .card-number {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  color: #111 !important;
  display: block;
  font-family: Arial, sans-serif !important;
  font-size: 0.82rem;
  font-weight: 950;
  height: auto;
  left: 10px;
  min-width: 0;
  padding: 0;
  top: 9px;
}

.card-label {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(37, 23, 17, 0.12);
  bottom: 18px;
  color: #16100d;
  display: -webkit-box;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-weight: 1000;
  left: 50%;
  line-height: 1;
  max-height: 54px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 9px 10px;
  position: absolute;
  text-align: center;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  width: fit-content;
  word-break: break-word;
  z-index: 2;
}

.caption-band-card .card-label {
  border-radius: 0;
  bottom: 0;
  box-shadow: none;
  display: flex;
  height: 18%;
  justify-content: center;
  left: 0;
  line-height: 0.95;
  max-height: none;
  max-width: none;
  padding: 5px 7px;
  transform: none;
  width: 100%;
}

.card-tools,
.crop-toggle,
.card-name-field,
.secondary-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-name-field {
  display: grid;
}

.card-tools button,
.crop-toggle button,
.secondary-downloads button {
  background: #fff;
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 999px;
  color: #594337;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 10px;
}

.crop-toggle {
  background: rgba(37, 23, 17, 0.06);
  border-radius: 999px;
  padding: 4px;
}

.crop-toggle button {
  border: 0;
  flex: 1;
}

.crop-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.photo-edit {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  margin-top: 12px;
  padding: 12px;
}

.photo-edit summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 950;
}

.photo-edit label {
  margin-top: 10px;
}

.danger-link {
  color: #bd2e22 !important;
}

.step-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 24px;
}

.success-text {
  color: #217244;
  font-weight: 900;
}

.warning-text {
  color: #ad4c20;
  font-weight: 900;
}

.success-badge {
  color: #217244;
}

.warning-badge {
  color: #ad4c20;
}

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

.label-style-panel {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 26px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 18px;
}

.label-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 24px;
  display: flex;
  gap: 16px;
  padding: 14px;
}

.label-fields {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.generator-layout,
.designer-layout,
.download-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(290px, 0.42fr) minmax(0, 0.8fr);
}

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

.generator-card {
  height: max-content;
}

.generator-sidebar,
.board-style-controls {
  display: grid;
  gap: 16px;
}

.board-style-controls {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
  padding: 22px;
}

.board-style-controls h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.45rem;
  margin: 0;
}

.background-actions {
  display: grid;
  gap: 10px;
}

.tiny-copy {
  font-size: 0.86rem;
  margin: -4px 0 0;
}

.watermark-note {
  align-items: center;
  background: rgba(37, 23, 17, 0.06);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.watermark-note span {
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--turquoise));
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 0.74rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
}

.watermark-note strong {
  color: #594337;
  font-size: 0.86rem;
}

.mixing-bar {
  background: rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
}

.mixing-bar span {
  animation: slide 1.1s infinite ease-in-out;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--turquoise));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 38%;
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(270%);
  }
}

.advanced-box {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  margin-top: 18px;
  padding: 16px;
}

.advanced-box summary {
  cursor: pointer;
  font-weight: 950;
}

.advanced-grid {
  margin-top: 16px;
}

.stats-panel {
  background: #fff;
  border-radius: 18px;
  color: #5e4638;
  margin-top: 16px;
  padding: 14px;
}

.stats-panel p {
  margin: 8px 0 0;
}

.frequency-mini-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  margin-top: 14px;
}

.frequency-mini {
  background: rgba(37, 23, 17, 0.05);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  padding: 8px;
}

.frequency-mini span,
.frequency-mini b {
  font-size: 0.72rem;
  font-weight: 950;
}

.frequency-mini div {
  background: rgba(37, 23, 17, 0.12);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.frequency-mini i {
  background: linear-gradient(90deg, var(--turquoise), var(--pink));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.board-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.board-thumb {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}

.board-thumb.selected .board-preview {
  outline: 4px solid var(--pink);
}

.board-thumb span {
  display: block;
  font-size: 0.85rem;
  font-weight: 950;
  margin-top: 8px;
  text-align: center;
}

.board-preview {
  aspect-ratio: 5 / 7;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px 12px 42px;
  position: relative;
}

.board-preview > * {
  position: relative;
  z-index: 1;
}

.board-preview::before,
.board-preview::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.board-preview::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.48), transparent 22%),
    radial-gradient(circle at 80% 86%, color-mix(in srgb, var(--board-accent) 28%, transparent), transparent 22%);
  inset: 0;
}

.board-preview.theme-fiesta::after,
.board-preview.theme-holiday::after {
  background: repeating-linear-gradient(
    90deg,
    var(--board-ribbon) 0 16px,
    var(--yellow) 16px 32px,
    var(--board-accent) 32px 48px,
    var(--green) 48px 64px
  );
  clip-path: polygon(0 0, 100% 0, 100% 8%, 92% 15%, 84% 8%, 76% 15%, 68% 8%, 60% 15%, 52% 8%, 44% 15%, 36% 8%, 28% 15%, 20% 8%, 12% 15%, 4% 8%, 0 15%);
  height: 54px;
  left: 0;
  opacity: 0.45;
  right: 0;
  top: 0;
}

.board-preview.theme-wedding::after {
  border: 2px solid color-mix(in srgb, var(--board-accent) 48%, transparent);
  border-radius: 999px;
  height: 70px;
  opacity: 0.34;
  right: -24px;
  top: 82px;
  width: 120px;
}

.board-preview.theme-bold::after {
  background: repeating-linear-gradient(-35deg, var(--board-accent) 0 10px, transparent 10px 23px);
  inset: 0;
  opacity: 0.15;
}

.board-preview.theme-baby::after,
.board-preview.theme-pastel::after {
  background:
    radial-gradient(circle at 16% 30%, var(--board-accent) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 42%, var(--board-ribbon) 0 5px, transparent 6px),
    radial-gradient(circle at 55% 86%, var(--yellow) 0 4px, transparent 5px);
  inset: 0;
  opacity: 0.45;
}

.board-ribbon {
  background: linear-gradient(90deg, var(--board-ribbon, var(--turquoise)), var(--yellow), var(--pink), var(--board-accent, var(--green)));
  border-radius: 999px;
  flex: 0 0 7px;
  margin-bottom: 7px;
}

.board-preview h3 {
  font-family: var(--board-title-font), "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(0.88rem, 7.2cqw, 1.9rem);
  line-height: 1;
  margin: 0 0 4px;
  min-height: 1.05em;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-preview p {
  font-size: clamp(0.52rem, 3.25cqw, 0.82rem);
  font-weight: 800;
  margin: 0 0 6px;
  min-height: 1rem;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-preview-grid {
  display: grid;
  flex: 1;
  gap: clamp(3px, 1.7cqw, 10px);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  min-height: 0;
}

.board-preview-card {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.board-preview-card .card-preview,
.board-preview-card .card-preview-canvas {
  aspect-ratio: 2.5 / 3.5;
  border: 1px solid rgba(0, 0, 0, 0.78);
  border-radius: inherit;
  box-shadow: none;
  height: 100%;
  min-width: 0;
  width: auto;
}

.board-preview-card .card-number {
  border-width: 0;
  box-shadow: 0 2px 5px rgba(37, 23, 17, 0.08);
  font-size: 0.5rem;
  height: 17px;
  left: 4px;
  min-width: 17px;
  padding: 0 5px;
  top: 4px;
}

.board-preview-card .caption-band-card .card-number {
  font-size: 0.46rem;
  left: 4px;
  top: 4px;
}

.board-preview-card .card-label {
  border-radius: 6px;
  bottom: 6px;
  font-size: 0.54rem !important;
  font-weight: 1000;
  line-height: 0.95;
  max-height: 27px;
  max-width: calc(100% - 8px);
  padding: 4px;
}

.board-preview-card .caption-band-card .card-label {
  bottom: 0;
  border-radius: 0;
  font-size: 0.48rem !important;
  height: 19%;
  line-height: 0.9;
  max-height: none;
  max-width: none;
  padding: 2px;
  width: 100%;
}

.board-preview strong {
  bottom: 16px;
  display: block;
  font-size: 0.8rem;
  font-weight: 1000;
  left: 50%;
  margin-top: 0;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 2;
}

.board-watermark {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  bottom: 10px;
  left: 12px;
  max-width: 42%;
  padding: 4px 9px 4px 5px;
  position: absolute;
  z-index: 2;
}

.board-watermark span {
  align-items: center;
  background: linear-gradient(135deg, var(--board-accent, var(--red)), var(--board-ribbon, var(--turquoise)));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.48rem;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  width: 28px;
}

.board-watermark b {
  color: currentColor;
  font-size: 0.54rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-gallery {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: 30px;
  text-align: center;
}

.empty-board-grid {
  max-width: 230px;
  width: 70%;
}

.designer-layout {
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.8fr);
}

.design-controls,
.designer-preview {
  display: grid;
  gap: 16px;
}

.designer-preview > .board-preview {
  justify-self: center;
  max-height: 760px;
  max-width: 540px;
  width: min(100%, 540px);
}

.switch-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
}

.switch-row input {
  accent-color: var(--pink);
  min-height: auto;
  width: auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.primary-download {
  background:
    linear-gradient(135deg, rgba(255, 214, 77, 0.24), rgba(239, 93, 168, 0.16)),
    rgba(255, 255, 255, 0.8);
}

.secondary-downloads button {
  flex: 1 1 170px;
}

.busy-banner {
  border-radius: 22px;
  margin-top: 18px;
  text-align: center;
}

.toast {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 900;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 14px 20px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
}

.modal-backdrop {
  align-items: center;
  background: rgba(37, 23, 17, 0.32);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.auth-card {
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 480px;
  padding: 28px;
  position: relative;
  width: min(100%, 480px);
}

.auth-card h2,
.dashboard-panel h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0;
}

.modal-close {
  background: rgba(37, 23, 17, 0.08);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.auth-message {
  background: rgba(255, 214, 77, 0.24);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  color: #60483a;
  font-weight: 850;
  padding: 12px 14px;
}

.dashboard-panel {
  display: grid;
  gap: 18px;
}

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

.account-summary-grid article,
.billing-options article,
.admin-row {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  padding: 14px;
}

.account-summary-grid span,
.billing-options span,
.admin-row span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 850;
}

.account-summary-grid strong,
.billing-options strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 4px;
}

.billing-options,
.access-code-panel,
.profile-form,
.project-list {
  display: grid;
  gap: 12px;
}

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

.billing-options article {
  display: grid;
  gap: 12px;
}

.access-code-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 163, 168, 0.16), rgba(239, 93, 168, 0.12)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) auto;
  padding: 14px;
}

.access-code-panel div {
  display: grid;
  gap: 4px;
}

.access-code-panel span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 850;
}

.access-code-panel strong {
  font-size: 1.2rem;
}

.access-code-panel input {
  text-transform: uppercase;
}

.profile-form {
  align-items: end;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  padding: 14px;
}

.profile-form div {
  display: grid;
  gap: 4px;
}

.profile-form div span,
.profile-form label span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 850;
}

.profile-form strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.billing-note {
  background: rgba(255, 214, 77, 0.22);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  color: #60483a;
  font-weight: 850;
  padding: 14px;
}

.section-minihead {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.section-minihead > span {
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(86px, 0.4fr));
  padding: 14px;
}

.project-row div {
  display: grid;
  gap: 3px;
}

.project-row strong {
  font-size: 1rem;
}

.project-row span {
  color: #60483a;
  font-size: 0.88rem;
  font-weight: 850;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(90px, 0.8fr));
}

.admin-head {
  background: rgba(37, 23, 17, 0.08);
  font-weight: 950;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .builder-intro,
  .generator-layout,
  .designer-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .mockup-stage {
    height: auto;
    min-height: 460px;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

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

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

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

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

@media (max-width: 700px) {
  .top-nav,
  .builder-header {
    align-items: flex-start;
    gap: 16px;
  }

  .builder-header-actions,
  .account-controls {
    justify-content: flex-start;
  }

  .nav-links {
    display: none;
  }

  .section-band,
  .feature-section,
  .how-section,
  .use-case-section,
  .final-cta,
  .builder-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .builder-intro h1 {
    font-size: 2.95rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .mockup-stage {
    aspect-ratio: auto;
    height: 160px;
    margin-left: -16px;
    margin-right: -16px;
    min-height: 160px;
    width: calc(100% + 32px);
  }

  .mock-board {
    border-radius: 24px;
    right: 8px;
    padding: 20px;
    width: 78%;
  }

  .mock-card-stack {
    transform: scale(0.58);
    transform-origin: left top;
  }

  .feature-grid,
  .flow-grid,
  .label-grid,
  .label-style-panel,
  .account-summary-grid,
  .billing-options,
  .access-code-panel,
  .profile-form,
  .project-row,
  .admin-row,
  .form-grid,
  .advanced-grid,
  .control-pair,
  .download-settings,
  .preset-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .final-cta,
  .panel-header,
  .step-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-panel {
    border-radius: 28px;
    padding: 20px;
  }

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

  .step-pill {
    justify-content: flex-start;
  }

  .label-row {
    align-items: stretch;
    flex-direction: column;
  }

  .card-preview.compact {
    width: 150px;
  }

  .hero-actions .large {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .trust-strip {
    margin-top: 22px;
  }

  .trust-strip span {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }
}

@media (max-width: 430px) {
  .hero h1,
  .builder-intro h1 {
    font-size: 2.55rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .brand-mark {
    font-size: 0.92rem;
  }

  .brand-mark span {
    border-radius: 14px;
    height: 42px;
    width: 42px;
  }
}
