/* Trama by Lume — landing.css */
:root {
  --sky: #F8F5EF; --paper: #FFFFFF; --ink: #1E1B18; --ink-2: #5C5650; --ink-3: #96897A; --line: #E4DED2;
  --dawn: #D9A21B; --dawn-soft: #FBF1D6; --dusk: #8A7F6E;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --sky: #17140F; --paper: #211D18; --ink: #ECE7DE; --ink-2: #C7BFB1; --ink-3: #96897A; --line: #35302A; --dawn: #E2AE2C; --dawn-soft: #2E2812; --dusk: #A79C8A; }
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 17px/1.55 var(--sans); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
a { color: inherit; }
.hidden { display: none !important; }
.tiny { font-size: .8rem; color: var(--ink-3); }
section { max-width: 720px; margin: 0 auto; padding: 4rem 1.25rem; }
section h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 1rem; }
section p { max-width: 62ch; }
em { font-style: italic; font-family: var(--serif); font-size: 1.05em; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.brand { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.brand img { width: 24px; height: 24px; }
.brand small { font-family: var(--sans); font-size: .75rem; color: var(--ink-3); margin-left: .35rem; }
.top nav { display: flex; gap: 1.1rem; align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:not(.btn-line):not(.btn-fill) { display: none; }
@media (min-width: 640px) { .top nav a:not(.btn-line):not(.btn-fill) { display: inline; } }

.btn-fill, .btn-line { display: inline-block; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; line-height: 1.2; border: 1px solid var(--ink); }
.btn-fill { background: var(--ink); color: var(--sky) !important; }
.btn-line { color: var(--ink) !important; background: transparent; }
.btn-fill.big { padding: .85rem 1.4rem; font-size: 1.05rem; }
button.btn-fill { cursor: pointer; font: inherit; width: 100%; margin-top: .5rem; }

.hero { padding-top: 4rem; text-align: left; overflow: hidden; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: .98; }
.hero .lead { font-size: 1.3rem; color: var(--ink-2); margin: 1.5rem 0 2rem; max-width: 28ch; }
.hero-cta { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }

.demo { margin-top: 3.5rem; }
.demo-bar { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .9rem 1.25rem; font-size: 1.05rem; display: flex; align-items: center; min-height: 3.2rem; box-shadow: 0 0 0 3px var(--dawn-soft); }
.caret { width: 2px; height: 1.2em; background: var(--dawn); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.demo-out { font-family: var(--mono); font-size: .9rem; color: var(--dusk); padding: .6rem 1.35rem 0; min-height: 2rem; opacity: 0; transition: opacity .25s; }
.demo-out.show { opacity: 1; }

.problem { border-top: 1px solid var(--line); }
.problem p { font-size: 1.1rem; color: var(--ink-2); }
.problem p:last-child { color: var(--ink); }

.manifesto ol { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.manifesto li { counter-increment: m; padding: 1.25rem 0 1.25rem 3.25rem; position: relative; border-top: 1px solid var(--line); max-width: 66ch; }
.manifesto li::before { content: counter(m); position: absolute; left: 0; top: 1.15rem; font-family: var(--serif); font-size: 1.6rem; color: var(--dawn); }
.manifesto li b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: .25rem; }

.day { border-left: 2px solid var(--line); margin-left: .5rem; }
.slot { display: flex; gap: 1rem; padding: .9rem 0 .9rem 1.25rem; position: relative; }
.slot::before { content: ""; position: absolute; left: -7px; top: 1.25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--dawn); border: 2px solid var(--sky); }
.slot .t { font-family: var(--mono); color: var(--ink-3); font-size: .85rem; width: 48px; flex: none; padding-top: .2rem; }
.slot b { font-family: var(--serif); font-weight: 500; }

.beta { text-align: center; }
.beta p { margin: 0 auto 1.5rem; color: var(--ink-2); }

footer { max-width: 1080px; margin: 2rem auto 0; padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); }

/* Modale */
.modal-bg { position: fixed; inset: 0; background: rgba(27,36,48,.5); display: grid; place-items: end center; z-index: 50; }
@media (min-width: 640px) { .modal-bg { place-items: center; padding: 1rem; } }
.modal { background: var(--paper); width: 100%; max-width: 440px; padding: 1.5rem; border-radius: 16px 16px 0 0; position: relative; max-height: 92dvh; overflow: auto; }
@media (min-width: 640px) { .modal { border-radius: 14px; } }
.modal .x { position: absolute; right: .9rem; top: .9rem; border: 0; background: transparent; font-size: 1rem; cursor: pointer; color: var(--ink-3); }
.modal h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.modal label { display: grid; gap: .3rem; margin-bottom: .8rem; font-size: .9rem; color: var(--ink-2); }
.modal label.chk { grid-template-columns: auto 1fr; align-items: center; gap: .5rem; }
.modal input:not([type=checkbox]) { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; background: var(--sky); font: inherit; font-size: 16px; color: var(--ink); width: 100%; box-sizing: border-box; }
.modal input:focus { outline: 0; border-color: var(--dawn); box-shadow: 0 0 0 3px var(--dawn-soft); }
.modal .err { color: #B0413E; font-size: .9rem; min-height: 1.2rem; margin: .5rem 0 0; }
.privacy p { font-size: .92rem; }


/* =============== v0.6: menu mobile, splash, animazioni, anteprima =============== */
.top { gap: .75rem; }
.top nav { gap: .6rem; }
.top nav .btn-line, .top nav .btn-fill { padding: .45rem .9rem; white-space: nowrap; }
@media (max-width: 639px) { .hide-m { display: none; } .top .brand small { display: none; } }
.row-cta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.btn-line.big { padding: .85rem 1.2rem; font-size: 1.05rem; }

#splash { position: fixed; inset: 0; z-index: 100; background: var(--sky); display: grid; place-items: center; transition: opacity .25s ease, visibility .25s; }
#splash.out { opacity: 0; visibility: hidden; }
.splash-mark { width: 64px; height: 64px; }
.splash-mark .sh rect { fill: var(--ink); transform-origin: left center; transform: scaleX(0); animation: sx .28s cubic-bezier(.2,.7,.2,1) forwards; }
.splash-mark .sv rect { fill: var(--dawn); transform-origin: center top; transform: scaleY(0); animation: sy .28s .12s cubic-bezier(.2,.7,.2,1) forwards; }
.splash-mark .sh rect:nth-child(2) { animation-delay: .05s; } .splash-mark .sh rect:nth-child(3) { animation-delay: .1s; }
.splash-mark .sv rect:nth-child(2) { animation-delay: .17s; } .splash-mark .sv rect:nth-child(3) { animation-delay: .22s; }
.splash-mark g.sh:last-child rect { animation: fade .15s .3s forwards; opacity: 0; transform: none; }
@keyframes sx { to { transform: scaleX(1); } } @keyframes sy { to { transform: scaleY(1); } } @keyframes fade { to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d2 { transition-delay: .12s; }
.hero h1 { animation: up .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { animation: up .7s .1s cubic-bezier(.2,.7,.2,1) both; }
.hero-cta, .demo { animation: up .7s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
.hero { position: relative; }
.hero::before { content: ""; position: absolute; top: -8rem; right: -14rem; width: 34rem; height: 34rem; border-radius: 50%; background: radial-gradient(closest-side, var(--dawn-soft), transparent 70%); z-index: -1; pointer-events: none; }
@media (prefers-color-scheme: dark) { .hero::before { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .reveal, .hero h1, .hero .lead, .hero-cta, .demo { animation: none; transition: none; opacity: 1; transform: none; } .splash-mark rect { animation: none !important; transform: none !important; opacity: 1 !important; } }

/* Anteprima: due telefoni in CSS */
.preview { max-width: 900px; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; justify-items: center; margin-top: 2rem; }
.phone { width: 268px; background: var(--ink); border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(27,36,48,.45); }
.ph-screen { background: #F8F5EF; border-radius: 32px; height: 540px; padding: 14px 12px 10px; font-family: var(--sans); color: #1E1B18; position: relative; overflow: hidden; font-size: 11px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ph-brand { font-family: var(--serif); font-size: 15px; }
.ph-av { width: 20px; height: 20px; border-radius: 50%; background: #1E1B18; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.ph-date { font-size: 8px; letter-spacing: .08em; color: #96897A; margin-bottom: 8px; }
.ph-date b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: 0; color: #1E1B18; }
.ph-now { background: #1E9FA8; color: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.ph-now small { display: block; font-size: 7px; letter-spacing: .08em; opacity: .8; }
.ph-now b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 400; margin: 2px 0 4px; }
.ph-now span { display: block; font-size: 10px; opacity: .95; line-height: 1.4; }
.ph-now i { display: inline-block; font-style: normal; background: #fff; color: #1E9FA8; border-radius: 7px; padding: 4px 8px; font-size: 9px; margin-top: 8px; }
.ph-card { background: #fff; border: 1px solid #E4DED2; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.ph-card em { font-style: normal; font-size: 7px; letter-spacing: .09em; color: #96897A; font-weight: 600; display: block; margin-bottom: 4px; }
.ph-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid #EFEAE0; }
.ph-row:first-of-type { border-top: 0; }
.ph-t { font-family: var(--mono); font-size: 8px; color: #5C5650; width: 58px; }
.ph-c { width: 12px; height: 12px; border-radius: 50%; border: 1.2px solid #C9CDD2; }
.ph-c.done { background: #2F6FDE; border-color: #2F6FDE; }
.ph-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border: 1px solid #E4DED2; border-radius: 12px; padding: 5px; display: flex; align-items: center; gap: 6px; }
.ph-bar.rec { border-color: #2F6FDE; }
.ph-mic { width: 24px; height: 24px; border-radius: 8px; background: #EFEAE0; flex: none; }
.ph-mic.on { background: #2F6FDE; }
.ph-in { flex: 1; color: #96897A; font-size: 10px; }
.ph-go { width: 24px; height: 24px; border-radius: 8px; background: #1E1B18; color: #fff; display: grid; place-items: center; font-size: 11px; }
.ph-msg { max-width: 82%; padding: 7px 10px; border-radius: 12px; line-height: 1.4; font-size: 10.5px; margin-bottom: 6px; }
.ph-msg.u { background: #2F6FDE; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.ph-msg.a { background: #fff; border: 1px solid #E4DED2; border-bottom-left-radius: 4px; }
.ph-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 24px; }
.ph-wave i { width: 3px; border-radius: 2px; background: #2F6FDE; height: 6px; animation: wv 1s ease-in-out infinite; }
.ph-wave i:nth-child(2n) { animation-delay: .15s; } .ph-wave i:nth-child(3n) { animation-delay: .3s; } .ph-wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes wv { 50% { height: 18px; } }
