/* Sito vetrina Monewise: stessi colori e caratteri dell'app. */
:root {
  --bg: #e1d7c2; --surface: #fdfdf8; --surface-2: #eeefe9; --text: #23251d; --muted: #5d5f56;
  --border: #bfc1b7; --accent: #eb9d2a; --accent-ink: #23251d; --link: #2f80fa;
  --pos: color-mix(in srgb, #6aa84f 60%, #23251d);
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--surface); color: var(--text); font: 17px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; text-align: center; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--font-ui); text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; border-radius: 10px; padding: 14px 20px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(235, 157, 42, .35); }
.btn.big { font-size: 18px; padding: 18px 26px; }
.btn.sm { font-size: 14px; padding: 10px 14px; }
.btn.off { background: var(--surface-2); color: var(--muted); cursor: default; box-shadow: none; transform: none; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 132px; padding: 9px 16px; border-radius: 10px;
  background: var(--text); color: var(--surface); text-decoration: none; font: 600 16px/1.15 var(--font-ui); }
.store small { font-size: 11px; font-weight: 500; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.store.off { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* Testata */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px max(16px, calc((100% - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: auto; font: 500 15px var(--font-ui); }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; font: 600 13px var(--font-ui); }
.langs a { text-decoration: none; padding: 5px 7px; border-radius: 6px; color: var(--muted); }
.langs a[aria-current] { background: var(--surface-2); color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 64px 16px 40px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.kicker { font: 600 14px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.hero-shots { position: relative; height: 600px; }
.hero-shots::before { content: ''; position: absolute; inset: 8% 0 4% 8%; background: radial-gradient(circle at 60% 40%, var(--accent) 0, var(--bg) 55%, transparent 72%); opacity: .55; border-radius: 50%; filter: blur(8px); }
.phone { width: 270px; border-radius: 34px; padding: 9px; background: var(--text); box-shadow: 0 30px 60px -20px rgba(35, 37, 29, .45); }
.phone img { width: 100%; height: auto; border-radius: 26px; aspect-ratio: 375 / 812; object-fit: cover; object-position: top; }
.hero-shots .phone { position: absolute; }
.hero-shots .front { right: 8%; top: 0; transform: rotate(3deg); }
.hero-shots .back { left: 4%; top: 70px; transform: rotate(-6deg) scale(.9); opacity: .95; }

.replaces { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; padding: 22px 16px; background: var(--bg); font: 500 16px var(--font-ui); }
.replaces span { font-weight: 700; }
.replaces s { color: var(--muted); text-decoration-color: color-mix(in srgb, #f54e00 70%, var(--text)); text-decoration-thickness: 2px; }

/* Sezioni */
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 16px; display: flex; flex-direction: column; gap: 28px; }
.feature { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; padding: 28px 0; max-width: 900px; margin: 0 auto; width: 100%; }
.feature.flip { grid-template-columns: auto 1fr; }
.feature.flip .phone { order: -1; }
.feature-text { display: flex; flex-direction: column; gap: 12px; }
.feature-text p { font-size: 19px; color: var(--muted); }
.feature .phone { width: 250px; }
.ficon { font-size: 34px; line-height: 1; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 12px auto 0; width: 100%; }
.card { background: var(--surface-2); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted); }

.dark { max-width: none; background: var(--text); color: var(--surface); padding-left: max(16px, calc((100% - var(--wrap)) / 2)); padding-right: max(16px, calc((100% - var(--wrap)) / 2)); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid4 h3 { font-size: 19px; margin-bottom: 8px; color: var(--accent); }
.grid4 p { color: color-mix(in srgb, var(--surface) 78%, var(--text)); font-size: 16px; }

/* Prezzi */
.pricing { align-items: center; }
.pricing .lead { text-align: center; }
.toggle { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 4px; }
.toggle button { font: 600 15px var(--font-ui); border: 0; background: transparent; padding: 9px 18px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.toggle button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.plan { width: min(420px, 100%); border: 2px solid var(--accent); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); box-shadow: 0 20px 50px -25px rgba(35, 37, 29, .35); }
.plan-head { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.plan-head img { border-radius: 9px; }
.price { display: flex; align-items: baseline; gap: 4px; min-height: 48px; }
.amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.unit { color: var(--muted); }
.tbd { font-size: 24px; font-weight: 700; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--pos); font-weight: 800; }
.plan .btn { width: 100%; }
.pricing[data-period="monthly"] [data-show="yearly"], .pricing[data-period="yearly"] [data-show="monthly"] { display: none; }

/* Domande */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 10px; color: var(--muted); }

.final { background: var(--bg); text-align: center; padding: 80px 16px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 36px 16px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 14px var(--font-ui); }
.foot nav a { color: var(--muted); }
.foot .fine { width: 100%; }

/* Tablet e telefono */
@media (max-width: 900px) {
  .links { display: none; }
  .langs { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 24px; }
  .hero-shots { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .feature.flip .phone { order: 0; }
  .feature-text { align-items: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { gap: 10px; }
  .top .btn.sm { display: none; }
  .hero-shots { height: 440px; }
  .hero-shots .phone { width: 210px; border-radius: 28px; }
  .hero-shots .front { right: 0; }
  .hero-shots .back { left: 0; }
  .cards, .grid4 { grid-template-columns: 1fr; }
  .feature .phone { width: 230px; }
  .section { padding: 64px 16px; }
  .ctas .btn.big { width: 100%; }
  .store { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
