/* rawline.app: un colore di fondo, tutto il resto bianco. */

@font-face { font-family: Unbounded; src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Unbounded; src: url(fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2-variations"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Geist; src: url(fonts/geist-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geist; src: url(fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin-ext-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Due colori e basta: il verde del marchio e il bianco. */
:root {
  --teal: #0E9E8A;
  --teal-text: #0B7A6B;  /* il verde per il testo piccolo su bianco: più scuro quanto basta per leggerlo */
  --white: #FFFFFF;
  --ink: #0B3F38;
  --display: Unbounded, "Arial Black", sans-serif;
  --text: Geist, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
:root, .band {
  --bg: var(--teal);
  --fg: var(--white);
  --soft: rgba(255, 255, 255, .8);
  --faint: rgba(255, 255, 255, .34);
  --tile-bg: var(--white);
  --tile-fg: var(--ink);
  --card-bg: var(--white);
  --card-fg: var(--ink);
  --field-bg: #EAF6F3;
  --card-btn-bg: var(--ink);
  --card-btn-fg: var(--white);
  --card-fine: #4C6B66;
  --error: #A8371F;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--teal); color: var(--white); font: 400 18px/1.55 var(--text); }
.band { background: var(--bg); color: var(--fg); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font: 800 21px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.mark span { font: 600 15px/1 var(--mono); letter-spacing: 0; background: var(--tile-bg); color: var(--tile-fg); padding: 7px 10px; border-radius: 8px; }
.lang { display: flex; gap: 4px; font: 500 14px var(--text); margin-right: -8px; }
.lang a { color: var(--soft); text-decoration: none; padding: 12px 8px; }
.lang a[aria-current], .lang a:hover { color: var(--fg); }

/* Tessere: il nome di un file diviso in blocchi, come nell'app */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tile { font: 600 clamp(18px, 2.5vw, 34px)/1 var(--mono); padding: .56em .6em; border-radius: .47em; background: var(--tile-bg); color: var(--tile-fg); display: inline-flex; gap: .3em; align-items: center; white-space: nowrap; }
.tile.sep { background: transparent; color: var(--soft); padding-left: 0; padding-right: 0; }
.tile.lock { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.tile.lock svg { width: .62em; height: .62em; }
.row.small .tile { font-size: clamp(14px, 1.5vw, 19px); }

/* Hero */
.hero { min-height: min(100svh, 900px); display: flex; flex-direction: column; padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { font: 900 clamp(46px, 8.2vw, 128px)/.9 var(--display); letter-spacing: -0.05em; max-width: 12ch; margin-top: clamp(56px, 10vh, 120px); text-wrap: balance; }
.hero .row { margin-top: clamp(40px, 7vh, 72px); min-height: 2.4em; font-size: clamp(18px, 2.5vw, 34px); }
.hero .tile.out { opacity: .2; transform: rotate(-5deg) scale(.88); text-decoration: line-through; transition: opacity .4s, transform .5s cubic-bezier(.4,1.5,.5,1); }
.hero .tile.in { animation: pop .6s cubic-bezier(.3,1.5,.5,1) backwards; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.65); } }
.hero .more { font: 400 clamp(16px, 1.6vw, 20px)/1 var(--text); color: var(--soft); margin-left: 10px; opacity: 0; transition: opacity .5s .4s; white-space: nowrap; }
.hero .more.on { opacity: 1; }
.hero .foot { margin-top: auto; padding-top: 56px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.hero .foot p { font-size: clamp(17px, 1.5vw, 20px); max-width: 44ch; color: var(--soft); }
.hero .foot p strong { color: var(--fg); font-weight: 600; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 17px/1 var(--display); letter-spacing: -0.01em; background: var(--tile-bg); color: var(--tile-fg); padding: 21px 30px; border-radius: 999px; border: 0; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.cta { display: flex; flex-direction: column; align-items: end; gap: 10px; }
.cta small { font-size: 14px; color: var(--soft); }

/* Sezioni: ogni fascia ha il suo respiro */
.block { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }
.block h2 { font: 800 clamp(34px, 5.2vw, 76px)/.95 var(--display); letter-spacing: -0.045em; max-width: 16ch; text-wrap: balance; }
.block .intro { font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); max-width: 52ch; margin-top: 24px; }

.examples { list-style: none; padding: 0; margin-top: clamp(48px, 7vw, 88px); display: grid; gap: clamp(40px, 5vw, 64px); }
.examples li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; padding-top: clamp(28px, 3vw, 40px); border-top: 1.5px solid var(--faint); }
.examples h3 { font: 700 clamp(20px, 2vw, 26px)/1.15 var(--display); letter-spacing: -0.03em; }
.examples p { color: var(--soft); margin-top: 10px; max-width: 38ch; }
.examples .pair { display: grid; gap: 10px; align-content: start; }
.examples .was .tile { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1.5px var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.examples .was .tile.sep { box-shadow: none; text-decoration: none; }

.how { list-style: none; padding: 0; margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.how li { counter-increment: step; }
.how li::before { content: counter(step); display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tile-bg); color: var(--tile-fg); font: 600 22px var(--mono); margin-bottom: 22px; }
.how strong { display: block; font: 700 22px/1.2 var(--display); letter-spacing: -0.03em; margin-bottom: 8px; }
.how span { color: var(--soft); }

/* Download */
.get { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.get .facts { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.get .facts li { font: 500 15px/1 var(--mono); padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--faint); }
.form { background: var(--card-bg); color: var(--card-fg); border-radius: 28px; padding: clamp(24px, 3vw, 40px); }
.form label.field { display: block; font: 600 15px var(--text); margin-bottom: 8px; }
.form input[type=email] { width: 100%; font: 500 19px var(--mono); color: var(--ink); background: var(--field-bg); border: 1.5px solid transparent; border-radius: 14px; padding: 17px 16px; }
.form input[type=email]:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form .consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 18px; font-size: 15px; line-height: 1.45; }
.form .consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.form .turnstile { margin-top: 18px; }
.form .button { width: 100%; margin-top: 22px; background: var(--card-btn-bg); color: var(--card-btn-fg); }
.form :focus-visible { outline-color: var(--card-fg); }
.form .error { color: var(--error); font-size: 15px; font-weight: 600; margin-top: 12px; }
.form .error:empty { display: none; }
.form .done { display: none; }
.form.is-done .ask { display: none; }
.form.is-done .done { display: block; }
.form .done h3 { font: 800 30px/1 var(--display); letter-spacing: -0.04em; }
.form .done p { margin-top: 14px; }
.form .done a { font-weight: 600; }
.form .fine { font-size: 13.5px; color: var(--card-fine); margin-top: 16px; }

.steps { list-style: none; padding: 0; margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1.5px solid var(--faint); padding-top: 18px; }
.steps li::before { content: counter(s); font: 600 15px var(--mono); color: var(--soft); display: block; margin-bottom: 14px; }
.steps strong { display: block; font-weight: 600; line-height: 1.35; }
.steps li > span { display: block; color: var(--soft); margin-top: 6px; font-size: 16px; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.cols h2 { font-size: clamp(28px, 3.4vw, 44px); }
.cols p { color: var(--soft); max-width: 46ch; margin-top: 18px; }
.cols p strong { color: var(--fg); font-weight: 600; }

.end-mark { font: 900 clamp(64px, 17vw, 260px)/.8 var(--display); letter-spacing: -0.06em; padding-top: clamp(56px, 8vw, 104px); color: var(--fg); opacity: .16; user-select: none; white-space: nowrap; overflow: hidden; }
footer.end { padding: 32px 0 40px; border-top: 1.5px solid var(--faint); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--soft); }
footer.end a { color: var(--fg); }

/* Informativa e 404 */
.doc { max-width: 720px; padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 120px); }
.doc h1 { font: 800 clamp(38px, 6vw, 72px)/.95 var(--display); letter-spacing: -0.045em; }
.doc h2 { font: 700 22px/1.2 var(--display); letter-spacing: -0.03em; margin-top: 44px; }
.doc p, .doc li { color: var(--soft); margin-top: 12px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc .updated { font: 500 14px var(--mono); margin-top: 20px; }

@media (max-width: 860px) {
  .hero .foot { flex-direction: column; align-items: start; }
  .cta { align-items: start; }
  .examples li, .get, .cols { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .row { gap: 6px; }
  .steps { grid-template-columns: 1fr; }
  .button { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
  .cta { align-items: stretch; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .tile.in { animation: none; }
  .hero .tile.out, .hero .more, .button { transition: none; }
}

/* Ogni sezione dopo l'hero è un foglio appena più chiaro, con gli angoli delle tessere. */
.band.block { padding-top: 0; padding-bottom: clamp(16px, 2vw, 24px); }
.band.block > .wrap { max-width: calc(1240px + 2 * clamp(16px, 4vw, 48px)); padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); background: rgba(255, 255, 255, .09); border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 24px); }
@media (min-width: 1340px) { .band.block > .wrap { margin: 0 auto; } }
