:root {
  --sand: #F6EDE3;
  --sand-card: #FBF6EE;
  --cream: #FFFDF9;
  --mare: #6E9AAC;
  --mare-light: #B7D2DC;
  --mare-mid: #93B9C7;
  --mare-dark: #56808F;
  --folha: #A5C09E;
  --folha-light: #EAF1E7;
  --folha-border: #CBDCC0;
  --folha-dark: #4B6349;
  --sunset: #E0AE87;
  --sunset-deep: #D89A6B;
  --sunset-light: #F4CDAB;
  --terra: #3B322B;
  --body: #4A3F36;
  --secondary: #8A6F5C;
  --label: #9C8571;
  --border: #E2D2C1;
  --on-blue: #EAF2F5;
  --on-blue-soft: #DCE9EE;
  --cream-blue: #F8F2EA;
  --deep: #2C4653;
  --deep-2: #243A45;
  --salvia: #5C7A70;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { font-family: 'DM Sans', 'Segoe UI', sans-serif; background: var(--sand); color: var(--body); overflow-x: hidden; }
a { color: var(--mare-dark); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--sunset); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
h1, h2, .serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; color: var(--terra); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
.section-head { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.btn { display: inline-block; background: var(--sunset); color: var(--terra); font-size: 16px; font-weight: 500; padding: 16px 34px; border-radius: 999px; transition: transform 0.25s ease, box-shadow 0.25s ease; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224, 174, 135, 0.55); color: var(--terra); }
.lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(59, 50, 43, 0.12); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .arcs-breathe, .shiny { animation: none !important; }
}

/* nav */
.site-header { position: sticky; top: 0; z-index: 100; transition: background 0.35s ease, box-shadow 0.35s ease; }
.site-header.scrolled { background: rgba(246, 237, 227, 0.45); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(226, 210, 193, 0.55), 0 8px 30px rgba(59, 50, 43, 0.05); }
nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: flex; align-items: baseline; gap: 3px; }
/* mark sits a touch above the cap height of the wordmark's capital A (20px) */
.brand-mark { flex: none; display: block; width: 46px; height: 23px; }
.wordmark { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; color: var(--terra); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--terra); transition: transform 0.3s ease, opacity 0.2s ease; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--body); }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; border-radius: 2px; background: var(--sunset-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav-links a:not(.btn):hover { color: var(--terra); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a.btn { font-size: 15px; padding: 12px 24px; }
.nav-links a.btn:hover { color: var(--terra); }

/* hero */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 88px); padding: 0 0 56px; text-align: center; scroll-snap-align: none; }
.scanner-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
@keyframes breathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.025) translateY(-6px); } }
.arcs-breathe { animation: breathe 7s ease-in-out infinite; transform-origin: 50% 100%; }

/* automation flow network */
.flow-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.8; }
.flow-net .link { fill: none; stroke: #A9C4CF; stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0.85; }
.flow-net .node { fill: #FFFDF9; stroke: #6E9AAC; stroke-width: 1.6; }
.flow-net .halo { fill: none; stroke: #B7D2DC; stroke-width: 1.4; animation: haloPulse 4s ease-in-out infinite; }
.flow-net .halo.h2 { animation-delay: 1.3s; }
.flow-net .halo.h3 { animation-delay: 2.6s; }
@keyframes haloPulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.7; } }
.flow-net .pulse { fill: #D89A6B; }
@media (prefers-reduced-motion: reduce) { .flow-net .halo { animation: none; } }
.hero-inner { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 86px); line-height: 1.04; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--sunset-deep); }
.hero-sub { font-size: 19px; font-weight: 300; line-height: 1.6; max-width: 560px; }
.hero-ctas { display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--secondary); flex-wrap: wrap; justify-content: center; }
.hero-proof .dot { color: var(--border); }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: riseIn 0.9s ease-out both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(4), .hero-inner > *:nth-child(5) { animation-delay: 0.45s; }

/* why women only */
.why { background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%); padding: 56px 0; text-align: center; justify-content: center; }
.why-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.why .label { color: var(--on-blue-soft); }
.why-quote { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; color: var(--cream-blue); }
.why-text { font-size: 18px; font-weight: 300; line-height: 1.7; max-width: 640px; color: var(--on-blue); }
.why-sign { font-size: 14px; font-weight: 500; color: var(--on-blue-soft); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.shiny {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1.15; padding: 4px 12px;
  background: linear-gradient(110deg, #F8F2EA 42%, #F4CDAB 50%, #E0AE87 52%, #F8F2EA 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 4.5s linear infinite;
}

/* sections: each one fills the screen */
section { padding: 92px 0 clamp(18px, 4svh, 44px); min-height: 100svh; display: flex; align-items: center; scroll-snap-align: start; scroll-margin-top: 8px; }
section > .container { width: 100%; }
.stack { display: flex; flex-direction: column; gap: clamp(16px, 3.4svh, 40px); }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
.card { border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.old-way { background: #F1E7D8; border: 1px solid var(--border); transform: rotate(-1.5deg); }
.old-way .card-tag { color: var(--label); }
.old-way li { text-decoration: line-through; text-decoration-color: var(--label); color: var(--secondary); }
.new-way { position: relative; background: var(--folha-light); border: 1px solid var(--folha-border); overflow: hidden; }
.new-way .card-tag { color: var(--folha-dark); }
.card-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; }
.new-way li { display: flex; gap: 12px; align-items: center; }
.arc-mark { position: absolute; right: -14px; bottom: -7px; width: 120px; opacity: 0.15; }
.burnout-line { text-align: center; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 19px; color: var(--secondary); }

/* automations teaser (home) */
.auto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.auto-card { background: var(--sand-card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.auto-card h3 { font-size: 17px; font-weight: 700; color: var(--terra); }
.auto-card p { font-size: 15px; font-weight: 300; line-height: 1.6; }
.auto-more { text-align: center; }

/* process */
.process-wrap { position: relative; }
.process-line { position: absolute; left: 4%; right: 4%; top: 52px; border-top: 2px dotted var(--border); }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; background: var(--sand-card); border: 1px solid var(--border); border-radius: 20px; padding: clamp(16px, 2.6svh, 28px); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.step-num { font-family: 'Instrument Serif', Georgia, serif; font-size: 44px; color: var(--sunset); }
.step h3, .impact-card h3 { font-size: 18px; font-weight: 700; color: var(--terra); }
.step p, .impact-card p { font-size: 15px; font-weight: 300; line-height: 1.6; }

/* impact */
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.impact-card { background: var(--cream); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.impact-stat { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; color: var(--sunset-deep); }
.impact-card h3 { font-size: 16px; }

/* projects */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project { border-radius: 20px; padding: clamp(26px, 4.4svh, 42px); display: flex; flex-direction: column; gap: clamp(12px, 2svh, 20px); }
.project-mare { background: var(--mare-dark); }
.project-aios { background: var(--salvia); }
.project-title { display: flex; align-items: baseline; gap: 14px; }
.project-title .serif { font-size: 34px; color: var(--cream-blue); }
.project-tag { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-blue-soft); }
.project-aios .project-tag { color: var(--on-blue-soft); }
.project p { font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--sand); }
.project-aios p { color: var(--sand); }
.project-foot { font-size: 14px; font-weight: 500; }
.project-mare .project-foot { color: var(--sunset-light); }
.project-aios .project-foot { color: var(--folha-border); }

/* testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.testimonial { background: var(--cream); border: 1px solid var(--border); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.quote-mark { font-family: 'Instrument Serif', Georgia, serif; font-size: 64px; line-height: 0.6; color: var(--sunset); margin-top: 12px; }
.testimonial blockquote { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 21px; line-height: 1.45; border: none; }
.testimonial .who { display: flex; flex-direction: column; gap: 4px; }
.testimonial .who strong { font-size: 15px; color: var(--terra); }
.testimonial .who span { font-size: 14px; color: var(--secondary); }

/* faq */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; text-align: left; }
.faq-item { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 22px; }
.faq-item h3 { font-size: 17px; font-weight: 700; color: var(--terra); }
.faq-item p { font-size: 15px; font-weight: 300; line-height: 1.65; }

/* cta + footer */
.cta { position: relative; background: var(--terra); padding: 72px 0 40px; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; }
.cta > .container { width: 100%; }
.cta-arc-pos { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); width: min(1000px, 110vw); pointer-events: none; opacity: 0.12; }
.cta-arc-pos svg { display: block; width: 100%; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { font-size: clamp(36px, 5vw, 52px); color: var(--sand); }
.cta p { font-size: 17px; font-weight: 300; line-height: 1.6; max-width: 520px; color: var(--border); }
.cta .btn { margin-top: 8px; }
footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #55483E; padding-top: 32px; margin-top: 96px; flex-wrap: wrap; }
footer .wordmark { font-size: 20px; color: var(--sand); }
footer span { font-size: 13px; color: var(--label); }

/* ===== automations portfolio page ===== */
.page-hero { position: relative; padding: 72px 0 96px; text-align: center; }
.page-hero .hero-inner { gap: 22px; }
.page-hero p { font-size: 18px; font-weight: 300; line-height: 1.6; max-width: 620px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter-btn { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--body); background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: all 0.25s ease; }
.filter-btn:hover { border-color: var(--sunset); color: var(--terra); }
.filter-btn.active { background: var(--sunset); border-color: var(--sunset); color: var(--terra); }

.sys-featured { position: relative; background: var(--mare); border-radius: 20px; padding: 48px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.sys-featured .arc-mark { width: 220px; right: -20px; bottom: -12px; opacity: 0.18; }
.sys-featured .sys-badge { color: var(--cream-blue); border-color: rgba(248, 242, 234, 0.4); }
.sys-featured h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 40px; color: var(--cream-blue); }
.sys-featured p { font-size: 17px; font-weight: 300; line-height: 1.65; max-width: 720px; color: var(--on-blue); }
.sys-featured .tags span { background: rgba(248, 242, 234, 0.14); border-color: rgba(248, 242, 234, 0.35); color: var(--cream-blue); }
.sys-featured .flow { color: var(--on-blue); }
.sys-featured .flow .arr { color: var(--sunset-light); }
.sys-featured .metric { border-color: rgba(248, 242, 234, 0.25); }
.sys-featured .m-label { color: var(--on-blue-soft); }
.sys-featured .m-value { color: var(--sunset-light); }

.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sys { background: var(--cream); border: 1px solid var(--border); border-radius: 20px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.sys.hidden { display: none; }
.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sys-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.sys-cat { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.sys h3 { font-size: 21px; font-weight: 700; color: var(--terra); }
.sys > p { font-size: 15px; font-weight: 300; line-height: 1.65; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 12px; font-weight: 500; color: var(--secondary); background: var(--sand-card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 500; color: var(--body); }
.flow .arr { color: var(--sunset-deep); font-weight: 700; }
.metric { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; flex-wrap: wrap; }
.m-label { font-size: 13px; color: var(--secondary); }
.m-value { font-family: 'Instrument Serif', Georgia, serif; font-size: 20px; color: var(--sunset-deep); }
.cat-head { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--border); padding-top: 26px; }
.cat-head h2 { font-size: 28px; }
.cat-head span { font-size: 13px; color: var(--label); }

/* responsive */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .compare, .process-grid, .impact-grid, .projects-grid, .testimonials-grid, .faq-grid, .auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-line { display: none; }
  .sys-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { min-height: calc(100svh - 84px); padding: 0 0 90px; }
  section { padding: 76px 0 32px; min-height: 0; }
  .hero, .why, .cta { min-height: 100svh; }
  .compare, .process-grid, .impact-grid, .projects-grid, .testimonials-grid, .faq-grid, .auto-grid { grid-template-columns: 1fr; }
  .old-way { transform: rotate(-1deg); }
  .card, .project, .testimonial { padding: 30px; }
  .sys-featured { padding: 34px; }
  .sys-featured h3 { font-size: 32px; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===== dark sections ===== */
.dark-sec { background: linear-gradient(180deg, var(--deep-2), var(--deep)); }
.dark-sec .label { color: var(--on-blue-soft); }
.dark-sec h2 { color: var(--cream-blue); }

/* ===== automations live diagram ===== */
.auto-live { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; }
.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: clamp(7px, 1.2svh, 12px) 16px; border-radius: 14px; border: 1px solid transparent; background: none; font: inherit; text-align: left; color: var(--on-blue); cursor: pointer; transition: background 0.3s ease, border-color 0.3s ease; }
.cat-row svg { flex-shrink: 0; }
.cat-row span { font-size: 15px; font-weight: 500; }
.cat-row.active { background: rgba(248, 242, 234, 0.07); border-color: rgba(183, 210, 220, 0.25); }
.auto-diagram { position: relative; }
.auto-diagram > svg { display: block; width: auto; max-width: 100%; max-height: 52svh; margin: 0 auto; }
.flow-line { fill: none; stroke: rgba(234, 242, 245, 0.16); stroke-width: 1.5; transition: stroke 0.35s ease, stroke-width 0.35s ease; }
.flow-line.active { stroke: #B7D2DC; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(183, 210, 220, 0.7)); }
.src-node { fill: rgba(248, 242, 234, 0.05); stroke: rgba(183, 210, 220, 0.4); stroke-width: 1.5; transition: stroke 0.35s ease, fill 0.35s ease; }
.src-node.active { stroke: #B7D2DC; fill: rgba(183, 210, 220, 0.18); }
.src-label { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; fill: rgba(234, 242, 245, 0.55); transition: fill 0.35s ease; }
.src-label.active { fill: #DCE9EE; }
.hub-box { fill: rgba(248, 242, 234, 0.06); stroke: rgba(183, 210, 220, 0.35); stroke-width: 1.5; }
.pulse-dot { fill: #E0AE87; filter: drop-shadow(0 0 6px rgba(224, 174, 135, 0.9)); }
.outcome { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 210px; padding: 18px 20px; border-radius: 16px; background: rgba(248, 242, 234, 0.07); border: 1px solid rgba(183, 210, 220, 0.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 8px; }
.outcome .label { font-size: 10px; color: rgba(234, 242, 245, 0.6); }
.outcome p { font-size: 14px; line-height: 1.5; color: var(--cream-blue); min-height: 63px; margin: 0; }

/* ===== problema: emaranhado -> fluxo ===== */
.tangle-wrap { display: flex; flex-direction: column; gap: 20px; }
.tangle-tags { display: flex; justify-content: space-between; }
.tangle { display: block; width: auto; max-width: 100%; max-height: 38svh; margin: 0 auto; }
.t-left { fill: none; stroke: var(--label); stroke-width: 2; opacity: 0.8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease; }
.t-right { fill: none; stroke: #56808F; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease; }
.t-gate { fill: none; stroke: #6E9AAC; stroke-width: 5; opacity: 0; transition: opacity 0.6s ease 0.5s; }
.t-check { opacity: 0; transition: opacity 0.6s ease 1.5s; }
.draw.visible .t-left, .draw.visible .t-right { stroke-dashoffset: 0; }
.draw.visible .t-gate { opacity: 0.9; }
.draw.visible .t-check { opacity: 1; }
.tangle-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; }
.tangle-cols ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14px; line-height: 1.45; }
.t-old li { text-decoration: line-through; text-decoration-color: var(--label); color: var(--secondary); }
.t-new li { display: flex; gap: 10px; align-items: center; color: var(--body); }

@media (max-width: 900px) {
  .auto-live { grid-template-columns: 1fr; }
  .outcome { position: static; transform: none; width: 100%; }
  .outcome p { min-height: 0; }
}
@media (max-width: 640px) {
  .tangle-cols { grid-template-columns: 1fr; }
  /* o desenho continua horizontal no celular, sangrando ate as bordas para ganhar largura */
  .tangle { width: calc(100% + 40px); max-width: none; margin-left: -20px; margin-right: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-left, .t-right { stroke-dashoffset: 0; transition: none; }
  .t-gate, .t-check { opacity: 1; transition: none; }
}

/* ===== manifesto: mare de particulas ===== */
.why { position: relative; overflow: hidden; }
.tide-bg { position: absolute; inset: 0; pointer-events: none; }
.why-inner { position: relative; z-index: 2; }

/* ===== resultados: semana antes/depois ===== */
.week-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.week-left { display: flex; flex-direction: column; gap: 28px; }
.week-big { display: flex; flex-direction: column; gap: 6px; }
.week-num { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(56px, 7vw, 84px); line-height: 1; color: var(--sunset); transition: opacity 0.4s ease; }
.week-unit { font-size: 16px; font-weight: 300; color: var(--on-blue); }
.imp-rows { display: flex; flex-direction: column; gap: 10px; }
.imp-row { display: flex; align-items: baseline; gap: 12px; padding: 13px 18px; border-radius: 14px; background: rgba(248, 242, 234, 0.06); border: 1px solid rgba(183, 210, 220, 0.18); }
.imp-row strong { font-size: 15px; font-weight: 700; color: var(--cream-blue); white-space: nowrap; }
.imp-row span { font-size: 14px; font-weight: 300; color: var(--on-blue); line-height: 1.5; }
.week-right { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.week-toggle { display: flex; gap: 8px; background: rgba(248, 242, 234, 0.06); border: 1px solid rgba(183, 210, 220, 0.18); border-radius: 999px; padding: 5px; }
.wk-btn { font: inherit; font-size: 14px; font-weight: 500; color: var(--on-blue); background: none; border: none; border-radius: 999px; padding: 9px 22px; cursor: pointer; transition: background 0.3s ease, color 0.3s ease; }
.wk-btn.active { background: var(--sunset); color: var(--terra); }
.week-grid { display: flex; gap: 20px; }
.week-day { display: flex; flex-direction: column-reverse; gap: 7px; align-items: center; }
.week-day .day-name { font-size: 11px; letter-spacing: 0.1em; color: rgba(234, 242, 245, 0.55); margin-top: 4px; }
.cell { width: 20px; height: 20px; border-radius: 6px; background: rgba(248, 242, 234, 0.07); border: 1px solid rgba(183, 210, 220, 0.14); transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease; }
.cell.manual { background: var(--label); border-color: var(--label); }
.cell.freed { background: rgba(165, 192, 158, 0.12); border-color: #A5C09E; transform: scale(0.92); }
.week-legend { display: flex; gap: 24px; font-size: 13px; color: rgba(234, 242, 245, 0.7); }
.week-legend span { display: flex; align-items: center; gap: 8px; }
.cell-demo { display: inline-block; width: 13px; height: 13px; border-radius: 4px; }
.cell-demo.manual { background: var(--label); }
.cell-demo.free { background: rgba(165, 192, 158, 0.12); border: 1px solid #A5C09E; }

@media (max-width: 900px) {
  .week-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cell { width: 15px; height: 15px; }
  .week-grid { gap: 12px; }
}

/* ===== projetos: profundidade ===== */
.projects-grid { perspective: 1200px; }
.project { position: relative; transform-style: preserve-3d; transition: transform 0.35s ease, box-shadow 0.35s ease; will-change: transform; overflow: hidden; }
.project .proj-mark { position: absolute; right: -20px; bottom: -14px; width: 190px; opacity: 0.16; transform: translateZ(30px); transition: transform 0.35s ease; pointer-events: none; }
.project > * { transform: translateZ(18px); }

/* ===== FAQ acordeao ===== */
details.faq-item { border-top: 1px solid var(--border); padding: 0; }
details.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; font-size: 17px; font-weight: 700; color: var(--terra); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; line-height: 1; color: var(--sunset-deep); transition: transform 0.3s ease; flex-shrink: 0; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { font-size: 15px; font-weight: 300; line-height: 1.65; padding: 0 32px 20px 0; opacity: 0; transform: translateY(-6px); transition: opacity 0.35s ease, transform 0.35s ease; }
details.faq-item[open] p { opacity: 1; transform: none; }

/* ===== CTA: brilho ===== */
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 0 rgba(224, 174, 135, 0.0); } 50% { box-shadow: 0 0 34px rgba(224, 174, 135, 0.45); } }
.btn-glow { animation: glowPulse 3.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn-glow { animation: none; } }

/* ===== mini-diagramas dos cards de sistema ===== */
.mflow { display: flex; flex-direction: column; gap: 8px; }
.mflow-track { position: relative; height: 22px; }
.mflow-track::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 1.5px dashed #C9D9DF; }
.mf-dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--mare-dark); transform: translateY(-50%); }
.mf-dot.a { left: 4px; }
.mf-dot.b { right: 4px; }
.mf-hub { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 6px; background: var(--cream); border: 1.5px solid var(--mare); transform: translate(-50%, -50%); }
.mf-hub::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 999px; background: var(--mare); transform: translate(-50%, -50%); }
.mf-pulse { position: absolute; top: 50%; left: 4px; width: 7px; height: 7px; border-radius: 999px; background: var(--sunset-deep); transform: translateY(-50%); opacity: 0; box-shadow: 0 0 8px rgba(224, 174, 135, 0.8); }
@keyframes mfRun { 0% { left: 4px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
.sys:hover .mf-pulse, .sys-featured:hover .mf-pulse { animation: mfRun 1.3s ease-in-out; }
.mf-labels { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; color: var(--secondary); }
.mf-labels span { max-width: 33%; }
.mf-labels span:nth-child(2) { text-align: center; }
.mf-labels span:last-child { text-align: right; }
.sys-featured .mflow-track::before { border-top-color: rgba(248, 242, 234, 0.35); }
.sys-featured .mf-dot, .sys-featured .mf-hub { background: transparent; border-color: rgba(248, 242, 234, 0.75); }
.sys-featured .mf-hub::after { background: #F8F2EA; }
.sys-featured .mf-labels { color: var(--on-blue-soft); }

/* categoria com icone */
.cat-head { align-items: center; gap: 16px; }
.cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sand-card); border: 1px solid var(--border); flex-shrink: 0; }
.cat-head span { margin-left: auto; font-family: 'Instrument Serif', Georgia, serif; font-size: 18px; color: var(--sunset-deep); }

/* transicao dos filtros */
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.sys.pop { animation: cardIn 0.45s ease both; }
@media (prefers-reduced-motion: reduce) { .sys.pop { animation: none; } .sys:hover .mf-pulse { animation: none; } }

/* ===== como funciona: jornada ===== */
.journey-svg { display: block; width: auto; max-width: 100%; max-height: 22svh; margin: 0 auto -8px; }
.j-seg { fill: none; stroke: var(--border); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.55s ease; }
.j-seg.on { stroke-dashoffset: 0; }
.j-ring { fill: var(--cream); stroke: var(--border); stroke-width: 1.6; transition: stroke 0.4s ease, filter 0.4s ease; }
.j-station .j-num { font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; fill: #CBB39B; transition: fill 0.4s ease; }
.j-station.lit .j-ring { stroke: var(--sunset-deep); }
.j-station.lit .j-num { fill: var(--sunset-deep); }
.j-station.hot .j-ring { filter: drop-shadow(0 0 8px rgba(224, 174, 135, 0.7)); }
.step { cursor: default; }
.step .step-num { display: none; }
@media (max-width: 900px) { .journey-svg { max-height: 16svh; } .step .step-num { display: block; } }
/* abaixo de 640 a linha de 1100 de largura fica com 58px de altura e ilegivel: os numeros dos passos fazem o trabalho */
@media (max-width: 640px) { .journey-svg { display: none; } }
@media (prefers-reduced-motion: reduce) { .j-seg { stroke-dashoffset: 0; transition: none; } }

/* ===== depoimentos: aspas fantasma ===== */
.testimonials-grid { position: relative; }
.testimonials-grid::before { content: "\201C"; position: absolute; top: -150px; left: -40px; font-family: 'Instrument Serif', Georgia, serif; font-size: 340px; line-height: 1; color: var(--border); opacity: 0.55; pointer-events: none; }
.testimonial { position: relative; }

/* ===== sobre mim (secao movida) ===== */
.about-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: center; position: relative; z-index: 2; text-align: left; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 24px; background: rgba(248, 242, 234, 0.06); border: 1px solid rgba(183, 210, 220, 0.3); display: flex; align-items: center; justify-content: center; color: rgba(234, 242, 245, 0.55); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.about-text .shiny { font-size: clamp(30px, 4.4vw, 48px); padding: 4px 0; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; }
}

/* ===== depoimentos: carrossel ===== */
.testi-viewport { position: relative; overflow: hidden; }
.testi-viewport::before { content: "\201C"; position: absolute; top: -150px; left: -40px; font-family: 'Instrument Serif', Georgia, serif; font-size: 340px; line-height: 1; color: var(--border); opacity: 0.55; pointer-events: none; }
.testi-track { display: flex; width: 200%; transition: transform 0.6s ease; }
.testi-page { width: 50%; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 4px; }
.testi-dots { display: flex; gap: 10px; justify-content: center; }
.t-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--border); border: none; cursor: pointer; padding: 0; transition: background 0.3s ease, transform 0.3s ease; }
.t-dot.active { background: var(--sunset-deep); transform: scale(1.25); }
@media (max-width: 640px) { .testi-page { grid-template-columns: 1fr; } }

/* pagina ai-agents */
.compare-honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 640px) { .compare-honest { grid-template-columns: 1fr; } }

/* botao de idioma */
.lang-btn { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--mare-dark); border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 14px; }
.lang-btn:hover { border-color: var(--sunset-deep); color: var(--terra); }

/* ===== constelacao AIOS (secao agentes) ===== */
.constellation { position: relative; aspect-ratio: 800 / 540; max-width: 860px; width: 100%; margin: 0 auto; }
.const-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-link { fill: none; stroke: #A9C4CF; stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0.9; }
.c-pulse { fill: #D89A6B; filter: drop-shadow(0 0 6px rgba(224, 174, 135, 0.8)); }
.agent-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; font: inherit; padding: 0; animation: nodeFloat 6s ease-in-out infinite; }
.agent-node:nth-of-type(2) { animation-delay: 1.4s; }
.agent-node:nth-of-type(3) { animation-delay: 2.8s; }
.agent-node:nth-of-type(4) { animation-delay: 4.2s; }
@keyframes nodeFloat { 0%, 100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-8px); } }
.an-ico { width: 74px; height: 74px; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--mare-light); display: flex; align-items: center; justify-content: center; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.agent-node:hover .an-ico, .agent-node.active .an-ico { border-color: var(--sunset-deep); box-shadow: 0 8px 30px rgba(224, 174, 135, 0.4); transform: scale(1.06); }
.an-name { font-size: 13px; font-weight: 700; color: var(--terra); max-width: 130px; text-align: center; line-height: 1.3; }
.aios-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 132px; height: 132px; border-radius: 28px; background: var(--sand-card); border: 2px solid var(--mare); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 16px 50px rgba(59, 50, 43, 0.10); }
.aios-core .serif { font-size: 25px; }
.const-panel { max-width: 640px; margin: 0 auto; background: var(--cream); border: 1px solid var(--border); border-radius: 16px; padding: 20px 26px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.const-panel .label { font-size: 11px; }
.const-panel p { font-size: 15.5px; line-height: 1.6; font-weight: 300; min-height: 50px; margin: 0; }
.const-caption { text-align: center; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 19px; color: var(--secondary); }
@media (max-width: 640px) {
  .an-ico { width: 56px; height: 56px; }
  .an-name { font-size: 11px; max-width: 90px; }
  .aios-core { width: 96px; height: 96px; border-radius: 20px; }
  .aios-core .serif { font-size: 19px; }
  .const-panel p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .agent-node { animation: none; } }

/* ===== arquitetura do AIOS ===== */
.aios-arch { position: relative; aspect-ratio: 1000 / 620; max-width: 980px; width: 100%; margin: 0 auto; }
.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-line { fill: none; stroke: #C9B8A5; stroke-width: 1.6; }
.arch-pulse { fill: #D89A6B; filter: drop-shadow(0 0 6px rgba(224, 174, 135, 0.85)); }
.arch-box { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: var(--cream); border: 1.5px solid var(--border); border-radius: 14px; padding: 8px 12px; transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.arch-box strong { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); }
.arch-box span { font-size: 11.5px; font-weight: 300; color: var(--secondary); line-height: 1.35; }
.arch-box.on { border-color: var(--sunset-deep); box-shadow: 0 8px 26px rgba(224, 174, 135, 0.35); }
.arch-aios { background: var(--terra); border-color: var(--terra); gap: 6px; }
.arch-aios strong { color: var(--cream-blue); font-size: 16px; }
.arch-aios span { color: var(--border); }
.arch-aios.on { border-color: var(--sunset); box-shadow: 0 10px 34px rgba(224, 174, 135, 0.45); }
.arch-green { background: var(--folha-light); border-color: var(--folha-border); }
.arch-green strong { color: var(--folha-dark); }
.arch-lbl { position: absolute; font-size: 11.5px; font-style: italic; color: var(--label); }
@media (max-width: 760px) {
  /* mesma estrutura do computador, so mais alta e com tudo menor.
     as caixas ficam nas mesmas posicoes em percentagem; o svg das linhas estica junto
     porque o main.js poe preserveAspectRatio="none" nele abaixo desta largura */
  .aios-arch { aspect-ratio: 1000 / 1420; width: calc(100% + 40px); max-width: none; margin-left: -20px; }
  .arch-box { padding: 6px 5px; gap: 2px; border-radius: 9px; border-width: 1px; }
  .arch-box strong { font-size: 8.5px; letter-spacing: 0.06em; }
  .arch-box span { font-size: 7.5px; line-height: 1.25; }
  .arch-line { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
  .arch-aios { padding: 7px 5px; }
  .arch-aios strong { font-size: 10px; }
  .arch-aios span { font-size: 7.5px; }
  .arch-lbl { font-size: 7px; }
  .aios-arch::before { inset: -10px; background-size: 26px 26px; }
}

/* ===== arquitetura v2: pele rica ===== */
.aios-arch::before { content: ""; position: absolute; inset: -24px; border-radius: 24px; background-image: linear-gradient(rgba(110, 154, 172, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 154, 172, 0.07) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.arch-box { box-shadow: 0 6px 22px rgba(59, 50, 43, 0.06); }
.arch-you { flex-direction: row; gap: 12px; text-align: left; }
.arch-you .a-txt { display: flex; flex-direction: column; gap: 3px; }
.arch-aios { gap: 4px; }
.robot-eye { transform-box: fill-box; transform-origin: center; animation: robotBlink 5s ease-in-out infinite; }
@keyframes robotBlink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.12); } }

/* apps: bandeja de icones */
.arch-apps { gap: 8px; }
.app-row { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.app-tile { width: 32px; height: 32px; border-radius: 9px; background: #FFFFFF; border: 1px solid var(--folha-border); display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.app-tile:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 18px rgba(59, 50, 43, 0.15); }

/* pilares como arquivos */
.arch-file { border-radius: 10px 20px 10px 10px; background: #FFFDF9; overflow: visible; }
.arch-file::before { content: ""; position: absolute; top: -1.5px; right: -1.5px; width: 20px; height: 20px; background: var(--sand); border-left: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); border-radius: 0 0 0 9px; }
.arch-file.on::before { border-color: var(--sunset-deep); }
.file-lines { display: flex; flex-direction: column; gap: 3px; width: 60%; margin-top: 2px; }
.file-lines i { height: 2.5px; border-radius: 2px; background: var(--border); }
.file-lines i:nth-child(2) { width: 80%; }
.file-lines i:nth-child(3) { width: 55%; }

/* skills: chips de comando */
.arch-plain { background: transparent; border: none; box-shadow: none; }
.arch-plain.on { box-shadow: none; border: none; }
.chip-stack { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 5px; background: var(--cream); border: 1.5px solid var(--mare-light); border-radius: 999px; padding: 2.5px 12px; font-size: 11px; font-weight: 700; color: var(--mare-dark); transition: border-color 0.4s ease; }
.chip:nth-child(2) { transform: translateX(10px); opacity: 0.85; }
.chip:nth-child(3) { transform: translateX(-8px); opacity: 0.7; }
.arch-plain.on .chip { border-color: var(--sunset-deep); }
.chip .spark { color: var(--sunset-deep); font-size: 12px; line-height: 1; }

/* rotinas: ciclo girando */
.routine-clock { animation: routineSpin 14s linear infinite; }
@keyframes routineSpin { to { transform: rotate(360deg); } }
.arch-plain.on .routine-clock circle, .arch-plain.on .routine-clock path { stroke: var(--sunset-deep); }

/* entregas: leque de folhinhas / acoes: checks */
.doc-fan { display: flex; align-items: flex-end; height: 30px; }
.doc-fan i { width: 20px; height: 26px; border-radius: 4px 8px 4px 4px; background: #FFFDF9; border: 1.5px solid var(--border); }
.doc-fan i:nth-child(1) { transform: rotate(-10deg) translateX(4px); }
.doc-fan i:nth-child(3) { transform: rotate(10deg) translateX(-4px); }
.check-row { display: flex; gap: 8px; }
.check-row svg circle { transition: stroke 0.4s ease; }
.arch-box.on .check-row circle { stroke: var(--folha-dark); }

@media (max-width: 760px) {
  .aios-arch::before { display: none; }
  .arch-plain { border: 1.5px solid var(--border); background: var(--cream); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .routine-clock, .robot-eye { animation: none; } }

/* agents: termina onde o conteudo termina */
#agents { min-height: 0; padding-bottom: 44px; }

/* ===== celular: mesma experiencia, escala menor ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: rgba(246, 237, 227, 0.97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(59, 50, 43, 0.12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .nav-links a:not(.btn) { display: block; font-size: 17px; padding: 15px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .lang-btn { align-self: flex-start; border-bottom: 0; margin-top: 14px; padding: 8px 16px; }
  .nav-links a.btn { margin-top: 14px; text-align: center; padding: 15px 24px; font-size: 16px; }
  body.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  /* tipografia: o desktop encolhe, nao muda de cara */
  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); line-height: 1.08; }
  .hero-sub { font-size: 16.5px; max-width: 100%; }
  .hero-proof { font-size: 12.5px; gap: 8px; }
  .hero-inner { gap: 20px; }
  h2 { font-size: clamp(21px, 5.8vw, 27px); }
  .label { font-size: 11px; letter-spacing: 0.13em; }
  .wordmark { font-size: 21px; }
  .brand { gap: 2px; }
  .brand-mark { width: 37px; height: 18.5px; }
  .btn { font-size: 15px; padding: 14px 26px; }
  .why-quote { font-size: clamp(21px, 6vw, 27px); }
  .why-text { font-size: 16px; }
  .shiny { font-size: clamp(28px, 8.2vw, 38px); }
  .card, .project, .testimonial { padding: 20px; }
  .project-title .serif { font-size: 28px; }
  .project p, .testimonial blockquote { font-size: 15px; }
  .section-head { gap: 8px; }
  .testimonials-grid::before { font-size: 190px; top: -78px; left: -14px; }
}

/* ===== celular, segunda passagem ===== */
@media (max-width: 900px) {
  /* o menu deixou de ser uma linha fina: ancora precisa de folga */
  section { scroll-margin-top: 96px; }
  /* trocar de idioma e a acao mais procurada de quem chega de PT ou BR: fica a vista */
  .nav-links .lang-btn { display: none; }
  .lang-btn-top { display: inline-block; margin-left: auto; margin-right: 4px; }
}
@media (min-width: 901px) { .lang-btn-top { display: none; } }

@media (max-width: 640px) {
  section { padding: 56px 0 28px; }
  /* how it works: quatro passos em duas linhas, numero ao lado do titulo */
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .step { padding: 16px 14px; gap: 6px; }
  .step .step-num { font-size: 30px; line-height: 1; }
  .step h3 { font-size: 15px; }
  .step p { font-size: 13.5px; line-height: 1.5; }
  .impact-card p, .sys p { font-size: 14px; }
  .hero-proof { margin-top: 12px; }
}

/* ===== celular: pecas da arquitetura em escala menor (tem de vir depois da pele rica) ===== */
@media (max-width: 760px) {
  .app-row { gap: 3px; }
  .app-tile { width: 17px; height: 17px; border-radius: 5px; border-width: 1px; }
  .app-tile svg { width: 11px; height: 11px; }
  .chip { font-size: 7px; padding: 1px 6px; gap: 3px; border-width: 1px; }
  .chip .spark { font-size: 8px; }
  .chip-stack { gap: 2px; }
  .routine-clock { width: 22px; height: 22px; }
  .doc-fan { height: 16px; }
  .doc-fan i { width: 11px; height: 14px; border-width: 1px; }
  .check-row { gap: 4px; }
  .check-row svg { width: 13px; height: 13px; }
  .file-lines { gap: 2px; margin-top: 1px; }
  .file-lines i { height: 1.5px; }
  .arch-aios svg { width: 30px; height: 31px; }
  .arch-you svg { width: 20px; height: 20px; }
  .arch-you { gap: 6px; }
  .arch-file::before { width: 12px; height: 12px; border-radius: 0 0 0 5px; }
}

/* cartao de projeto como link (Mare) */
a.project { color: inherit; text-decoration: none; cursor: pointer; }
