/* arboleda.co — Clearframe Refined design system */
:root {
  --ink: #0F1713; --muted: #5A6660; --line: #E3E8E4; --card: #F3F6F2; --tint: #EAF4EC;
  --accent: #157A53; --accent-deep: #0C4A33; --lime: #CDEB8B;
  --sans: 'Instrument Sans', sans-serif; --display: 'Space Grotesk', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: #FFFFFF; color: var(--ink); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
.container { max-width: 1312px; margin: 0 auto; padding-left: 64px; padding-right: 64px; }

/* Announcement */
.announce { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 24px; background: var(--tint); font-size: 15px; color: var(--accent-deep); }
.announce a { font-weight: 600; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.wordmark .tld { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-deep); color: #FFFFFF; }
.btn-primary:hover { background: #0E5A3E; }
.btn-gray { background: var(--card); color: var(--ink); }
.btn-line { border-color: #CBD5CE; color: var(--ink); background: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--accent-deep); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: #FFFFFF; background: transparent; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn .arrow { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--accent-deep); font-size: 14px; margin-right: -10px; }

/* Hero */
.hero { padding: 96px 0 80px; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.05; max-width: 940px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 640px; margin-top: 26px; }
.hero-ctas { display: flex; gap: 14px; align-items: center; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.hero-micro { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Page hero (interior pages, left-aligned) */
.page-hero { padding: 88px 0 64px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.06; max-width: 880px; }
.page-hero .lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 660px; margin-top: 24px; }
.page-hero .hero-ctas { justify-content: flex-start; margin-top: 34px; }

/* Logo strip */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.logos .container { display: flex; align-items: center; gap: 48px; }
.logos-cap { font-size: 13px; color: var(--muted); width: 180px; flex-shrink: 0; line-height: 1.4; }
.logos-row { display: flex; gap: 44px; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; }
.logos-row li { font-family: var(--display); font-size: 17px; font-weight: 500; color: #9AA69E; }

/* Sections */
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 48px; }
.section-head h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.08; max-width: 540px; }
.section-head p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 420px; }

/* Service cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { background: var(--card); border-radius: 22px; padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 16px; }
.svc .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.svc h3 { font-size: 30px; }
.svc .body { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.svc-link { margin-top: auto; padding-top: 14px; font-size: 15px; font-weight: 600; color: var(--accent-deep); }
.svc-link:hover { text-decoration: underline; }

/* Mini product-UI vignettes */
.mock { margin-top: 14px; background: #FFFFFF; border-radius: 14px; padding: 18px; box-shadow: 0 1px 2px rgba(15,23,19,0.06); display: flex; flex-direction: column; gap: 10px; }
.mock-title { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #3D453F; }
.chip { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--accent-deep); flex-shrink: 0; }
.chip-dim { background: #EDF0EC; color: var(--muted); }
.mock-bar { height: 6px; border-radius: 999px; background: #EDF0EC; overflow: hidden; }
.mock-bar i { display: block; height: 100%; width: 68%; background: var(--accent); border-radius: 999px; }
.metric { display: flex; align-items: baseline; justify-content: space-between; }
.metric b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.metric span { font-size: 12px; color: var(--muted); }
.spark { height: 36px; border-radius: 8px; background: linear-gradient(180deg, rgba(21,122,83,0.14), rgba(21,122,83,0) 75%); position: relative; overflow: hidden; }
.spark::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--accent); clip-path: polygon(0 100%, 8% 70%, 18% 85%, 30% 45%, 44% 60%, 58% 25%, 72% 40%, 86% 10%, 100% 22%, 100% 100%); }
.nodes { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.node { font-size: 11.5px; font-weight: 600; color: #3D453F; background: #EDF0EC; border-radius: 8px; padding: 7px 9px; white-space: nowrap; }
.node-hub { background: var(--accent-deep); color: #FFFFFF; }
.wire { flex: 1; height: 1.5px; background: #C8D4CC; min-width: 8px; }

/* Tinted band sections */
.band { background: var(--card); border-radius: 28px; margin: 0 40px; }
.band .container { padding-top: 88px; padding-bottom: 88px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ''; position: absolute; top: 0; left: 0; right: -28px; height: 1px; background: #CBDBD1; }
.step:last-child::before { right: 0; }
.step-dot { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.step-num { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 360px; }

/* Detail list rows (service pages) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 360px 1fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-num { font-family: var(--display); font-size: 18px; font-weight: 500; padding-top: 4px; color: var(--accent); }
.row h3 { font-size: 27px; }
.row .tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--accent-deep); margin-top: 12px; }
.row-body { font-size: 16.5px; line-height: 1.65; color: #3D453F; max-width: 640px; }
.row-body .note { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; color: #3D453F; }
.checklist li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }

/* Quote band */
.quoteband { background: var(--tint); border-radius: 28px; padding: 72px; }
.quoteband .ph { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #7FA28E; }
.quoteband blockquote { font-family: var(--display); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.25; letter-spacing: -0.02em; color: #5E7A6B; margin-top: 20px; max-width: 1080px; }
.quoteband .attr { margin-top: 22px; font-size: 15px; color: #7FA28E; }

/* CTA card */
.cta { margin: 0 40px 96px; background: var(--accent-deep); border-radius: 28px; color: #FFFFFF; }
.cta .container { padding-top: 80px; padding-bottom: 80px; display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.cta h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; max-width: 460px; }
.cta p { font-size: 17px; line-height: 1.55; color: #BFD8CC; margin-top: 16px; max-width: 440px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 290px; }
.cta-micro { font-size: 14px; color: #BFD8CC; text-align: center; }
.cta-micro a { color: #FFFFFF; text-decoration: underline; }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font-family: var(--display); font-size: 20px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 720px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; font-family: var(--sans); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14.5px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-base { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* Forms / portal */
.auth-main { min-height: calc(100vh - 180px); display: flex; align-items: flex-start; justify-content: center; padding: 72px 24px 96px; }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border-radius: 24px; padding: 44px 40px; }
.auth-card h1 { font-size: 30px; }
.auth-card .sub { margin-top: 10px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 15.5px; padding: 13px 16px; border-radius: 12px; border: 1px solid #CBD5CE; background: #FFFFFF; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field .hint { font-size: 13px; color: var(--muted); }
.form-actions { display: flex; gap: 12px; margin-top: 28px; align-items: center; justify-content: space-between; }
.form-foot { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.form-foot a { color: var(--accent-deep); font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; background: #FFFFFF; border: 1px solid #CBD5CE; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.checks input { accent-color: var(--accent); }
.checks label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.progress-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.progress-steps span { height: 5px; border-radius: 999px; background: #DDE5DF; flex: 1; }
.progress-steps span.on { background: var(--accent); }
.portal-step[hidden] { display: none; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }

/* Portal dashboard */
.portal-layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); background: #F8FAF8; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.sidebar .wordmark { padding: 4px 12px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9AA69E; padding: 0 14px; margin: 14px 0 6px; }
.side-link { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.side-link svg { flex-shrink: 0; }
.side-link:hover { background: #ECF1EC; color: var(--ink); }
.side-link.active { background: var(--tint); color: var(--accent-deep); font-weight: 600; }
.side-link.locked { cursor: default; }
.side-link.locked:hover { background: transparent; color: var(--muted); }
.side-link .side-chip { margin-left: auto; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #EDF0EC; color: var(--muted); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.portal-content { min-width: 0; }
.portal-main { padding: 56px 0 96px; }
.portal-main .eyebrow { margin-bottom: 14px; }
.portal-main h1 { font-size: clamp(34px, 3.6vw, 48px); }
.portal-main .sub { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.55; }
.status-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.status { font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: var(--card); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.status.done { background: var(--tint); color: var(--accent-deep); }
.status.active { background: var(--lime); color: var(--accent-deep); }
.portal-section { margin-top: 72px; }
.portal-section > h2 { font-size: clamp(26px, 2.6vw, 32px); }
.portal-section > .sub { margin-top: 8px; font-size: 16px; color: var(--muted); max-width: 640px; line-height: 1.55; }
.possible-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.possible { background: var(--card); border-radius: 18px; padding: 26px 24px; }
.possible .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.possible h3 { font-size: 21px; margin-top: 8px; }
.possible p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.possible.empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .container { padding-left: 28px; padding-right: 28px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 20px 28px 26px; gap: 18px; box-shadow: 0 16px 32px rgba(15,23,19,0.08); }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta .container { flex-direction: column; align-items: flex-start; }
  .band { margin: 0 16px; }
  .cta { margin: 0 16px 64px; }
  .checklist { grid-template-columns: 1fr; }
  .logos .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .possible-grid { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; border-right: none; border-bottom: 1px solid var(--line); padding: 14px 20px; overflow-x: auto; }
  .sidebar .wordmark { padding: 0 8px 0 0; }
  .side-nav { flex-direction: row; align-items: center; }
  .side-label { display: none; }
  .side-link { white-space: nowrap; padding: 9px 13px; }
  .side-link .side-chip { margin-left: 8px; }
  .sidebar-foot { margin-top: 0; margin-left: auto; flex-direction: row; }
}

/* UX layer: accessibility, feedback, mobile */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent-deep); color: #FFFFFF; padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 600; font-size: 15px; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-links a { transition: color 0.12s ease; }
.nav-links a:hover { color: var(--accent); }
.svc { transition: box-shadow 0.15s ease; }
.svc:hover { box-shadow: 0 6px 24px rgba(15,23,19,0.07); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; background: #FFFFFF; border: 1px solid #CBD5CE; border-radius: 999px; padding: 0 15px; height: 45px; cursor: pointer; }
.nav-toggle i { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }
.step-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.field .error { display: none; font-size: 13px; font-weight: 600; color: #B4502F; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select { border-color: #B4502F; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .svc, .nav-links a, .site-header { transition: none; }
  .btn:hover { transform: none; }
}
