/* Naelda Tech site styles. Design: "A1 Navy and emerald".
   Everything that was an inline style in the approved mockups lives here now,
   so the Content Security Policy can block inline styles. */

/* ---------- Fonts (self-hosted, SIL Open Font License, see /fonts) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-variable.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #0B2545;
  --emerald: #0E9F6E;
  --green-text: #0A7A55;
  --button-text: #0B2546;
  --green-on-dark: #3CCB96;
  --body-text: #44505E;
  --muted-text: #5E6B79;
  --band: #F5F7F9;
  --border: #DCE2E8;
  --muted-on-dark: #B9C4D1;
  --light-gray: #C5CDD6;
  --mid-blue: #46699C;
  --white: #FFFFFF;
  /* Added for form errors on the navy contact section. Not in the mockups. */
  --error-on-dark: #FFB4A9;
  --focus: var(--navy);
  --font-heading: "Archivo", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  font-size: 18px;
  line-height: 1.55;
}
input, textarea, select, button { font-family: inherit; }
a { color: var(--green-text); }
a:hover { color: var(--navy); }
p, h1, h2, h3, ul, ol { margin: 0; }
strong { font-weight: 600; color: var(--navy); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark { --focus: var(--green-on-dark); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip link: hidden until it receives keyboard focus. */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy);
  font-weight: 600; padding: 12px 18px; border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; }
.section { padding: 80px var(--gutter); }
.band { background: var(--band); border-top: 1px solid var(--border); }
.band--both { border-bottom: 1px solid var(--border); }
.dark { background: var(--navy); }

.heading { font-family: var(--font-heading); color: var(--navy); }
.green { color: var(--green-text); }
.green-on-dark { color: var(--green-on-dark); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); padding: 18px var(--gutter); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  letter-spacing: 0.01em; color: var(--white); text-decoration: none;
  padding: 8px 0;
}
.wordmark:hover { color: var(--white); }
.site-nav {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 16px;
}
.site-nav a, .back-link {
  color: var(--muted-on-dark); text-decoration: none; padding: 10px 0;
  display: inline-block;
}
.site-nav a:hover, .back-link:hover { color: var(--white); }
.back-link { font-size: 16px; }
.hablamos { color: var(--green-on-dark); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--emerald); color: var(--button-text);
  font-weight: 600; font-size: 18px; line-height: 1.3;
  padding: 14px 28px; min-height: 44px; border: 0; border-radius: 8px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--button-text); }
.btn[disabled] { cursor: progress; opacity: 0.75; }

/* ---------- Hero ---------- */
.hero { padding: 88px var(--gutter) 80px; }
.hero .wrap {
  display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center;
}
.hero-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--navy); text-wrap: balance;
}
.hero-lead { max-width: 680px; font-size: 21px; color: var(--body-text); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 8px;
}
.text-link { font-weight: 600; font-size: 18px; padding: 12px 0; display: inline-block; }

/* Step graphic: "From having AI to being good at it" */
.steps-graphic {
  flex: 1 1 340px; max-width: 480px; min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.steps-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 24px;
  line-height: 1.15; color: var(--navy);
}
.steps-body { display: flex; flex-direction: column; gap: 10px; }
.steps-bars { display: flex; align-items: flex-end; gap: 8px; height: 260px; }
.steps-bar {
  flex: 1 1 0; min-width: 0; padding: 12px 10px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.steps-bar span { font-size: 14px; font-weight: 600; line-height: 1.25; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.steps-bar--1 { height: 92px; background: var(--light-gray); color: var(--navy); }
.steps-bar--2 { height: 148px; background: var(--mid-blue); color: var(--white); }
.steps-bar--3 { height: 204px; background: var(--navy); color: var(--white); }
.steps-bar--4 { height: 260px; background: var(--emerald); color: var(--navy); }
.steps-labels {
  display: flex; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--navy);
}
.steps-label {
  flex: 1 1 0; min-width: 0; border-top: 2px solid var(--emerald); padding-top: 8px;
  white-space: nowrap;
}
.steps-label--wide { flex: 2 1 8px; }
.steps-num {
  font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1;
  color: var(--green-text); display: block; margin-bottom: 4px;
}
.steps-foot { font-size: 16px; font-weight: 600; color: var(--navy); }

/* Side by side (wide screens): line the graphic up with the text, tallest bar level
   with the top of the headline and the caption level with the "Talk to us" button. */
@media (min-width: 921px) {
  .hero .wrap { align-items: stretch; }
  .steps-graphic { justify-content: space-between; padding-top: var(--hero-cap-offset, 12px); }
  .steps-foot { padding-bottom: var(--hero-foot-offset, 13px); }
  /* The bars grow to fill the height, keeping their proportions (92/148/204/260). */
  .steps-body { flex: 1 1 auto; }
  .steps-bars { flex: 1 1 auto; height: auto; min-height: 260px; }
  .steps-bar--1 { height: 35.4%; }
  .steps-bar--2 { height: 56.9%; }
  .steps-bar--3 { height: 78.5%; }
  .steps-bar--4 { height: 100%; }
}

/* ---------- "Buying AI was the easy part." ---------- */
.objections { padding: 56px var(--gutter); }
.objections .wrap { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-start; }
.objections-intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.objections-intro h2 {
  font-family: var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1.1;
  color: var(--navy); text-wrap: balance;
}
.objections-intro p { font-size: 19px; }
.objections-intro .green { font-weight: 600; }
/* Made larger than the paragraph above at Rodrigo's request (2026-12-01). */
.objections-intro .objections-payoff { font-size: 23px; line-height: 1.35; }
.qa-list { flex: 1 1 440px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); min-width: 0; }
.qa { padding: 18px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.qa h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--navy);
}
.qa p { font-size: 17px; }

/* ---------- Check lists (used in several sections) ---------- */
.checks { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.checks svg { flex: 0 0 auto; }

/* ---------- "How we get your team there" ---------- */
.how .wrap { display: flex; flex-direction: column; gap: 32px; }
.section-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 36px; line-height: 1.15; color: var(--navy);
}
.how-body { display: flex; flex-direction: column; gap: 12px; }
.step-boxes { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.step-box {
  flex: 1 1 240px; background: var(--band); border-top: 4px solid var(--emerald);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.step-box-top { display: flex; justify-content: space-between; align-items: center; }
.step-box-num {
  font-family: var(--font-heading); font-weight: 700; font-size: 40px; line-height: 1; color: var(--green-text);
}
.step-box h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--navy);
}
.pm-bar {
  background: var(--navy); padding: 24px 28px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center;
}
.pm-bar h3 {
  flex: 1 1 260px; font-family: var(--font-heading); font-weight: 600; font-size: 22px;
  line-height: 1.2; color: var(--white);
}
.pm-bar h3 span { font-weight: 500; color: var(--muted-on-dark); }
.pm-bar .checks { flex: 2 1 420px; flex-direction: row; flex-wrap: wrap; gap: 10px 32px; min-width: 0; }
.pm-bar .checks li { color: var(--white); }

@media (max-width: 900px) {
  .step-box { flex-basis: 100%; }
}

/* ---------- "Why Naelda" ---------- */
.about .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.about-copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.about-lists { flex: 1 1 400px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.about-list { display: flex; flex-direction: column; gap: 12px; }
.about-list h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--navy);
}

/* "Measured, before and after" strip */
.measured {
  flex: 1 1 100%; border-top: 2px solid var(--emerald); padding-top: 24px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.measured-title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; color: var(--navy); }
.measured-pairs { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.measured-pair { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.measured-name { font-size: 16px; font-weight: 600; color: var(--navy); }
.measured-row { display: flex; align-items: center; gap: 10px; }
.measured-row-label { flex: 0 0 48px; font-size: 14px; font-weight: 600; color: var(--navy); }
.measured-row-label--after { color: var(--green-text); }
.measured-track { flex: 1 1 auto; display: flex; }
.measured-fill { height: 14px; background: var(--navy); }
.measured-fill--after { background: var(--emerald); }
.w-100 { width: 100%; }
.w-90 { width: 90%; }
.w-45 { width: 45%; }
.w-35 { width: 35%; }
.w-30 { width: 30%; }
.measured-caption { font-size: 14px; color: var(--muted-text); }

/* ---------- Contact ---------- */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.contact-intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-intro h2 {
  font-family: var(--font-heading); font-weight: 700; font-size: 40px; line-height: 1.1;
  color: var(--white); text-wrap: balance;
}
.contact-intro > p { color: var(--muted-on-dark); }
.contact-intro h3 {
  margin-top: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--white);
}
.next-steps {
  padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 8px;
  color: var(--white); font-size: 17px;
}

.contact-form-area { flex: 1 1 380px; min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form[hidden] { display: none; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { flex-basis: 100%; }
.field label { color: var(--white); font-size: 16px; font-weight: 600; }
.field .req { font-weight: 400; color: var(--muted-on-dark); }
.field input, .field select, .field textarea {
  font-size: 17px; padding: 12px 14px; min-height: 44px; width: 100%;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--white); color: var(--navy);
}
.field textarea { resize: vertical; }
.field textarea::placeholder { color: var(--muted-text); opacity: 1; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border: 2px solid var(--error-on-dark); box-shadow: 0 0 0 1px var(--error-on-dark);
}
.field-error { color: var(--error-on-dark); font-size: 16px; font-weight: 600; }
.field-error[hidden] { display: none; }

/* Honeypot: off screen, hidden from screen readers (aria-hidden on the wrapper)
   and out of the tab order (tabindex="-1" on the input). */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.form-note { font-size: 15px; color: var(--muted-on-dark); }
.form-status { color: var(--error-on-dark); font-weight: 600; font-size: 16px; }
.form-status:empty { display: none; }
.form-status a { color: var(--white); }

/* In-page thank-you message (shown in place of the form when JavaScript runs) */
.thanks-box {
  background: rgba(255, 255, 255, 0.06); border-top: 4px solid var(--emerald);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; color: var(--white);
}
.thanks-box[hidden] { display: none; }
.thanks-box h3 { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--white); }
.thanks-box h3:focus { outline: none; }
.thanks-box p { color: var(--muted-on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); padding: 28px var(--gutter); }
.site-footer--rule { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center;
  font-size: 15px; color: var(--muted-on-dark);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { color: var(--muted-on-dark); display: inline-block; padding: 10px 0; }
.footer-links a:hover { color: var(--white); }

/* ---------- Legal and simple pages ---------- */
.page-main { padding: 64px var(--gutter) 80px; }
.page-main .wrap--text { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; overflow-wrap: break-word; }
.page-main .wrap--text p, .page-main .wrap--text li { overflow-wrap: anywhere; }
.page-main h1 {
  margin: 0 0 8px; font-family: var(--font-heading); font-weight: 700; font-size: 48px;
  line-height: 1.08; letter-spacing: -0.01em; color: var(--navy);
}
.page-main h2 {
  margin: 20px 0 0; font-family: var(--font-heading); font-weight: 600; font-size: 26px;
  line-height: 1.2; color: var(--navy);
}
.page-main ul { padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.page-main .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- "Your privacy choices" panel ---------- */
.privacy-panel {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 24px; border: 0; border-top: 4px solid var(--emerald); border-radius: 8px;
  background: var(--white); color: var(--body-text);
  box-shadow: 0 12px 40px rgba(11, 37, 69, 0.35);
}
.privacy-panel::backdrop { background: rgba(11, 37, 69, 0.55); }
/* Without JavaScript the footer link targets the panel and CSS shows it. */
html:not(.js) .privacy-panel:target {
  display: block; position: fixed; inset: 16px; margin: auto; height: fit-content; z-index: 50;
}
.privacy-panel .pc-body { display: flex; flex-direction: column; gap: 14px; }
.privacy-panel h2 {
  font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--navy);
}
.privacy-panel p { font-size: 17px; }
.pc-toggle { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.pc-toggle input { width: 24px; height: 24px; margin: 0; accent-color: var(--green-text); flex: 0 0 auto; }
.pc-toggle label { font-weight: 600; color: var(--navy); }
.pc-gpc { background: var(--band); border-left: 4px solid var(--emerald); padding: 12px 14px; }
.pc-gpc[hidden] { display: none; }
.pc-status { font-size: 16px; color: var(--green-text); font-weight: 600; }
.pc-status:empty { display: none; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
html:not(.js) .js-only { display: none; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .objections { padding-top: 44px; padding-bottom: 44px; }
  .objections-intro h2, .contact-intro h2 { font-size: 32px; }
  .objections-intro .objections-payoff { font-size: 21px; }
  .section-title { font-size: 30px; }
  .hero-lead { font-size: 19px; }
  .page-main { padding-top: 44px; padding-bottom: 56px; }
  .page-main h1 { font-size: 38px; }
  .page-main h2 { font-size: 23px; }
  .pm-bar { padding: 22px 20px; }
  .step-box { padding: 24px 20px; }
  .steps-bars { height: 220px; }
  .steps-bar { padding: 10px 6px; }
  .steps-bar--1 { height: 78px; }
  .steps-bar--2 { height: 125px; }
  .steps-bar--3 { height: 172px; }
  .steps-bar--4 { height: 220px; }
  .steps-label { white-space: normal; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .steps-bar span { font-size: 12.5px; }
  .steps-labels { font-size: 13px; gap: 6px; }
  .steps-bars { gap: 6px; }
  .steps-bar { padding: 8px 4px; }
}
