:root {
    color-scheme: light;
    --bg: #f6efe5;
    --surface: #ffffff;
    --surface-soft: #edf7f2;
    --surface-warm: #fff4e6;
    --cream: #fff9ef;
    --ink: #18211d;
    --muted: #68736e;
    --line: #e8ded3;
    --line-strong: #d9cabd;
    --accent: #0c8a74;
    --accent-dark: #076252;
    --accent-soft: #dff3ec;
    --coral: #e6533f;
    --coral-dark: #c94131;
    --coral-soft: #ffe5dd;
    --gold: #f4bd4f;
    --blue: #426fbe;
    --shadow: 0 24px 70px rgba(63, 46, 35, 0.12);
    --soft-shadow: 0 14px 34px rgba(63, 46, 35, 0.09);
    --card-shadow: 0 1px 1px rgba(63, 46, 35, 0.04), 0 16px 38px rgba(63, 46, 35, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(230, 83, 63, 0.14), transparent 28rem),
        linear-gradient(180deg, #fbf6ed 0%, var(--bg) 52%, #f2eadf 100%);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(12, 138, 116, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(230, 83, 63, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

main,
.app-container {
    width: min(1180px, calc(100% - 20px));
    margin: 0 auto;
    border: 1px solid rgba(232, 222, 211, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    overflow: clip;
}

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

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
}

p {
    margin: 0;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 20;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.site-footer,
.hero-section,
.section-inner,
.page-heading,
.creator-hero,
.creator-shell,
.creator-workbench,
.event-hero,
.share-strip,
.event-layout,
.dashboard-list,
.flash-wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    margin-block: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(232, 222, 211, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 34px rgba(63, 46, 35, 0.09);
    backdrop-filter: blur(16px);
}

.site-footer {
    display: grid;
    gap: 12px;
    margin-top: 36px;
    padding: 18px 0 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    line-height: 1.4;
}

.site-footer strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 0.82rem;
}

.site-footer span {
    display: block;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    z-index: 30;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    display: grid;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 14px;
    border: 1px solid rgba(234, 223, 213, 0.95);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 18px 46px rgba(42, 54, 48, 0.2);
    color: var(--ink);
}

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

.cookie-banner strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cookie-banner p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cookie-actions .button {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
    font-size: 0.85rem;
}

@media (min-width: 620px) {
    .cookie-banner {
        left: auto;
        margin: 0;
        grid-template-columns: minmax(0, 1fr) 210px;
        align-items: center;
    }
}

.legal-page .legal-heading,
.legal-page .legal-content {
    max-width: 760px;
}

.legal-page .legal-content {
    display: grid;
    gap: 10px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.legal-page .legal-content h2 {
    margin-top: 8px;
    font-size: 1rem;
}

.legal-page .legal-content h2:first-child {
    margin-top: 0;
}

.legal-page .legal-content p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.legal-page .legal-content a {
    color: var(--accent);
    font-weight: 850;
}

.brand,
.nav-actions,
.hero-actions,
.preview-top,
.preview-actions,
.share-strip,
.sticky-actions,
.dashboard-actions,
.event-meta,
.phone-status,
.phone-chip-row,
.form-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand {
    min-width: 0;
    font-weight: 900;
}

.brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--coral), var(--accent));
    color: #fff;
    font-size: 0.78rem;
    box-shadow: 0 10px 20px rgba(230, 83, 63, 0.22);
}

.nav-actions {
    justify-content: flex-end;
    font-weight: 800;
}

.nav-actions a:not(.button) {
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--coral);
    border-radius: 12px;
    background: var(--coral);
    background-color: var(--coral);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    forced-color-adjust: none;
    outline: 0;
    box-shadow: inset 0 0 0 999px var(--coral), 0 12px 26px rgba(230, 83, 63, 0.24);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    box-shadow: inset 0 0 0 999px var(--coral-dark), 0 16px 30px rgba(201, 65, 49, 0.25);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 3px solid rgba(230, 83, 63, 0.28);
    outline-offset: 2px;
}

a.button,
a.button:link,
a.button:visited,
button.button {
    border: 1px solid var(--coral) !important;
    background: var(--coral) !important;
    background-color: var(--coral) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.button-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: 0 8px 20px rgba(63, 46, 35, 0.06);
}

a.button-secondary,
a.button-secondary:link,
a.button-secondary:visited,
button.button-secondary {
    border: 1px solid var(--line) !important;
    background: var(--surface) !important;
    background-color: var(--surface) !important;
    color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink);
}

.button-secondary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

a.button:hover,
a.button-secondary:hover,
button.button:hover,
button.button-secondary:hover {
    border: 1px solid var(--accent) !important;
    background: var(--accent) !important;
    background-color: var(--accent) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

a.button:not(.button-secondary):hover,
button.button:not(.button-secondary):hover {
    border: 1px solid var(--coral-dark) !important;
    background: var(--coral-dark) !important;
    background-color: var(--coral-dark) !important;
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.92rem;
}

.hero-section {
    display: grid;
    gap: 28px;
    padding: 28px 0 48px;
}

.hero-copy {
    animation: rise-in 0.58s ease both;
}

.hero-copy h1,
.page-heading h1,
.event-hero h1 {
    max-width: 780px;
    font-size: clamp(2.25rem, 11vw, 4.4rem);
}

.hero-text {
    max-width: 680px;
    margin: 18px 0 24px;
    color: var(--muted);
    font-size: clamp(1.04rem, 4vw, 1.22rem);
}

.hero-actions .button,
.sticky-actions .button,
.share-strip .button {
    flex: 1 1 220px;
}

.eyebrow,
.event-type {
    margin: 0 0 10px;
    color: var(--coral);
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.event-preview,
.preview-phone {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(232, 222, 211, 0.94);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
}

.event-preview {
    min-height: 350px;
    padding: 22px;
    animation: float-in 0.64s 0.08s ease both;
}

.event-preview::after,
.preview-phone::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.72) 45%, transparent 58% 100%);
    transform: translateX(-120%);
    animation: shine 4.2s ease-in-out infinite;
}

.event-preview h2 {
    margin: 42px 0 8px;
    font-size: clamp(1.7rem, 8vw, 2.2rem);
}

.preview-meta,
.template-card p,
.form-panel-heading p,
.page-heading p,
.empty-state p,
.dashboard-card p,
.event-block p,
.side-panel small,
.phone-block span,
.creator-preview p {
    color: var(--muted);
}

.countdown-pill,
.preview-type,
.preview-actions span,
.view-count,
.phone-status span,
.phone-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 900;
}

.countdown-pill,
.phone-status span:last-child {
    background: var(--coral-soft);
    color: var(--coral-dark);
}

.preview-type,
.view-count,
.phone-status span:first-child,
.phone-chip-row span {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.preview-list {
    display: grid;
    gap: 10px;
    margin: 28px 0;
}

.preview-list span {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.section-band {
    background: linear-gradient(180deg, rgba(255, 249, 239, 0.74), rgba(237, 247, 242, 0.56));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-inner {
    padding: 52px 0;
}

.two-columns,
.split-cta,
.event-layout,
.dashboard-card {
    display: grid;
    gap: 22px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 22px;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 6vw, 2.15rem);
}

h3 {
    margin-bottom: 8px;
}

.question-grid,
.template-grid,
.checkbox-grid,
.form-grid,
.template-picker {
    display: grid;
    gap: 12px;
}

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

.question-grid span,
.template-card,
.form-panel,
.template-option,
.event-block,
.side-panel,
.dashboard-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.question-grid span {
    padding: 15px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(63, 46, 35, 0.06);
    animation: rise-in 0.5s ease both;
}

.template-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 74vw);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.template-card {
    min-height: 176px;
    padding: 18px;
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(63, 46, 35, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.template-card:hover {
    transform: translateY(-3px);
    border-color: rgba(12, 138, 116, 0.28);
    box-shadow: var(--soft-shadow);
}

.template-dot {
    display: block;
    width: 12px;
    height: 12px;
    margin-bottom: 34px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 18px 0 0 var(--gold), 36px 0 0 var(--blue);
}

.accent-band {
    background: linear-gradient(135deg, var(--accent-soft), var(--cream));
}

.split-cta {
    align-items: center;
}

.page-heading {
    padding: 34px 0 20px;
}

.page-heading p {
    max-width: 680px;
    margin-top: 14px;
    font-size: 1.05rem;
}

.creator-shell {
    display: grid;
    gap: 18px;
    align-items: start;
}

.creator-hero {
    display: grid;
    gap: 14px;
    padding: 34px 0 18px;
}

.creator-hero h1 {
    max-width: 860px;
    font-size: clamp(2.1rem, 10vw, 4.1rem);
}

.creator-hero > p:last-child {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1.02rem, 3vw, 1.18rem);
}

.stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.stepper span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--cream);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
}

.stepper b,
.card-index {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.86rem;
}

.stepper .is-active {
    border-color: rgba(230, 83, 63, 0.34);
    background: var(--coral-soft);
    color: var(--coral-dark);
}

.stepper .is-active b,
.card-index {
    background: var(--coral);
    color: #fff;
}

.creator-workbench {
    display: grid;
    gap: 18px;
    align-items: start;
    padding-bottom: 28px;
}

.editor-form,
.danger-zone {
    width: 100%;
}

.creator-preview {
    order: -1;
}

.creator-workbench .creator-preview {
    order: 0;
}

.work-card,
.bonus-card {
    margin: 14px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
    animation: rise-in 0.45s ease both;
}

.paste-card {
    border-color: rgba(230, 83, 63, 0.22);
    background:
        linear-gradient(135deg, rgba(255, 229, 221, 0.64), rgba(255, 255, 255, 0.92) 42%),
        var(--surface);
}

.card-title-row,
.ai-actions,
.input-footer,
.phone-url,
.phone-modules {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-title-row {
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title-row > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.card-title-row h2 {
    margin-bottom: 0;
    font-size: clamp(1.25rem, 5vw, 1.62rem);
}

.help-dot,
.ai-badge {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    min-height: 30px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 950;
}

.paste-zone {
    gap: 10px;
}

.paste-zone > span,
.preview-label {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.paste-zone textarea {
    min-height: 260px;
    border-color: rgba(230, 83, 63, 0.22);
    background: #fffdf9;
    box-shadow: inset 0 1px 0 rgba(63, 46, 35, 0.04);
}

.input-footer {
    justify-content: space-between;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.ai-actions {
    margin-top: 16px;
}

.button-ai {
    gap: 8px;
    background: linear-gradient(135deg, var(--coral), #f06f55);
}

.type-grid,
.module-grid,
.structured-list {
    display: grid;
    gap: 10px;
}

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

.type-tile,
.module-tile,
.structured-row {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.type-tile,
.module-tile {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 14px;
    cursor: pointer;
}

.type-tile input,
.module-tile input {
    position: absolute;
    inset: 12px 12px auto auto;
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
}

.type-icon,
.module-tile > span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: var(--cream);
    font-size: 1.28rem;
}

.type-tile strong,
.module-tile strong,
.structured-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.type-tile:has(input:checked),
.module-tile:has(input:checked) {
    border-color: rgba(230, 83, 63, 0.48);
    background: #fff8f4;
    box-shadow: 0 0 0 3px rgba(230, 83, 63, 0.11), 0 14px 30px rgba(63, 46, 35, 0.08);
}

.type-tile:hover,
.module-tile:hover,
.structured-row:hover {
    transform: translateY(-2px);
}

.structured-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
    padding: 12px;
}

.structured-row > span {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--accent-soft);
}

.structured-row small {
    color: var(--muted);
}

.structured-row em {
    grid-row: span 2;
    color: var(--accent-dark);
    font-style: normal;
    font-weight: 950;
}

.bonus-card {
    display: grid;
    gap: 14px;
    border-color: rgba(12, 138, 116, 0.22);
    background: linear-gradient(135deg, var(--accent-soft), var(--cream));
}

.bonus-card p,
.preview-note {
    color: var(--muted);
}

.form-progress {
    position: sticky;
    top: 76px;
    z-index: 6;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(12, 138, 116, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(63, 46, 35, 0.08);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

.bonus-card .form-progress {
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #d7e4df;
}

progress::-webkit-progress-bar {
    background: #d7e4df;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--coral), var(--accent));
    transition: width 0.25s ease;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--coral), var(--accent));
}

.form-panel {
    margin: 14px 0;
    padding: 18px;
    box-shadow: var(--card-shadow);
    animation: rise-in 0.45s ease both;
}

.form-panel:nth-of-type(2) {
    animation-delay: 0.05s;
}

.form-panel:nth-of-type(3) {
    animation-delay: 0.1s;
}

.form-panel:nth-of-type(4) {
    animation-delay: 0.15s;
}

.form-panel.is-featured {
    border-color: rgba(230, 83, 63, 0.2);
    background:
        linear-gradient(135deg, rgba(255, 229, 221, 0.72), rgba(255, 249, 239, 0.9)),
        var(--surface-warm);
}

.form-panel-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.step-badge {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(12, 138, 116, 0.18);
}

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

.template-option {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 96px;
    padding: 16px 16px 16px 50px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.template-option input {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
}

.template-option span {
    font-weight: 950;
}

.template-option small {
    color: var(--muted);
}

.template-option:has(input:checked) {
    border-color: rgba(230, 83, 63, 0.48);
    background: #fff8f4;
    box-shadow: 0 0 0 3px rgba(230, 83, 63, 0.12), 0 14px 28px rgba(63, 46, 35, 0.08);
}

.template-option:hover {
    transform: translateY(-2px);
}

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

label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

textarea {
    resize: vertical;
    min-height: 220px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(230, 83, 63, 0.13);
}

input:focus,
textarea:focus {
    transform: translateY(-1px);
}

.wide-label {
    grid-column: 1 / -1;
}

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

.check-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.check-tile input {
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
}

.check-tile:has(input:checked) {
    border-color: rgba(12, 138, 116, 0.42);
    background: var(--surface-soft);
    box-shadow: 0 0 0 3px rgba(12, 138, 116, 0.1);
}

.check-tile:hover {
    transform: translateY(-2px);
}

.form-hint {
    justify-content: space-between;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.94rem;
}

.text-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--coral-dark);
    font-weight: 950;
    cursor: pointer;
}

.sticky-actions {
    position: static;
    z-index: 7;
    justify-content: flex-end;
    margin-top: 8px;
    padding: 14px 0 18px;
    background: transparent;
}

.danger-zone {
    width: min(920px, calc(100% - 32px));
    margin: 18px auto 0;
    text-align: right;
}

.link-danger {
    border: 0;
    background: transparent;
    color: #9f2d23;
    font-weight: 900;
    cursor: pointer;
}

.preview-phone {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(237, 247, 242, 0.9), transparent 34%),
        var(--surface);
}

.preview-label {
    margin-bottom: 10px;
}

.phone-confetti {
    color: var(--coral);
    font-weight: 950;
    text-align: right;
}

.phone-avatar {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-top: 8px;
    border-radius: 18px;
    background: var(--coral-soft);
    font-size: 1.8rem;
}

.preview-phone h2 {
    margin-top: 28px;
    font-size: 1.75rem;
}

.preview-phone p {
    margin-top: 8px;
}

.phone-status {
    justify-content: space-between;
}

.phone-block {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.phone-chip-row {
    margin-top: 12px;
}

.phone-url {
    justify-content: space-between;
    margin-top: 18px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--cream);
}

.phone-url span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-url button {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.phone-modules {
    margin-top: 14px;
}

.phone-modules span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 900;
}

.preview-note {
    margin-top: 12px;
    font-size: 0.92rem;
}

.event-hero {
    display: grid;
    gap: 20px;
    padding: 38px 0 22px;
}

.event-meta span {
    color: var(--muted);
    font-weight: 800;
}

.countdown-box {
    display: grid;
    place-items: center;
    min-height: 130px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--coral), var(--accent-dark));
    color: #fff;
    text-align: center;
    animation: pulse-soft 2.8s ease-in-out infinite;
}

.countdown-box span {
    font-size: 2.2rem;
    font-weight: 950;
}

.countdown-box small {
    color: rgba(255, 255, 255, 0.74);
}

.share-strip {
    margin-bottom: 18px;
}

.event-layout {
    grid-template-columns: 1fr;
}

.event-blocks {
    display: grid;
    gap: 14px;
}

.event-block,
.side-panel,
.dashboard-card,
.empty-state {
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.event-block {
    animation: rise-in 0.45s ease both;
}

.event-block h2,
.side-panel h2,
.dashboard-card h2,
.empty-state h2 {
    font-size: 1.32rem;
}

.clean-list,
.timeline-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.clean-list li,
.timeline-list li {
    padding: 10px 0 10px 18px;
    border-left: 3px solid var(--coral);
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.link-list a {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    font-weight: 900;
}

.copy-message {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.qr-code {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 14px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
}

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

.mini-stats span {
    display: block;
    font-size: 2rem;
    font-weight: 950;
}

.dashboard-list {
    display: grid;
    gap: 14px;
}

.dashboard-card {
    align-items: center;
}

.dashboard-card.is-archived {
    opacity: 0.62;
}

.dashboard-actions {
    justify-content: flex-start;
}

.empty-state {
    width: min(720px, calc(100% - 32px));
    margin: 40px auto;
    text-align: center;
}

.home-hero,
.feature-strip,
.transform-section,
.modules-section {
    width: min(1080px, calc(100% - 32px));
    margin-inline: auto;
}

.home-hero {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: 42px 0 28px;
}

.pill-note {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #f2e5d4;
    border-radius: 999px;
    background: #fff9f1;
    color: #283636;
    font-weight: 900;
}

.home-copy h1 {
    margin-top: 18px;
    font-size: clamp(2.45rem, 11vw, 4.3rem);
    line-height: 1.04;
}

.home-copy h1 span {
    color: #ff5b52;
}

.home-copy > p:not(.pill-note):not(.micro-copy) {
    max-width: 620px;
    margin-top: 16px;
    color: #526264;
    font-size: 1.12rem;
}

.home-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.home-types span {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-height: 72px;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.home-types b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff6ed;
    font-size: 1.45rem;
}

.promise-box {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8ef, #fff);
    box-shadow: inset 0 0 0 1px #f1e6d8;
    color: #4f5e60;
}

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

.micro-copy {
    margin-top: 10px;
    color: #6b777a;
    font-size: 0.86rem;
    text-align: center;
}

.hero-art {
    position: relative;
    min-height: 340px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% 12%, rgba(224, 247, 243, 0.9), transparent 7rem),
        linear-gradient(180deg, #fff, #f3fbf8);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(23, 32, 28, 0.1);
}

.paper-preview {
    position: absolute;
    left: 12%;
    right: 12%;
    top: 70px;
    padding: 42px 20px 20px;
    border: 1px solid #eadfd1;
    border-radius: 18px;
    background: #fffdf9;
    text-align: center;
    box-shadow: 0 20px 40px rgba(23, 32, 28, 0.14);
    transform: rotate(-4deg);
}

.paper-avatar {
    position: absolute;
    top: -30px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff2df;
    border: 4px solid #fff;
    font-size: 2rem;
    transform: translateX(-50%);
}

.paper-preview h2 {
    font-size: 1.45rem;
}

.paper-preview p {
    margin-top: 8px;
    color: #526264;
}

.paper-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.paper-modules span {
    padding: 10px 8px;
    border-radius: 12px;
    background: #fff6ed;
    font-size: 0.8rem;
    font-weight: 900;
}

.hand-note {
    position: absolute;
    right: 18px;
    bottom: 28px;
    color: #39746d;
    font-weight: 900;
    transform: rotate(-8deg);
}

.feature-strip {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.feature-strip article {
    padding: 20px;
    border: 1px solid #e6e9e7;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 36px rgba(23, 32, 28, 0.06);
}

.feature-strip span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4db1a6, #227f77);
    font-size: 1.7rem;
}

.feature-strip h2 {
    font-size: 1.05rem;
}

.feature-strip p {
    margin-top: 8px;
    color: #5c6a6d;
}

.transform-section {
    display: grid;
    gap: 22px;
    margin-top: 22px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eaf8f5, #fff);
}

.transform-section h2 {
    color: #07505a;
}

.transform-section p {
    color: #526264;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.note-card,
.clean-card {
    padding: 16px;
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 12px 28px rgba(23, 32, 28, 0.09);
}

.note-card {
    transform: rotate(-3deg);
}

.clean-card {
    display: grid;
    gap: 7px;
}

.modules-section {
    padding: 48px 0 8px;
}

.template-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 32px;
    border-radius: 16px;
    background: #fff6ed;
    font-size: 1.7rem;
}

@media (min-width: 760px) {
    .home-hero {
        grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
        min-height: calc(100vh - 100px);
    }

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

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

    .transform-section {
        grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
        align-items: center;
    }
}

.empty-state .button {
    margin-top: 18px;
}

.flash {
    margin: 8px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--accent-dark);
    font-weight: 900;
}

@keyframes rise-in {
    from {
        transform: translateY(18px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes float-in {
    from {
        transform: translateY(22px) rotate(-1deg);
    }

    to {
        transform: translateY(0) rotate(0);
    }
}

@keyframes shine {
    0%,
    68% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

@keyframes pulse-soft {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(15, 123, 102, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(15, 123, 102, 0.12);
    }
}

@media (min-width: 560px) {
    .site-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

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

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

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

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

    .hero-actions .button,
    .sticky-actions .button,
    .share-strip .button {
        flex: 0 0 auto;
    }
}

@media (min-width: 860px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
        gap: 44px;
        align-items: center;
        min-height: calc(100vh - 92px);
        padding: 36px 0 58px;
    }

    .two-columns,
    .split-cta {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 36px;
    }

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

    .template-grid {
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
    }

    .creator-shell {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: 28px;
    }

    .creator-workbench {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: 28px;
    }

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

    .creator-preview {
        position: sticky;
        top: 92px;
        order: 0;
    }

    .event-hero {
        grid-template-columns: minmax(0, 1fr) 190px;
        align-items: end;
        width: min(980px, calc(100% - 32px));
        padding-top: 54px;
    }

    .event-layout {
        width: min(980px, calc(100% - 32px));
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 36px;
    }

    .side-panel {
        position: sticky;
        top: 92px;
    }

    .sticky-actions {
        position: sticky;
        bottom: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 249, 239, 0.96) 28%);
        backdrop-filter: blur(12px);
    }

    .dashboard-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard-actions {
        justify-content: flex-end;
    }
}

@media (min-width: 1080px) {
    .checkbox-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 420px) {
    main,
    .app-container {
        width: min(100% - 12px, 1180px);
        border-radius: 16px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        top: 6px;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Maquette-inspired creator flow */
body {
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 225, 196, 0.62), transparent 28rem),
        radial-gradient(circle at 86% 6%, rgba(225, 247, 242, 0.86), transparent 24rem),
        #fbfaf7;
}

.site-header {
    max-width: 1120px;
    border: 1px solid rgba(223, 229, 222, 0.75);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding-inline: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 40px rgba(23, 32, 28, 0.07);
}

.brand {
    font-size: 1.22rem;
}

.brand-mark {
    background: transparent;
    font-size: 1.55rem;
}

.brand strong {
    color: #ff5b52;
}

.brand small {
    font-size: 0.78em;
}

.button {
    border-color: #ff6158;
    background: linear-gradient(135deg, #ff7568, #ff4f4a);
    box-shadow: 0 16px 30px rgba(255, 91, 82, 0.22);
}

.button:hover {
    border-color: #e94a43;
    background: linear-gradient(135deg, #ff6a60, #e9443f);
}

.button-ai {
    border-color: #268f85;
    background: linear-gradient(135deg, #34a99c, #237f78);
    box-shadow: 0 16px 28px rgba(35, 127, 120, 0.2);
}

.button-ai:hover {
    border-color: #1f746d;
    background: linear-gradient(135deg, #2b9b91, #1f746d);
}

.creator-hero,
.creator-workbench {
    width: min(1080px, calc(100% - 32px));
    margin-inline: auto;
}

.creator-hero {
    padding: 28px 0 18px;
}

.creator-hero h1 {
    max-width: 760px;
    margin-top: 12px;
    font-size: clamp(2rem, 8vw, 3.3rem);
}

.creator-hero > p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 10px;
    color: #5f6f70;
    font-size: 1.06rem;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-width: 680px;
    margin-bottom: 22px;
    overflow: hidden;
}

.stepper span {
    min-width: 0;
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #7b8588;
    font-size: 0.78rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stepper span::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    border-top: 2px dashed #cfd8d6;
}

.stepper span:last-child::after {
    content: none;
}

.stepper b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccd7d5;
    background: #fff;
    color: #536062;
}

.stepper .is-active {
    color: #228077;
}

.stepper .is-active b {
    border-color: #228077;
    background: #228077;
    color: #fff;
}

.creator-workbench {
    display: grid;
    gap: 18px;
    align-items: start;
    overflow-x: clip;
}

.creator-workbench > * {
    min-width: 0;
}

.editor-form {
    display: grid;
    gap: 14px;
}

.work-card,
.bonus-card,
.creator-preview {
    border: 1px solid rgba(223, 229, 222, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 54px rgba(23, 32, 28, 0.08);
}

.work-card {
    padding: 18px;
}

.paste-card {
    background:
        linear-gradient(145deg, rgba(240, 251, 248, 0.92), rgba(255, 255, 255, 0.96)),
        #fff;
}

.card-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.card-title-row > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-row h2 {
    margin: 0;
    font-size: 1.08rem;
}

.card-index {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef7f4;
    color: #217d75;
    font-weight: 950;
}

.help-dot,
.ai-badge {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f5f7f6;
    color: #667477;
    font-size: 0.78rem;
    font-weight: 900;
}

.ai-badge {
    background: #fff4df;
    color: #9f6715;
}

.paste-zone {
    min-height: 210px;
    border: 2px dashed #a6cfca;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px;
}

.paste-zone span {
    color: #55706f;
    font-size: 0.9rem;
}

.paste-zone textarea {
    min-height: 190px;
    border: 0;
    padding: 10px 0 0;
    background: transparent;
    box-shadow: none;
}

.paste-zone textarea:focus {
    transform: none;
    box-shadow: none;
}

.input-footer,
.ai-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #6b777a;
    font-size: 0.88rem;
}

.ai-actions {
    justify-content: center;
    margin-top: 16px;
}

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

.type-tile,
.module-tile {
    position: relative;
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 94px;
    border: 1px solid #e5e9e7;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.type-tile:hover,
.module-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 32, 28, 0.08);
}

.type-tile input,
.module-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-tile:has(input:checked),
.module-tile:has(input:checked) {
    border-color: #23857b;
    box-shadow: 0 0 0 3px rgba(35, 133, 123, 0.13);
}

.type-icon,
.module-tile span {
    font-size: 1.65rem;
}

.type-tile strong,
.module-tile strong {
    font-size: 0.82rem;
}

.structured-list {
    overflow: hidden;
    border: 1px solid #e4e8e6;
    border-radius: 14px;
}

.structured-row {
    display: grid;
    grid-template-columns: 34px minmax(88px, 0.45fr) minmax(0, 1fr) 26px;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf0ef;
    background: #fff;
}

.structured-row:last-child {
    border-bottom: 0;
}

.structured-row small {
    color: #6b777a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.structured-row em {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #45ad5c;
    color: #fff;
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 950;
}

.bonus-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(135deg, #fff7ea, #fff);
}

.bonus-card p {
    color: #687577;
    margin-top: 3px;
}

.form-progress {
    position: static;
    top: auto;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.creator-preview {
    order: -1;
    padding: 14px;
}

.preview-label {
    margin-bottom: 12px;
    color: #5d696c;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: center;
}

.preview-phone {
    max-width: 360px;
    margin-inline: auto;
    padding: 24px 18px 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 166, 137, 0.28), transparent 5rem),
        radial-gradient(circle at 86% 18%, rgba(255, 205, 81, 0.32), transparent 5rem),
        linear-gradient(180deg, #fff7ec, #fff);
    box-shadow: 0 16px 38px rgba(23, 32, 28, 0.1);
    text-align: center;
}

.phone-confetti {
    color: #4baaa1;
    letter-spacing: 10px;
}

.phone-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 8px auto 14px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #ffe0d2;
    font-size: 2rem;
    box-shadow: 0 8px 18px rgba(23, 32, 28, 0.08);
}

.preview-phone h2 {
    margin: 0;
    font-size: 1.45rem;
}

.preview-phone p {
    margin-top: 8px;
    color: #5b686b;
}

.phone-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid #dbe8e5;
    border-radius: 999px;
    background: #f3fbf8;
    color: #217d75;
    font-weight: 900;
    font-size: 0.83rem;
}

.phone-url span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-url button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.phone-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.phone-modules span {
    padding: 8px;
    border: 1px solid #eee3d8;
    border-radius: 10px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 850;
}

.preview-note {
    margin: 12px auto 0;
    max-width: 360px;
    color: #667477;
    font-size: 0.9rem;
    text-align: center;
}

@media (min-width: 720px) {
    .type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (min-width: 980px) {
    .creator-workbench {
        grid-template-columns: minmax(0, 1fr) 350px;
    }

    .creator-preview {
        position: sticky;
        top: 92px;
        order: 0;
    }

    .sticky-actions {
        position: sticky;
        bottom: 0;
    }
}

@media (max-width: 560px) {
    .stepper span {
        font-size: 0.68rem;
    }

    .stepper b {
        width: 28px;
        height: 28px;
    }

    .structured-row {
        grid-template-columns: 28px minmax(0, 1fr) 24px;
    }

    .structured-row small {
        grid-column: 2 / 3;
    }
}

/* Maquette stricte : écrans accueil + création */
body.home-page,
body.creator-page {
    background: #f7f1e8;
    color: #152323;
}

body.home-page::before,
body.creator-page::before {
    display: none;
}

body.home-page .skip-link,
body.creator-page .skip-link {
    left: 50%;
    transform: translate(-50%, -150%);
}

body.home-page .skip-link:focus,
body.creator-page .skip-link:focus {
    transform: translate(-50%, 0);
}

body.home-page .site-header,
body.creator-page .site-header {
    position: relative;
    top: auto;
    width: min(510px, calc(100% - 20px));
    min-height: 68px;
    margin: 10px auto 0;
    padding: 0 24px;
    border: 1px solid #eadfd5;
    border-bottom-color: #eee7df;
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(70, 52, 38, 0.12);
    backdrop-filter: none;
}

body.creator-page .site-header {
    width: min(650px, calc(100% - 20px));
}

body.home-page main,
body.creator-page main {
    width: min(510px, calc(100% - 20px));
    margin: 0 auto;
    padding: 0;
    border: 1px solid #eadfd5;
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(70, 52, 38, 0.14);
    overflow: hidden;
}

body.creator-page main {
    width: min(650px, calc(100% - 20px));
}

body.home-page .site-footer,
body.creator-page .site-footer {
    width: min(510px, calc(100% - 32px));
    margin-top: 34px;
}

body.creator-page .site-footer {
    width: min(650px, calc(100% - 32px));
}

.brand {
    gap: 10px;
    color: #172323;
    font-size: 1.12rem;
    letter-spacing: 0;
}

.brand strong {
    color: #ff5b52;
}

.brand small {
    font-size: 0.72em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #fff5e8;
    color: inherit;
    font-size: 1.18rem;
    box-shadow: 0 8px 18px rgba(230, 83, 63, 0.12);
}

.nav-dashboard-link {
    display: none;
}

.menu-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-content: center;
    gap: 5px;
}

.menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 999px;
    background: #172323;
}

body.home-page .home-hero,
body.home-page .feature-strip,
body.home-page .transform-section,
body.home-page .modules-section {
    width: auto;
    margin: 0;
}

body.home-page .home-hero {
    display: block;
    min-height: auto;
    padding: 26px 22px 0;
    text-align: center;
}

body.home-page .pill-note {
    min-height: 30px;
    padding: 0 16px;
    border-color: #f0e5d8;
    background: #fff9f1;
    font-size: 0.83rem;
}

body.home-page .home-copy h1 {
    margin-top: 18px;
    font-size: clamp(2.05rem, 9.6vw, 2.82rem);
    line-height: 1.04;
}

body.home-page .home-copy > p:not(.pill-note):not(.micro-copy) {
    max-width: 410px;
    margin: 10px auto 0;
    color: #263235;
    font-size: 1rem;
    line-height: 1.5;
}

body.home-page .home-types {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

body.home-page .home-types span {
    min-height: 58px;
    color: #172323;
    font-size: 0.68rem;
    font-weight: 900;
}

body.home-page .home-types b {
    width: 36px;
    height: 32px;
    border-radius: 14px;
    background: #fff7ed;
    font-size: 1.42rem;
    line-height: 1;
}

body.home-page .promise-box {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 20px auto 0;
    padding: 14px 18px;
    border: 1px solid #efe1d3;
    border-radius: 13px;
    background: #fff7ec;
    text-align: center;
    box-shadow: none;
}

body.home-page .promise-box p {
    color: #253335;
    font-size: 0.92rem;
    line-height: 1.42;
}

body.home-page .hero-actions {
    justify-content: center;
    margin-top: 16px;
}

body.home-page .button,
body.creator-page .button {
    min-height: 48px;
    border-radius: 10px;
    background: #ff5b52 !important;
    border-color: #ff5b52 !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(255, 91, 82, 0.26);
}

body.home-page .hero-actions .button {
    width: min(324px, 100%);
}

body.home-page .micro-copy {
    margin-top: 9px;
    color: #566464;
    font-size: 0.72rem;
}

body.home-page .hero-art {
    position: relative;
    height: 158px;
    min-height: 158px !important;
    margin: 20px -22px 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 0 58%, #f3c582 58% 100%);
}

body.home-page .hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(219, 247, 244, 0.72), rgba(255, 245, 226, 0.42)),
        linear-gradient(180deg, transparent 0 54%, rgba(170, 98, 43, 0.1) 54% 100%);
}

.shelf-scene {
    position: absolute;
    inset: auto 18px 8px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 2.8rem;
}

.shelf-scene .vase {
    font-size: 3.6rem;
}

.shelf-scene .photo,
.shelf-scene .envelope {
    transform: translateY(-4px) rotate(-4deg);
}

.shelf-scene .camera {
    font-size: 3.2rem;
}

body.home-page .paper-preview,
body.home-page .hand-note {
    display: none;
}

body.home-page .feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 22px 18px 0;
}

body.home-page .feature-strip article {
    min-height: 150px;
    padding: 14px 10px;
    border: 1px solid #eee4dc;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    text-align: center;
}

body.home-page .feature-strip article > span {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #1f9b8a;
    font-size: 1.42rem;
}

body.home-page .feature-strip h2 {
    font-size: 0.86rem;
}

body.home-page .feature-strip p {
    margin-top: 8px;
    color: #273436;
    font-size: 0.73rem;
    line-height: 1.24;
}

body.home-page .transform-section {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 16px 14px 0;
    padding: 20px 16px;
    border-radius: 13px;
    background: #eaf8f4;
    text-align: center;
}

body.home-page .transform-section h2 {
    color: #095b60;
    font-size: 1.18rem;
}

body.home-page .transform-section p:not(.eyebrow) {
    margin-top: 8px;
    color: #324243;
    font-size: 0.84rem;
}

body.home-page .before-after {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    align-items: center;
    gap: 8px;
}

body.home-page .note-card,
body.home-page .clean-card {
    padding: 13px;
    border: 1px solid #eadfd5;
    border-radius: 9px;
    background: #fffdf9;
    color: #1c292a;
    box-shadow: 0 10px 24px rgba(42, 61, 58, 0.1);
    font-size: 0.75rem;
    text-align: left;
}

body.home-page .modules-section {
    padding: 24px 18px 24px;
}

body.home-page .section-heading {
    margin-bottom: 12px;
}

body.home-page .modules-section h2 {
    max-width: 420px;
    font-size: 1.32rem;
}

body.home-page .template-grid {
    display: grid !important;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
}

body.home-page .template-card {
    min-height: 118px;
    padding: 14px;
    border-radius: 10px;
    box-shadow: none;
}

body.home-page .template-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 13px;
    font-size: 1.35rem;
}

body.home-page .template-card h3 {
    font-size: 0.92rem;
}

body.home-page .template-card p {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.35;
}

body.creator-page .creator-hero,
body.creator-page .creator-workbench {
    width: auto;
    margin: 0;
}

body.creator-page .creator-hero {
    padding: 18px 26px 12px;
}

body.creator-page .stepper {
    max-width: none;
    gap: 0;
    margin: 0 0 20px;
}

body.creator-page .stepper span {
    gap: 7px;
    color: #283b45;
    font-size: 0.72rem;
}

body.creator-page .stepper b {
    width: 30px;
    height: 30px;
    background: #fff;
    border-color: #ccd5d5;
}

body.creator-page .stepper .is-active b {
    background: #278b80;
    border-color: #278b80;
}

body.creator-page .eyebrow {
    color: #ff5b52;
    font-size: 0.72rem;
}

body.creator-page .creator-hero h1 {
    max-width: 520px;
    margin-top: 10px;
    font-size: clamp(1.75rem, 5.2vw, 2.28rem);
}

body.creator-page .creator-hero > p:not(.eyebrow) {
    max-width: 530px;
    color: #5b6872;
    font-size: 0.98rem;
}

body.creator-page .creator-workbench {
    display: block;
    padding: 0 22px 24px;
}

body.creator-page .editor-form {
    display: grid;
    gap: 12px;
}

body.creator-page .work-card,
body.creator-page .bonus-card,
body.creator-page .creator-preview {
    border: 1px solid #e9dfd7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(61, 47, 37, 0.07);
}

body.creator-page .work-card {
    padding: 16px;
}

body.creator-page .card-title-row {
    margin-bottom: 12px;
}

body.creator-page .card-title-row h2 {
    font-size: 1rem;
}

body.creator-page .card-index {
    width: 24px;
    height: 24px;
    background: #e3f7f2;
    color: #168073;
    font-size: 0.75rem;
}

body.creator-page .paste-zone {
    padding: 12px;
    border: 1.5px dashed #88c6bc;
    border-radius: 13px;
    background: #fbfffd;
}

body.creator-page .paste-zone > span {
    color: #5d6c6f;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.creator-page textarea {
    min-height: 156px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1b2829;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.45;
    resize: vertical;
}

body.creator-page .input-footer {
    margin-top: 8px;
    color: #5d6c6f;
    font-size: 0.78rem;
}

body.creator-page .ai-actions {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 12px;
}

body.creator-page .button-ai {
    width: min(310px, 100%);
    min-height: 44px;
    border-radius: 999px;
    background: #278b80 !important;
    border-color: #278b80 !important;
    box-shadow: 0 12px 26px rgba(39, 139, 128, 0.22);
    font-size: 0.88rem;
}

body.creator-page .text-button {
    color: #ff5b52;
    font-size: 0.78rem;
    font-weight: 900;
}

body.creator-page .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.creator-page .type-tile {
    min-height: 76px;
    padding: 9px 6px;
    border-radius: 10px;
}

body.creator-page .type-icon,
body.creator-page .module-tile span {
    width: 32px;
    height: 32px;
    border-radius: 13px;
    font-size: 1.22rem;
}

body.creator-page .type-tile strong {
    font-size: 0.65rem;
    line-height: 1.15;
}

body.creator-page .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

body.creator-page .form-grid label {
    gap: 6px;
    color: #273436;
    font-size: 0.82rem;
    font-weight: 900;
}

body.creator-page input,
body.creator-page select {
    min-width: 0;
    min-height: 42px;
    border-color: #ddd5cf;
    border-radius: 9px;
    font-size: 0.9rem;
}

body.creator-page .structured-list {
    overflow: hidden;
    border: 1px solid #e9dfd7;
    border-radius: 12px;
}

body.creator-page .structured-row {
    grid-template-columns: 34px 110px minmax(0, 1fr) 24px;
    gap: 10px;
    min-height: 46px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #eee6dd;
    border-radius: 0;
    box-shadow: none;
}

body.creator-page .structured-row:last-child {
    border-bottom: 0;
}

body.creator-page .structured-row > span {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #e0f7f0;
    font-size: 1rem;
}

body.creator-page .structured-row strong {
    font-size: 0.8rem;
}

body.creator-page .structured-row small {
    min-width: 0;
    color: #5d6c6f;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.creator-page .structured-row em {
    width: 20px;
    height: 20px;
}

body.creator-page .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.creator-page .module-tile {
    min-height: 78px;
    padding: 10px 6px;
    border-radius: 10px;
}

body.creator-page .module-tile strong {
    font-size: 0.72rem;
    line-height: 1.16;
}

body.creator-page .bonus-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff7ea;
}

body.creator-page .bonus-card strong {
    font-size: 0.96rem;
}

body.creator-page .bonus-card p {
    color: #5d6c6f;
    font-size: 0.75rem;
}

body.creator-page .form-progress {
    gap: 8px;
}

body.creator-page progress {
    height: 8px;
}

body.creator-page .sticky-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body.creator-page .sticky-actions .button {
    width: 100%;
}

body.creator-page .button-secondary {
    background: #fff !important;
    border-color: #e9dfd7 !important;
    color: #1c292a !important;
    -webkit-text-fill-color: #1c292a;
    box-shadow: none;
}

body.creator-page .creator-preview {
    margin-top: 12px;
    padding: 14px;
    text-align: center;
}

body.creator-page .preview-label {
    color: #5d6c6f;
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.creator-page .preview-phone {
    max-width: 300px;
    margin: 12px auto 0;
    padding: 36px 18px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff3e8, #fff8db 55%, #eefaf6);
}

body.creator-page .phone-avatar {
    width: 56px;
    height: 56px;
    margin-top: -14px;
    border: 5px solid #ffe1d8;
    background: #fff;
    font-size: 1.45rem;
}

body.creator-page .preview-phone h2 {
    margin-top: 12px;
    font-size: 1.18rem;
}

body.creator-page .preview-phone p {
    font-size: 0.82rem;
}

body.creator-page .phone-url {
    min-height: 46px;
    margin-top: 12px;
    border-radius: 999px;
}

body.creator-page .phone-modules {
    gap: 8px;
}

body.creator-page .phone-modules span {
    min-height: 34px;
    border-radius: 9px;
    color: #007064;
}

@media (min-width: 600px) {
    body.creator-page .editor-form {
        grid-template-columns: minmax(0, 1fr) 238px;
        align-items: start;
    }

    body.creator-page .paste-card {
        grid-column: 1;
        grid-row: 1;
    }

    body.creator-page .editor-form > .work-card:nth-of-type(2) {
        grid-column: 2;
        grid-row: 1;
    }

    body.creator-page .editor-form > .work-card:nth-of-type(3) {
        grid-column: 2;
        grid-row: 2;
    }

    body.creator-page .structured-card {
        grid-column: 1;
        grid-row: 2;
    }

    body.creator-page .modules-card {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    body.creator-page .bonus-card,
    body.creator-page .sticky-actions {
        grid-column: 1 / -1;
    }

    body.creator-page .type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.creator-page .module-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    body.home-page .site-header,
    body.creator-page .site-header {
        padding-inline: 18px;
    }

    .brand {
        font-size: 1rem;
    }

    body.home-page .home-hero {
        padding-inline: 16px;
    }

    body.home-page .home-types {
        gap: 5px;
    }

    body.home-page .home-types span {
        font-size: 0.58rem;
    }

    body.home-page .feature-strip {
        gap: 7px;
        padding-inline: 12px;
    }

    body.home-page .feature-strip article {
        padding-inline: 7px;
    }

    body.creator-page .creator-hero,
    body.creator-page .creator-workbench {
        padding-inline: 16px;
    }

    body.creator-page .stepper span {
        font-size: 0.62rem;
    }

    body.creator-page .type-grid,
    body.creator-page .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.creator-page .structured-row {
        grid-template-columns: 30px minmax(0, 1fr) 22px;
    }

    body.creator-page .structured-row small {
        grid-column: 2;
    }

    body.creator-page .bonus-card {
        grid-template-columns: 1fr;
    }
}
