@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&family=Noto+Serif:ital,wght@0,400;0,500;0,600;0,700;1,400&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Pinyon+Script&family=Ponomar&display=swap");

:root {
    --app-ink: #20312d;
    --app-muted: #5f6c67;
    --app-paper: #f7f5ef;
    --app-panel: #fffdf8;
    --app-line: #d7ded8;
    --app-accent: #9f503d;
    --app-teal: #4f7469;
    --app-gold: #c5a66d;
    --app-plum: #38574f;
    --app-mint: #e3ece5;
    --app-sun: #f2d7a5;
    --app-deep: #173d34;
    --app-sage: #bfd1c4;
    --app-shadow: 0 22px 60px rgba(37, 61, 54, 0.09);
    /* The paper plate under the logo. The controls that sit straight on a page
       tinted by the invitation (the Izmena/Pregled toggle and the phone
       builder's back arrow) stand on it too, so a dark design cannot swallow them. */
    --app-plate: rgba(255, 254, 250, 0.78);
    --app-plate-line: rgba(56, 87, 79, 0.1);
    --app-plate-shadow: 0 10px 28px rgba(24, 60, 52, 0.08);
}

body {
    min-height: 100vh;
    background: var(--app-paper);
    color: var(--app-ink);
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

.app-navbar {
    background: rgba(255, 250, 246, 0.94);
    border-bottom: 1px solid var(--app-line);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--app-plum);
}

.hero-band {
    min-height: 500px;
    background-image: linear-gradient(90deg, rgba(38, 35, 54, 0.8), rgba(111, 65, 101, 0.5), rgba(12, 143, 143, 0.2)), url("backgrounds/wildflower-meadow.webp");
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid rgba(111, 65, 101, 0.16);
}

.hero-kicker,
.section-kicker {
    color: var(--app-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-band .hero-kicker {
    color: var(--app-sun);
}

.hero-title {
    max-width: 880px;
    font-size: clamp(3.4rem, 8vw, 7.2rem);
    line-height: 0.9;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.22rem, 2.3vw, 2rem);
    font-weight: 500;
    line-height: 1.18;
    text-wrap: balance;
}

.hero-action {
    border: 0;
    color: var(--app-plum);
    box-shadow: 0 18px 44px rgba(38, 35, 54, 0.24);
}

.btn-dark {
    --bs-btn-bg: var(--app-plum);
    --bs-btn-border-color: var(--app-plum);
    --bs-btn-hover-bg: #56304e;
    --bs-btn-hover-border-color: #56304e;
}

.btn-danger {
    --bs-btn-bg: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-bg: #cf3f47;
    --bs-btn-hover-border-color: #cf3f47;
}

.btn-outline-dark {
    --bs-btn-color: var(--app-plum);
    --bs-btn-border-color: rgba(111, 65, 101, 0.38);
    --bs-btn-hover-bg: var(--app-plum);
    --bs-btn-hover-border-color: var(--app-plum);
}

.btn-outline-secondary {
    --bs-btn-color: var(--app-teal);
    --bs-btn-border-color: rgba(12, 143, 143, 0.36);
    --bs-btn-hover-bg: var(--app-teal);
    --bs-btn-hover-border-color: var(--app-teal);
    --bs-btn-active-bg: var(--app-teal);
    --bs-btn-active-border-color: var(--app-teal);
}

.template-card {
    overflow: hidden;
    border: 1px solid rgba(111, 65, 101, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(111, 65, 101, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.template-card:hover,
.template-card:focus-within {
    transform: translateY(-5px);
    border-color: rgba(12, 143, 143, 0.42);
    box-shadow: 0 22px 58px rgba(111, 65, 101, 0.16);
}

.template-preview {
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
}

.template-card .card-body {
    background: linear-gradient(180deg, #ffffff 0%, #fff7f1 100%);
}

.template-card .card-title {
    color: var(--app-plum);
}

.muted-copy {
    color: var(--app-muted);
}

.builder-page {
    background: #f6eee9;
}

.builder-shell {
    min-height: calc(100vh - 57px);
}

.tool-panel {
    background: #fffaf6;
    border-right: 1px solid var(--app-line);
}

.tool-panel .accordion-button {
    font-weight: 700;
}

.canvas-column {
    min-height: calc(100vh - 57px);
}

.canvas-frame {
    width: min(100%, 720px);
}

/*
 * --invitation-aspect is the card's width divided by its height, published on
 * the canvas (and its frame) by assets/design-renderer.js once the design's
 * own image has reported its natural size, so the invitation is the shape of
 * the artwork rather than a shape the artwork is letterboxed into. It is a
 * plain number rather than a `w / h` ratio because the mobile builder also
 * multiplies by it. The 0.8 fallback is the 4:5 the stock backgrounds are
 * drawn at, and it is what a canvas with no image yet shows.
 */
.invitation-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: var(--invitation-aspect, 0.8);
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    box-shadow: 0 28px 70px rgba(111, 65, 101, 0.24);
    touch-action: none;
}

.builder-page .invitation-canvas {
    overflow: visible;
    /* Match the public card: a white canvas backing can peek through the
       antialiased edge of the rounded artwork clip as pale side seams. */
    background-color: transparent;
}

.invitation-canvas.is-picking-color,
.invitation-canvas.is-picking-color .text-box,
.invitation-canvas.is-picking-color .background-layer {
    cursor: crosshair;
}

.background-layer {
    position: absolute;
    z-index: 0;
    inset: 0;
    box-sizing: border-box;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.background-layer:active {
    cursor: grabbing;
}

.background-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 8px;
}

.background-visual,
.background-frame {
    position: absolute;
    box-sizing: border-box;
    background-position: center;
    /* The canvas already has the artwork's aspect. Painting to both exact
       edges avoids a second `contain` calculation rounding the raster inward. */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform-origin: center;
    touch-action: none;
    user-select: none;
}

.background-ui-layer {
    position: absolute;
    z-index: 45;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}

.background-frame {
    border: 2px dotted #3f67ff;
    background: transparent;
    pointer-events: none;
}

.background-ui-layer:not(.is-selected) .background-frame,
.background-ui-layer.public-background .background-frame {
    display: none;
}

.background-layer.public-background {
    cursor: default;
    pointer-events: none;
}

.background-handle {
    position: absolute;
    z-index: 4;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--app-teal);
    box-shadow: 0 6px 16px rgba(38, 35, 54, 0.22);
    touch-action: none;
}

.background-rotate-handle {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
}

.background-rotate-handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 2px);
    width: 2px;
    height: 14px;
    background: rgba(12, 143, 143, 0.85);
    transform: translateX(-50%);
}

.background-scale-handle {
    right: 12px;
    bottom: 12px;
    cursor: nwse-resize;
}

.invitation-layer {
    position: absolute;
    z-index: 10;
    inset: 0;
    pointer-events: none;
}

/*
 * Every metric here is in em, so it scales with the font — which the renderer
 * sizes from the canvas width. rem or px would be measured against the root
 * font instead, taking a far bigger share of a small canvas than a large one,
 * which squeezes the usable line width and wraps text that fits on one line in
 * the editor. A text box has to look the same at every canvas size.
 */
.text-box {
    position: absolute;
    box-sizing: border-box;
    min-height: 1.35em;
    padding: 0.14em 0.25em;
    border: 1px dashed transparent;
    border-radius: 0;
    color: #222;
    cursor: move;
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    user-select: none;
    touch-action: none;
    pointer-events: auto;
    transform-origin: center;
    overflow: visible;
    z-index: 1;
}

.text-content {
    pointer-events: none;
}

.text-box:hover {
    border-color: rgba(12, 143, 143, 0.55);
}

.text-box.is-selected {
    z-index: 35;
    border-color: #3f67ff;
    border-style: solid;
    border-width: 2px;
    box-shadow: none;
    background: transparent;
}

.text-box:focus {
    outline: none;
}

.public-text,
.public-text:hover {
    border-color: transparent;
    background: transparent;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.text-floating-toolbar {
    position: absolute;
    z-index: 8;
    top: -3.1rem;
    left: 50%;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
    pointer-events: auto;
}

.text-toolbar-button,
.text-rotate-handle {
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(38, 35, 54, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--app-ink);
    box-shadow: 0 8px 20px rgba(38, 35, 54, 0.22);
    pointer-events: auto;
}

.text-toolbar-button svg,
.text-rotate-handle svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.2;
}

.text-resize-handle {
    position: absolute;
    z-index: 7;
    width: 0.72rem;
    height: 0.72rem;
    border: 1px solid #3f67ff;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(38, 35, 54, 0.16);
    pointer-events: auto;
}

.text-resize-nw {
    top: -0.44rem;
    left: -0.44rem;
    cursor: nwse-resize;
}

.text-resize-ne {
    top: -0.44rem;
    right: -0.44rem;
    cursor: nesw-resize;
}

.text-resize-sw {
    bottom: -0.44rem;
    left: -0.44rem;
    cursor: nesw-resize;
}

.text-resize-se {
    right: -0.44rem;
    bottom: -0.44rem;
    cursor: nwse-resize;
}

.text-width-handle {
    position: absolute;
    z-index: 7;
    top: 50%;
    width: 0.52rem;
    height: 1.45rem;
    border: 1px solid #3f67ff;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(38, 35, 54, 0.16);
    transform: translateY(-50%);
    cursor: ew-resize;
    pointer-events: auto;
}

.text-width-left {
    left: -0.4rem;
}

.text-width-right {
    right: -0.4rem;
}

.text-height-handle {
    position: absolute;
    z-index: 7;
    left: 50%;
    width: 1.45rem;
    height: 0.72rem;
    border: 1px solid #3f67ff;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(38, 35, 54, 0.16);
    transform: translateX(-50%);
    cursor: ns-resize;
    pointer-events: auto;
}

.text-height-top {
    top: -0.5rem;
}

.text-height-bottom {
    bottom: -0.5rem;
}

.text-rotate-handle {
    position: absolute;
    z-index: 8;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
    pointer-events: auto;
}

.text-edit-area {
    min-height: 112px;
    resize: vertical;
}

.font-size-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
}

.font-size-slider-control {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
}

.font-size-slider-control .form-range {
    height: 1.4rem;
    margin: 0;
}

.font-size-step-labels {
    height: 2.05rem;
}

.font-size-step {
    display: block;
    width: 3rem;
    cursor: default;
    pointer-events: none;
}

.font-size-step-number {
    min-width: 2.3rem;
    padding-inline: 0.3rem;
}

.font-size-number {
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.font-size-control > .input-group {
    width: 5.75rem;
}

.font-size-control .input-group-text {
    padding-inline: 0.45rem;
    color: var(--app-muted);
}

.font-weight-control {
    display: grid;
    gap: 0.35rem;
}

.font-weight-control .form-range {
    height: 1.4rem;
    margin: 0;
}

.font-weight-step-labels {
    position: relative;
    height: 2.05rem;
}

.font-weight-step {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3.2rem;
    padding: 0.2rem 0.1rem 0.75rem;
    border: 0;
    background: transparent;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    cursor: pointer;
    transform: translateX(-50%);
}

.font-weight-step::after {
    content: "";
    position: absolute;
    bottom: 0.05rem;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #aab8b3;
    box-shadow: 0 0 0 1px rgba(56, 87, 79, 0.2);
    transform: translateX(-50%);
    transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.font-weight-step-number {
    display: inline-block;
    padding: 0.28rem 0.42rem;
    border-radius: 8px;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.font-weight-step:hover:not(:disabled) .font-weight-step-number {
    background: var(--app-mint);
    color: var(--app-deep);
}

.font-weight-step.is-active {
    color: #fff;
}

.font-weight-step.is-active::after {
    background: var(--app-teal);
    box-shadow: 0 0 0 3px rgba(12, 143, 143, 0.16);
    transform: translateX(-50%) scale(1.15);
}

.font-weight-step.is-active .font-weight-step-number {
    background: var(--app-deep);
    transform: translateY(-1px);
}

.font-weight-step:disabled {
    cursor: default;
}

.font-weight-step-labels.is-disabled {
    opacity: 0.5;
}

.font-weight-value {
    color: var(--app-muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
}.custom-design-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 4%, rgba(215, 235, 226, 0.9), transparent 28rem),
        radial-gradient(circle at 92% 10%, rgba(255, 226, 209, 0.72), transparent 26rem),
        #f8f6f1;
}

.custom-design-shell {
    padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

.custom-design-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    max-width: 970px;
    margin-bottom: 2.2rem;
}

.custom-design-lead {
    max-width: 780px;
    color: var(--app-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.custom-design-hero-mark {
    display: grid;
    width: clamp(5rem, 10vw, 7rem);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 28px;
    background: rgba(255, 254, 250, 0.72);
    color: var(--app-teal);
    box-shadow: var(--app-shadow);
    transform: rotate(4deg);
}

.custom-design-hero-mark svg {
    width: 42%;
    height: 42%;
}

.custom-design-success {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
}

.custom-design-success svg {
    flex: 0 0 auto;
}

.custom-design-content {
    margin-top: 0;
}

.custom-design-form-card {
    overflow: hidden;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 22px;
    background: rgba(255, 254, 250, 0.96);
    box-shadow: var(--app-shadow);
}

.custom-design-description {
    min-height: 220px;
    resize: vertical;
}

.custom-design-process {
    margin: 1.5rem 0 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(231, 246, 239, 0.72), rgba(255, 254, 250, 0.96));
    box-shadow: 0 12px 30px rgba(37, 61, 54, 0.06);
}

.custom-design-process-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.custom-design-process-price {
    flex: 0 0 auto;
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 800;
}

.custom-design-process-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(9rem, 1fr));
    gap: 0.75rem;
    margin: 1.75rem 0 1.25rem;
    padding: 0;
    list-style: none;
}

.custom-design-process-steps li {
    position: relative;
    min-width: 0;
    padding-top: 3.5rem;
}

.custom-design-process-steps li:not(:last-child)::after {
    position: absolute;
    top: 1.2rem;
    left: calc(50% + 1.5rem);
    width: calc(100% - 2.25rem);
    height: 2px;
    background: rgba(79, 116, 105, 0.24);
    content: "";
}

.custom-design-process-node {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 2px solid rgba(79, 116, 105, 0.28);
    border-radius: 50%;
    background: #fffefa;
    color: var(--app-teal);
}

.custom-design-process-node svg {
    width: 1rem;
    height: 1rem;
}

.custom-design-process-steps .is-current .custom-design-process-node {
    border-color: var(--app-accent);
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(210, 77, 62, 0.13);
}

.custom-design-process-steps strong {
    display: block;
    color: var(--app-deep);
    font-size: 0.9rem;
}

.custom-design-process-steps p {
    margin: 0.3rem 0 0;
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.custom-design-process-note {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--app-deep);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
}

.custom-design-process-compact {
    margin: 0.75rem 0 1rem;
}

.custom-design-process-compact-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(7rem, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-design-process-compact-steps li {
    position: relative;
    min-width: 0;
    padding-top: 2.75rem;
    text-align: center;
}

.custom-design-process-compact-steps li:not(:last-child)::after {
    position: absolute;
    top: 1rem;
    left: calc(50% + 1.25rem);
    width: calc(100% - 1.5rem);
    height: 2px;
    background: rgba(79, 116, 105, 0.2);
    content: "";
}

.custom-design-process-compact-node {
    position: absolute;
    z-index: 1;
    top: 0;
    left: calc(50% - 1rem);
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(79, 116, 105, 0.28);
    border-radius: 50%;
    background: #fffefa;
    color: var(--app-teal);
}

.custom-design-process-compact-node svg {
    width: 0.9rem;
    height: 0.9rem;
}

.custom-design-process-compact-steps .is-current .custom-design-process-compact-node {
    border-color: var(--app-accent);
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(210, 77, 62, 0.12);
}

.custom-design-process-compact-steps .is-complete .custom-design-process-compact-node {
    border-color: var(--app-teal);
    background: var(--app-teal);
    color: #fff;
}

.custom-design-process-compact-steps .is-complete::after {
    background: var(--app-teal);
}

.custom-design-process-compact-steps strong {
    display: block;
    color: var(--app-deep);
    font-size: 0.72rem;
    line-height: 1.3;
}

.custom-design-submit {
    min-height: 54px;
    font-weight: 800;
}

.custom-design-terms-consent {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(79, 116, 105, 0.24);
    border-radius: 14px;
    background: #f7faf7;
}

.custom-design-terms-consent .form-check-input {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
}

.custom-design-terms-consent .form-check-label {
    color: var(--app-ink);
    font-weight: 650;
    line-height: 1.55;
}

.custom-design-terms-consent-copy {
    color: var(--app-ink);
    line-height: 1.55;
}

.custom-design-terms-consent a {
    color: var(--app-accent);
    font-weight: 800;
    text-underline-offset: 0.18em;
}

.custom-design-terms-modal {
    overflow: hidden;
    border: 0;
    border-radius: 1.2rem;
    box-shadow: 0 2rem 5rem rgba(23, 61, 52, 0.2);
}

.custom-design-terms-modal .modal-header {
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: #fffaf5;
}

.custom-design-terms-modal-date {
    margin-top: 0.25rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.custom-design-terms-modal-copy {
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.custom-design-terms-copy section + section {
    margin-top: 2.2rem;
    padding-top: 2.2rem;
    border-top: 1px solid #ece7e1;
}

.custom-design-terms-copy h2 {
    margin: 0 0 0.8rem;
    color: var(--app-ink);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    letter-spacing: -0.015em;
}

.custom-design-terms-copy p,
.custom-design-terms-copy li {
    color: #46535d;
    line-height: 1.72;
}

.custom-design-terms-copy p:last-child {
    margin-bottom: 0;
}

.custom-design-terms-modal .modal-footer {
    padding: 0.9rem 1.5rem;
    background: #fff;
}

.custom-design-terms-modal .modal-footer .btn-link {
    color: var(--app-accent);
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .custom-design-process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .custom-design-process-steps li {
        min-height: 2.5rem;
        padding: 0 0 0 3.5rem;
    }

    .custom-design-process-steps li:not(:last-child)::after {
        top: 2.5rem;
        left: 1.2rem;
        width: 2px;
        height: calc(100% - 1.5rem);
    }
}

@media (max-width: 575.98px) {
    .custom-design-hero {
        grid-template-columns: 1fr;
    }

    .custom-design-hero-mark {
        display: none;
    }

    .custom-design-form-card .card-body {
        padding: 1.25rem !important;
    }

    .custom-design-process-heading {
        display: block;
    }

    .custom-design-process-price {
        margin-top: 0.5rem !important;
    }

    .custom-design-process-compact-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .custom-design-process-compact-steps li {
        min-height: 2rem;
        padding: 0 0 0 3rem;
        text-align: left;
    }

    .custom-design-process-compact-steps li:not(:last-child)::after {
        top: 2rem;
        left: 1rem;
        width: 2px;
        height: calc(100% + 1rem);
    }

    .custom-design-process-compact-node {
        top: 0;
        left: 0;
    }

    .custom-design-process-compact-steps strong {
        min-height: 2rem;
        padding-top: 0.2rem;
    }
}

.snap-guide {
    position: absolute;
    z-index: 25;
    pointer-events: none;
    background: rgba(230, 83, 87, 0.95);
    opacity: 0;
}

.snap-guide.is-visible {
    opacity: 1;
}

.snap-guide.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

.snap-guide.horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
}.background-template-tabs {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    width: 100%;
    padding: 0.1rem 0.1rem 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--app-sage) transparent;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.background-template-tab {
    flex: 0 0 auto;
    min-height: 2.5rem;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    color: var(--app-ink);
    padding: 0.55rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
    scroll-snap-align: center;
}

.background-template-tab:hover,
.background-template-tab:focus-visible {
    border-color: var(--app-teal);
}

.background-template-tab.is-active {
    border-color: var(--app-teal);
    background: var(--app-mint);
    color: var(--app-deep);
    box-shadow: 0 0 0 2px rgba(12, 143, 143, 0.12);
}.builder-page .background-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-page .background-choice {
    height: 88px;
    min-height: 88px;
}

.background-choice {
    position: relative;
    min-height: 92px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: end;
    justify-content: start;
    padding: 0.55rem;
    text-align: left;
    overflow: visible;
}

.background-choice.is-custom-background {
    grid-column: 1 / -1;
    min-height: 112px;
}

.background-tier-badge {
    position: absolute;
    top: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--app-deep);
    padding: 0.3rem 0.55rem;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(24, 60, 52, 0.16);
}

.background-choice.is-tier-paid .background-tier-badge,
.background-choice.is-tier-premium .background-tier-badge {
    background: #fff0dc;
    color: #8a5116;
}

.background-choice.is-active {
    border-color: var(--app-teal);
    box-shadow: 0 0 0 3px rgba(12, 143, 143, 0.18);
}

.background-grid-empty {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px dashed var(--app-line);
    border-radius: 10px;
    padding: 0.85rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.premium-upload-button .lucide-crown {
    width: 1rem;
    height: 1rem;
    color: #a36b18;
}

.premium-upload-button:disabled .lucide-crown {
    color: currentColor;
}

.location-autocomplete {
    position: relative;
}

.location-suggestions {
    position: absolute;
    z-index: 60;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(38, 35, 54, 0.16);
}

.location-suggestion {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(234, 217, 208, 0.72);
    background: transparent;
    color: var(--app-ink);
    padding: 0.65rem 0.8rem;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.25;
}

.location-suggestion:last-child {
    border-bottom: 0;
}

.location-suggestion:hover,
.location-suggestion.is-active {
    background: var(--app-mint);
    color: var(--app-ink);
}

.mini-swatch {
    width: 2.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0;
}

.share-url {
    word-break: break-all;
}

.public-stage {
    width: min(100%, 720px);
}

.public-audio {
    width: min(100%, 720px);
}

.public-map {
    width: min(100%, 720px);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--app-line);
    box-shadow: 0 16px 42px rgba(111, 65, 101, 0.14);
}

.public-map iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

.status-pill {
    border: 1px solid var(--app-line);
    color: var(--app-muted);
}

.cookie-consent {
    position: fixed;
    z-index: 1080;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(100% - 2rem, 380px);
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    background: var(--app-panel);
    box-shadow: 0 18px 42px rgba(23, 61, 52, 0.2);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-title {
    margin: 0 0 0.3rem;
    color: var(--app-ink);
    font-weight: 700;
}

.cookie-consent-copy {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.83rem;
    line-height: 1.45;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.accordion {
    --bs-accordion-border-color: var(--app-line);
    --bs-accordion-active-bg: var(--app-mint);
    --bs-accordion-active-color: var(--app-ink);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(12, 143, 143, 0.14);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(12, 143, 143, 0.62);
    box-shadow: 0 0 0 0.2rem rgba(12, 143, 143, 0.14);
}

@media (max-width: 991.98px) {
    .tool-panel {
        border-right: 0;
        border-bottom: 1px solid var(--app-line);
    }

    .canvas-column {
        min-height: auto;
    }

    .canvas-frame {
        width: min(100%, 520px);
    }

    .public-map iframe {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .hero-band {
        min-height: 420px;
    }

    .hero-title {
        font-size: 3.6rem;
    }

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

    .canvas-frame {
        width: 100%;
    }

}

/* Calm editorial interface */

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 8% 12%, rgba(169, 187, 174, 0.14), transparent 27rem),
        var(--app-paper);
    letter-spacing: -0.012em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    color: var(--app-ink);
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400 !important;
    letter-spacing: -0.025em;
}

p {
    line-height: 1.7;
}

a,
button,
input,
select,
textarea {
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.app-navbar {
    min-height: 72px;
    background: rgba(247, 246, 241, 0.9);
    border-bottom: 1px solid rgba(56, 87, 79, 0.1);
    box-shadow: 0 8px 30px rgba(37, 61, 54, 0.025);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--app-deep);
    font-size: 1.3rem;
}

.navbar-brand::before {
    content: "\2723";
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--app-deep);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1;
}

.app-brand {
    flex: 0 0 auto;
    padding: 0;
}

.app-brand::before {
    display: none;
}

.app-brand img {
    display: block;
    width: clamp(150px, 17vw, 205px);
    height: auto;
    mix-blend-mode: darken;
}

.builder-brand-link {
    width: 150px;
    height: 38px;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
}

.builder-brand-link img {
    display: block;
    width: 150px;
    height: auto;
    mix-blend-mode: normal;
}

.btn {
    --bs-btn-font-weight: 600;
    min-height: 42px;
    border-radius: 12px;
    letter-spacing: -0.01em;
}

.btn-sm {
    min-height: 36px;
    padding-inline: 0.9rem;
    border-radius: 10px;
}

.btn-lg {
    min-height: 50px;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
}

.btn svg {
    width: 1.05rem;
    height: 1.05rem;
}

.btn-dark {
    --bs-btn-bg: var(--app-deep);
    --bs-btn-border-color: var(--app-deep);
    --bs-btn-hover-bg: #0f3029;
    --bs-btn-hover-border-color: #0f3029;
}

.btn-danger {
    --bs-btn-bg: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-bg: #87402f;
    --bs-btn-hover-border-color: #87402f;
    --bs-btn-active-bg: #733626;
    --bs-btn-active-border-color: #733626;
}

.btn-outline-dark {
    --bs-btn-color: var(--app-deep);
    --bs-btn-border-color: rgba(24, 60, 52, 0.24);
    --bs-btn-hover-bg: var(--app-deep);
    --bs-btn-hover-border-color: var(--app-deep);
}

.btn-outline-secondary {
    --bs-btn-color: var(--app-teal);
    --bs-btn-border-color: rgba(85, 124, 112, 0.3);
    --bs-btn-hover-bg: var(--app-teal);
    --bs-btn-hover-border-color: var(--app-teal);
    --bs-btn-active-bg: var(--app-teal);
    --bs-btn-active-border-color: var(--app-teal);
}

.card {
    border: 1px solid rgba(56, 87, 79, 0.1) !important;
    border-radius: 20px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--app-shadow) !important;
}

.form-label {
    margin-bottom: 0.5rem;
    color: #344842;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.form-control,
.form-select {
    min-height: 46px;
    border-color: rgba(56, 87, 79, 0.17);
    border-radius: 12px;
    background-color: rgba(255, 255, 252, 0.92);
    color: var(--app-ink);
}

.form-control-lg,
.form-select-lg {
    min-height: 52px;
    border-radius: 14px;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(85, 124, 112, 0.68);
    box-shadow: 0 0 0 0.22rem rgba(85, 124, 112, 0.12);
}

.alert {
    border: 0;
    border-radius: 14px;
}

.section-kicker,
.hero-kicker {
    color: var(--app-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.status-pill {
    border-color: rgba(56, 87, 79, 0.12);
    background: rgba(255, 255, 255, 0.68) !important;
    color: var(--app-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.muted-copy {
    color: var(--app-muted);
}

/* Landing page */

.hero-band {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid rgba(56, 87, 79, 0.1);
    background:
        radial-gradient(circle at 88% 18%, rgba(227, 236, 229, 0.95), transparent 25rem),
        linear-gradient(135deg, var(--app-paper) 0%, #f0f1eb 58%, var(--app-mint) 100%);
    color: var(--app-ink);
}

.hero-band::before {
    content: "";
    position: absolute;
    top: 7%;
    left: -4rem;
    width: 16rem;
    height: 16rem;
    border: 1px solid rgba(85, 124, 112, 0.12);
    border-radius: 50%;
}

.hero-band > .container {
    position: relative;
    z-index: 1;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.home-page .hero-kicker {
    color: var(--app-deep);
    font-weight: 800;
}

.hero-kicker span {
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.hero-title {
    max-width: 680px;
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(3.5rem, 5.8vw, 5.8rem);
    font-weight: 400 !important;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 590px;
    color: var(--app-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    font-weight: 400;
    line-height: 1.7;
}

.hero-action {
    border: 1px solid var(--app-accent);
    color: #fff;
    box-shadow: 0 14px 32px rgba(159, 80, 61, 0.2);
}

.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-deep);
    font-weight: 600;
    text-decoration: none;
}

.hero-text-link svg {
    width: 1rem;
}

.hero-text-link:hover {
    color: var(--app-accent);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
}

.hero-trust div {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.hero-trust svg {
    width: 1rem;
    height: 1rem;
    color: var(--app-teal);
}

.hero-showcase {
    position: relative;
    width: min(100%, 550px);
    height: 540px;
    margin-left: auto;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(85, 124, 112, 0.17);
    border-radius: 50%;
}

.hero-orbit-one {
    inset: 2rem 0 0 4rem;
}

.hero-orbit-two {
    inset: 5rem 3rem 4rem 0;
}

.showcase-card {
    position: absolute;
    overflow: hidden;
    padding: 0.7rem;
    border: 1px solid rgba(56, 87, 79, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(37, 61, 54, 0.16);
}

.showcase-card-main {
    z-index: 3;
    top: 2.5rem;
    right: 2.8rem;
    width: 330px;
    transform: rotate(3deg);
}

.showcase-card-back {
    z-index: 2;
    bottom: 2.5rem;
    left: 1.2rem;
    width: 255px;
    transform: rotate(-8deg);
}

.showcase-art {
    display: flex;
    aspect-ratio: 4 / 5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 17px;
    background-position: center;
    background-size: cover;
    color: #354641;
    text-align: center;
}

.showcase-art-wedding {
    background-image: linear-gradient(rgba(255, 249, 246, 0.12), rgba(255, 249, 246, 0.12)), url("backgrounds/wedding/free/botanical-arch.webp");
}

.showcase-art strong {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 1;
}

.showcase-art strong em {
    color: var(--app-accent);
    font-weight: 400;
}

.showcase-art span {
    margin-top: 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.showcase-art .showcase-overline {
    margin: 0 0 1.2rem;
    font-size: 0.55rem;
}

.showcase-note {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(56, 87, 79, 0.1);
    border-radius: 14px;
    background: rgba(255, 254, 250, 0.92);
    color: var(--app-deep);
    box-shadow: 0 18px 42px rgba(37, 61, 54, 0.12);
    backdrop-filter: blur(10px);
}

.showcase-note-top {
    top: 5rem;
    left: 0;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.showcase-note-top svg {
    width: 1rem;
    color: var(--app-accent);
}

.showcase-note-bottom {
    right: 0;
    bottom: 4.5rem;
    padding: 0.7rem 1rem 0.7rem 0.7rem;
}

.showcase-note-bottom > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.showcase-note-bottom strong {
    font-size: 0.76rem;
}

.showcase-note-bottom small {
    margin-top: 0.2rem;
    color: var(--app-muted);
    font-size: 0.66rem;
}

.showcase-avatar {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--app-mint);
    color: var(--app-teal);
}

.showcase-avatar svg {
    width: 0.9rem;
}

.template-section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
}

.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    color: var(--app-deep);
}

.template-card {
    overflow: hidden;
    border-color: rgba(56, 87, 79, 0.1) !important;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(37, 61, 54, 0.07) !important;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.template-card:hover,
.template-card:focus-within {
    transform: translateY(-7px);
    border-color: rgba(85, 124, 112, 0.35) !important;
    box-shadow: 0 24px 55px rgba(37, 61, 54, 0.13) !important;
}

.template-preview {
    position: relative;
    aspect-ratio: 4 / 3.25;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.template-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(32, 49, 45, 0.09));
}

.template-arrow {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    right: 0.8rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 254, 250, 0.9);
    color: var(--app-deep);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.template-card:hover .template-arrow,
.template-card:focus-within .template-arrow {
    opacity: 1;
    transform: translateY(0);
}

.template-arrow svg {
    width: 1rem;
}

.template-card .card-body {
    padding: 1.3rem;
    background: var(--app-panel);
}

.template-card .card-title {
    margin-bottom: 0.5rem;
    color: var(--app-deep);
    font-size: 1.35rem;
}

.template-card .card-text {
    font-size: 0.9rem;
    line-height: 1.55;
}

.template-link {
    color: var(--app-deep);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.template-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.3rem;
}

.template-actions .btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 700;
}

.template-actions .btn svg {
    width: 1rem;
    height: 1rem;
}

.calm-steps {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 0;
    margin-top: 6.5rem;
    overflow: hidden;
    border: 1px solid rgba(56, 87, 79, 0.1);
    border-radius: 24px;
    background: var(--app-deep);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 70px rgba(24, 60, 52, 0.15);
}

.calm-steps-intro,
.calm-step {
    min-height: 230px;
    padding: 2rem;
}

.calm-steps-intro {
    background: rgba(255, 255, 255, 0.04);
}

.calm-steps .section-kicker {
    color: var(--app-sun);
}

.calm-steps-intro h2,
.calm-step h3 {
    color: #fff;
}

.calm-steps-intro h2 {
    max-width: 280px;
    font-size: 2.25rem;
}

.calm-step {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.calm-step > span {
    display: block;
    margin-bottom: 3.5rem;
    color: var(--app-sage);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
}

.calm-step h3 {
    margin-bottom: 0.45rem;
    font-size: 1.45rem;
}

.calm-step p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
}

/* Account and management pages */

.auth-page {
    background:
        radial-gradient(circle at 15% 18%, rgba(169, 187, 174, 0.22), transparent 24rem),
        radial-gradient(circle at 85% 80%, rgba(191, 112, 91, 0.1), transparent 24rem),
        var(--app-paper);
}

.auth-layout {
    display: grid;
    min-height: calc(100vh - 72px);
    place-items: center;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.auth-layout-plans {
    max-width: 1180px;
}

.account-plan-hero {
    padding: clamp(1.75rem, 4vw, 3.5rem);
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 24px;
    background: radial-gradient(circle at 100% 0, rgba(169, 187, 174, 0.32), transparent 15rem), rgba(255, 254, 250, 0.72);
    box-shadow: 0 20px 56px rgba(37, 61, 54, 0.08);
}

.account-plan-hero h2 {
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
}

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

.plan-overview-card {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid rgba(56, 87, 79, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 252, 0.86);
    color: var(--app-ink);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.plan-overview-card:hover {
    transform: translateY(-3px);
    border-color: var(--app-teal);
    box-shadow: 0 14px 30px rgba(37, 61, 54, 0.1);
    color: var(--app-ink);
}

.plan-overview-card.is-featured {
    border-color: var(--app-accent);
    background: #fff8f4;
}

.plan-overview-card > span {
    color: var(--app-deep);
    font-size: 1rem;
    font-weight: 700;
}

.plan-overview-card small {
    margin-top: 0.38rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.plan-overview-card em {
    margin-top: auto;
    color: var(--app-accent);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.auth-card {
    width: 100%;
    max-width: 540px;
}

.auth-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: var(--app-mint);
    color: var(--app-teal);
}

.auth-icon svg {
    width: 1.25rem;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3.1rem;
}

/* Sits inside the field, inset by its 1px border so it never covers it. */
.password-field-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: flex;
    width: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0 13px 13px 0;
    background: transparent;
    color: var(--app-muted);
    cursor: pointer;
    transition: color 160ms ease;
}

.password-field-toggle:hover,
.password-field-toggle:focus {
    color: var(--app-teal);
    outline: 0;
}

.password-field-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}

.plan-choice {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(56, 87, 79, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 252, 0.86);
    cursor: pointer;
}

.plan-choice:has(input:checked) {
    border-color: var(--app-teal);
    background: var(--app-mint);
    box-shadow: 0 0 0 3px rgba(85, 124, 112, 0.09);
}

.plan-choice span {
    display: flex;
    flex-direction: column;
}

.plan-choice strong {
    color: var(--app-ink);
    font-size: 0.93rem;
}

.plan-choice small {
    color: var(--app-muted);
}

.page-shell {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.page-heading {
    margin-bottom: 2.5rem;
}

.event-card {
    box-shadow: 0 12px 36px rgba(37, 61, 54, 0.055) !important;
}

.event-card:hover {
    border-color: rgba(85, 124, 112, 0.24) !important;
    box-shadow: 0 20px 46px rgba(37, 61, 54, 0.09) !important;
}

.manage-page dl {
    color: var(--app-muted);
    font-size: 0.92rem;
}

.manage-page dt {
    color: var(--app-ink);
}

.dashboard-event-heading,
.manage-event-heading {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cancelled-event-indicator {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    place-items: center;
    border: 1px solid rgba(176, 42, 55, 0.28);
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
    box-shadow: 0 6px 16px rgba(176, 42, 55, 0.1);
}

.cancelled-event-indicator svg {
    width: 0.95rem;
    height: 0.95rem;
    stroke-width: 2.35;
}

.cancelled-event-indicator.is-large {
    width: 2.2rem;
    height: 2.2rem;
    flex-basis: 2.2rem;
}

.cancelled-event-indicator.is-large svg {
    width: 1.15rem;
    height: 1.15rem;
}

.share-url {
    background: #f9faf7;
}

.guest-access-warning {
    border-color: #e5bd5d;
    background: #fff5cf;
    color: #654b12;
}

.guest-bookmark-hint {
    font-size: 0.92rem;
    font-weight: 600;
    color: #654b12;
}

.draft-payment-warning {
    border-color: rgba(85, 124, 112, 0.24);
    background: var(--app-mint);
    color: var(--app-deep);
}

.draft-share-url {
    color: transparent !important;
    letter-spacing: 0.12em;
    text-shadow: 0 0 9px rgba(37, 61, 54, 0.7);
    user-select: none;
}

.payment-qr-state {
    color: var(--app-muted);
    font-size: 0.92rem;
}

.payment-qr-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

/* Bela podloga je deo QR koda: bez nje čitači gube kontrast prema stranici. */
.payment-qr-image {
    width: 100%;
    max-width: 260px;
    height: auto;
    padding: 0.75rem;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 61, 54, 0.12);
}

.payment-qr-caption {
    color: var(--app-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Uplatnica i QR kod su ista uplata u dva oblika, pa dele karticu i biraju se
   prekidačem iznad sebe. */
.payment-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    background: rgba(227, 236, 229, 0.5);
}

.payment-tab {
    flex: 1;
    padding: 0.42rem 0.8rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--app-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.payment-tab:hover {
    color: var(--app-deep);
}

.payment-tab.is-active {
    background: var(--app-panel);
    color: var(--app-deep);
    box-shadow: 0 4px 12px rgba(37, 61, 54, 0.12);
}

.payment-slip-figure {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Obrazac je širok koliko i papir sa kog je snimljen, pa se u koloni svodi na
   punu širinu kartice; bela podloga je deo samog obrasca. */
.payment-slip-image {
    width: 100%;
    height: auto;
    border: 1px solid var(--app-line);
    border-radius: 10px;
    background: #ffffff;
}

@property --builder-ambient-top {
    syntax: '<color>';
    inherits: true;
    initial-value: #f6eee9;
}

@property --builder-ambient-bottom {
    syntax: '<color>';
    inherits: true;
    initial-value: #eef1ec;
}

/* Builder */

.builder-page {
    --builder-ambient-top: #f6eee9;
    --builder-ambient-bottom: #eef1ec;
    background: linear-gradient(155deg, var(--builder-ambient-top), var(--builder-ambient-bottom));
}

.builder-page.is-ambient-transition-ready {
    transition: --builder-ambient-top 460ms ease, --builder-ambient-bottom 460ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .builder-page.is-ambient-transition-ready {
        transition: none;
    }
}


.builder-title-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    color: rgba(30, 75, 64, 0.72);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    cursor: text;
}

.builder-title-label svg {
    width: 0.8rem;
    height: 0.8rem;
    stroke-width: 2;
}.builder-autosave-status {
    min-width: 78px;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: right;
}

/* Dark enough for 4.5:1 on the status's plate over a dark design, where the
   accent, teal and Bootstrap's red all fall short. */
.builder-autosave-status.is-saving {
    color: #8a4433;
}

.builder-autosave-status.is-saved {
    color: var(--app-plum);
}

.builder-autosave-status.is-error {
    color: #8f2d28;
}

/*
 * --builder-navbar-h is the sticky navbar's measured height, published by
 * builder.js. The 68px it falls back to is that bar's min-height, but its
 * buttons make the real one taller, so anything sized as "the viewport minus
 * the navbar" from the constant alone comes out too tall and leaves the page
 * scrolling by those few pixels.
 */
.builder-shell {
    min-height: calc(100dvh - var(--builder-navbar-h, 68px));
}

.tool-panel {
    background: rgba(255, 254, 250, 0.96);
    border-right: 1px solid rgba(56, 87, 79, 0.11);
}

.tool-panel > .p-3 {
    padding: 1.1rem !important;
}

.accordion {
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-radius: 14px;
    --bs-accordion-inner-border-radius: 14px;
    --bs-accordion-active-bg: var(--app-mint);
    --bs-accordion-active-color: var(--app-deep);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(85, 124, 112, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.accordion-item {
    overflow: hidden;
    border: 1px solid rgba(56, 87, 79, 0.11) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 252, 0.78);
}.accordion-button {
    min-height: 54px;
    gap: 0.55rem;
    color: var(--app-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-button svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: var(--app-teal);
}.accordion-body {
    padding: 1rem;
    border-top: 1px solid rgba(56, 87, 79, 0.08);
}

/*
 * „Gosti" — variant 6a, „Tabela grupa"
 *
 * Odrasli and Deca are structurally identical, so they are two rows of one
 * small table rather than two stacked blocks: switch, inline-editable name,
 * compact −/+. The captions each block used to carry are promoted to column
 * headers written once, and the tab's own on/off moves up into the tab's
 * header. A group that is switched off dims its row instead of emptying it,
 * so the parallel between the two stays legible.
 *
 * --rsvp-max-col is the „Najviše" column: the header caption and the stepper
 * under it are the same width, which is what makes the pair read as a table.
 */
.rsvp-builder-groups {
    --rsvp-max-col: 5.5rem;
    display: grid;
    gap: 0.563rem;
}

.rsvp-group-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0.75rem;
    color: #a3ada8;
    font-size: 0.563rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

/* The switch column, held open so the two captions sit over the fields they
   name rather than over the switches. */
.rsvp-group-head::before {
    content: "";
    flex: 0 0 2.25rem;
}

.rsvp-group-head-name {
    flex: 1;
    min-width: 0;
}

.rsvp-group-head-max {
    flex: 0 0 var(--rsvp-max-col);
    text-align: center;
}

.rsvp-builder-group {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 10px;
    background: #fff;
}

/* Editable in place: the dashed rule and the pencil are the only affordance
   the row has space for, and they are enough to read as a field. */
.rsvp-group-name {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0;
    border-bottom: 1px dashed rgba(79, 116, 105, 0.55);
    transition: opacity 0.16s ease;
}

.rsvp-group-name-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-ink);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.rsvp-group-name-input:focus {
    outline: 0;
}

.rsvp-group-name svg {
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 auto;
    color: var(--app-teal);
}

.rsvp-builder-group .rsvp-guest-stepper {
    flex: 0 0 var(--rsvp-max-col);
    width: var(--rsvp-max-col);
    max-width: none;
    height: 2rem;
    grid-template-columns: 1.75rem minmax(0, 1fr) 1.75rem;
    border-color: var(--app-line);
    border-radius: 8px;
    transition: opacity 0.16s ease;
}

/* The row's stepper is shorter than a button's global touch target and
   narrower than its side padding, so the glyph is placed by the grid cell. */
.rsvp-builder-group .rsvp-guest-stepper .btn {
    min-height: 0;
    padding: 0;
    color: var(--app-muted);
    font-size: 1rem;
}

.rsvp-builder-group .rsvp-guest-count {
    min-height: 0;
    border-inline-color: var(--app-line);
    color: var(--app-deep);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
}

.rsvp-builder-group.is-disabled .rsvp-group-name,
.rsvp-builder-group.is-disabled .rsvp-guest-stepper {
    opacity: 0.5;
}

.rsvp-builder-group.is-disabled .rsvp-group-name {
    border-bottom-color: rgba(79, 116, 105, 0.28);
}

.rsvp-builder-options {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.563rem;
}

.rsvp-option {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0.75rem;
    border: 1px solid var(--app-line);
    border-radius: 10px;
    background: #fff;
}.rsvp-option-label {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--app-ink);
    font-size: 0.781rem;
    font-weight: 600;
}

/*
 * The design draws a switch as a filled track — teal on, a light wash of the
 * same green off — with a white knob in both states; Bootstrap fills only the
 * checked one, in its own blue. Scoped to the builder page, where 6a puts a
 * switch at the head of every group row and in the tab header itself, and
 * where the one switch outside Gosti („Prikaži odbrojavanje") is drawn the
 * same way.
 */
.builder-page .form-switch .form-check-input {
    --bs-form-switch-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%23fff'/></svg>");
    background-color: rgba(56, 87, 79, 0.24);
    border-color: transparent;
}

.builder-page .form-switch .form-check-input:checked {
    background-color: var(--app-teal);
    border-color: transparent;
}

.builder-page .form-check-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(79, 116, 105, 0.22);
}

/*
 * One switch, three homes — a group row, an option row, the tab header — so
 * the Bootstrap switch is unwrapped from its own block layout and handed to
 * whatever flex row it lands in.
 */
.rsvp-switch {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.rsvp-switch .form-check-input {
    width: 2.25rem;
    height: 1.313rem;
    float: none;
    margin: 0;
}

.canvas-column {
    min-height: calc(100vh - 68px);
    background:
        linear-gradient(rgba(85, 124, 112, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 124, 112, 0.035) 1px, transparent 1px),
        #eef1ec;
    background-size: 24px 24px;
}

.canvas-frame {
    width: min(100%, 680px);
}

/*
 * The card is the shape of its own artwork, so a tall design has to be sized
 * against the height the page has left as much as against the column's width.
 * Left to the width alone it runs past the fold, and `.builder-page
 * .canvas-column`'s `overflow: clip` cuts the bottom of the invitation off.
 *
 * The width is taken from the smaller of the two budgets and `aspect-ratio`
 * derives the height from it. The other way round does not work: a
 * `max-height` is not fed back into the width, so the card comes out the
 * wrong shape instead of a smaller one.
 *
 * The budget is the viewport less the navbar and the canvas column's own
 * py-4. Below the large breakpoint the mobile builder redefines
 * --builder-canvas-h against its dock and open sheet and sizes the frame from
 * it the same way.
 */
.builder-page {
    --builder-canvas-h: calc(100dvh - var(--builder-navbar-h, 68px) - 3rem);
}

.builder-page .canvas-frame {
    width: min(100%, 680px, calc(var(--builder-canvas-h) * var(--invitation-aspect, 0.8)));
}

.invitation-canvas {
    border-radius: 14px;
    box-shadow: 0 30px 72px rgba(24, 60, 52, 0.18);
}

.background-clip {
    border-radius: 14px;
}

.background-choice {
    min-height: 88px;
    border-radius: 12px;
}

.background-choice-label {
    border-radius: 8px;
    background: rgba(24, 60, 52, 0.75);
}.location-autocomplete {
    position: relative;
    z-index: 82;
}

.location-autocomplete .form-control {
    padding-right: 2.75rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--app-muted) 50%),
        linear-gradient(135deg, var(--app-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 2px),
        calc(100% - 0.85rem) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
}

.location-suggestions {
    z-index: 100;
    top: calc(100% + 0.5rem);
    max-height: 280px;
    overscroll-behavior: contain;
    border-color: rgba(56, 87, 79, 0.14);
    border-radius: 12px;
    background: var(--app-panel);
    box-shadow: 0 22px 50px rgba(24, 60, 52, 0.2);
    scrollbar-color: var(--app-sage) transparent;
    scrollbar-width: thin;
}

.location-suggestion {
    position: relative;
    display: flex;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.72rem 2.35rem 0.72rem 1rem;
    border-bottom-color: rgba(56, 87, 79, 0.09);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}

.location-suggestion::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.42rem;
    height: 0.42rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: 0.45;
    transform: translateY(-50%) rotate(45deg);
}

.location-suggestion-primary {
    overflow: hidden;
    color: var(--app-ink);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-suggestion-secondary {
    display: -webkit-box;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.location-suggestion:hover,
.location-suggestion.is-active {
    background: var(--app-mint);
}

.location-suggestion:hover::after,
.location-suggestion.is-active::after {
    color: var(--app-teal);
    opacity: 1;
}

/* Public invitation */

.public-page {
    --public-top-space: 0.9rem;
    --public-ambient-top: #edf1ec;
    --public-ambient-bottom: #f1eae4;
    display: flex;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% -15%, rgba(255, 255, 255, 0.38), transparent 42rem),
        linear-gradient(155deg, var(--public-ambient-top), var(--public-ambient-bottom));
    background-attachment: fixed;
}

.public-page > main {
    width: 100%;
    min-height: 0 !important;
    flex: 1 0 auto;
}

.public-invitation-main {
    align-items: flex-start !important;
    padding-top: var(--public-top-space) !important;
}

.public-invitation-main .public-stage {
    padding-top: 0;
}

/*
 * The same budget for the public card, which is the one the preview page
 * shows: its width is capped by the viewport height it has to fit inside, and
 * `aspect-ratio` takes care of the height. Without it a design taller than
 * 4:5 opens with its bottom below the fold — and a preview that needs
 * scrolling is not showing what a guest sees.
 *
 * The budget is the viewport less the main's top space and a bottom gutter
 * that keeps the card off the fold and hints at the content under it. On a
 * phone the stage's own width is the smaller of the two and still wins, so
 * the card stays as wide as the screen there.
 */
.public-page .public-stage .invitation-canvas {
    width: min(100%, calc((100dvh - var(--public-top-space) - 2rem) * var(--invitation-aspect, 0.8)));
    /* Rounded overflow is antialiased. A white backing shows through that
       partially covered edge as a pale seam even when the artwork is full-size. */
    background-color: transparent;
}

.public-brand-link {
    position: fixed;
    z-index: 100;
    top: var(--public-top-space);
    left: 0.9rem;
    display: block;
    width: 156px;
    padding: 0.35rem 0.55rem;
    overflow: hidden;
    border: 1px solid var(--app-plate-line);
    border-radius: 12px;
    background: var(--app-plate);
    box-shadow: var(--app-plate-shadow);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.public-brand-link.is-safe {
    visibility: visible;
    opacity: 0.72;
    pointer-events: auto;
}

.public-brand-link.is-safe:hover,
.public-brand-link.is-safe:focus-visible {
    border-color: rgba(56, 87, 79, 0.22);
    opacity: 1;
    box-shadow: 0 14px 34px rgba(24, 60, 52, 0.12);
}

.public-brand-link:focus-visible {
    outline: 3px solid rgba(85, 124, 112, 0.22);
    outline-offset: 2px;
}

.public-brand-link img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: normal;
}

.public-brand-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.25rem 1rem 1.5rem;
    border-top: 1px solid rgba(56, 87, 79, 0.1);
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.public-brand-footer a {
    display: inline-flex;
    width: 148px;
    padding: 0.2rem 0.35rem;
    border-radius: 8px;
}

.public-brand-footer a:hover,
.public-brand-footer a:focus-visible {
    background: rgba(255, 254, 250, 0.72);
}

.public-brand-footer a:focus-visible {
    outline: 3px solid rgba(85, 124, 112, 0.22);
    outline-offset: 2px;
}

.public-brand-footer img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: darken;
}

/* Shared edit/preview state switch. The active pill moves between pages. */
.view-mode-toggle {
    --view-mode-toggle-gap: 0.19rem;
    --view-mode-toggle-half-gap: 0.095rem;
    --view-mode-toggle-padding: 0.19rem;
    --view-mode-toggle-shift: 0;

    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--view-mode-toggle-gap);
    padding: var(--view-mode-toggle-padding);
    border-radius: 999px;
    /* The logo's plate, on both pages. Its hairline is an inset shadow rather
       than a border, so the toggle keeps the size Builder and Preview align.
       Nothing passes under Builder's topbar, so only Preview adds the blur. */
    background: var(--app-plate);
    box-shadow: inset 0 0 0 1px var(--app-plate-line), var(--app-plate-shadow);
    isolation: isolate;
}

.view-mode-toggle[data-view-mode]::before {
    position: absolute;
    z-index: 0;
    top: var(--view-mode-toggle-padding);
    bottom: var(--view-mode-toggle-padding);
    left: var(--view-mode-toggle-padding);
    width: calc(50% - var(--view-mode-toggle-padding) - var(--view-mode-toggle-half-gap));
    border-radius: 999px;
    background: var(--app-accent);
    box-shadow: 0 6px 14px rgba(159, 80, 61, 0.26);
    content: "";
    pointer-events: none;
    transform: translateX(var(--view-mode-toggle-shift));
    transition: transform 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.view-mode-toggle[data-view-mode="preview"] {
    --view-mode-toggle-shift: calc(100% + var(--view-mode-toggle-gap));
}

.view-mode-toggle-option {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 0;
    padding: 0.44rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--app-plum);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: inherit;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 140ms ease, color 110ms ease, box-shadow 140ms ease;
}

/* A paper hover would vanish into the paper plate; the plate takes a tint. */
.view-mode-toggle-option:is(a, button):hover:not(:disabled):not(.is-active) {
    background: rgba(56, 87, 79, 0.1);
    color: var(--app-deep);
}

.view-mode-toggle-option:is(a, button):focus-visible {
    outline: 3px solid rgba(159, 80, 61, 0.24);
    outline-offset: 2px;
}

.view-mode-toggle-option.is-active {
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 6px 14px rgba(159, 80, 61, 0.26);
}

.view-mode-toggle[data-view-mode] .view-mode-toggle-option.is-active {
    background: transparent;
    box-shadow: none;
}

.view-mode-toggle-option:disabled:not(.is-active) {
    cursor: wait;
    opacity: 0.65;
}

.view-mode-toggle.is-switching .view-mode-toggle-option {
    pointer-events: none;
}

.view-mode-toggle-option svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

/* The page scrolls under this one, so its plate blurs what passes beneath,
   as the logo's does. */
.public-preview-toggle {
    position: fixed;
    top: 0.667rem;
    right: 0.75rem;
    z-index: 101;
    backdrop-filter: blur(10px);
}

@media (max-width: 767.98px) {
    /* Where the builder's 52px phone topbar centres its 35.47px toggle. */
    .public-preview-toggle {
        top: 0.5165rem;
        right: 0.5rem;
    }

    .public-preview-toggle .view-mode-toggle-option {
        padding: 0.44rem 0.575rem;
        font-size: 0.8rem;
    }

    .public-preview-toggle .view-mode-toggle-option svg {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .view-mode-toggle[data-view-mode]::before,
    .view-mode-toggle-option {
        transition: none;
    }
}

.public-stage {
    padding-block: 2rem;
}

.public-map {
    border-color: rgba(56, 87, 79, 0.12);
    border-radius: 16px;
    box-shadow: var(--app-shadow);
}

.public-audio audio {
    border-radius: 12px;
}

@media (max-width: 1199.98px) {
    .hero-showcase {
        transform: scale(0.9);
        transform-origin: right center;
    }

    .calm-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .calm-steps-intro {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .calm-steps-intro h2 {
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .hero-band > .container {
        padding-top: 4.5rem;
        padding-bottom: 1.5rem;
    }

    .hero-copy {
        position: relative;
        z-index: 4;
    }

    .hero-title {
        max-width: 760px;
    }

    .hero-showcase {
        height: 500px;
        margin-inline: auto;
        transform: scale(0.92);
        transform-origin: center top;
    }

    .tool-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(56, 87, 79, 0.11);
    }

    .canvas-column {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .app-navbar {
        min-height: 64px;
    }

    .navbar-brand {
        font-size: 1.05rem;
    }

    .app-brand img {
        width: 148px;
    }

    .navbar-brand::before {
        width: 1.75rem;
        height: 1.75rem;
    }

    .home-page .status-pill {
        display: none;
    }

    .hero-band {
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(3.15rem, 13vw, 4.4rem);
    }

    .hero-trust {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-showcase {
        width: 450px;
        max-width: 100%;
        height: 440px;
        transform: scale(0.84);
        transform-origin: left top;
    }

    .template-section {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .calm-steps {
        grid-template-columns: 1fr;
        margin-top: 4rem;
    }

    .calm-steps-intro {
        grid-column: auto;
    }

    .calm-step {
        display: grid;
        grid-template-columns: 3rem 1fr;
        min-height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .calm-step > span {
        margin-bottom: 0;
    }

    .page-shell {
        padding-top: 3rem;
    }


}

@media (max-width: 575.98px) {
    .public-page {
        --public-top-space: 0.65rem;
    }

    .public-brand-link {
        left: 0.65rem;
        width: 128px;
        padding: 0.28rem 0.4rem;
        border-radius: 10px;
    }

    .public-brand-footer {
        gap: 0.4rem;
        padding-block: 1rem 1.2rem;
        font-size: 0.7rem;
    }

    .public-brand-footer a {
        width: 124px;
    }

    .hero-band > .container {
        padding-top: 3.5rem;
    }

    .hero-showcase {
        left: 50%;
        width: 430px;
        max-width: none;
        height: 380px;
        margin-left: -215px;
        transform: scale(0.7);
        transform-origin: center top;
    }

    .showcase-card-main {
        right: 1.5rem;
    }

    .hero-trust {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .template-card .card-body {
        padding: 1.15rem;
    }

    .auth-layout {
        align-items: start;
        padding-top: 2rem;
    }

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

    .auth-card .card-body {
        padding: 1.5rem !important;
    }    .builder-autosave-status {
        display: none;
    }

    .canvas-column {
        padding-inline: 0.75rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Newer editor features */

.canvas-column {
    position: relative;
}


.editor-toolbox {
    position: fixed;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: 0 16px 40px rgba(24, 60, 52, 0.16);
    backdrop-filter: blur(16px);
}

.editor-history-toolbox {
    top: calc(5rem + env(safe-area-inset-top));
    right: 1.25rem;
}

.editor-selection-toolbox {
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 2rem);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.65rem) scale(0.96);
    transform-origin: right bottom;
    transition:
        visibility 0s linear 180ms,
        opacity 180ms ease,
        transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
        bottom 180ms ease;
}

.editor-selection-toolbox.is-visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.editor-selection-label {
    padding: 0 0.35rem 0 0.45rem;
    color: var(--app-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.editor-toolbox-divider {
    width: 1px;
    height: 24px;
    background: rgba(56, 87, 79, 0.14);
}

.editor-toolbox-button {
    display: inline-flex;
    width: 40px;
    min-height: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--app-deep);
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.editor-toolbox-button:hover:not(:disabled) {
    background: var(--app-mint);
    color: var(--app-deep);
    transform: translateY(-1px);
}

.editor-toolbox-button.is-danger {
    color: #a83c35;
}

.editor-toolbox-button.is-danger:hover:not(:disabled) {
    background: #fae8e5;
    color: #8f2d28;
}

.editor-toolbox-button svg {
    width: 18px;
    height: 18px;
}

.editor-toolbox-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    transform: none;
}

.public-countdown {
    width: min(100%, 720px);
    padding: 1.15rem;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--app-shadow);
}

.public-cancellation-banner {
    width: min(100%, 720px);
    padding: 1.1rem 1.25rem;
    border: 1px solid #c83f3f;
    border-radius: 16px;
    background: #fff0f0;
    color: #8e2020;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--app-shadow);
}

.public-countdown-label {
    color: var(--app-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.public-countdown-grid span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 0.45rem;
    border-radius: 12px;
    background: var(--app-mint);
    color: var(--app-ink);
}

.public-countdown-grid strong {
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.35rem, 4vw, 2.15rem);
    font-weight: 400;
    line-height: 1;
}

.public-countdown-grid small {
    margin-top: 0.35rem;
    color: var(--app-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.public-countdown.is-complete .public-countdown-grid span {
    background: #f1eee8;
}

.public-event-date {
    margin: 0;
    color: var(--app-ink);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
}

.public-countdown-title {
    margin-top: 1rem;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-additional-info {
    width: min(100%, 720px);
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--app-shadow);
    color: var(--app-ink);
    line-height: 1.65;
    white-space: normal;
}

.public-preview-notice {
    width: min(100%, 820px);
    padding: 1.15rem 1.5rem;
    border: 2px solid rgba(138, 81, 22, 0.3);
    border-radius: 16px;
    background: #fff8ed;
    box-shadow: 0 10px 24px rgba(138, 81, 22, 0.1);
    color: #704313;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.public-rsvp {
    width: min(100%, 720px);
    padding: clamp(1.15rem, 3vw, 1.75rem);
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--app-shadow);
}

.public-rsvp-label {
    color: var(--app-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-rsvp-saved-message {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 12px;
    background: rgba(238, 244, 238, 0.72);
}

.public-rsvp-saved-message span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-rsvp-saved-message p {
    margin: 0;
    white-space: pre-wrap;
}

.rsvp-status-group {
    display: flex;
    gap: 0.5rem;
}

.rsvp-status-group .btn {
    min-height: 48px;
    border: 1px solid rgba(56, 87, 79, 0.18);
    background: #fff;
    color: var(--app-ink);
    font-weight: 700;
    flex: 1 1 0;
}

.rsvp-status-group .btn:hover,
.rsvp-status-group .btn.is-active {
    border-color: var(--app-teal);
    background: var(--app-mint);
    color: var(--app-deep);
}

.rsvp-guest-stepper {
    display: grid;
    grid-template-columns: 3rem minmax(120px, 1fr) 3rem;
    max-width: 320px;
    overflow: hidden;
    border: 1px solid rgba(56, 87, 79, 0.18);
    border-radius: 10px;
    background: #fff;
}

.rsvp-guest-stepper .btn {
    border: 0;
    border-radius: 0;
    color: var(--app-deep);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.rsvp-guest-stepper .btn:hover:not(:disabled) {
    background: var(--app-mint);
}

.rsvp-guest-stepper .btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.rsvp-guest-count {
    display: grid;
    min-height: 58px;
    place-items: center;
    border-inline: 1px solid rgba(56, 87, 79, 0.14);
    color: var(--app-ink);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.rsvp-manage-filters {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(160px, auto);
    gap: 0.55rem;
}

.rsvp-attendance-summary {
    display: grid;
    grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.rsvp-summary-card {
    display: grid;
    min-height: 112px;
    align-content: center;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.88);
    box-shadow: 0 10px 26px rgba(37, 61, 54, 0.055);
}

.rsvp-summary-card.is-range {
    border-color: rgba(191, 112, 91, 0.22);
    background: linear-gradient(135deg, rgba(255, 246, 240, 0.96), rgba(255, 254, 250, 0.92));
}

.rsvp-summary-card span {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.rsvp-summary-card strong {
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 400;
    line-height: 1;
}

.rsvp-summary-card small {
    margin-top: 0.18rem;
    color: var(--app-muted);
}

.rsvp-status-badge {
    display: inline-block;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
}

.rsvp-status-badge.status-coming { background: #dff3e8; color: #17683f; }
.rsvp-status-badge.status-maybe { background: #fff1c9; color: #795600; }
.rsvp-status-badge.status-cant_come { background: #f9dfdf; color: #9a3131; }
.rsvp-message-cell { max-width: 320px; white-space: pre-wrap; }

@media (max-width: 991.98px) {
    .editor-history-toolbox {
        top: calc(4.75rem + env(safe-area-inset-top));
        right: 0.75rem;
    }

    .editor-selection-toolbox {
        right: 0.75rem;
        bottom: calc(4.75rem + env(safe-area-inset-bottom) + var(--builder-open-tool-height, 0px));
    }

}

@media (max-width: 575.98px) {
    .editor-selection-label,
    .editor-selection-toolbox .editor-toolbox-divider {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .public-countdown-grid {
        gap: 0.4rem;
    }

    .public-countdown {
        padding: 0.75rem;
    }

    .public-countdown-grid span {
        padding: 0.7rem 0.2rem;
    }

    .rsvp-status-group {
        flex-direction: column;
    }

    .rsvp-manage-filters {
        grid-template-columns: 1fr;
    }

    .rsvp-attendance-summary {
        grid-template-columns: 1fr;
    }
}

/* Role dashboards */
.role-stat-card {
    height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(35, 49, 63, .1);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .5rem 1.5rem rgba(35, 49, 63, .06);
}

/* Designer submission editor */
.designer-submit-page {
    background: #f6eee9;
}

.designer-submit-panel > .p-3 {
    max-height: calc(100vh - 68px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: var(--app-sage) transparent;
    scrollbar-width: thin;
}

.designer-submit-tabs {
    position: sticky;
    z-index: 5;
    top: -1.1rem;
    margin: -0.1rem -0.1rem 0;
    padding: 0.1rem 0.1rem 0;
    background: #fffefb;
}

.designer-submit-tabs .nav-link {
    min-height: 48px;
    color: var(--app-muted);
    font-weight: 700;
}

.designer-submit-tabs .nav-link.active {
    color: var(--app-deep);
    background: var(--app-mint);
    border-color: rgba(56, 87, 79, 0.12) rgba(56, 87, 79, 0.12) transparent;
}

.designer-submit-tab-content {
    padding-top: 1rem;
}

.designer-upload-card {
    padding: 1.1rem;
    border: 1px dashed rgba(56, 87, 79, 0.3);
    border-radius: 16px;
    background: rgba(235, 242, 236, 0.56);
    text-align: center;
}

.designer-upload-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    place-items: center;
    border-radius: 14px;
    background: var(--app-deep);
    color: #fff;
}

.designer-upload-icon svg {
    width: 22px;
    height: 22px;
}

.designer-text-card {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 252, 0.82);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.designer-text-card.is-selected {
    border-color: var(--app-teal);
    box-shadow: 0 0 0 3px rgba(85, 124, 112, 0.1);
}

.designer-text-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0;
    color: var(--app-deep);
}

.designer-text-fold-button {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.designer-text-fold-button strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.designer-text-fold-button > svg {
    width: 18px;
    height: 18px;
    margin-left: auto;
    transition: transform 0.16s ease;
}

.designer-text-card.is-collapsed .designer-text-fold-button > svg {
    transform: rotate(-90deg);
}

.designer-text-number {
    display: inline-grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: var(--app-mint);
    font-size: 0.76rem;
    font-weight: 800;
}

.designer-text-card-body {
    padding-top: 0.85rem;
}

.designer-text-delete-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    place-items: center;
    border-radius: 9px;
}

.designer-text-delete-button svg {
    width: 16px;
    height: 16px;
}

.designer-property-grid {
    display: grid;
    grid-template-columns: minmax(64px, 0.35fr) minmax(0, 1fr);
    gap: 0.55rem 0.7rem;
    align-items: center;
}

.designer-property-grid > label {
    margin: 0;
    color: var(--app-muted);
    font-family: "Courier New", monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.designer-property-grid textarea {
    resize: vertical;
}

.designer-color-control {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
}

.designer-color-control .form-control-color {
    flex: 0 0 46px;
    width: 46px;
    height: 34px;
    padding: 0.2rem;
}

.designer-color-control code {
    min-width: 0;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
}

.designer-submit-page .canvas-frame {
    padding-top: 3.25rem;
}

.designer-submit-page .invitation-canvas {
    overflow: visible;
    background-image:
        linear-gradient(45deg, rgba(85, 124, 112, 0.055) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(85, 124, 112, 0.055) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(85, 124, 112, 0.055) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(85, 124, 112, 0.055) 75%);
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

@media (max-width: 991.98px) {
    .designer-submit-panel > .p-3 {
        max-height: none;
        overflow: visible;
    }

    .designer-submit-page .canvas-column {
        order: -1;
        min-height: auto;
        padding-bottom: 2rem !important;
    }

    .designer-submit-page .canvas-frame {
        width: min(100%, 560px);
    }
}

.designer-submission-preview-header {
    display: flex;
    width: min(100%, 720px);
    margin: 0 auto 1.5rem;
}

.designer-submission-preview-shell {
    width: min(100%, 720px);
    margin: 0 auto;
}

.role-stat-card span {
    display: block;
    color: #6c757d;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.role-stat-card strong {
    display: block;
    margin-top: .35rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.role-action-card {
    display: flex;
    min-height: 9rem;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    gap: .35rem;
    padding: 1.35rem;
    color: #fff;
    text-decoration: none;
    border-radius: 1rem;
    background: #23313f;
    transition: transform .18s ease, box-shadow .18s ease;
}

.role-action-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .85rem 2rem rgba(35, 49, 63, .18);
}

.role-action-card span {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.role-action-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.role-action-count-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.role-action-card .role-action-count-badge {
    display: inline-grid;
    min-width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    padding: 0 0.5rem;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.role-action-card .role-action-count-badge-success {
    background: var(--bs-success);
}

.dashboard-action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.designer-dashboard-nav .dashboard-action-button {
    width: 100%;
    justify-content: center;
}

@media (min-width: 992px) {
    .designer-dashboard-nav {
        flex-wrap: nowrap;
    }

    .designer-dashboard-nav .dashboard-action-button {
        width: auto;
        flex: 0 0 auto;
    }
}

.dashboard-action-button > svg {
    width: 17px;
    height: 17px;
}

.dashboard-action-button.has-notification {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.dashboard-notification-badge {
    display: inline-grid;
    min-width: 1.55rem;
    height: 1.55rem;
    margin-left: 0.15rem;
    padding: 0 0.4rem;
    place-items: center;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.28);
}

.designer-unread-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.08);
    color: #9e2632;
    font-size: 0.84rem;
    font-weight: 800;
}

.designer-unread-summary svg {
    width: 17px;
    height: 17px;
}

.designer-submissions-table th:first-child,
.designer-submissions-table td:first-child {
    width: 62px;
    padding-right: 0;
    text-align: center;
}

.designer-submissions-table tr.is-unread-response > td {
    background: rgba(220, 53, 69, 0.045);
}

.design-response-status-icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #d8dee3;
    border-radius: 50%;
    background: #f3f5f7;
    color: #59636c;
}

.design-response-status-icon svg {
    width: 21px;
    height: 21px;
}

.design-response-status-icon.status-approved {
    border-color: rgba(25, 135, 84, 0.25);
    background: rgba(25, 135, 84, 0.1);
    color: #146c43;
}

.design-response-status-icon.status-changes_requested {
    border-color: rgba(220, 53, 69, 0.25);
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
}

.design-response-status-icon.is-attention {
    animation: designer-response-attention 1.55s ease-in-out infinite;
}

.design-response-status-icon-large {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
}

.design-response-status-icon-large svg {
    width: 31px;
    height: 31px;
}

.design-response-new-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    color: #b02a37;
    font-size: 0.75rem;
    font-weight: 800;
}

.design-response-new-label svg {
    width: 14px;
    height: 14px;
}

.designer-response-detail {
    overflow: hidden;
    border-top: 5px solid #98a2ab !important;
}

.designer-response-detail.status-approved {
    border-top-color: #198754 !important;
}

.designer-response-detail.status-changes_requested {
    border-top-color: #dc3545 !important;
}

.designer-response-design-name,
.designer-feedback-message {
    padding: 1rem 1.1rem;
    border: 1px solid #e2e6e9;
    border-radius: 0.85rem;
    background: #f8f9fa;
}

.designer-response-design-name span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.designer-response-design-name strong {
    display: block;
    font-size: 1.08rem;
}

@keyframes designer-response-attention {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.22);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(220, 53, 69, 0);
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .design-response-status-icon.is-attention {
        animation: none;
    }
}

.dashboard-design-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.dashboard-design-status svg {
    width: 17px;
    height: 17px;
}

.dashboard-design-status.is-approved {
    color: #146c43;
}

.dashboard-design-status.is-unapproved {
    color: #9b5c08;
}

.designer-design-card {
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.designer-design-card:hover,
.designer-design-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 1.1rem 2.8rem rgba(35, 49, 63, 0.16) !important;
}

.designer-design-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ecefea;
    text-decoration: none;
}

.designer-design-thumbnail .invitation-canvas {
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
}

.designer-design-status-badge {
    position: absolute;
    z-index: 20;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.designer-design-status-badge svg {
    width: 15px;
    height: 15px;
}

.designer-design-status-badge.is-approved {
    background: rgba(20, 108, 67, 0.92);
}

.designer-design-status-badge.is-unapproved {
    background: rgba(174, 102, 10, 0.94);
}

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

.designer-design-sales > div {
    padding: 0.8rem;
    border: 1px solid #e4e8ea;
    border-radius: 0.75rem;
    background: #f8f9fa;
}

.designer-design-sales span,
.designer-design-sales strong {
    display: block;
}

.designer-design-sales span {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.designer-design-sales strong {
    margin-top: 0.2rem;
    font-size: 1.35rem;
    line-height: 1;
}

.design-feedback-thread {
    display: grid;
    gap: 0.85rem;
}

.design-feedback-entry {
    position: relative;
    padding: 1rem 1.1rem;
    border: 1px solid #e1e5e8;
    border-left: 4px solid #7f8992;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 7px 20px rgba(35, 49, 63, 0.06);
}

.design-feedback-entry.status-approved {
    border-left-color: #198754;
}

.design-feedback-entry.status-changes_requested {
    border-left-color: #dc3545;
}

.design-feedback-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.design-feedback-entry-meta strong {
    font-size: 0.82rem;
}

.design-feedback-entry-meta time {
    color: var(--app-muted);
    font-size: 0.75rem;
}

.design-feedback-entry p {
    margin: 0;
    white-space: normal;
}

.design-feedback-entry.is-peer {
    border-left-color: var(--app-teal);
}

.design-feedback-entry.is-peer.is-endorsed {
    border-left-color: #198754;
}

/* Peer designer confirmation ("+1") of a submitted catalog design */
.design-endorsement-panel {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e2e6e9;
    border-radius: 0.85rem;
    background: #f8f9fa;
}

.design-endorsement-panel strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 1.02rem;
}

.design-endorsement-panel p {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.design-endorsement-panel-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid #d8dee3;
    border-radius: 50%;
    background: #fff;
    color: #59636c;
}

.design-endorsement-panel-icon svg {
    width: 22px;
    height: 22px;
}

.design-endorsement-panel.is-ready {
    border-color: rgba(25, 135, 84, 0.25);
    background: rgba(25, 135, 84, 0.08);
}

.design-endorsement-panel.is-ready .design-endorsement-panel-icon {
    border-color: rgba(25, 135, 84, 0.25);
    color: #146c43;
}

.design-endorsement-panel.is-missing {
    border-color: rgba(174, 102, 10, 0.28);
    background: rgba(242, 215, 165, 0.28);
}

.design-endorsement-panel.is-missing .design-endorsement-panel-icon {
    border-color: rgba(174, 102, 10, 0.28);
    color: #9b5c08;
}

.design-endorsement-list {
    display: grid;
    margin: 0.75rem 0 0;
    padding: 0;
    gap: 0.35rem;
    list-style: none;
}

.design-endorsement-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.design-endorsement-list svg {
    width: 15px;
    height: 15px;
    color: #146c43;
}

.design-endorsement-list time {
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.design-endorsement-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(25, 135, 84, 0.25);
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.1);
    color: #146c43;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.design-endorsement-chip.is-empty {
    border-color: #d8dee3;
    background: #f3f5f7;
    color: #59636c;
}

.design-endorsement-chip.is-inline {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
    vertical-align: 0.05rem;
}

.design-endorsement-chip svg {
    width: 14px;
    height: 14px;
}

.design-endorsement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.design-endorsement-viewer-state {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.design-endorsement-viewer-state svg {
    width: 14px;
    height: 14px;
}

.design-endorsement-viewer-state.is-endorsed {
    color: #146c43;
}

.design-endorsement-viewer-state.is-open {
    color: #9b5c08;
}

.designer-design-status-badge.is-endorsed {
    background: rgba(20, 108, 67, 0.92);
}

.design-endorsement-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e6e9;
    border-radius: 0.85rem;
    background: #f8f9fa;
}

.design-endorsement-toggle .form-check-input {
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.design-endorsement-toggle .form-check-input:checked {
    border-color: #146c43;
    background-color: #198754;
}

.design-endorsement-toggle .form-check-label strong {
    display: block;
    font-size: 0.95rem;
}

.design-endorsement-toggle .form-check-label span {
    display: block;
    margin-top: 0.15rem;
    color: var(--app-muted);
    font-size: 0.82rem;
}

.design-endorsement-form-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
    color: #9b5c08;
    font-size: 0.82rem;
    font-weight: 700;
}

.design-endorsement-form-note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.design-endorsement-form-note.is-positive {
    color: #146c43;
}

/* Approved / not approved filter above the submitted-designs table */
.design-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.design-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    background: #fff;
    color: var(--app-ink);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.design-filter-tab:hover,
.design-filter-tab:focus-visible {
    border-color: var(--app-ink);
    color: var(--app-ink);
}

.design-filter-tab.is-active {
    border-color: #23313f;
    background: #23313f;
    color: #fff;
}

.design-filter-tab-count {
    display: inline-grid;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    place-items: center;
    border-radius: 999px;
    background: #f3f5f7;
    color: #59636c;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.design-filter-tab.is-active .design-filter-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.design-endorsement-modal {
    border: 0;
    border-top: 5px solid #9b5c08;
    border-radius: 1rem;
}

.design-endorsement-modal .modal-header {
    align-items: flex-start;
    border-bottom: 0;
    padding-bottom: 0.25rem;
}

.design-endorsement-modal .modal-body p {
    color: var(--app-muted);
}

.design-endorsement-modal .modal-footer {
    border-top: 0;
}

.designer-review-preview {
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 1rem;
    background: #ecefea;
    box-shadow: var(--app-shadow);
}

.designer-review-preview .invitation-canvas {
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
}

/* Privacy policy and shared site footer */
.site-footer {
    margin-top: 5rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(35, 49, 63, 0.12);
    background: #fffaf5;
    color: var(--app-muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--app-ink);
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--app-accent);
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.privacy-page {
    min-height: 100vh;
    background: #fbf8f3;
    color: var(--app-ink);
}

.privacy-shell {
    padding-bottom: 1rem;
}

.privacy-container {
    max-width: 900px;
}

.privacy-hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 53, 69, 0.12), transparent 28%),
        linear-gradient(145deg, #fffaf5 0%, #f7efe8 100%);
    border-bottom: 1px solid rgba(35, 49, 63, 0.08);
}

.privacy-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.privacy-lead {
    max-width: 760px;
    margin: 1.5rem 0 1rem;
    color: #53606b;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.privacy-updated {
    color: #707a82;
    font-size: 0.9rem;
    font-weight: 700;
}

.privacy-document {
    margin-top: 2rem;
    padding: clamp(1.4rem, 4vw, 3.4rem);
    border: 1px solid rgba(35, 49, 63, 0.1);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgba(35, 49, 63, 0.08);
}

.privacy-document section + section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #ece7e1;
}

.privacy-document h2 {
    margin: 0 0 1rem;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.privacy-document h3 {
    margin: 1.65rem 0 0.65rem;
    font-size: 1.02rem;
    font-weight: 800;
}

.privacy-document p,
.privacy-document li {
    color: #46535d;
    line-height: 1.78;
}

.privacy-document li + li {
    margin-top: 0.35rem;
}

.privacy-document a {
    color: #b42333;
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.privacy-placeholder {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--app-accent);
    border-radius: 0.3rem 0.8rem 0.8rem 0.3rem;
    background: #fff6f2;
    color: #46535d;
    line-height: 1.7;
}

.privacy-cookie-table {
    min-width: 680px;
    margin: 1.2rem 0;
    border-color: #e8e2dc;
}

.privacy-cookie-table th {
    background: #f8f3ee;
    color: var(--app-ink);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.privacy-cookie-table td {
    color: #46535d;
    line-height: 1.55;
}

.privacy-page .site-footer {
    margin-top: 4rem;
}

@media (max-width: 575.98px) {
    .privacy-page .app-brand img {
        max-width: 150px;
    }

    .privacy-document section + section {
        margin-top: 2.3rem;
        padding-top: 2.3rem;
    }
}

/* Homepage redesign */

.home-page {
    overflow-x: clip;
    background: #f8f6f0;
    color: var(--app-ink);
}

.home-page main {
    overflow: clip;
}

.home-page #templates,
.home-page #how-it-works,
.home-page #pricing,
.home-page #premium,
.home-page #custom-design,
.home-page #faq {
    /* The sticky navbar is 76px: this clears it and leaves a 16px breath, so a
       jump lands on the heading with the section's content already in view. */
    scroll-margin-top: 92px;
}

.home-page .home-navbar {
    z-index: 1040;
    min-height: 76px;
    background: rgba(250, 248, 242, 0.9);
    border-bottom-color: rgba(23, 61, 52, 0.09);
    box-shadow: 0 10px 34px rgba(24, 60, 52, 0.04);
}

.home-navbar-inner {
    position: relative;
    display: flex;
    min-height: 76px;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.3rem);
}

.home-page .app-brand img {
    width: clamp(156px, 15vw, 198px);
    mix-blend-mode: normal;
}

.home-nav-links {
    align-items: center;
    gap: 1.7rem;
    margin-left: auto;
}

.home-nav-links a,
.home-account-link {
    color: #40554f;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.home-nav-links a:hover,
.home-nav-links a:focus-visible,
.home-account-link:hover,
.home-account-link:focus-visible {
    color: var(--app-accent);
}

.home-account-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
}

.home-logout-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 0.35rem;
    /* A form button that has to look like the links beside it. */
    padding: 0;
    border: 0;
    background: none;
}

.home-logout-link svg {
    width: 0.95rem;
    height: 0.95rem;
}

.home-account-actions .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.home-account-actions .status-pill svg {
    width: 0.85rem;
    height: 0.85rem;
}

.home-mobile-nav {
    position: static;
    flex: 0 0 auto;
}

.home-mobile-nav summary {
    display: grid;
    width: 44px;
    height: 44px;
    cursor: pointer;
    place-items: center;
    border: 1px solid rgba(24, 60, 52, 0.18);
    border-radius: 12px;
    background: rgba(255, 254, 250, 0.76);
    color: var(--app-deep);
    list-style: none;
}

.home-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.home-mobile-nav summary:hover,
.home-mobile-nav summary:focus-visible,
.home-mobile-nav[open] summary {
    border-color: rgba(159, 80, 61, 0.34);
    background: #fff;
    color: var(--app-accent);
}

.home-mobile-nav summary svg {
    width: 1.2rem;
    height: 1.2rem;
    grid-column: 1;
    grid-row: 1;
}

.home-mobile-close-icon,
.home-mobile-nav[open] .home-mobile-menu-icon {
    display: none;
}

.home-mobile-nav[open] .home-mobile-close-icon {
    display: block;
}

.home-mobile-nav-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.65rem;
    border: 1px solid rgba(24, 60, 52, 0.12);
    border-radius: 18px;
    background: rgba(255, 254, 250, 0.98);
    box-shadow: 0 22px 55px rgba(24, 60, 52, 0.18);
    backdrop-filter: blur(18px);
}

.home-mobile-nav-panel a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    color: var(--app-deep);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.home-mobile-nav-panel a:hover,
.home-mobile-nav-panel a:focus-visible {
    background: var(--app-mint);
    color: var(--app-accent);
}

.home-mobile-nav-panel a svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.home-role-action .btn {
    min-height: 36px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(23, 61, 52, 0.09);
    background:
        radial-gradient(circle at 83% 15%, rgba(191, 209, 196, 0.66), transparent 25rem),
        radial-gradient(circle at 8% 92%, rgba(242, 215, 165, 0.24), transparent 25rem),
        linear-gradient(135deg, #fbf8f1 0%, #f1f2eb 58%, #e7eee8 100%);
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(79, 116, 105, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero::before {
    top: 10%;
    left: -7rem;
    width: 18rem;
    height: 18rem;
}

.home-hero::after {
    right: -9rem;
    bottom: -15rem;
    width: 34rem;
    height: 34rem;
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 600px;
    grid-template-columns: minmax(0, 1.03fr) minmax(470px, 0.97fr);
    gap: clamp(3rem, 5vw, 6.5rem);
    align-items: center;
    padding-top: clamp(3.25rem, 4.5vw, 4.25rem);
    padding-bottom: clamp(3.25rem, 4.5vw, 4.25rem);
}

.home-hero-copy {
    position: relative;
    z-index: 3;
}

.home-eyebrow {
    display: flex;
    margin: 0 0 1rem;
    align-items: center;
    gap: 0.65rem;
    color: var(--app-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-eyebrow > span {
    width: 2rem;
    height: 1px;
    flex: 0 0 2rem;
    background: currentColor;
}

.home-hero h1 {
    max-width: 690px;
    margin: 0;
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.6rem, 4.1vw, 3.9rem);
    font-weight: 400 !important;
    line-height: 1.03;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-hero-lead {
    max-width: 620px;
    margin: 1.2rem 0 0;
    color: #52645e;
    font-size: clamp(1.04rem, 1.55vw, 1.25rem);
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1.75rem;
}

.home-primary-action,
.home-final-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 16px 34px rgba(159, 80, 61, 0.22);
}

.home-primary-action:hover,
.home-primary-action:focus-visible,
.home-final-actions .btn:hover,
.home-final-actions .btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(159, 80, 61, 0.28);
}

.home-text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-deep);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.home-text-link svg {
    width: 1rem;
    height: 1rem;
}

.home-text-link:hover,
.home-text-link:focus-visible {
    color: var(--app-accent);
}

.home-free-note {
    display: flex;
    max-width: 590px;
    margin: 0;
    align-items: flex-start;
    gap: 0.55rem;
    color: #40574f;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
}

.home-hero-proof {
    max-width: 590px;
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(23, 61, 52, 0.11);
}

.home-free-note svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    margin-top: 0.14rem;
    color: var(--app-teal);
}

.home-hero-trust {
    display: flex;
    margin: 0.85rem 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    list-style: none;
}

.home-hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.home-hero-trust svg {
    width: 1rem;
    height: 1rem;
    color: var(--app-teal);
}

.home-hero-preview {
    position: relative;
    width: min(100%, 570px);
    height: 640px;
    justify-self: end;
}

.home-preview-glow {
    position: absolute;
    inset: 10% 1% 4% 8%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(2px);
}

.home-preview-ring {
    position: absolute;
    border: 1px solid rgba(79, 116, 105, 0.2);
    border-radius: 50%;
}

.home-preview-ring-one {
    inset: 2.8rem 0 1rem 4rem;
}

.home-preview-ring-two {
    inset: 6rem 3.5rem 5rem 0;
}

.home-event-page {
    position: absolute;
    z-index: 3;
    top: 1rem;
    left: 50%;
    width: 390px;
    overflow: hidden;
    border: 1px solid rgba(23, 61, 52, 0.12);
    border-radius: 26px;
    background: #fffdf9;
    box-shadow: 0 34px 85px rgba(25, 61, 52, 0.2);
    transform: translateX(-45%) rotate(1.4deg);
}

.home-preview-browser {
    display: grid;
    min-height: 38px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 0.85rem;
    border-bottom: 1px solid rgba(23, 61, 52, 0.08);
    background: #f7f5ef;
    color: #77827e;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-preview-browser > svg {
    width: 0.65rem;
    height: 0.65rem;
    justify-self: end;
}

.home-browser-dots {
    display: flex;
    gap: 0.25rem;
}

.home-browser-dots i {
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: #bcc8c1;
}

.home-event-cover {
    display: flex;
    height: 290px;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-position: center;
    background-size: cover;
    color: #354641;
    text-align: center;
}

.home-event-cover > span,
.home-event-cover > small {
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-event-cover > strong {
    margin: 1rem 0 0.85rem;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 1;
}

.home-event-details {
    padding: 1rem 1.1rem 1.1rem;
}

.home-event-fact {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid rgba(23, 61, 52, 0.08);
}

.home-event-fact > svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--app-accent);
}

.home-event-fact > span,
.home-mini-rsvp > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-event-fact small,
.home-mini-rsvp small {
    color: #7b8984;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.home-event-fact strong,
.home-mini-rsvp strong {
    margin-top: 0.08rem;
    color: var(--app-deep);
    font-size: 0.72rem;
}

.home-mini-countdown {
    display: flex;
    margin: 0.75rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: var(--app-mint);
}

.home-mini-label {
    color: #587068;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-mini-countdown time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.home-mini-countdown time > span {
    display: flex;
    align-items: baseline;
    gap: 0.16rem;
}

.home-mini-countdown time strong {
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 0.92rem;
    font-weight: 400;
}

.home-mini-countdown time small,
.home-mini-countdown time b {
    color: #60746e;
    font-size: 0.48rem;
    font-weight: 700;
}

.home-mini-countdown time b {
    opacity: 0.65;
}

.home-mini-rsvp {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.15rem 0.1rem;
}

.home-mini-rsvp-icon {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    place-items: center;
    border-radius: 50%;
    background: var(--app-deep);
    color: #fff;
}

.home-mini-rsvp-icon svg {
    width: 0.85rem;
    height: 0.85rem;
}

.home-guest-count {
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: #f2e9df;
    color: var(--app-accent);
    font-size: 0.58rem;
    font-weight: 800;
}

.home-preview-note {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(23, 61, 52, 0.1);
    border-radius: 14px;
    background: rgba(255, 254, 250, 0.94);
    color: var(--app-deep);
    box-shadow: 0 18px 42px rgba(24, 60, 52, 0.13);
    backdrop-filter: blur(12px);
}

.home-preview-note > svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--app-teal);
}

.home-preview-note > span:not(.home-note-avatar) {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.home-preview-note strong {
    font-size: 0.7rem;
}

.home-preview-note small {
    margin-top: 0.16rem;
    color: var(--app-muted);
    font-size: 0.58rem;
}

.home-preview-note-location {
    top: 7rem;
    left: 0;
}

.home-preview-note-rsvp {
    right: -0.5rem;
    bottom: 5.2rem;
}

.home-note-avatar {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--app-sun);
    color: #5d4d32;
    font-size: 0.62rem;
    font-weight: 800;
}

.home-section-heading {
    margin-bottom: clamp(1.4rem, 2.2vw, 2rem);
}

.home-section-heading h2,
.home-guest-copy h2,
.home-faq-intro h2,
.home-final-cta h2,
.home-custom-copy h2 {
    margin: 0;
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.95rem, 2.9vw, 2.6rem);
    font-weight: 400 !important;
    line-height: 1.12;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.home-section-heading-wide {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
}

.home-section-heading-wide > p,
.home-section-heading-centered > p:not(.home-eyebrow),
.home-guest-copy > p:not(.home-eyebrow),
.home-faq-intro > p:not(.home-eyebrow),
.home-custom-copy > p:not(.home-eyebrow),
.home-final-cta > p:not(.home-eyebrow) {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.65;
}

.home-section-heading-wide > p {
    max-width: 760px;
    margin-top: 0.75rem;
}

.home-benefit-strip {
    padding: clamp(3.25rem, 5vw, 4.25rem) 0;
    background: #fffdf8;
}

.home-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(23, 61, 52, 0.12);
    border-bottom: 1px solid rgba(23, 61, 52, 0.12);
}

.home-benefit-card {
    min-width: 0;
    padding: 2rem clamp(1.2rem, 2.3vw, 2.2rem) 2.2rem;
}

.home-benefit-card + .home-benefit-card {
    border-left: 1px solid rgba(23, 61, 52, 0.12);
}

.home-feature-icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1.3rem;
    place-items: center;
    border-radius: 14px;
    background: var(--app-mint);
    color: var(--app-teal);
}

.home-feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-benefit-card:nth-child(2) .home-feature-icon,
.home-benefit-card:nth-child(4) .home-feature-icon {
    background: #f5e8df;
    color: var(--app-accent);
}

.home-benefit-card h3 {
    margin: 0 0 0.65rem;
    color: var(--app-deep);
    font-size: 1.32rem;
}

.home-benefit-card p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.home-templates-section {
    padding: clamp(3.25rem, 5vw, 4.25rem) 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(242, 215, 165, 0.18), transparent 24rem),
        #f8f6f0;
}

.home-template-card {
    overflow: hidden;
    border: 1px solid rgba(23, 61, 52, 0.1);
    border-radius: 22px;
    background: #fffefa;
    box-shadow: 0 15px 42px rgba(24, 60, 52, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-template-card:hover,
.home-template-card:focus-within {
    border-color: rgba(79, 116, 105, 0.36);
    box-shadow: 0 25px 58px rgba(24, 60, 52, 0.14);
    transform: translateY(-7px);
}

.home-template-preview {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    container-type: inline-size;
}

/*
 * The design itself, drawn by assets/design-renderer.js exactly as the builder
 * and the invitation draw it. It fills the card flush, and stays transparent
 * until the renderer paints, so the link's own artwork shows through meanwhile.
 * The card is the link: nothing inside the design takes the pointer.
 */
.home-template-preview .invitation-canvas {
    z-index: 1;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    pointer-events: none;
    touch-action: auto;
}

.home-template-preview .background-clip {
    border-radius: 0;
}

.home-template-badge,
.home-template-arrow {
    position: absolute;
    z-index: 2;
    top: 0.85rem;
}

.home-template-badge {
    left: 0.85rem;
    padding: 0.43rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    background: rgba(255, 254, 250, 0.87);
    color: var(--app-deep);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.home-template-arrow {
    right: 0.85rem;
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 254, 250, 0.9);
    color: var(--app-deep);
    box-shadow: 0 8px 18px rgba(24, 60, 52, 0.1);
    transform: translateY(3px);
    transition: transform 180ms ease, background-color 180ms ease;
}

.home-template-preview:hover .home-template-arrow,
.home-template-preview:focus-visible .home-template-arrow {
    background: #fff;
    transform: translateY(0);
}

.home-template-arrow svg {
    width: 1rem;
    height: 1rem;
}

.home-template-body {
    display: flex;
    min-height: 245px;
    padding: 1.35rem;
    flex-direction: column;
}

.home-template-body h3 {
    margin: 0 0 0.55rem;
    font-size: 1.48rem;
}

.home-template-body h3 a {
    color: var(--app-deep);
    text-decoration: none;
}

.home-template-body h3 a:hover,
.home-template-body h3 a:focus-visible {
    color: var(--app-accent);
}

.home-template-body > p {
    margin: 0 0 1.3rem;
    flex: 1 1 auto;
    color: var(--app-muted);
    font-size: 0.86rem;
    line-height: 1.62;
}

.home-template-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
}

.home-template-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding-inline: 0.7rem;
    font-size: 0.84rem;
}

.home-template-actions .btn svg {
    width: 0.95rem;
    height: 0.95rem;
}

.home-steps-section {
    padding: 0 0 clamp(3.25rem, 5vw, 4.25rem);
    background: #f8f6f0;
}

.home-steps-panel {
    display: grid;
    overflow: hidden;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at 2% 0%, rgba(191, 209, 196, 0.16), transparent 18rem),
        var(--app-deep);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 30px 72px rgba(24, 60, 52, 0.18);
}

.home-steps-intro,
.home-step {
    min-height: 225px;
    padding: clamp(1.55rem, 2.25vw, 2rem);
}

.home-steps-intro {
    background: rgba(255, 255, 255, 0.035);
}

.home-steps-intro .home-eyebrow {
    color: var(--app-sun);
}

.home-steps-intro h2 {
    max-width: 390px;
    margin: 0 0 1rem;
    color: #fff;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.95rem, 2.5vw, 2.6rem);
    line-height: 1.03;
}

.home-steps-intro > p:last-child {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.88rem;
}

.home-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    /* A fixed first row keeps 01/02/03 on one baseline even when a step's
       heading or copy wraps to a different number of lines. */
    grid-template-rows: 1.4rem 1fr auto auto;
    align-content: stretch;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.home-step > span {
    position: static;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    color: var(--app-sage);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.home-step > svg {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 1.4rem;
    height: 1.4rem;
    margin: 0;
    color: var(--app-sun);
}

.home-step h3 {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 1.55rem;
}

.home-step p {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    line-height: 1.58;
}

.home-guest-section {
    position: relative;
    padding: clamp(3.25rem, 5vw, 4.25rem) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.72), transparent 30rem),
        linear-gradient(145deg, #edf3ee 0%, #e3ece5 100%);
}

.home-guest-section::after {
    content: "";
    position: absolute;
    top: -10rem;
    right: -9rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(79, 116, 105, 0.14);
    border-radius: 50%;
}

.home-guest-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}

.home-guest-copy > p:not(.home-eyebrow) {
    max-width: 560px;
    margin-top: 1.35rem;
}

.home-organizer-note {
    display: flex;
    max-width: 560px;
    margin-top: 2rem;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1.1rem;
    border: 1px solid rgba(23, 61, 52, 0.1);
    border-radius: 18px;
    background: rgba(255, 254, 250, 0.72);
    box-shadow: 0 16px 35px rgba(24, 60, 52, 0.07);
}

.home-organizer-note > span {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 2.7rem;
    place-items: center;
    border-radius: 14px;
    background: var(--app-deep);
    color: #fff;
}

.home-organizer-note svg {
    width: 1.2rem;
    height: 1.2rem;
}

.home-organizer-note strong {
    color: var(--app-deep);
    font-size: 0.95rem;
}

.home-organizer-note p {
    margin: 0.2rem 0 0;
    color: var(--app-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.home-guest-path {
    position: relative;
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-guest-path::before {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 2.65rem;
    width: 1px;
    background: rgba(79, 116, 105, 0.2);
}

.home-guest-path li {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 112px;
    grid-template-columns: 2.1rem 3.2rem 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(23, 61, 52, 0.09);
    border-radius: 20px;
    background: rgba(255, 254, 250, 0.88);
    box-shadow: 0 16px 36px rgba(24, 60, 52, 0.07);
}

.home-path-number {
    color: #82928c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.home-path-icon {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border-radius: 15px;
    background: var(--app-mint);
    color: var(--app-teal);
}

.home-guest-path li:nth-child(even) .home-path-icon {
    background: #f5e9df;
    color: var(--app-accent);
}

.home-path-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-guest-path h3 {
    margin: 0 0 0.22rem;
    color: var(--app-deep);
    font-size: 1.15rem;
}

.home-guest-path p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.home-guest-path li > svg {
    width: 1rem;
    height: 1rem;
    color: var(--app-teal);
}

.home-pricing-section {
    padding: clamp(3.25rem, 5vw, 4.25rem) 0;
    background: #fffdf8;
}

.home-section-heading-centered {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.home-section-heading-centered .home-eyebrow {
    justify-content: center;
}

.home-section-heading-centered > p:not(.home-eyebrow) {
    max-width: 700px;
    margin: 1.2rem auto 0;
}

.home-pricing-grid {
    display: grid;
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
}

.home-price-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: clamp(1.5rem, 2.8vw, 2.2rem);
    flex-direction: column;
    border: 1px solid rgba(23, 61, 52, 0.1);
    border-radius: 24px;
    background: #faf8f2;
    box-shadow: 0 16px 38px rgba(24, 60, 52, 0.06);
}

.home-price-card-featured {
    border-color: var(--app-deep);
    background: var(--app-deep);
    color: #fff;
    box-shadow: 0 26px 58px rgba(24, 60, 52, 0.2);
}

.home-price-label {
    display: inline-flex;
    min-height: 27px;
    width: fit-content;
    align-items: center;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    background: var(--app-mint);
    color: var(--app-teal);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-price-card-featured .home-price-label {
    background: rgba(242, 215, 165, 0.16);
    color: var(--app-sun);
}

.home-price-card h3 {
    margin: 1.4rem 0 0;
    color: var(--app-deep);
    font-size: 1.55rem;
}

.home-price-card-featured h3 {
    color: #fff;
}

.home-price {
    display: flex;
    margin: 0.9rem 0 0.85rem;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1;
}

.home-price strong {
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.6rem, 4vw, 3.7rem);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.home-price-card-featured .home-price strong {
    color: #fff;
}

.home-price span {
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.home-price-card-featured .home-price span {
    color: rgba(255, 255, 255, 0.58);
}

.home-price-card > p:not(.home-price) {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.86rem;
    line-height: 1.62;
}

.home-price-card-featured > p:not(.home-price) {
    color: rgba(255, 255, 255, 0.67);
}

.home-price-card ul {
    display: grid;
    margin: 1.4rem 0;
    padding: 1.25rem 0;
    gap: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    list-style: none;
}

.home-price-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
}

.home-price-card li svg {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--app-sun);
}

.home-price-card-featured .btn {
    margin-top: auto;
}

.home-price-note {
    display: flex;
    margin-top: auto;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1.5rem;
    color: #667871;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.home-price-note svg {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
    margin-top: 0.12rem;
    color: var(--app-accent);
}

.home-price-link {
    display: inline-flex;
    min-height: 42px;
    margin-top: 1rem;
    align-items: center;
    gap: 0.45rem;
    color: var(--app-deep);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.home-price-link svg {
    width: 0.9rem;
    height: 0.9rem;
}

.home-price-link:hover,
.home-price-link:focus-visible {
    color: var(--app-accent);
}

.home-custom-section {
    padding: 0 0 clamp(3.25rem, 5vw, 4.25rem);
    background: #fffdf8;
}

.home-custom-panel {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: 0.65fr 1.45fr 0.8fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(2rem, 5vw, 4.2rem);
    border-radius: 30px;
    background:
        radial-gradient(circle at 7% 12%, rgba(242, 215, 165, 0.19), transparent 15rem),
        linear-gradient(135deg, #264b41 0%, #173d34 100%);
    color: #fff;
    box-shadow: 0 30px 75px rgba(24, 60, 52, 0.2);
}

.home-custom-panel::after {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: -10rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.home-custom-mark {
    position: relative;
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.home-custom-mark span {
    color: var(--app-sage);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-custom-mark strong {
    color: #fff;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 400;
}

.home-custom-mark svg {
    position: absolute;
    top: 11%;
    right: 10%;
    width: 1.25rem;
    color: var(--app-sun);
}

.home-custom-copy,
.home-custom-action {
    position: relative;
    z-index: 1;
}

.home-custom-copy .home-eyebrow {
    color: var(--app-sun);
}

.home-custom-copy h2 {
    color: #fff;
}

.home-custom-copy > p:not(.home-eyebrow) {
    max-width: 580px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.66);
}

.home-custom-copy ul {
    display: flex;
    margin: 1.25rem 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    list-style: none;
}

.home-custom-copy li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 700;
}

.home-custom-copy li svg {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--app-sun);
}

.home-custom-action {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.home-custom-action > span {
    color: var(--app-sage);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-custom-action > strong {
    margin: 0.35rem 0 1.3rem;
    color: #fff;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    font-weight: 400;
    line-height: 1.05;
}

.home-custom-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--app-deep);
    font-size: 0.86rem;
    white-space: nowrap;
}

.home-custom-action .btn:hover,
.home-custom-action .btn:focus-visible {
    color: var(--app-deep);
    transform: translateY(-2px);
}

.home-custom-action small {
    max-width: 260px;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    line-height: 1.5;
}

.home-faq-section {
    padding: clamp(3.25rem, 5vw, 4.25rem) 0;
    border-top: 1px solid rgba(23, 61, 52, 0.08);
    background: #f8f6f0;
}

.home-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(560px, 1.25fr);
    align-items: start;
    gap: clamp(3rem, 8vw, 8rem);
}

.home-faq-intro {
    position: sticky;
    top: 120px;
}

.home-faq-intro > p:not(.home-eyebrow) {
    max-width: 470px;
    margin-top: 1.2rem;
}

.home-faq-intro .home-text-link {
    margin-top: 1.2rem;
}

.home-faq-list {
    border-top: 1px solid rgba(23, 61, 52, 0.14);
}

.home-faq-list details {
    border-bottom: 1px solid rgba(23, 61, 52, 0.14);
}

.home-faq-list summary {
    display: grid;
    min-height: 76px;
    cursor: pointer;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.25rem;
    color: var(--app-deep);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
    display: none;
}

.home-faq-list summary svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 180ms ease;
}

.home-faq-list details[open] summary svg {
    transform: rotate(45deg);
}

.home-faq-list details > div {
    overflow: hidden;
}

.home-faq-list details p {
    max-width: 680px;
    margin: -0.2rem 0 0;
    padding: 0 3.2rem 1.5rem 0.25rem;
    color: var(--app-muted);
    font-size: 0.9rem;
    line-height: 1.72;
}

.home-faq-list summary:hover,
.home-faq-list summary:focus-visible {
    color: var(--app-accent);
    outline: none;
}

.home-faq-list summary:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(159, 80, 61, 0.28);
}

.home-final-section {
    padding: 0 0 clamp(3.25rem, 5vw, 4.25rem);
    background: #f8f6f0;
}

.home-final-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6.5rem);
    border-radius: 32px;
    background:
        radial-gradient(circle at 88% 15%, rgba(242, 215, 165, 0.3), transparent 18rem),
        linear-gradient(135deg, #f3e9df 0%, #ead9ca 100%);
    box-shadow: 0 25px 65px rgba(75, 58, 45, 0.1);
}

.home-final-cta::before {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: -11rem;
    width: 27rem;
    height: 27rem;
    border: 1px solid rgba(159, 80, 61, 0.16);
    border-radius: 50%;
}

.home-final-cta h2 {
    position: relative;
    max-width: 850px;
}

.home-final-cta > p:not(.home-eyebrow) {
    position: relative;
    max-width: 690px;
    margin-top: 1.25rem;
    color: #5f625c;
    font-size: 1rem;
}

.home-final-sparkle {
    position: absolute;
    top: clamp(2rem, 5vw, 4rem);
    right: clamp(2rem, 6vw, 5rem);
    display: grid;
    width: 4.4rem;
    height: 4.4rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.68);
    color: var(--app-accent);
}

.home-final-sparkle svg {
    width: 1.65rem;
    height: 1.65rem;
}

.home-final-actions {
    position: relative;
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.3rem;
}

.home-final-actions > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #58665f;
    font-size: 0.8rem;
    font-weight: 800;
}

.home-final-actions > span svg {
    width: 1rem;
    height: 1rem;
    color: var(--app-teal);
}

.home-page .home-footer {
    margin-top: 0;
    padding: 1.7rem 0;
    border-top-color: rgba(23, 61, 52, 0.12);
    background: #fffdf8;
}

.home-footer-inner {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 1rem 1.5rem;
}

.home-footer-brand img {
    display: block;
    width: 138px;
    height: auto;
}

.home-footer-inner > span {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(23, 61, 52, 0.12);
    font-size: 0.78rem;
}

.home-footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.7rem 1.25rem;
}

.home-footer-links a {
    font-size: 0.78rem;
}

.home-page a:focus-visible,
.home-page button:focus-visible {
    outline: 3px solid rgba(159, 80, 61, 0.3);
    outline-offset: 3px;
}

/* --- Always-reachable call to action in the navbar -------------------- */

.home-nav-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.05rem;
    border-radius: 999px;
    background: var(--app-accent);
    color: #fffdf8;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-nav-cta:hover,
.home-nav-cta:focus-visible {
    background: #87402f;
    color: #fffdf8;
}

.home-nav-cta svg {
    width: 0.9rem;
    height: 0.9rem;
}

.home-nav-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.home-nav-flag {
    display: inline-flex;
    height: 1.15rem;
    align-items: center;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: var(--app-sun);
    color: #64491a;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-mobile-nav-panel .home-nav-flag {
    margin-left: 0.45rem;
}

/* --- Premium as a second hero action, beside the free one ------------- */

.home-premium-action {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.2rem;
    border: 1px solid rgba(23, 61, 52, 0.22);
    border-radius: 999px;
    background: var(--app-panel);
    color: var(--app-deep);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.home-premium-action:hover,
.home-premium-action:focus-visible {
    border-color: var(--app-deep);
    color: var(--app-deep);
}

.home-premium-tag {
    display: inline-flex;
    height: 1.5rem;
    align-items: center;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: var(--app-deep);
    color: var(--app-sun);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-premium-action-price {
    color: var(--app-muted);
    font-weight: 600;
}

/* --- Tier chips above the design grid --------------------------------- */

.home-tier-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: clamp(1.25rem, 2vw, 1.6rem);
}

.home-tier-chip {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.05rem;
    border: 1px solid rgba(23, 61, 52, 0.22);
    border-radius: 999px;
    background: var(--app-panel);
    color: var(--app-deep);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.home-tier-chip svg {
    width: 0.95rem;
    height: 0.95rem;
}

a.home-tier-chip svg {
    color: #9c7a33;
}

a.home-tier-chip:hover,
a.home-tier-chip:focus-visible {
    border-color: var(--app-deep);
    color: var(--app-deep);
}

.home-tier-chip-active {
    border-color: var(--app-deep);
    background: var(--app-deep);
    color: #fffdf8;
}

.home-tier-note {
    margin-left: auto;
    color: var(--app-muted);
    font-size: 0.84rem;
}

/* --- The Premium band ------------------------------------------------- */

.home-premium-section {
    padding: 0 0 clamp(3.25rem, 5vw, 4.25rem);
    background: #f8f6f0;
}

.home-premium-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.75rem, 3.4vw, 2.75rem) clamp(1.75rem, 4vw, 3rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 4% 0%, rgba(224, 189, 118, 0.14), transparent 20rem),
        linear-gradient(135deg, var(--app-deep) 0%, #1d4a3f 100%);
    box-shadow: 0 30px 72px rgba(24, 60, 52, 0.18);
}

.home-premium-copy .home-eyebrow {
    color: #e0bd76;
}

.home-premium-copy h2 {
    margin: 0;
    color: #fff;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.85rem, 2.7vw, 2.4rem);
    font-weight: 400 !important;
    line-height: 1.14;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.home-premium-copy > p:not(.home-eyebrow) {
    max-width: 470px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.68;
}

.home-premium-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
    margin-top: 1.6rem;
}

.home-premium-cta {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.6rem;
    border: 0;
    border-radius: 999px;
    background: #e0bd76;
    color: #22301c;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.home-premium-cta:hover,
.home-premium-cta:focus-visible {
    background: #d0a854;
    color: #22301c;
}

.home-premium-cta svg {
    width: 1.05rem;
    height: 1.05rem;
}

.home-premium-price {
    display: flex;
    flex-direction: column;
}

.home-premium-price strong {
    color: #fff;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.home-premium-price small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
}

.home-premium-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-premium-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(224, 189, 118, 0.42);
    border-radius: 18px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 40px rgba(8, 24, 19, 0.34);
    transition: transform 0.25s ease;
}

.home-premium-card:hover,
.home-premium-card:focus-visible {
    transform: translateY(-4px);
}

.home-premium-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    height: 1.4rem;
    align-items: center;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: var(--app-deep);
    color: var(--app-sun);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/*
 * A slot the paid catalog has not filled yet. Designers are still adding
 * Premium designs, so the slot is a ghost of a premium card rather than a hole:
 * the same frame, dashed, around a blank invitation whose only line is
 * "Uskoro". Everything inside is sized in the card's own width, so it keeps its
 * proportions from the three-across desktop card down to a phone's.
 */
.home-premium-ghost {
    overflow: hidden;
    border-style: dashed;
    border-color: rgba(224, 189, 118, 0.5);
    background: rgba(255, 253, 248, 0.035);
    box-shadow: none;
    container-type: inline-size;
}

.home-premium-ghost:hover {
    transform: none;
}

.home-premium-ghost-sheet {
    position: absolute;
    top: 17%;
    left: 21%;
    width: 58%;
    height: 58%;
    border: 1px solid rgba(224, 189, 118, 0.2);
    border-radius: 5px;
    background: rgba(255, 253, 248, 0.035);
}

.home-premium-ghost-sheet.is-back {
    transform: rotate(-7deg);
}

.home-premium-ghost-sheet.is-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6cqw;
    border-color: rgba(224, 189, 118, 0.42);
    background: rgba(255, 253, 248, 0.07);
    box-shadow: 0 10px 24px rgba(8, 24, 19, 0.3);
    transform: rotate(2deg);
}

.home-premium-ghost-mark {
    display: grid;
    width: 17cqw;
    height: 17cqw;
    place-items: center;
    border: 1px solid rgba(224, 189, 118, 0.5);
    border-radius: 50%;
    color: #e0bd76;
}

.home-premium-ghost-mark svg {
    width: 8cqw;
    height: 8cqw;
    stroke-width: 1.6;
}

.home-premium-ghost-label {
    color: #e0bd76;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(0.72rem, 10cqw, 1.3rem);
    font-style: italic;
    line-height: 1;
}

.home-premium-ghost-lines {
    display: grid;
    gap: 3.2cqw;
    justify-items: center;
}

.home-premium-ghost-lines span {
    display: block;
    height: 1px;
    background: rgba(224, 189, 118, 0.3);
}

.home-premium-ghost-lines span:nth-child(1) {
    width: 34cqw;
}

.home-premium-ghost-lines span:nth-child(2) {
    width: 22cqw;
}

.home-premium-ghost-lines span:nth-child(3) {
    width: 28cqw;
}

/* --- The Premium price card ------------------------------------------- */

.home-price-card-premium {
    border-color: #d9bd85;
    box-shadow: 0 18px 44px rgba(146, 114, 48, 0.12);
}

.home-price-label-premium {
    gap: 0.35rem;
    background: var(--app-sun);
    color: #64491a;
}

.home-price-label-premium svg {
    width: 0.8rem;
    height: 0.8rem;
}

.home-price-thumbs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.home-price-thumbs span {
    display: block;
    width: 3.25rem;
    height: 4.1rem;
    border: 1px solid rgba(23, 61, 52, 0.1);
    border-radius: 0.55rem;
    background-position: center;
    background-size: cover;
}

.home-price-card .home-price-link {
    margin-top: auto;
    padding-top: 1rem;
}

/* --- Premium beside the closing call to action ------------------------ */

.home-final-premium {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.25rem;
    border: 1px solid rgba(23, 61, 52, 0.26);
    border-radius: 999px;
    color: var(--app-deep);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.home-final-premium:hover,
.home-final-premium:focus-visible {
    border-color: var(--app-deep);
    background: rgba(255, 253, 248, 0.6);
    color: var(--app-deep);
}


@media (max-width: 1199.98px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
        gap: 2.5rem;
    }

    .home-hero h1 {
        font-size: clamp(2.5rem, 5vw, 3.3rem);
    }

    .home-hero-preview {
        height: 610px;
    }

    .home-event-page {
        width: 365px;
    }

    .home-event-cover {
        height: 270px;
    }

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

    .home-benefit-card:nth-child(3) {
        border-left: 0;
    }

    .home-benefit-card:nth-child(n + 3) {
        border-top: 1px solid rgba(23, 61, 52, 0.12);
    }

    .home-steps-panel {
        grid-template-columns: 1.25fr repeat(3, 1fr);
    }

    .home-steps-intro {
        min-height: 225px;
        grid-column: auto;
    }

    .home-steps-intro h2,
    .home-steps-intro > p:last-child {
        max-width: 360px;
    }

    .home-step {
        min-height: 225px;
    }

    .home-guest-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(470px, 1.2fr);
        gap: 3rem;
    }

    .home-custom-panel {
        grid-template-columns: 0.55fr 1.35fr 0.85fr;
        gap: 2rem;
    }

    .home-faq-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
        gap: 4rem;
    }
}

@media (max-width: 991.98px) {
    .home-logout-link {
        width: 36px;
        justify-content: center;
        border: 1px solid rgba(24, 60, 52, 0.18);
        border-radius: 10px;
    }

    .home-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 4.5rem;
        padding-bottom: 2rem;
    }

    .home-hero-copy {
        max-width: 800px;
    }

    .home-hero-preview {
        width: min(100%, 600px);
        height: 625px;
        justify-self: center;
    }

    .home-event-page {
        width: 390px;
    }

    .home-event-cover {
        height: 290px;
    }

    .home-section-heading-wide {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-section-heading-wide > p {
        max-width: 680px;
    }

    .home-steps-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-steps-intro {
        min-height: auto;
        grid-column: 1 / -1;
    }

    .home-steps-intro h2,
    .home-steps-intro > p:last-child {
        max-width: 760px;
    }

    .home-step {
        min-height: 210px;
    }

    .home-guest-grid,
    .home-faq-grid {
        grid-template-columns: 1fr;
    }

    .home-guest-copy {
        max-width: 760px;
    }

    .home-guest-path {
        max-width: 760px;
    }

    .home-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .home-price-card {
        min-height: auto;
    }

    .home-custom-panel {
        grid-template-columns: 0.45fr 1fr;
    }

    .home-custom-action {
        grid-column: 2;
    }

    .home-faq-intro {
        position: static;
        max-width: 760px;
    }

    .home-faq-list {
        max-width: 820px;
    }
}

@media (max-width: 767.98px) {
    .home-page #templates,
    .home-page #how-it-works,
    .home-page #pricing,
    .home-page #premium,
    .home-page #custom-design,
    .home-page #faq {
        scroll-margin-top: 80px;
    }

    .home-page .home-navbar,
    .home-navbar-inner {
        min-height: 66px;
    }

    .home-page .app-brand img {
        width: 150px;
    }

    .home-account-actions {
        gap: 0.45rem;
    }

    .home-login-link {
        font-size: 0.8rem;
    }

    .home-hero-grid {
        padding-top: 2.5rem;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 9vw, 3.1rem);
    }

    .home-hero-preview {
        height: 570px;
    }

    .home-event-page {
        width: min(390px, 76vw);
        transform: translateX(-50%) rotate(1deg);
    }

    .home-preview-note-location {
        left: 1rem;
    }

    .home-preview-note-rsvp {
        right: 0.5rem;
    }

    .home-preview-note-location,
    .home-preview-note-rsvp {
        display: none;
    }

    .home-benefit-grid {
        grid-template-columns: 1fr;
        border-bottom: 0;
    }

    .home-benefit-card + .home-benefit-card,
    .home-benefit-card:nth-child(3) {
        border-top: 1px solid rgba(23, 61, 52, 0.12);
        border-left: 0;
    }

    .home-benefit-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
        padding: 1.45rem 0;
    }

    .home-feature-icon {
        grid-row: 1 / 3;
        margin: 0;
    }

    .home-benefit-card h3,
    .home-benefit-card p {
        grid-column: 2;
    }

    .home-steps-panel {
        grid-template-columns: 1fr;
    }

    .home-steps-intro {
        grid-column: auto;
    }

    .home-step {
        display: grid;
        min-height: auto;
        grid-template-columns: 2.5rem auto 1fr;
        align-items: center;
        gap: 0.55rem 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .home-step > span {
        position: static;
        grid-row: 1 / 3;
    }

    .home-step > svg {
        margin: 0;
        grid-row: 1 / 3;
    }

    .home-step h3,
    .home-step p {
        grid-column: 3;
    }

    .home-step h3 {
        grid-row: 1;
        align-self: end;
    }

    .home-step p {
        grid-row: 2;
        align-self: start;
    }

    .home-guest-path li {
        grid-template-columns: 2.8rem 1fr auto;
        gap: 0.8rem;
    }

    .home-path-number {
        display: none;
    }

    .home-path-icon {
        width: 2.8rem;
        height: 2.8rem;
    }

    .home-guest-path::before {
        display: none;
    }

    .home-custom-panel {
        grid-template-columns: 1fr;
    }

    .home-custom-mark {
        width: 180px;
    }

    .home-custom-action {
        grid-column: auto;
    }

    .home-final-sparkle {
        display: none;
    }

    .home-footer-inner {
        grid-template-columns: 1fr auto;
    }

    .home-footer-brand {
        grid-column: 1;
    }

    .home-footer-inner > span {
        grid-column: 2;
        grid-row: 1;
        padding-left: 0;
        border-left: 0;
        text-align: right;
    }

    .home-footer-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 1rem;
        border-top: 1px solid rgba(23, 61, 52, 0.1);
    }
}

@media (max-width: 575.98px) {
    .home-mobile-nav-panel {
        grid-template-columns: 1fr;
    }

    .home-page .app-navbar .home-dashboard-action {
        display: inline-flex;
    }

    .home-page .app-brand img {
        width: 138px;
    }

    .home-navbar-inner {
        gap: 0.6rem;
    }

    .home-login-link {
        display: none;
    }

    .home-account-actions .btn {
        min-height: 36px;
        padding-inline: 0.75rem;
    }

    .home-nav-cta {
        display: none;
    }

    .home-hero-grid {
        padding-top: 2.25rem;
        padding-bottom: 0.8rem;
    }

    .home-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .home-hero h1 {
        font-size: clamp(2.2rem, 10vw, 2.8rem);
    }

    .home-hero-lead {
        font-size: 1rem;
    }

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

    .home-primary-action {
        width: 100%;
        padding-inline: 0.9rem;
        font-size: 0.96rem;
    }

    .home-hero-actions .home-text-link {
        justify-content: center;
    }

    .home-hero-trust {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .home-hero-preview {
        width: calc(100% + 1.5rem);
        height: 545px;
        margin-left: -0.75rem;
    }

    .home-event-page {
        top: 0.5rem;
        width: min(335px, 84vw);
    }

    .home-preview-browser {
        min-height: 34px;
    }

    .home-event-cover {
        height: 235px;
        padding: 1.3rem;
    }

    .home-event-cover > strong {
        font-size: 1.9rem;
    }

    .home-event-details {
        padding: 0.75rem 0.85rem 0.9rem;
    }

    .home-preview-note-location {
        display: none;
    }

    .home-preview-note-rsvp {
        display: none;
    }

    .home-mini-countdown {
        padding: 0.55rem 0.65rem;
    }

    .home-mini-label {
        display: none;
    }

    .home-mini-countdown time {
        width: 100%;
        justify-content: center;
    }

    .home-section-heading h2,
    .home-guest-copy h2,
    .home-faq-intro h2,
    .home-final-cta h2,
    .home-custom-copy h2 {
        font-size: clamp(2.25rem, 11vw, 3.1rem);
    }

    .home-template-body {
        min-height: auto;
    }

    .home-guest-path li {
        min-height: 100px;
        padding: 0.9rem;
    }

    .home-guest-path li > svg {
        display: none;
    }

    .home-guest-path p {
        font-size: 0.77rem;
    }

    .home-custom-mark {
        width: 142px;
    }

    .home-custom-copy ul {
        display: grid;
    }

    .home-custom-action .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .home-faq-list summary {
        min-height: 70px;
        font-size: 1.08rem;
    }

    .home-faq-list details p {
        padding-right: 0.5rem;
        font-size: 0.85rem;
    }

    .home-final-cta {
        margin-right: -0.25rem;
        margin-left: -0.25rem;
        padding: 2.2rem 1.35rem;
        border-radius: 24px;
    }

    .home-final-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-final-actions .btn {
        width: 100%;
        padding-inline: 0.9rem;
        font-size: 0.92rem;
    }

    .home-final-actions > span {
        justify-content: center;
        text-align: center;
    }

    .home-footer-inner {
        grid-template-columns: 1fr;
    }

    .home-footer-brand,
    .home-footer-inner > span,
    .home-footer-links {
        grid-column: 1;
        grid-row: auto;
    }

    .home-footer-inner > span {
        text-align: left;
    }
}

@media (max-width: 380px) {
    .home-page .app-brand img {
        width: 116px;
    }

    .home-navbar-inner {
        gap: 0.4rem;
    }

    .home-account-actions {
        gap: 0.3rem;
    }

    .home-account-actions .btn {
        padding-inline: 0.6rem;
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .home-template-card:hover,
    .home-template-card:focus-within,
    .home-primary-action:hover,
    .home-primary-action:focus-visible,
    .home-final-actions .btn:hover,
    .home-final-actions .btn:focus-visible {
        transform: none;
    }
}

/* --- The new Premium and CTA pieces, down the breakpoints ------------- */

@media (max-width: 1199.98px) {
    .home-premium-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .home-premium-copy > p:not(.home-eyebrow) {
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .home-tier-note {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .home-nav-cta {
        padding: 0 0.85rem;
        font-size: 0.78rem;
    }

    .home-premium-action,
    .home-final-premium {
        width: 100%;
        justify-content: center;
    }

    .home-premium-cta {
        width: 100%;
        justify-content: center;
    }

    .home-premium-actions {
        gap: 0.9rem;
    }

    .home-premium-price {
        flex-direction: row;
        align-items: baseline;
        gap: 0.4rem;
    }

    .home-tier-chip {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .home-premium-gallery {
        gap: 0.65rem;
    }

    .home-premium-badge {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-premium-card:hover,
    .home-premium-card:focus-visible {
        transform: none;
    }
}


.public-brand-footer {
    display: block;
    padding: 1.5rem 1rem 1.75rem;
    border-top: 0;
    flex: 0 0 auto;
}

.public-brand-footer-card {
    box-sizing: border-box;
    display: flex;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    align-items: center;
    gap: 0.9rem 1.15rem;
    border: 1px solid rgba(56, 87, 79, 0.12);
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--app-shadow);
    flex-wrap: wrap;
    text-transform: none;
    letter-spacing: normal;
}

.public-brand-footer .public-brand-footer-mark {
    display: flex;
    width: auto;
    min-width: 0;
    padding: 0.15rem 0.3rem;
    flex-direction: column;
    gap: 0.35rem;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
}

.public-brand-footer .public-brand-footer-mark > span {
    color: var(--app-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Transparent wordmark: mix-blend-mode is explicitly cleared so the
   logo reads correctly on light and dark ambient tones alike. */
.public-brand-footer .public-brand-footer-mark img {
    display: block;
    width: 150px;
    height: auto;
    mix-blend-mode: normal;
}

.public-brand-footer .public-brand-footer-mark:hover,
.public-brand-footer .public-brand-footer-mark:focus-visible {
    background: rgba(227, 236, 229, 0.6);
}

.public-brand-footer-copy {
    display: flex;
    min-width: 0;
    margin: 0;
    flex: 1 1 150px;
    flex-direction: column;
    gap: 0.1rem;
    text-transform: none;
    letter-spacing: normal;
}

.public-brand-footer-copy strong {
    color: var(--app-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.public-brand-footer-copy span {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
}

.public-brand-footer .public-brand-footer-cta {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.1rem;
    border-radius: 12px;
    background: var(--app-accent);
    color: #fffdf8;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    box-shadow: 0 10px 24px rgba(159, 80, 61, 0.24);
    white-space: nowrap;
}

.public-brand-footer .public-brand-footer-cta:hover,
.public-brand-footer .public-brand-footer-cta:focus-visible {
    background: #87402f;
    color: #fffdf8;
}

/* --- Dark ambient (set by public-invite.js) ------------------ */

.public-page.is-ambient-dark {
    background:
        radial-gradient(circle at 50% -15%, rgba(255, 255, 255, 0.1), transparent 42rem),
        linear-gradient(155deg, var(--public-ambient-top), var(--public-ambient-bottom));
    background-attachment: fixed;
}

.public-page.is-ambient-dark .public-brand-footer-card {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 22px 60px rgba(8, 12, 32, 0.3);
}

.public-page.is-ambient-dark .public-brand-footer .public-brand-footer-cta {
    box-shadow: 0 10px 26px rgba(8, 12, 32, 0.35);
}

@media (max-width: 575.98px) {
    .public-brand-footer {
        padding: 1.1rem 0.85rem 1.35rem;
    }

    .public-brand-footer-card {
        padding: 0.9rem 1rem;
        gap: 0.75rem 0.9rem;
    }

    .public-brand-footer .public-brand-footer-mark img {
        width: 128px;
    }

    .public-brand-footer .public-brand-footer-cta {
        width: 100%;
        justify-content: center;
    }
}
