/* ============================================================
   Daily Planner — landing di validazione mercato
   Tema: bacheca di cantiere. Fasce scure (header/hero/form/footer)
   restano fisse allo stile "ufficio cantiere"; le sezioni chiare
   si adattano al tema del visitatore (chiaro/scuro).
   ============================================================ */

:root {
    /* fasce scure fisse — non seguono il tema del viewer */
    --band-bg: #1b2430;
    --band-bg-soft: #232c36;
    --band-text: #ece9dc;
    --band-muted: #a9afa0;
    --band-rule: rgba(236, 233, 220, 0.16);
    --band-amber: #e3993c;
    --band-amber-ink: #1b2430;
    --band-slate: #7fa0b5;

    /* sezioni chiare — adattive al tema */
    --paper-bg: #e9eae1;
    --paper-bg-alt: #e2e4d6;
    --card-bg: #f4f2e9;
    --text: #1b2430;
    --text-muted: #5c6259;
    --rule: #c9ccc0;
    --accent-amber: #c97829;
    --accent-amber-ink: #ffffff;
    --accent-slate: #3f5a6e;
    --focus-ring: #1b2430;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper-bg: #14181d;
        --paper-bg-alt: #191e24;
        --card-bg: #1e242b;
        --text: #ece9dc;
        --text-muted: #9aa097;
        --rule: #2b3138;
        --accent-amber: #e3993c;
        --accent-amber-ink: #1b2430;
        --accent-slate: #7fa0b5;
        --focus-ring: #ece9dc;
    }
}

:root[data-theme="dark"] {
    --paper-bg: #14181d;
    --paper-bg-alt: #191e24;
    --card-bg: #1e242b;
    --text: #ece9dc;
    --text-muted: #9aa097;
    --rule: #2b3138;
    --accent-amber: #e3993c;
    --accent-amber-ink: #1b2430;
    --accent-slate: #7fa0b5;
    --focus-ring: #ece9dc;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--paper-bg);
    color: var(--text);
    font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
    .ticket,
    .feature,
    .btn,
    .plan {
        transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            background-color 0.18s ease;
    }
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
    font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.08;
    text-wrap: balance;
    margin: 0;
}

.eyebrow {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--band-amber);
    margin: 0 0 14px;
}

.eyebrow--dark {
    color: var(--accent-amber);
}

.section-title {
    font-size: clamp(28px, 3.6vw, 40px);
    max-width: 18ch;
    margin-bottom: 16px;
}

.section-title--light {
    color: var(--band-text);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    padding: 15px 26px;
    cursor: pointer;
}

.btn--amber {
    background: var(--band-amber);
    color: var(--band-amber-ink);
}

.btn--amber:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.15);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
}

.btn--outline:hover {
    background: var(--text);
    color: var(--paper-bg);
    transform: translateY(-1px);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn--block {
    width: 100%;
    padding: 17px 26px;
    font-size: 15px;
}

/* ---------- header ---------- */

.band-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--band-bg);
    border-bottom: 1px solid var(--band-rule);
}

.band-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.band-header__nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    margin-right: auto;
    margin-left: 40px;
}

.band-header__nav a {
    text-decoration: none;
    color: var(--band-muted);
}
.band-header__nav a:hover {
    color: var(--band-text);
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--band-text);
}

.wordmark__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--band-amber);
    color: var(--band-amber-ink);
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    font-size: 13px;
    border-radius: 3px;
}

.wordmark__tag--sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.wordmark__text {
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-size: 14.5px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ---------- band helpers ---------- */

.band-dark {
    background: var(--band-bg);
    color: var(--band-text);
}
.band-paper {
    background: var(--paper-bg);
    color: var(--text);
}
.band-paper-alt {
    background-image:
        linear-gradient(var(--paper-bg-alt), var(--paper-bg-alt)),
        repeating-linear-gradient(
            0deg,
            var(--rule) 0 1px,
            transparent 1px 32px
        ),
        repeating-linear-gradient(
            90deg,
            var(--rule) 0 1px,
            transparent 1px 32px
        );
    background-blend-mode: normal, overlay, overlay;
    opacity: 1;
    color: var(--text);
    position: relative;
}
.band-paper-alt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--paper-bg-alt);
    opacity: 0.94;
    z-index: 0;
}
.band-paper-alt > .wrap {
    position: relative;
    z-index: 1;
}

section {
    padding: 76px 0;
}

/* ---------- hero ---------- */

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 24px;
}

.hero__title {
    font-size: clamp(34px, 5vw, 54px);
    margin-bottom: 22px;
    color: var(--band-text);
}

.hero__lead {
    font-size: 18px;
    color: var(--band-muted);
    max-width: 46ch;
    margin: 0 0 32px;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero__cta-note {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12.5px;
    color: var(--band-muted);
}

.hero__board-caption {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11.5px;
    color: var(--band-muted);
    text-align: center;
    margin: 12px 0 0;
}

/* real app screenshot, framed */

.app-frame {
    background: var(--band-bg-soft);
    border: 1px solid var(--band-rule);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.38);
}

.app-frame__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--band-rule);
}

.app-frame__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--band-rule);
}
.app-frame__dot:nth-child(1) {
    background: #e0605a;
}
.app-frame__dot:nth-child(2) {
    background: #e3b34a;
}
.app-frame__dot:nth-child(3) {
    background: #5fb37c;
}

.app-frame__url {
    margin-left: 10px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: var(--band-muted);
    background: rgba(236, 233, 220, 0.06);
    padding: 4px 10px;
    border-radius: 3px;
}

.app-frame__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--band-rule);
    position: relative;
}

.day-slot {
    background: var(--band-bg);
    padding: 16px;
    min-height: 340px;
}

.day-slot--drop {
    animation: cardDrop 0.5s ease;
}

@keyframes cardDrop {
    0% {
        background: rgba(227, 153, 60, 0.22);
    }
    100% {
        background: transparent;
    }
}

.day-slot__label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--band-muted);
    margin: 0 0 12px;
}

.day-slot__stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.day-slot__hint {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: var(--band-muted);
    border: 1px dashed var(--band-rule);
    border-radius: 4px;
    padding: 18px 10px;
    text-align: center;
    margin: 0;
}

.real-card {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.demo-placeholder {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.demo-ghost {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.demo-ghost--lift {
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.45);
}

/* ---------- ticket grid (problems) ---------- */

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 8px;
}

.ticket {
    background: var(--paper-bg);
    padding: 28px 26px 30px;
}

.ticket__num {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-amber);
    margin: 0 0 12px;
}

.ticket__title {
    font-size: 18px;
    margin-bottom: 10px;
}

.ticket__body {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* ---------- features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 8px;
}

.feature {
    background: var(--card-bg);
    border: 1px dashed var(--rule);
    border-radius: 4px;
    padding: 26px 24px;
}

.feature__icon {
    width: 26px;
    height: 26px;
    color: var(--accent-slate);
    margin-bottom: 16px;
}

.feature__title {
    font-size: 17px;
    margin-bottom: 8px;
}

.feature__body {
    color: var(--text-muted);
    font-size: 14.5px;
    margin: 0;
}

/* ---------- asta lavoro (spotlight) ---------- */

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

.auction__lead {
    color: var(--band-muted);
    font-size: 16px;
    max-width: 48ch;
    margin: 0 0 22px;
}

.auction__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auction__list li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--band-text);
}

.auction__list li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 6px;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--band-amber);
    border-bottom: 2px solid var(--band-amber);
    transform: rotate(-45deg);
}

.auction__sample-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--band-muted);
    margin: 0 0 10px;
    text-align: center;
}

.auction-ticket {
    background: var(--band-bg-soft);
    border: 1px solid var(--band-rule);
    border-radius: 6px;
    padding: 22px 22px 20px;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auction-ticket__title {
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--band-text);
    margin: 0 0 14px;
}

.auction-ticket__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: var(--band-muted);
    margin: 0 0 8px;
    border-bottom: 1px dashed var(--band-rule);
    padding-bottom: 8px;
}

.auction-ticket__row strong {
    font-family: "IBM Plex Mono", monospace;
    color: var(--band-text);
    font-weight: 600;
    font-size: 12.5px;
}

.auction-ticket__cta {
    width: 100%;
    margin-top: 14px;
}

/* ---------- ferie e assenze ---------- */

.absences__inner {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 36px;
    align-items: center;
}

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

.absences__icon {
    width: 68px;
    height: 68px;
    color: var(--accent-amber);
}

.absences__lead {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0;
}

/* ---------- roadmap ---------- */

.roadmap__lead {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0 0 30px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.roadmap-card {
    background: var(--card-bg);
    border: 1px dashed var(--rule);
    border-radius: 4px;
    padding: 26px 24px;
}

.roadmap-card__badge {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-slate);
    border: 1px solid var(--accent-slate);
    border-radius: 999px;
    padding: 4px 10px;
    margin: 0 0 16px;
}

.roadmap-card__icon {
    width: 26px;
    height: 26px;
    color: var(--accent-slate);
    margin-bottom: 14px;
    opacity: 0.8;
}

.roadmap-card__title {
    font-size: 17px;
    margin-bottom: 8px;
}

.roadmap-card__body {
    color: var(--text-muted);
    font-size: 14.5px;
    margin: 0;
}

/* ---------- pricing ---------- */

.pricing__note {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 60ch;
    margin: -6px 0 8px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 34px;
    align-items: stretch;
}

.plan {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 26px 20px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan--highlight {
    border-color: var(--accent-amber);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.plan__badge {
    position: absolute;
    top: -12px;
    left: 26px;
    background: var(--accent-amber);
    color: #fff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
}

.plan__name {
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.plan__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 6px;
}

.plan__amount {
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--text);
}

.plan__period {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: var(--text-muted);
}

.plan__for {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--rule);
}

.plan__list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plan__list li {
    font-size: 14px;
    color: var(--text);
    padding-left: 20px;
    position: relative;
}

.plan__list li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 6px;
    width: 7px;
    height: 4px;
    border-left: 2px solid var(--accent-amber);
    border-bottom: 2px solid var(--accent-amber);
    transform: rotate(-45deg);
}

.plan__cta {
    width: 100%;
}

/* ---------- audience ---------- */

.audience__inner {
    text-align: left;
}

.audience__lead {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 0 28px;
}

.tag-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.tag-row li {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--text);
    background: var(--card-bg);
}

/* ---------- status note ---------- */

.status-note {
    padding: 44px 0;
}

.status-note__inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 760px;
}

.status-note__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-amber);
}

.status-note p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* ---------- cta form ---------- */

.cta-form__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
}

.cta-form__lead {
    color: var(--band-muted);
    font-size: 16px;
    max-width: 42ch;
    margin: 0;
}

.form-card {
    background: var(--paper-bg);
    color: var(--text);
    border-radius: 5px;
    padding: 34px 32px 32px;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    transform: rotate(-0.4deg);
}

.form-card__stub {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--rule);
    padding-bottom: 16px;
    margin: 0 0 20px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.field label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field input,
.field select {
    font-family: "Karla", sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 11px 12px;
}

.field input:focus,
.field select:focus {
    border-color: var(--accent-amber);
}

.field--check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.field--check input {
    margin-top: 3px;
}

.field--check span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.lead-result {
    text-align: center;
    padding: 20px 6px 6px;
}

.lead-result__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    color: var(--accent-amber);
    border: 2px solid var(--accent-amber);
    border-radius: 50%;
    padding: 8px;
}

.lead-result h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.lead-result p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 42ch;
    margin: 0 auto;
}

/* ---------- footer ---------- */

.footer {
    padding: 26px 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--band-rule);
    padding-top: 24px;
}

.footer__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer p {
    margin: 0;
    font-size: 13px;
    color: var(--band-muted);
}

.footer .footer__legal {
    font-size: 10.5px;
    opacity: 0.65;
    letter-spacing: 0.02em;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }
    .plan--highlight {
        transform: none;
    }
}

@media (max-width: 880px) {
    section {
        padding: 56px 0;
    }
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta-form__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .auction__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .absences__inner {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    .band-header__nav {
        display: none;
    }
    .plan-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    .plan--highlight {
        transform: none;
    }
}

@media (max-width: 560px) {
    .field-row {
        grid-template-columns: 1fr;
    }
    .app-frame__body {
        grid-template-columns: 1fr;
    }
    .day-slot {
        min-height: 0;
    }
    .tag-row li {
        font-size: 12px;
        padding: 8px 13px;
    }
    .form-card {
        padding: 26px 20px 24px;
        transform: none;
    }
}
