/* Prisma Firenze — premium electronics, modern minimal */
:root {
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --line: rgba(20, 20, 20, 0.1);
  --paper: #f5f4f1;
  --paper-2: #ebeae5;
  --white: #ffffff;
  --accent: #25635a;
  --accent-deep: #1a4a44;
  --accent-soft: rgba(37, 99, 90, 0.12);
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.08);
  --radius: 4px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--white) 0%, var(--paper) 40%, var(--paper-2) 100%);
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow { width: min(100% - 2rem, 740px); }

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.45rem; }

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head.left {
  text-align: left;
  align-items: flex-start;
}

.section-head .section-lead { margin-inline: auto; }
.section-head.left .section-lead { margin-inline: 0; }

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  background:
    linear-gradient(135deg, var(--accent) 0 50%, var(--ink) 50% 100%);
  clip-path: polygon(50% 8%, 92% 88%, 8% 88%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

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

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

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

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

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

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-small:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.25) 0%, rgba(20, 20, 20, 0.55) 45%, rgba(20, 20, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.5rem;
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 40rem);
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.75); }

.hero h1 { color: var(--white); }

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
}

.trust-row li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-row strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.trust-row span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Benefits */
.benefit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.benefit-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.benefit-grid li:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.benefit-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.benefit-grid h3,
.benefit-grid p {
  padding-inline: 1.15rem;
}

.benefit-grid h3 { margin-top: 1rem; }

.benefit-grid p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price-card .badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 0.3rem 0.55rem;
}

.price {
  margin: 0.4rem 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
}

.price-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-card li { margin-bottom: 0.35rem; }

.price-aside {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.price-aside h3 { margin-bottom: 1rem; }

.aside-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.aside-cols h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.aside-cols ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Split / steps */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

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

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--ink);
  color: var(--white);
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* Legal */
.legal-dark {
  background: #0f0f0f;
  color: rgba(255, 255, 255, 0.85);
}

.legal-dark h2,
.legal-dark h3 { color: var(--white); }

.legal-dark .eyebrow { color: rgba(255, 255, 255, 0.55); }

.legal-dark a { color: #9fd4cb; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.legal-grid article {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.legal-grid p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-hero p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-card,
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}

.map-frame {
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem !important;
  font-weight: 400 !important;
}

.checkbox input {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.form-status {
  margin: 0;
  padding: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.form-status.error {
  background: #f6e4e2;
  color: #7a2e24;
}

/* Prose pages */
.prose {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li { color: var(--ink-soft); }

.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.75rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.footer-brand p { margin: 0; font-size: 0.92rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: rise 0.8s ease both;
}

.benefit-grid li,
.price-card {
  animation: rise 0.7s ease both;
}

.benefit-grid li:nth-child(2),
.price-card:nth-child(2) { animation-delay: 0.08s; }
.benefit-grid li:nth-child(3),
.price-card:nth-child(3) { animation-delay: 0.14s; }
.benefit-grid li:nth-child(4) { animation-delay: 0.2s; }
.benefit-grid li:nth-child(5) { animation-delay: 0.26s; }
.benefit-grid li:nth-child(6) { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content,
  .benefit-grid li,
  .price-card { animation: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 900px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid,
  .pricing-grid,
  .legal-grid,
  .split,
  .contact-grid,
  .aside-cols { grid-template-columns: 1fr; }
  .split-media img { min-height: 280px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn-small {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero { min-height: 78vh; }
  .trust-row { grid-template-columns: 1fr 1fr; }
}
