:root {
  --ink: #10231d;
  --muted: #56665f;
  --line: #d8dfda;
  --paper: #f6f2e9;
  --paper-soft: #faf9f5;
  --white: #ffffff;
  --brand: #167253;
  --brand-dark: #0d513b;
  --dark: #09251d;
  --dark-soft: #11352b;
  --accent: #e2b85d;
  --accent-light: #f2d896;
  --max: 1200px;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(3, 22, 16, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
body.consent-open { padding-bottom: var(--consent-offset, 190px); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -90px; left: 18px; z-index: 300; padding: 11px 18px; color: var(--dark); background: var(--accent); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 14px; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-white { background: var(--white); }

h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -0.045em; }
h1 { margin-bottom: 28px; font-size: clamp(3rem, 5.3vw, 5.2rem); }
h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin-top: 0; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.65; }
.eyebrow, .kicker, .service-tag, .project-label, .audience-type, .format-label { color: var(--brand); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow, .kicker { margin: 0 0 20px; }
.eyebrow-light, .kicker-light { color: #8dd6ba; }
.section-heading { max-width: 770px; margin-bottom: 54px; }
.section-heading-wide { max-width: 880px; }
.section-heading > p:last-child, .section-heading-split > p { color: var(--muted); font-size: 1.08rem; }
.section-heading-split { max-width: none; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(48px, 9vw, 120px); align-items: end; }
.section-heading-split > p { margin-bottom: 5px; }

.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(216, 223, 218, 0.92); background: rgba(246, 242, 233, 0.95); backdrop-filter: blur(16px); }
.header-dark { border-color: rgba(255, 255, 255, 0.1); background: rgba(9, 37, 29, 0.96); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 850; text-decoration: none; }
.header-dark .brand { color: var(--white); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--white); background: var(--brand); border-radius: 9px; font-size: 0.9rem; }
.header-dark .brand-mark { color: var(--dark); background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links > a:not(.button) { color: #394a44; font-size: 0.9rem; font-weight: 720; text-decoration: none; }
.header-dark .nav-links > a:not(.button) { color: #c8d8d2; }
.nav-links > a:not(.button)[aria-current="page"], .nav-links > a:not(.button):hover { color: var(--brand); }
.header-dark .nav-links > a:not(.button)[aria-current="page"], .header-dark .nav-links > a:not(.button):hover { color: var(--accent-light); }
.menu-button { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); background: var(--white); border-radius: 10px; cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { width: 21px; height: 2px; display: block; margin: 5px auto; content: ""; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.header-dark .menu-button { border-color: rgba(255, 255, 255, 0.18); background: var(--dark-soft); }
.header-dark .menu-button span, .header-dark .menu-button::before, .header-dark .menu-button::after { background: var(--white); }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--brand); }
.button-primary:hover { background: var(--brand-dark); }
.button-accent { color: var(--dark); background: var(--accent); }
.button-accent:hover { background: var(--accent-light); }
.button-secondary { border-color: #aebbb5; background: transparent; }
.button-secondary:hover { border-color: var(--brand); }
.button-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.03); }
.button-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.text-link { color: var(--brand); font-weight: 800; text-underline-offset: 4px; }

/* Hero comercial */
.commercial-hero { position: relative; overflow: hidden; color: var(--white); background: var(--dark); }
.commercial-hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: radial-gradient(circle at 82% 28%, rgba(34, 133, 97, 0.28), transparent 30%), radial-gradient(circle at 10% 0%, rgba(226, 184, 93, 0.08), transparent 25%); }
.commercial-hero-grid { position: relative; min-height: 650px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr); gap: clamp(56px, 7vw, 96px); align-items: center; padding-top: 74px; padding-bottom: 74px; }
.commercial-hero-copy { position: relative; z-index: 2; }
.commercial-hero-copy h1 { max-width: 780px; }
.commercial-hero-copy h1 span { color: var(--accent-light); }
.commercial-hero-copy .lead { max-width: 680px; margin-bottom: 32px; color: #bfd1ca; }
.hero-question { max-width: 650px; margin: -8px 0 12px; color: var(--white); font-size: clamp(1.08rem, 1.5vw, 1.22rem); font-weight: 800; }
.product-showcase { position: relative; min-height: 510px; }
.product-browser { position: absolute; top: 48px; right: 0; width: min(100%, 580px); margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); background: #e9efec; border-radius: 18px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.product-browser figcaption { height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 16px; color: #9eb1a9; background: #102b23; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.product-browser figcaption span { width: 8px; height: 8px; display: inline-block; background: #61756d; border-radius: 50%; }
.product-browser figcaption span:nth-child(3) { margin-right: 7px; background: #2db581; }
.product-browser img { width: 100%; display: block; }
.product-phone { position: absolute; right: -12px; bottom: 3px; width: 162px; margin: 0; padding: 8px 8px 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22); background: #241717; border-radius: 24px; box-shadow: 0 28px 55px rgba(0, 0, 0, 0.35); transform: rotate(-3deg); }
.product-phone img { width: 100%; display: block; border-radius: 17px 17px 0 0; }
.product-phone figcaption { padding: 9px 4px 12px; color: #d5c8c4; font-size: 0.65rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.showcase-label { position: absolute; left: 16px; bottom: 15px; margin: 0; padding: 9px 13px; color: #d5e1dc; background: rgba(9, 37, 29, 0.88); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.proof-strip { position: relative; display: grid; grid-template-columns: 0.75fr 1.25fr 1fr; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.proof-strip > div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.proof-strip > div:first-child { padding-left: 0; border-left: 0; }
.proof-strip strong { color: var(--white); font-size: 0.98rem; }
.proof-strip span { margin-top: 3px; color: #8fa89f; font-size: 0.82rem; }

/* Problemas e serviços */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain-card { min-height: 315px; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); background: var(--paper-soft); border-radius: var(--radius); }
.pain-card h3 { max-width: 330px; font-size: clamp(1.45rem, 2.2vw, 2rem); }
.pain-card p { color: var(--muted); }
.pain-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 36px; color: var(--brand); background: #e5f0eb; border-radius: 50%; font-size: 1.15rem; font-weight: 900; }
.pain-card .text-link { margin-top: auto; }
.pain-card-featured { color: var(--white); background: var(--brand-dark); border-color: var(--brand-dark); }
.pain-card-featured p { color: #bdd0c8; }
.pain-card-featured .pain-icon { color: var(--dark); background: var(--accent); }
.pain-card-featured .text-link { color: var(--accent-light); }
.services-section { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card { min-height: 285px; padding: clamp(30px, 4vw, 50px); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.service-card h3 { max-width: 470px; font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.service-card > p:last-child { max-width: 550px; margin-bottom: 0; color: var(--muted); }
.service-tag { margin-bottom: 34px; }
.service-card-dark { color: var(--white); background: var(--dark); border-color: var(--dark); }
.service-card-dark .service-tag { color: #8dd6ba; }
.service-card-dark p { color: #b8ccc4; }
.service-card-dark a { display: inline-block; margin-top: 25px; color: var(--accent-light); font-weight: 800; text-underline-offset: 4px; }
.service-card-dark .service-card-title-link { display: inline; margin: 0; color: var(--white); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.service-card-dark .service-card-title-link:hover { color: var(--accent-light); }
.service-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 0.55fr 0.95fr 1fr; gap: 35px; align-items: center; min-height: 230px; }
.service-card-wide .service-tag, .service-card-wide h3 { margin-bottom: 0; }
.service-card-action p { margin-bottom: 0; color: #b8ccc4; }

/* Projetos */
.projects-section { padding-bottom: 104px; }
.project-card { display: grid; grid-template-columns: 1.12fr 0.88fr; min-height: 540px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-soft); border-radius: 24px; }
.project-card-mobile { grid-template-columns: 0.86fr 1.14fr; }
.project-visual { min-width: 0; overflow: hidden; }
.project-visual-dashboard { padding: 60px 0 60px 45px; background: #e7eeea; }
.project-visual-dashboard img { width: 115%; max-width: none; border: 1px solid #cdd8d3; border-radius: 14px 0 0 14px; box-shadow: 0 24px 55px rgba(11, 45, 34, 0.15); }
.project-details { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 6vw, 78px); }
.project-details h3 { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.project-details > p:not(.project-label) { color: var(--muted); }
.project-label { margin-bottom: 20px; }
.project-facts { display: grid; gap: 9px; margin: 15px 0 28px; padding: 0; list-style: none; }
.project-facts li { position: relative; padding-left: 24px; color: #40534b; }
.project-facts li::before { position: absolute; left: 0; content: "✓"; color: var(--brand); font-weight: 900; }
.project-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.project-visual-phones { display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding: 48px 58px 0; background: #2c191a; }
.project-visual-phones img { width: min(43%, 245px); border: 7px solid #493031; border-bottom: 0; border-radius: 27px 27px 0 0; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35); }
.project-visual-phones img:nth-child(2) { transform: translateY(42px); }
.github-banner { display: grid; grid-template-columns: 1.1fr 0.9fr auto; gap: 42px; align-items: center; margin-top: 30px; padding: 34px 38px; color: var(--white); background: var(--dark); border-radius: 18px; }
.github-banner .kicker { margin-bottom: 8px; color: #8dd6ba; }
.github-banner h3, .github-banner p { margin-bottom: 0; }
.github-banner p { color: #adc2ba; }
.github-banner .button-secondary { color: var(--white); border-color: #59736a; }

/* Processo e sobre */
.process-section { background: var(--paper); }
.process-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(60px, 10vw, 130px); align-items: start; }
.process-cards { display: grid; gap: 14px; }
.process-cards article { padding: 27px 30px; border: 1px solid var(--line); background: var(--white); border-radius: 16px; }
.process-cards span { display: block; margin-bottom: 7px; color: var(--brand); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.process-cards h3 { margin-bottom: 5px; }
.process-cards p { margin-bottom: 0; color: var(--muted); }
.about-section { color: var(--white); background: var(--brand-dark); }
.about-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(58px, 10vw, 135px); align-items: start; }
.about-section h2 { max-width: 650px; }
.about-copy { padding-top: 39px; }
.about-copy > p { color: #c1d4cd; font-size: 1.08rem; }
.about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.about-actions span { color: #9bb5ab; font-size: 0.82rem; }

/* Reforço de equipas */
.team-hero .commercial-hero-grid { min-height: 620px; }
.team-product { position: relative; min-height: 480px; }
.product-browser-team { top: 43px; }
.team-product-note { position: absolute; right: 28px; bottom: 16px; width: min(86%, 390px); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: var(--dark); background: var(--accent-light); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.team-product-note strong { line-height: 1.25; }
.team-product-note a { flex: 0 0 auto; font-size: 0.83rem; font-weight: 850; }
.audience-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.audience-card { min-height: 480px; padding: clamp(36px, 5vw, 62px); border: 1px solid var(--line); background: var(--paper-soft); border-radius: var(--radius); }
.audience-card h3 { max-width: 470px; margin-top: 42px; font-size: clamp(2rem, 3vw, 3rem); }
.audience-card > p:not(.audience-type) { color: var(--muted); }
.audience-card-dark { color: var(--white); background: var(--dark); border-color: var(--dark); }
.audience-card-dark .audience-type { color: #8dd6ba; }
.audience-card-dark > p:not(.audience-type) { color: #b8ccc4; }
.check-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 27px 0 0; border-top: 1px solid var(--line); list-style: none; }
.audience-card-dark .check-list { border-color: #345248; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--brand); font-weight: 900; }
.audience-card-dark .check-list li::before { color: var(--accent); }
.tasks-section { background: var(--paper); }
.task-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.task-grid article { grid-column: span 2; min-height: 260px; padding: 30px; border: 1px solid var(--line); background: var(--white); border-radius: 16px; }
.task-grid article:nth-child(4), .task-grid article:nth-child(5) { grid-column: span 3; }
.task-grid span { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 35px; color: var(--brand); background: #e5f0eb; border-radius: 50%; font-size: 0.7rem; font-weight: 850; }
.task-grid p { margin-bottom: 0; color: var(--muted); }
.stack-section { background: var(--white); }
.stack-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(58px, 10vw, 130px); align-items: start; }
.stack-layout .section-heading { margin-bottom: 0; }
.stack-copy { padding-top: 42px; }
.stack-copy p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.collaboration-band { padding: 96px 0; color: var(--white); background: var(--dark); }
.collaboration-heading { max-width: 790px; margin-bottom: 48px; }
.collaboration-intro { max-width: 680px; margin: 22px 0 0; color: #9eb6ad; font-size: 1.06rem; }
.collaboration-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #3d5a50; border-bottom: 1px solid #3d5a50; }
.collaboration-steps article { min-height: 190px; padding: 30px 24px; border-left: 1px solid #3d5a50; }
.collaboration-steps article:first-child { border-left: 0; }
.collaboration-steps h3 { display: block; margin-bottom: 11px; color: var(--white); font-size: 1rem; line-height: 1.35; letter-spacing: -0.02em; }
.collaboration-steps p { margin: 0; color: #9eb6ad; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.format-grid article { min-height: 300px; padding: 38px; border: 1px solid var(--line); background: var(--paper-soft); border-radius: var(--radius); }
.format-label { margin-bottom: 45px; }
.format-grid p:last-child { color: var(--muted); }
.projects-proof { background: #e9efeb; }
.proof-projects { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 20px; }
.proof-project { min-width: 0; overflow: hidden; background: var(--white); border-radius: var(--radius); }
.proof-project-image { height: 280px; overflow: hidden; background: #dce6e1; }
.proof-project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proof-project > div:last-child { padding: 34px; }
.proof-project > div:last-child > p:not(.project-label) { color: var(--muted); }
.proof-project-mobile .proof-project-image { display: grid; place-items: start center; padding: 28px 0 0; background: #2c191a; }
.proof-project-mobile .proof-project-image img { width: 132px; height: auto; object-fit: contain; border-radius: 14px 14px 0 0; }
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(58px, 10vw, 130px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 48px 24px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 20px; right: 4px; content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; margin: -4px 48px 25px 0; color: var(--muted); }
.team-cta { padding: 96px 0; color: var(--white); background: var(--brand-dark); }
.team-cta-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(56px, 9vw, 120px); align-items: center; }
.team-cta h2 { max-width: 650px; margin-bottom: 0; }
.team-cta-layout > div:last-child p { color: #c1d4cd; font-size: 1.08rem; }

/* Contacto */
.contact-stage { min-height: calc(100vh - 76px - 118px); padding: 80px 0 54px; background: var(--paper); }
.contact-stage-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(64px, 10vw, 130px); align-items: center; }
.contact-copy h1 { max-width: 680px; }
.contact-copy h1 span { color: var(--brand); }
.contact-copy .lead { max-width: 650px; }
.contact-prompt { max-width: 630px; margin: 38px 0 0; padding: 20px 22px; color: var(--muted); background: rgba(255, 255, 255, 0.7); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }
.contact-prompt strong { color: var(--ink); }
.email-card { position: relative; padding: clamp(38px, 5vw, 62px); overflow: hidden; color: var(--white); background: var(--dark); border-radius: 24px; box-shadow: var(--shadow); }
.email-card::after { position: absolute; right: -75px; bottom: -90px; width: 240px; height: 240px; content: ""; background: radial-gradient(circle, rgba(226, 184, 93, 0.23), transparent 68%); border-radius: 50%; pointer-events: none; }
.email-address { position: relative; z-index: 1; display: inline-block; max-width: 100%; margin: 15px 0 28px; color: var(--white); font-size: clamp(1.2rem, 2vw, 1.9rem); font-weight: 850; line-height: 1.05; letter-spacing: -0.04em; white-space: nowrap; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.email-card > p:not(.kicker) { position: relative; z-index: 1; color: #abc0b8; }
.email-card .button { position: relative; z-index: 1; margin-top: 12px; }
.contact-expectation { display: grid; grid-template-columns: 0.5fr 1.15fr 0.75fr; gap: 44px; align-items: start; margin-top: 58px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-expectation p { margin: 0; color: var(--muted); }
.contact-expectation p:first-child { color: var(--ink); }
.contact-related { display: grid; justify-items: end; gap: 7px; text-align: right; font-size: 0.86rem; }
.contact-related a { color: var(--brand); font-weight: 750; text-underline-offset: 3px; }
.contact-related span { margin-top: 4px; color: var(--muted); }

/* Páginas auxiliares */
.page-hero { padding: 88px 0 68px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.7rem, 4.5vw, 4.6rem); }
.breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: 0.88rem; }
.breadcrumb a { text-underline-offset: 3px; }
.prose { max-width: 790px; }
.prose h2 { margin-top: 54px; font-size: 1.9rem; }
.prose h3 { margin-top: 30px; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); }
.privacy-hero .lead { max-width: 820px; }
.privacy-layout { display: grid; grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr); gap: clamp(58px, 9vw, 120px); align-items: start; }
.privacy-summary { position: sticky; top: 112px; }
.privacy-updated { display: grid; gap: 2px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.privacy-updated strong { color: var(--ink); }
.privacy-choice-card { padding: 30px; color: var(--white); background: var(--dark); border-radius: 18px; box-shadow: 0 20px 48px rgba(3, 22, 16, 0.13); }
.privacy-choice-card .service-tag { margin-bottom: 23px; color: #8dd6ba; }
.privacy-choice-card h2 { margin-bottom: 13px; font-size: 1.55rem; letter-spacing: -0.025em; }
.privacy-consent-status { margin-bottom: 24px; color: var(--accent-light); font-weight: 800; }
.privacy-consent-status[data-consent-value="granted"] { color: #8dd6ba; }
.privacy-choice-card .button { width: 100%; }
.privacy-choice-note { margin: 18px 0 0; color: #9eb6ad; font-size: 0.84rem; }
.privacy-prose { max-width: 760px; }
.privacy-prose h2:first-child { margin-top: 0; }
.privacy-prose strong { color: var(--ink); }
.error-nav { display: flex; align-items: center; gap: 24px; }
.error-nav > a:not(.button) { color: #354841; font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.error-page { min-height: calc(100vh - 240px); display: grid; align-items: center; padding: 88px 0; overflow: hidden; }
.error-layout { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.error-layout > div:first-child { max-width: 700px; }
.error-mark { color: var(--brand); font-size: clamp(8rem, 20vw, 16rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.1em; opacity: 0.1; user-select: none; }

/* Rodapé */
.footer { padding: 62px 0 30px; color: #d5e1dc; background: #061a14; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr; gap: 60px; padding-bottom: 44px; }
.footer h2 { margin-bottom: 12px; color: var(--white); font-size: 1.35rem; }
.footer-copyright-link { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.18s ease, text-decoration-color 0.18s ease; }
.footer-copyright-link:hover { color: var(--accent-light); text-decoration-color: currentColor; }
.footer p { max-width: 440px; color: #98aea5; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links h3 { margin-bottom: 8px; color: var(--white); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links a, .footer-inline-links a, .footer-consent-button { color: #b5c8c0; text-decoration: none; }
.footer-links a:hover, .footer-inline-links a:hover, .footer-consent-button:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 25px; border-top: 1px solid #284139; color: #8ca39a; font-size: 0.82rem; }
.footer-inline-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 24px; }
.footer-consent-button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.contact-footer { padding-top: 28px; }
.contact-footer .footer-bottom { padding-top: 0; border-top: 0; }
.footer .error-footer { padding-top: 0; }

/* Consentimento de medição */
.consent-banner[hidden] { display: none; }
.consent-banner { position: fixed; right: 18px; bottom: 18px; left: 18px; z-index: 250; }
.consent-banner-inner { width: min(100%, var(--max)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 80px); align-items: center; margin-inline: auto; padding: 25px 28px; color: var(--white); background: var(--dark); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 17px; box-shadow: 0 24px 65px rgba(3, 22, 16, 0.32); }
.consent-banner-copy h2 { margin-bottom: 7px; font-size: 1.35rem; letter-spacing: -0.025em; }
.consent-banner-copy p { max-width: 710px; margin-bottom: 0; color: #b8ccc4; font-size: 0.92rem; }
.consent-banner-copy a { color: var(--accent-light); font-weight: 750; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 10px; }
.consent-button { min-width: 145px; }
.consent-accept { color: var(--dark); background: var(--accent); }
.consent-accept:hover { background: var(--accent-light); }
.consent-decline { color: var(--dark); background: #e5eeea; }
.consent-decline:hover { background: var(--white); }

@media (max-width: 1080px) {
  .nav-links { position: fixed; inset: 76px 0 auto; max-height: 0; display: grid; gap: 0; overflow: hidden; background: var(--paper); border-bottom: 1px solid transparent; transition: max-height 0.25s ease; }
  .header-dark .nav-links { background: var(--dark); }
  .nav-links.open { max-height: 520px; padding: 14px 24px 25px; border-color: var(--line); }
  .header-dark .nav-links.open { border-color: rgba(255, 255, 255, 0.14); }
  .nav-links > a:not(.button) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .header-dark .nav-links > a:not(.button) { border-color: rgba(255, 255, 255, 0.12); }
  .nav-links .button { margin-top: 14px; }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] span { opacity: 0; }
  .menu-button[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
  .commercial-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr); gap: 42px; }
  .product-showcase, .team-product { min-height: 430px; }
  .product-browser { top: 45px; }
  .product-phone { width: 138px; }
  .github-banner { grid-template-columns: 1fr auto; }
  .github-banner > p { grid-column: 1; }
  .github-banner > .button { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 880px) {
  .commercial-hero-grid { grid-template-columns: 1fr; padding-top: 64px; }
  .commercial-hero-copy { max-width: 760px; }
  .product-showcase, .team-product { width: min(100%, 650px); min-height: 470px; }
  .product-showcase { margin-inline: auto; }
  .team-product { margin-inline: auto; }
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-card-featured { grid-column: 1 / -1; min-height: 260px; }
  .project-card, .project-card-mobile { grid-template-columns: 1fr; }
  .project-card-mobile .project-details { order: 2; }
  .project-card-mobile .project-visual { order: 1; }
  .project-visual-dashboard { padding-top: 42px; padding-bottom: 42px; }
  .project-visual-phones { min-height: 500px; }
  .process-layout, .about-layout, .stack-layout, .faq-layout, .team-cta-layout, .contact-stage-grid, .privacy-layout { grid-template-columns: 1fr; gap: 48px; }
  .process-layout .section-heading, .faq-layout .section-heading { margin-bottom: 0; }
  .about-copy { padding-top: 0; }
  .task-grid article { grid-column: span 3; }
  .task-grid article:last-child { grid-column: 2 / span 4; }
  .collaboration-steps { grid-template-columns: 1fr 1fr; }
  .collaboration-steps article:nth-child(odd) { border-left: 0; }
  .collaboration-steps article:nth-child(n+3) { border-top: 1px solid #3d5a50; }
  .proof-projects { grid-template-columns: 1fr; }
  .contact-stage { min-height: auto; }
  .email-card { max-width: 680px; }
  .contact-expectation { grid-template-columns: 0.5fr 1.5fr; }
  .contact-related { grid-column: 2; justify-items: start; text-align: left; }
  .privacy-summary { position: static; }
  .privacy-choice-card { max-width: 620px; }
  .consent-banner-inner { grid-template-columns: 1fr; gap: 20px; }
  .consent-actions { width: 100%; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .section { padding: 76px 0; }
  h1 { font-size: clamp(2.55rem, 12.2vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .section-heading { margin-bottom: 38px; }
  .section-heading-split { grid-template-columns: 1fr; gap: 15px; align-items: start; }
  .commercial-hero-grid { min-height: 0; padding-top: 56px; padding-bottom: 42px; }
  .commercial-hero-copy .lead { font-size: 1.04rem; }
  .actions { display: grid; }
  .actions .button { width: 100%; }
  .product-showcase, .team-product { min-height: 330px; }
  .product-browser { top: 24px; width: calc(100% - 18px); }
  .product-browser figcaption { height: 36px; font-size: 0.58rem; }
  .product-phone { right: -3px; bottom: 2px; width: 98px; padding: 5px 5px 0; border-radius: 17px; }
  .product-phone img { border-radius: 12px 12px 0 0; }
  .product-phone figcaption { padding: 6px 2px 8px; font-size: 0.49rem; }
  .showcase-label { left: 0; bottom: 0; max-width: 70%; font-size: 0.56rem; }
  .proof-strip { width: 100%; grid-template-columns: 1fr; }
  .proof-strip > div { min-height: 0; padding: 20px 15px; border-top: 1px solid rgba(255, 255, 255, 0.14); border-left: 0; }
  .proof-strip > div:first-child { padding-left: 15px; border-top: 0; }
  .pain-grid, .service-grid, .audience-cards, .format-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: auto; display: block; }
  .service-card-wide .service-tag, .service-card-wide h3 { margin-bottom: 12px; }
  .pain-card, .service-card, .audience-card, .format-grid article { min-height: 0; }
  .pain-icon { margin-bottom: 28px; }
  .project-card { min-height: 0; border-radius: 18px; }
  .project-visual-dashboard { padding: 26px 0 26px 20px; }
  .project-details { padding: 34px 25px 38px; }
  .project-visual-phones { min-height: 340px; gap: 13px; padding: 28px 22px 0; }
  .project-visual-phones img { width: 44%; border-width: 4px; border-bottom: 0; border-radius: 19px 19px 0 0; }
  .github-banner { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .github-banner > p, .github-banner > .button { grid-column: 1; grid-row: auto; }
  .process-layout, .about-layout, .stack-layout, .faq-layout, .team-cta-layout, .contact-stage-grid { gap: 35px; }
  .stack-copy { padding-top: 0; }
  .team-product-note { right: 0; bottom: 0; width: 94%; padding: 14px 15px; }
  .team-product-note strong { font-size: 0.83rem; }
  .task-grid { grid-template-columns: 1fr; }
  .task-grid article, .task-grid article:nth-child(4), .task-grid article:nth-child(5), .task-grid article:last-child { grid-column: 1; min-height: 0; }
  .collaboration-band, .team-cta { padding: 72px 0; }
  .collaboration-steps { grid-template-columns: 1fr; }
  .collaboration-steps article { min-height: 0; border-top: 1px solid #3d5a50; border-left: 0; }
  .collaboration-steps article:first-child { border-top: 0; }
  .proof-project-image { height: 220px; }
  .contact-stage { padding: 64px 0 48px; }
  .contact-prompt { margin-top: 28px; }
  .email-card { padding: 32px 24px; border-radius: 18px; }
  .email-address { font-size: clamp(1.15rem, 5.3vw, 1.55rem); }
  .contact-expectation { grid-template-columns: 1fr; gap: 15px; margin-top: 42px; }
  .contact-related { grid-column: 1; }
  .page-hero { padding: 64px 0 50px; }
  .error-layout { grid-template-columns: 1fr; }
  .error-mark { position: absolute; right: -20px; z-index: -1; font-size: 9rem; }
  .error-nav > a:not(.button) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .footer-inline-links { justify-content: flex-start; gap: 15px; }
  .consent-banner { right: 8px; bottom: 8px; left: 8px; }
  .consent-banner-inner { padding: 21px 20px; border-radius: 14px; }
  .consent-banner-copy h2 { font-size: 1.2rem; }
  .consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-button { min-width: 0; padding-inline: 12px; font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
