/* Citerank — landing statica (preset lean-static: estetica prudente, zero JS).
   Palette neutra leggibile, layout familiare, animazioni minime. */

:root {
  --bg: #ffffff;
  --bg-muted: #f6f7f9;
  --text: #1b2733;
  --text-muted: #55616e;
  --border: #dfe3e8;
  --accent: #1a56db;
  --accent-dark: #1447b3;
  --accent-soft: #eef3fd;
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Accessibilità: skip link e focus visibili */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  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(--text);
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 4px;
}

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

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

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

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

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

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  background: var(--bg);
}

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

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  max-width: 720px;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
}

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

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Sezioni */
.section {
  padding: 64px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 32px);
}

.section-sub {
  margin: 0 0 32px;
  color: var(--text-muted);
}

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

.steps h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.steps li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* Features */
.feature-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Pricing */
.pricing-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}

.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-featured {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}

.plan h3 {
  margin: 0;
  font-size: 18px;
}

.plan-price {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
}

.plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan .btn {
  margin-top: auto;
}

/* FAQ */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-top: 12px;
}

summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

details p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  padding: 64px 0;
  text-align: center;
  background: var(--accent-soft);
}

.cta-band h2 {
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.footer-inner a {
  color: var(--text-muted);
}

.footer-inner a:hover {
  color: var(--text);
}

.footer-note {
  margin-left: 0 !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  * {
    animation: none !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding: 48px 0;
  }

  .section {
    padding: 48px 0;
  }
}
