/* LegatoWeb — lean interim marketing styles */
:root {
  --ink: #111111;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --line: #e8e4df;
  --bg: #fffcf8;
  --bg-soft: #f7f3ee;
  --bg-tint: #fff4ec;
  --brand: #F26522;
  --brand-dark: #d45212;
  --brand-light: #fff0e8;
  --accent: #F26522;
  --charcoal: #1c1917;
  --warn: #b45309;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 8px 24px rgba(17, 17, 17, 0.06);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
ul { color: var(--ink-soft); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section.tint { background: var(--bg-tint); }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.1rem; max-width: 40rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo img { height: 40px; width: auto; display: block; object-fit: contain; }
.logo:hover { text-decoration: none; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.site-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--brand-light);
  text-decoration: none;
}
.nav-cta {
  margin-left: 0.35rem;
  background: var(--brand) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; color: #fff !important; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 0.85rem; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: transparent; }
.btn-ghost:hover { background: var(--brand-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  padding: 3.25rem 0 2.5rem;
  background:
    radial-gradient(1200px 400px at 10% -10%, var(--brand-light), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}
.hero-card {
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  color: #fff;
}
.hero-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}
.hero-card ul { margin: 0; padding-left: 1.1rem; color: #fff; }
.hero-card li { margin-bottom: 0.4rem; color: rgba(255, 255, 255, 0.92); }
.brand-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 700px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-dark);
  text-decoration: none;
}
.card a.card-link:hover { text-decoration: underline; }
.card.plan .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}
.card.plan .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.card.plan ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  flex: 1;
}
.card.plan li { margin-bottom: 0.35rem; font-size: 0.95rem; }
.icon-dot {
  width: 2rem; height: 2rem;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.steps h3 { font-size: 1.05rem; }

/* FAQ */
.faq { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0.15rem; }

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 720px) {
  .cta-band { grid-template-columns: 1fr auto; padding: 2.25rem 2.5rem; }
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: 0.85; margin-bottom: 0; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: var(--brand-dark); }

/* Agent entry strip */
.agent-entry {
  border: 1px dashed #f0b896;
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.agent-entry p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.agent-entry strong { color: var(--brand-dark); }

/* Forms */
.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}
.privacy-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.form-group .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand-light);
  border-color: var(--brand);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 36rem;
}
.form-success.show { display: block; }
.form-success h3 { color: #065f46; }
.form-hidden { display: none !important; }

/* Process list */
.process {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.process li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.process .num {
  width: 2rem; height: 2rem;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.process h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.process p { margin: 0; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand .logo { display: inline-flex; margin-bottom: 0.5rem; }
.footer-brand .logo img { height: 32px; }
.footer-brand p { font-size: 0.9rem; max-width: 22rem; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Agents hub */
.agent-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .agent-list { grid-template-columns: 1fr 1fr; } }
.agent-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: #fff;
}
.agent-item h3 { margin-bottom: 0.4rem; }
.tbd-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: var(--bg-soft);
  color: var(--muted);
  font-style: italic;
}

/* Persistent agent launcher */
.agent-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  max-width: min(100vw - 2rem, 360px);
}
.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,23,42,0.25);
}
.agent-chip:hover { background: #292524; }
.agent-chip .dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}
.agent-panel {
  display: none;
  width: min(100vw - 2rem, 360px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.agent-panel.open { display: block; }
.agent-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--charcoal);
  color: #fff;
}
.agent-panel-head strong { font-size: 0.95rem; }
.agent-panel-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.agent-panel-body { padding: 1rem; }
.agent-panel-body p {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}
.agent-suggests { display: grid; gap: 0.5rem; }
.agent-suggests button {
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.agent-suggests button:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand-dark);
}
.agent-reply {
  display: none;
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: var(--brand-light);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.agent-reply.show { display: block; }
.agent-reply a { font-weight: 600; }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.stack-sm > * + * { margin-top: 0.5rem; }
