/* Visancia — site vitrine */
:root {
  --ink: #14202b;
  --ink-soft: #243140;
  --paper: #f6f3ec;
  --paper-deep: #efeae0;
  --white: #fffcf7;
  --accent: #0f6e6a;
  --accent-dark: #0b5552;
  --accent-soft: #e4f1f0;
  --gold: #c9a14a;
  --muted: #5c6570;
  --line: #e4ded3;
  --danger: #8a3b2b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(20, 32, 43, 0.07);
  --header-h: 76px;
  --max: 1160px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 252, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand img, .brand svg.mark { width: 36px; height: 36px; }
.brand span { line-height: 1; }

nav.primary { display: flex; align-items: center; gap: 4px; }
nav.primary a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 999px;
}
nav.primary a:hover { color: var(--ink); background: var(--paper); }

.nav-toggle { display: none; }
.nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }
.btn.small { padding: 9px 16px; font-size: 0.92rem; }
.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--paper); }
.btn.light { background: #fff; color: var(--ink) !important; }
.btn.light:hover { background: var(--paper); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% 0%, rgba(15, 110, 106, 0.1), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  padding: 80px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -0.025em; color: var(--ink); }

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 20px;
  font-optical-sizing: auto;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 16px;
}

h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }

.fine {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
}

/* Demo card in hero (no fake citations) */
.demo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  position: relative;
}
.demo .dots { display: flex; gap: 6px; margin-bottom: 16px; }
.demo .dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block;
}
.demo .q {
  background: var(--paper);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 16px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.demo .q strong { color: var(--ink); font-weight: 600; }
.engines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.engines span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 10px;
}
.demo .caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--paper); }
section.ink {
  background: var(--ink);
  color: #d7dde4;
}
section.ink h2, section.ink h3 { color: #fff; }
section.ink .muted, section.ink p { color: #c5ccd4; }

.section-intro { max-width: 40rem; margin: 0 0 40px; color: var(--muted); }

.grid {
  display: grid;
  gap: 20px;
}
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.pricing { grid-template-columns: repeat(2, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: 10px; }

.num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

/* Steps */
.steps { counter-reset: step; }
.steps .card { position: relative; min-height: 100%; }
.grid.pricing { align-items: stretch; }
.grid.pricing > .card { min-height: 100%; display: flex; flex-direction: column; }
@media (min-width: 801px) {
  .grid.pricing > .card { min-height: 28rem; }
}

/* Offers */
.offer {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  position: relative;
}
.offer.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  background: #fff;
}
.badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 4px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price small {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.was {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 16px;
  min-height: 2.8em;
}
.offer ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.offer li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.vat { font-size: 0.88rem; color: var(--muted); margin: 22px 0 0; }

.notice {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-top: 28px;
  color: var(--ink-soft);
}
.notice strong { color: var(--ink); }
.notice + .notice { margin-top: 16px; }

/* Why */
.why-item { display: flex; gap: 16px; }
.why-item .icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}
.why-item .icon svg { width: 22px; height: 22px; }

/* FAQ */
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin: 0 0 10px;
}
details[open] { border-color: #d2cdc2; }
summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  padding: 16px 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -4px;
}
details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* Form / contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

form.audit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

label, .label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.req { color: var(--accent-dark); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d8d2c6;
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235c6570' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 110, 106, 0.18);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-soft);
  grid-column: 1 / -1;
  margin-top: 4px;
}
.consent input { margin-top: 4px; flex-shrink: 0; accent-color: var(--accent); width: 16px; height: 16px; }
.form-actions { grid-column: 1 / -1; margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.aside-contact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.aside-contact h2 { margin-top: 0; }
.aside-contact p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { margin: 0 0 12px; color: var(--ink-soft); }
.contact-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--accent-dark); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--white);
}
.socials a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--paper);
}
footer.site .wrap {
  display: grid;
  gap: 24px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 28rem; }
.foot-brand img { width: 36px; height: 36px; }
.foot-brand strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.15rem;
  display: block;
  font-weight: 600;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--accent-dark); }
.legal-bits { margin: 0; font-size: 0.84rem; line-height: 1.55; }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--accent-dark); text-decoration: none; }

@media (max-width: 960px) {
  .hero-grid, .contact-grid, .grid.four { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
}

@media (max-width: 800px) {
  .nav-btn { display: flex; }
  nav.primary {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  nav.primary a { padding: 12px 10px; }
  nav.primary .btn { text-align: center; margin-top: 8px; }
  #nav-toggle:checked ~ nav.primary { display: flex; }
  header.site .wrap { position: relative; width: 100%; padding: 0 20px; }
  header.site { width: 100%; }

  .hero-grid, .contact-grid, .grid.two, .grid.three, .grid.four, .grid.pricing {
    grid-template-columns: 1fr;
  }
  .fields { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

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