/* ============================================
   Sections — Problem, How, Features, Comparison, Beta
   Warm cream + terracotta editorial
   ============================================ */

/* ── Shared ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.section-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-title em {
    font-family: var(--font-brand);
    font-style: italic;
    font-weight: 400;
    font-size: 1.1em;
    color: var(--terracotta);
}

.section-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
}

.section-body p + p {
    margin-top: 16px;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-bar.hidden {
    transform: translateY(-100%);
}

.announcement-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    transition: color 0.3s ease;
}

.announcement-link:hover {
    color: var(--text-on-dark);
}

.announcement-icon {
    font-size: 0.9rem;
}

.announcement-cta {
    font-weight: 700;
    color: var(--gold);
    margin-left: 4px;
}

/* ============================================
   Problem Section — warm cream + photo + cards
   ============================================ */
.section-problem {
    padding: var(--section-padding) 0;
    background: var(--cream-warm);
}

.section-problem .container {
    max-width: var(--container);
}

/* Empathetic intro: copy + photo */
.problem-intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 8px;
}

.problem-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    aspect-ratio: 4 / 3;
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.problem-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: left;
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta-soft);
    border-radius: var(--radius);
    margin-bottom: 18px;
    color: var(--terracotta);
}

.problem-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.problem-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   How It Works — 3 steps
   ============================================ */
.section-how {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 56px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.how-step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.how-step-number {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--terracotta);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
}

.how-step h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.how-step p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.how-step-connector {
    width: 48px;
    height: 2px;
    background: var(--border-light);
    margin-top: 26px;
    flex-shrink: 0;
    position: relative;
}

.how-step-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--terracotta);
    border-top: 2px solid var(--terracotta);
    transform: rotate(45deg);
}

/* ============================================
   Demo Full-Width Section — dark bg
   ============================================ */
.section-demo-full {
    padding: var(--section-padding) 0;
    background: var(--ink);
    text-align: center;
}

.demo-full-header {
    max-width: 600px;
    margin: 0 auto 48px;
}

.demo-full-subtitle {
    font-size: 1rem;
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    margin-top: 12px;
}

.demo-full-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.demo-full-wrapper .editor-demo {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.demo-full-caption {
    font-size: 0.88rem;
    color: var(--text-on-dark-muted);
    margin-top: 28px;
    font-style: italic;
}

.demo-full-cta {
    margin-top: 32px;
}

/* ============================================
   Features Grid — 2×3
   ============================================ */
.section-features {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.features-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 52px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.feature-card {
    padding: 32px 28px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta-soft);
    border-radius: var(--radius);
    margin-bottom: 16px;
    color: var(--terracotta);
}

.feature-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Comparison Section — VS TheFork
   ============================================ */
.section-comparison {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.comparison-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

/* ── The Calculation Block ── */
/* ============================================
   "Il conto della serva" — styled as an actual
   paper receipt. The metaphor is in the copy
   ("conto della serva"); the layout should look
   like it, not like a bullet list in a box.
   ============================================ */
.receipt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 640px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
}

.receipt-paper {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: var(--white);
    padding: 28px 26px 34px;
    box-shadow: var(--shadow-lg);
    /* Torn-edge bottom, drawn with a repeating triangle mask */
    --tear-size: 14px;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% calc(100% - var(--tear-size)),
        95% 100%, 90% calc(100% - var(--tear-size)),
        85% 100%, 80% calc(100% - var(--tear-size)),
        75% 100%, 70% calc(100% - var(--tear-size)),
        65% 100%, 60% calc(100% - var(--tear-size)),
        55% 100%, 50% calc(100% - var(--tear-size)),
        45% 100%, 40% calc(100% - var(--tear-size)),
        35% 100%, 30% calc(100% - var(--tear-size)),
        25% 100%, 20% calc(100% - var(--tear-size)),
        15% 100%, 10% calc(100% - var(--tear-size)),
        5% 100%, 0% calc(100% - var(--tear-size))
    );
}

.receipt-header {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border-light);
}

.receipt-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.receipt-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

.receipt-lines {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.receipt-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.receipt-line-label {
    flex: 1;
}

.receipt-line-value {
    font-family: 'SF Mono', 'Menlo', ui-monospace, monospace;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.receipt-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 2px solid var(--text-dark);
}

.receipt-total-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
}

.receipt-total-value {
    font-family: 'SF Mono', 'Menlo', ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -0.02em;
}

.receipt-total-value small {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Rubber-stamp payoff — a distinct object, not another line of text */
.receipt-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    border: 3px solid var(--terracotta);
    border-radius: 50%;
    color: var(--terracotta);
    transform: rotate(-9deg);
    background: var(--terracotta-soft);
}

.receipt-stamp-line {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.receipt-stamp-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 2px 0;
}

@media (max-width: 560px) {
    .receipt {
        flex-direction: column;
        gap: 20px;
    }
    .receipt-paper {
        max-width: 100%;
        width: 100%;
    }
}

/* ── Note ── */
.comparison-note {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.comparison-note p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── Comparison Table ── */
.comparison-table-wrapper {
    max-width: 780px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table thead th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    background: var(--cream-warm);
}

/* Round only the table's true outer corners, so the header
   follows the wrapper card's curvature instead of fighting it. */
.comparison-table thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.comparison-table .row-label {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-table .col-competitor {
    color: var(--text-secondary);
}

.comparison-table .col-ristokit {
    background: rgba(34, 197, 94, 0.04);
    color: var(--text-dark);
    font-weight: 600;
}

.table-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 800;
    margin-right: 6px;
}

.competitor-highlight {
    color: var(--red);
    font-weight: 700;
}

.ristokit-highlight {
    color: var(--green);
    font-weight: 800;
}

.comparison-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   Beta / Social Proof Section
   ============================================ */
.section-beta {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.beta-body {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.beta-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.beta-body a {
    color: var(--terracotta-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.beta-body a:hover {
    color: var(--ink);
}

.beta-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px 18px 18px;
    background: var(--white);
    border: 1px solid rgba(224, 89, 42, 0.25);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px var(--terracotta-glow);
    margin: 0 auto;
    max-width: fit-content;
    text-align: left;
}

.beta-badge-seal {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--terracotta-glow);
}

.beta-badge-seal svg {
    width: 22px;
    height: 22px;
}

.beta-badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.beta-badge-content strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.beta-badge-content small {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 600px) {
    .beta-badge {
        border-radius: var(--radius-lg);
        padding: 16px 18px;
    }
    .beta-badge-content strong { font-size: 0.92rem; }
    .beta-badge-content small { font-size: 0.78rem; }
}

/* ============================================
   CTA Final Trust
   ============================================ */
.cta-final-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta-final-trust span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

/* ============================================
   FORM SECTION — Sezione 10
   ============================================ */
.section-form {
    padding: var(--section-padding) 0;
    background: var(--ink);
}

.form-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.form-section-text .section-title {
    color: var(--text-on-dark);
}

.form-section-body {
    font-size: 1rem;
    color: var(--text-on-dark-muted);
    line-height: 1.8;
    margin-top: 16px;
}

.form-section-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
}

.form-section-trust span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.form-section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

/* ── Install Form (shared between section and modal) ── */
.install-form-group {
    margin-bottom: 18px;
}

.install-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.install-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.install-input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(26, 15, 31, 0.06);
}

.install-input::placeholder {
    color: var(--text-muted);
}

select.install-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6560' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.install-radio-group {
    display: flex;
    gap: 16px;
}

.install-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.install-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ink);
    cursor: pointer;
}

.install-submit {
    width: 100%;
    padding: 16px;
    background: var(--terracotta);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    margin-top: 8px;
    box-shadow: 0 6px 20px var(--terracotta-glow);
}

.install-submit:hover {
    background: var(--terracotta-hover);
    transform: translateY(-1px);
}

.install-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.install-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.form-section-nosite {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ── Optional fields, disclosed after the real ask (install/modal forms) ── */
.install-form-optional {
    margin-top: 16px;
}

.install-form-optional summary {
    display: flex;
    flex-direction: column;
    gap: 1px;
    cursor: pointer;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 0;
}

.install-form-optional summary::-webkit-details-marker {
    display: none;
}

.install-form-optional summary::before {
    content: '+ ';
    color: var(--terracotta);
    font-weight: 800;
}

.install-form-optional[open] summary::before {
    content: '\2013 ';
}

.install-form-optional summary span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.install-form-optional-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-light);
}

.install-success {
    display: none;
    text-align: center;
    padding: 32px 16px;
}

.install-success.active {
    display: block;
}

.install-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.install-success h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.install-success p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CLOSING SECTION — Sezione 11 (minimal)
   ============================================ */
.section-closing {
    padding: 56px 0;
    background: var(--cream);
    text-align: center;
}

.closing-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.closing-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--terracotta);
    transition: color 0.3s ease;
}

.closing-whatsapp:hover {
    color: var(--terracotta-hover);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(26, 15, 31, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: none;
    border: none;
    font-family: var(--font-body);
}

.modal-close:hover {
    background: var(--cream);
    color: var(--text-dark);
}

.modal-header {
    margin-bottom: 28px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Footer Grid
   ============================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 36px;
}

.footer-brand {
    font-family: var(--font-brand);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-on-dark);
    display: block;
    margin-bottom: 8px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-col p,
.footer-col a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

/* ============================================
   Reveal animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .problem-cards {
        grid-template-columns: 1fr;
    }

    .how-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .how-step-connector {
        width: 2px;
        height: 32px;
        margin: 12px auto;
    }

    .how-step-connector::after {
        right: -3px;
        top: auto;
        bottom: -3px;
        border-right: 2px solid var(--terracotta);
        border-top: none;
        border-bottom: 2px solid var(--terracotta);
        transform: rotate(135deg);
    }

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

    .form-section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-section-text {
        text-align: center;
    }

    .form-section-trust {
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .announcement-link {
        flex-wrap: wrap;
        font-size: 0.74rem;
        padding: 8px 16px;
        gap: 5px;
    }

    .announcement-cta {
        display: inline;
        width: auto;
    }
}

/* ============================================
   EMPATHY / "Ti capiamo" — addresses distrust
   white bg, copy + photo, reassurance highlights
   ============================================ */
.section-empathy {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.empathy-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.empathy-photo {
    order: -1;
}

.empathy-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    aspect-ratio: 4 / 3;
}

.empathy-lead {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    padding: 18px 22px;
    background: var(--cream);
    border-left: 3px solid var(--terracotta);
    border-radius: 0 8px 8px 0;
    margin-bottom: 22px;
    line-height: 1.6;
}

.empathy-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.empathy-body p strong {
    color: var(--text-dark);
    font-weight: 700;
}

.empathy-reassure {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
}

.empathy-reassure-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.empathy-reassure-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--terracotta);
    margin-top: 1px;
}

.empathy-reassure-item span {
    font-size: 0.92rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.5;
}

.empathy-reassure-item span small {
    display: block;
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .empathy-grid,
    .problem-intro {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .empathy-photo,
    .problem-photo {
        order: -1;
    }
}

/* ============================================
   CTA FINAL — warm photo background, emotional
   ============================================ */
.section-cta-final {
    padding: var(--section-padding) 0;
    background: linear-gradient(rgba(31, 20, 16, 0.86), rgba(31, 20, 16, 0.92)), url('../assets/restaurant-team-happy.jpg') center/cover no-repeat;
    color: var(--text-on-dark);
    text-align: center;
}

.section-cta-final .container {
    max-width: 760px;
}

.section-cta-final .section-title {
    color: var(--text-on-dark);
}

.section-cta-final .section-title em {
    color: var(--gold);
}

.cta-final-body {
    font-size: 1.05rem;
    color: var(--text-on-dark-muted);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.cta-final-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-final-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 34px;
    background: var(--terracotta);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--terracotta-glow);
}

.cta-final-primary:hover {
    background: var(--terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--terracotta-glow);
}

.cta-final-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 34px;
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.cta-final-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-on-dark);
}

.cta-final-microcopy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 28px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

@media (max-width: 768px) {
    .cta-final-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-final-primary, .cta-final-secondary {
        justify-content: center;
    }
}

/* ============================================
   VS THEFORK — restyle (versus cards + calc)
   ============================================ */
.comparison-head {
    max-width: 740px;
    margin: 0 auto 8px;
    text-align: center;
}

.comparison-head .comparison-subtitle {
    margin-bottom: 0;
}

/* Two big contrasting numbers */
.versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
    max-width: 760px;
    margin: 44px auto 28px;
}

.versus-card {
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.versus-them {
    background: var(--red-soft);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.versus-us {
    background: linear-gradient(160deg, var(--terracotta-soft), rgba(202, 138, 4, 0.07));
    border: 1px solid rgba(224, 89, 42, 0.30);
    box-shadow: 0 8px 28px var(--terracotta-glow);
}

.versus-tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.versus-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.versus-num small {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
}

.versus-them .versus-num { color: var(--red); }
.versus-us .versus-num { color: var(--terracotta); }

.versus-sub {
    display: block;
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.4;
}

.versus-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.versus-divider span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-style: italic;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px var(--terracotta-glow);
}

/* Table — as a clean card. No padding: the table's own outer
   corners are rounded to match, so it sits flush inside the card. */
.comparison-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 40px;
}

.comparison-table thead th.col-ristokit {
    background: var(--terracotta);
    color: var(--white);
}

.comparison-table .col-ristokit {
    background: var(--terracotta-soft);
    color: var(--text-dark);
    font-weight: 600;
}

.table-check {
    background: var(--terracotta);
    color: #fff;
}

.ristokit-highlight {
    color: var(--terracotta);
    font-weight: 800;
}

@media (max-width: 700px) {
    .versus {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .versus-divider span {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ============================================
   FOUNDER / STORY — trust, human face
   ============================================ */
.section-founder {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.founder-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
}

.founder-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    background: var(--cream-warm);
    aspect-ratio: 1 / 1;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-photo-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--terracotta-hover);
    box-shadow: var(--shadow-sm);
}

.founder-body p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.founder-body p strong {
    color: var(--text-dark);
    font-weight: 700;
}

.founder-sign {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.founder-sign-name {
    font-family: var(--font-brand);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.1;
}

.founder-sign-role {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.founder-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 22px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--terracotta);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.founder-whatsapp:hover {
    border-color: var(--terracotta);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 520px;
    }
    .founder-photo {
        max-width: 320px;
        margin: 0 auto;
    }
    .founder-copy {
        text-align: center;
    }
    .founder-sign,
    .empathy-reassure {
        align-items: center;
    }
}

/* VS table — reflow into readable cards on mobile */
@media (max-width: 600px) {
    .comparison-table-wrapper {
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }
    .comparison-table {
        display: block;
        font-size: 0.9rem;
    }
    .comparison-table thead { display: none; }
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td { display: block; width: 100%; }
    .comparison-table tr {
        background: var(--white);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 16px;
        margin-bottom: 12px;
    }
    .comparison-table td { padding: 0; border: none; }
    .comparison-table .row-label {
        font-weight: 800;
        font-size: 0.95rem;
        color: var(--text-dark);
        margin-bottom: 10px;
    }
    .comparison-table .col-competitor,
    .comparison-table .col-ristokit {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 12px;
        border-radius: var(--radius);
        font-size: 0.9rem;
    }
    .comparison-table .col-competitor {
        background: var(--cream-warm);
        color: var(--text-secondary);
        margin-bottom: 6px;
    }
    .comparison-table .col-ristokit {
        background: var(--terracotta-soft);
        color: var(--text-dark);
        font-weight: 700;
    }
    .comparison-table .col-competitor::before,
    .comparison-table .col-ristokit::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        opacity: 0.65;
        flex-shrink: 0;
    }
    .comparison-table .competitor-highlight { color: var(--red); }
    .comparison-table .ristokit-highlight { color: var(--terracotta); }
}
