/* MyHeroStudio — landing. Colori dal marchio MyHeroSoft (giallo eroe, rosso, blu del logo) tradotti in strumento tecnico:
   inchiostro blu notte e carta fredda; il giallo solo per l'azione e per il momento «Annulla tutto». */
:root {
  --ink: #0E2A47;
  --paper: #F5F7FA;
  --hero: #FEDE00;
  --signal: #ED1F24;
  --added: #14935A;
  --steel: #5B6B7C;
  --editor: #132233;
  --editor-line: #24384D;
  --editor-text: #D5DEE8;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --page: min(1180px, 100% - 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--hero); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; max-width: 18ch; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.notice { margin: 0; padding: 10px 20px; background: var(--ink); color: var(--paper); text-align: center; font-weight: 500; }

/* Pulsanti: il linguaggio della pagina, giallo con ombra piena come un riquadro di fumetto. */
.button { display: inline-block; padding: 14px 26px; background: var(--hero); color: var(--ink); font-weight: 600; text-decoration: none; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button.small { padding: 8px 16px; box-shadow: 3px 3px 0 var(--ink); font-size: 15px; }

/* Intestazione */
.top { width: var(--page); margin: 0 auto; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.3rem var(--display); }
.top nav { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.top nav a:not(.button) { text-decoration: none; }
.top nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }
.top .lang { padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 14px; }

/* Prima schermata: a sinistra la promessa, a destra la lista vera dei file modificati su una retinatura gialla. */
.hero { width: var(--page); margin: 0 auto; padding: 56px 0 96px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.7rem); font-weight: 800; letter-spacing: -0.03em; font-stretch: 85%; }
.hero .lead { font-size: 1.2rem; max-width: 34em; margin: 26px 0 32px; color: #213F5E; }
.hero .fine { color: var(--steel); font-size: 15px; margin-top: 16px; }

.window { position: relative; margin: 0; background: var(--editor); color: var(--editor-text); border-radius: 14px; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); font-size: 14px; }
.window::before { content: ""; position: absolute; inset: -34px -34px auto auto; width: 72%; height: 78%; z-index: -1; background: radial-gradient(var(--hero) 2.2px, transparent 2.6px) 0 0 / 13px 13px; }
.chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--editor-line); }
.chrome span { width: 11px; height: 11px; border-radius: 50%; background: #3A5068; }
.chrome b { margin-left: 10px; font-weight: 600; color: #fff; }
.request { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px 6px; }
.request .label { font-weight: 600; color: #fff; }
.totals { white-space: nowrap; color: #9DB0C3; }
.add { color: #4CD18C; }
.del { color: #FF6B6E; }
.actions { display: flex; gap: 8px; padding: 6px 16px 12px; }
.actions button { font: 500 13px var(--body); border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.actions .ghost { background: none; color: var(--editor-text); border: 1px solid var(--editor-line); }
.actions .undo { background: var(--hero); color: var(--ink); border: 1px solid var(--hero); font-weight: 600; }
.files { list-style: none; margin: 0; padding: 0 0 6px; font-family: var(--mono); font-size: 13.5px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 7px 16px; border-top: 1px solid var(--editor-line); transition: opacity .5s, transform .5s; }
.files .kind { width: 14px; font-weight: 500; }
.files .kind.a { color: #4CD18C; }
.files .kind.m { color: #F2C14E; }
.files .name { color: #fff; }
.files .folder { flex: 1; color: #7F93A8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li.gone { opacity: .25; transform: translateX(14px); }
.files li.gone .name { text-decoration: line-through; }
.window .done { margin: 0; padding: 12px 16px; border-top: 1px solid var(--editor-line); color: var(--hero); font-weight: 500; }
.window figcaption { position: absolute; left: 0; bottom: -40px; font-size: 14px; color: var(--steel); }

/* Schermate: foto vere dell'editor in una cornice con ombra piena, testo accanto, lati alternati. */
.tour { width: var(--page); margin: 0 auto; padding: 40px 0 60px; }
.tour .intro { color: var(--steel); margin: 14px 0 20px; }
.scene { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; padding: 56px 0; }
.scene:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.scene:nth-of-type(even) .shot { order: 2; }
.shot { position: relative; margin: 0; max-height: 600px; overflow: hidden; background: #1f1f1f; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 10px 10px 0 var(--ink); justify-self: start; }
.scene:nth-of-type(even) .shot { justify-self: end; }
.shot img { width: 100%; height: auto; }
.shot::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, #1f1f1f); pointer-events: none; }
.scene.changed .shot::after { display: none; }
.scene.history .shot { max-height: none; }
.caption h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.015em; margin-bottom: 16px; max-width: 16ch; }
.caption p { color: #213F5E; font-size: 1.08rem; max-width: 30em; }

/* Funzioni: tre argomenti, titolo a sinistra e cosa fa a destra, separati da righe d'inchiostro. */
.what { width: var(--page); margin: 0 auto; padding: 40px 0 100px; }
.what h2 { margin-bottom: 44px; }
.group { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 30px 0; border-top: 2px solid var(--ink); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.group li { padding-left: 22px; position: relative; max-width: 34em; }
.group li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--hero); border: 1.5px solid var(--ink); border-radius: 2px; }

/* Regole: banda d'inchiostro con un comando fermato davvero. */
.guard { background: var(--ink); color: var(--paper); }
.guard { padding: 90px max(20px, (100% - 1180px) / 2); display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.guard p { color: #B9C7D6; font-size: 1.1rem; max-width: 30em; margin-top: 18px; }
.terminal { margin: 0; padding: 26px 28px; background: #0A1B2D; border: 1px solid #2B4561; border-radius: 12px; font: 15px/1.9 var(--mono); color: var(--editor-text); white-space: pre-wrap; }
.terminal .prompt { color: #7F93A8; }
.terminal .stop { color: #fff; background: var(--signal); padding: 1px 7px; border-radius: 4px; margin-right: 6px; }

/* Prezzo */
.price { width: var(--page); margin: 0 auto; padding: 100px 0; display: grid; grid-template-columns: 1fr 460px; gap: 30px 64px; align-items: start; }
.price h2 { grid-row: span 2; }
.plan { background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--ink); padding: 34px 36px 36px; }
.amount { font: 800 4.2rem/1 var(--display); letter-spacing: -0.03em; margin-bottom: 12px; }
.amount span { font: 500 1.1rem var(--body); letter-spacing: 0; color: var(--steel); }
.trial { display: inline-block; background: var(--hero); border: 1.5px solid var(--ink); border-radius: 6px; padding: 3px 10px; font-weight: 600; }
.plan ul { padding-left: 20px; margin: 22px 0 28px; }
.plan li { margin-bottom: 8px; }
.needs { grid-column: 2; color: var(--steel); font-size: 15px; }

/* Domande */
.faq { width: var(--page); margin: 0 auto; padding: 20px 0 100px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.15rem var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 800 1.8rem var(--display); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 42em; padding-bottom: 12px; color: #213F5E; }

/* Scarica */
.download { background: var(--ink); color: var(--paper); text-align: left; padding: 90px max(20px, (100% - 1180px) / 2); }
.download p { color: #B9C7D6; max-width: 40em; margin: 18px 0 30px; font-size: 1.1rem; }
.download .button { box-shadow: 4px 4px 0 var(--hero); border-color: var(--hero); }

footer { width: var(--page); margin: 0 auto; padding: 44px 0 60px; color: var(--steel); font-size: 14px; }
footer img { margin-bottom: 16px; }
footer a { color: var(--ink); }

@media (max-width: 960px) {
  .hero, .guard, .price, .scene, .scene:nth-of-type(even) { grid-template-columns: 1fr; }
  .scene { gap: 36px; padding: 40px 0; }
  .scene:nth-of-type(even) .shot { order: 0; justify-self: start; }
  .shot { max-height: 480px; }
  .hero { padding-top: 24px; gap: 70px; }
  .group { grid-template-columns: 1fr; gap: 16px; }
  .group ul { grid-template-columns: 1fr; }
  .price h2 { grid-row: auto; }
  .needs { grid-column: auto; }
  .top nav a:not(.button):not(.lang) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .window, .shot { box-shadow: 6px 6px 0 var(--ink); }
  .window::before { inset: -18px -12px auto auto; }
  .files .folder { display: none; }
  .request { flex-direction: column; gap: 4px; }
  .amount { font-size: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .files li { transition: none; }
}
