/* SheetPulse landing — preset lean-static: HTML+CSS statico, zero JS.
   Palette neutra leggibile (design_boldness: conservative), un solo accento
   verde profondo che richiama fogli/finanza; niente gradienti "AI slop". */

:root {
  --ink: #17211d;
  --ink-soft: #46534d;
  --ink-mute: #66716b;
  --paper: #fbfaf7;
  --paper-alt: #f2f0ea;
  --card: #ffffff;
  --line: #e3e0d7;
  --line-soft: #eceae2;
  --accent: #0e6b52;
  --accent-dark: #0a5440;
  --accent-tint: #e7f1ed;
  --focus-ring: #0e6b52;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 33, 29, 0.05), 0 8px 24px rgba(23, 33, 29, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-dark);
}

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 760px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  position: relative;
  flex: none;
}

/* Piccolo motivo "sheet": croce interna del Marke */
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff 0 0) center / 60% 2px no-repeat,
    linear-gradient(#fff 0 0) center / 2px 60% no-repeat;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-right: auto;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}

.btn-block {
  display: block;
  text-align: center;
  margin-bottom: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-tint);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--card);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
}

.btn-invert {
  background: #fff;
  color: var(--accent-dark);
}

.btn-invert:hover {
  background: var(--accent-tint);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.hero-actions.center {
  justify-content: center;
}

.fineprint {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* Mini foglio: struttura, nessun numero inventato */

.hero-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sheet-tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sheet-table th,
.sheet-table td {
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
  height: 1.5em;
}

.sheet-table thead th {
  background: var(--paper-alt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}

.sheet-table tbody th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mute);
  font-weight: 400;
  white-space: nowrap;
}

.sheet-table tbody tr:first-child th {
  color: var(--accent-dark);
}

.sheet-note {
  font-size: 0.8rem;
  color: var(--ink-mute);
  padding: 10px 14px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.posture-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 40px auto 0;
}

.posture-strip li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding-left: 40px;
}

.posture-strip li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lead {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* Steps */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 8px;
  padding-left: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan-card-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan-flag {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}

.plan-card h3 {
  margin-bottom: 4px;
}

.plan-price {
  margin: 4px 0 8px;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.per {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-left: 4px;
}

.plan-billed {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.plan-features li {
  padding-left: 22px;
  position: relative;
}

.plan-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.pricing-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  max-width: 640px;
}

/* Limits */

.limits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.limits-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.limits-list strong {
  color: var(--ink);
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  list-style-position: outside;
}

.faq-list summary::marker {
  color: var(--accent);
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.faq-list details p {
  padding: 14px 20px 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* CTA band */

.cta-band {
  background: var(--accent-dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #d9e8e2;
  max-width: 560px;
  margin: 0 auto 8px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 40px 0 24px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--ink-mute);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 8px 0 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 32px;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.footer-legal p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .header-row {
    justify-content: space-between;
  }

  .footer-row {
    flex-direction: column;
  }
}
