:root { --gd-tear-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22300%22%20viewBox%3D%220%200%20100%20300%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2C0L0.0%2C173.4Q0.7%2C173.4%201.05%2C173.7Q1.4%2C174.0%201.75%2C173.6Q2.1%2C173.1%202.45%2C172.7Q2.8%2C172.3%203.15%2C171.7Q3.5%2C171.0%203.85%2C169.4Q4.2%2C167.9%204.55%2C166.9Q4.9%2C165.9%205.25%2C164.2Q5.6%2C162.6%205.95%2C162.3Q6.3%2C162.0%206.65%2C163.1Q7.0%2C164.2%207.35%2C165.3Q7.7%2C166.5%208.05%2C167.7Q8.4%2C168.9%208.75%2C169.5Q9.1%2C170.1%209.45%2C170.6Q9.8%2C171.2%2010.15%2C170.3Q10.5%2C169.4%2010.85%2C169.2Q11.2%2C169.0%2011.55%2C167.8Q11.9%2C166.6%2012.25%2C166.6Q12.6%2C166.5%2012.95%2C165.8Q13.3%2C165.2%2013.65%2C165.8Q14.0%2C166.3%2014.35%2C166.4Q14.7%2C166.4%2015.05%2C166.6Q15.4%2C166.7%2015.75%2C165.1Q16.1%2C163.4%2016.45%2C162.1Q16.8%2C160.7%2017.15%2C159.5Q17.5%2C158.3%2017.85%2C157.2Q18.2%2C156.2%2018.55%2C156.1Q18.9%2C156.1%2019.25%2C155.5Q19.6%2C154.9%2019.95%2C155.6Q20.3%2C156.2%2020.65%2C155.8Q21.0%2C155.5%2021.35%2C155.2Q21.7%2C155.0%2022.05%2C154.4Q22.4%2C153.9%2022.75%2C154.9Q23.1%2C155.9%2023.45%2C155.7Q23.8%2C155.5%2024.15%2C156.4Q24.5%2C157.3%2024.85%2C157.7Q25.2%2C158.1%2025.55%2C158.2Q25.9%2C158.3%2026.25%2C158.7Q26.6%2C159.0%2026.95%2C159.0Q27.3%2C159.0%2027.65%2C158.8Q28.0%2C158.5%2028.35%2C158.4Q28.7%2C158.4%2029.05%2C158.8Q29.4%2C159.2%2029.75%2C160.6Q30.1%2C162.0%2030.45%2C162.9Q30.8%2C163.9%2031.15%2C164.4Q31.5%2C164.9%2031.85%2C164.9Q32.2%2C165.0%2032.55%2C165.1Q32.9%2C165.1%2033.25%2C164.9Q33.6%2C164.8%2033.95%2C164.2Q34.3%2C163.6%2034.65%2C163.4Q35.0%2C163.3%2035.35%2C162.4Q35.7%2C161.5%2036.05%2C161.3Q36.4%2C161.1%2036.75%2C160.6Q37.1%2C160.0%2037.45%2C159.7Q37.8%2C159.3%2038.15%2C159.1Q38.5%2C158.9%2038.85%2C157.8Q39.2%2C156.6%2039.55%2C155.1Q39.9%2C153.7%2040.25%2C152.0Q40.6%2C150.3%2040.95%2C148.7Q41.3%2C147.1%2041.65%2C145.6Q42.0%2C144.1%2042.35%2C144.7Q42.7%2C145.3%2043.05%2C147.0Q43.4%2C148.7%2043.75%2C149.6Q44.1%2C150.4%2044.45%2C151.4Q44.8%2C152.3%2045.15%2C152.4Q45.5%2C152.4%2045.85%2C152.1Q46.2%2C151.8%2046.55%2C151.4Q46.9%2C150.9%2047.25%2C150.2Q47.6%2C149.4%2047.95%2C148.9Q48.3%2C148.4%2048.65%2C147.5Q49.0%2C146.6%2049.35%2C146.8Q49.7%2C147.1%2050.05%2C146.7Q50.4%2C146.3%2050.75%2C145.8Q51.1%2C145.3%2051.45%2C145.3Q51.8%2C145.3%2052.15%2C145.6Q52.5%2C145.8%2052.85%2C145.7Q53.2%2C145.5%2053.55%2C146.2Q53.9%2C147.0%2054.25%2C146.7Q54.6%2C146.4%2054.95%2C145.9Q55.3%2C145.5%2055.65%2C146.0Q56.0%2C146.5%2056.35%2C146.9Q56.7%2C147.4%2057.05%2C147.9Q57.4%2C148.5%2057.75%2C148.1Q58.1%2C147.7%2058.45%2C147.6Q58.8%2C147.5%2059.15%2C147.3Q59.5%2C147.2%2059.85%2C147.2Q60.2%2C147.3%2060.55%2C147.3Q60.9%2C147.3%2061.25%2C147.6Q61.6%2C147.9%2061.95%2C148.4Q62.3%2C148.9%2062.65%2C147.9Q63.0%2C147.0%2063.35%2C146.6Q63.7%2C146.2%2064.05%2C144.6Q64.4%2C143.1%2064.75%2C141.6Q65.1%2C140.2%2065.45%2C138.6Q65.8%2C137.1%2066.15%2C138.1Q66.5%2C139.2%2066.85%2C140.8Q67.2%2C142.4%2067.55%2C143.2Q67.9%2C144.0%2068.25%2C145.2Q68.6%2C146.5%2068.95%2C147.6Q69.3%2C148.7%2069.65%2C148.2Q70.0%2C147.8%2070.35%2C147.7Q70.7%2C147.6%2071.05%2C146.8Q71.4%2C146.0%2071.75%2C145.2Q72.1%2C144.5%2072.45%2C144.4Q72.8%2C144.4%2073.15%2C143.4Q73.5%2C142.4%2073.85%2C142.2Q74.2%2C142.1%2074.55%2C142.1Q74.9%2C142.1%2075.25%2C141.4Q75.6%2C140.7%2075.95%2C140.1Q76.3%2C139.5%2076.65%2C138.8Q77.0%2C138.1%2077.35%2C138.7Q77.7%2C139.3%2078.05%2C138.4Q78.4%2C137.6%2078.75%2C137.1Q79.1%2C136.7%2079.45%2C136.5Q79.8%2C136.3%2080.15%2C136.1Q80.5%2C135.9%2080.85%2C135.4Q81.2%2C135.0%2081.55%2C135.3Q81.9%2C135.6%2082.25%2C135.2Q82.6%2C134.9%2082.95%2C134.3Q83.3%2C133.7%2083.65%2C133.7Q84.0%2C133.7%2084.35%2C133.1Q84.7%2C132.6%2085.05%2C132.9Q85.4%2C133.2%2085.75%2C133.3Q86.1%2C133.5%2086.45%2C133.1Q86.8%2C132.6%2087.15%2C131.6Q87.5%2C130.6%2087.85%2C129.9Q88.2%2C129.3%2088.55%2C127.9Q88.9%2C126.4%2089.25%2C125.6Q89.6%2C124.8%2089.95%2C124.3Q90.3%2C123.9%2090.65%2C125.5Q91.0%2C127.1%2091.35%2C129.1Q91.7%2C131.1%2092.05%2C132.1Q92.4%2C133.1%2092.75%2C134.5Q93.1%2C135.9%2093.45%2C136.2Q93.8%2C136.5%2094.15%2C137.2Q94.5%2C137.9%2094.85%2C137.2Q95.2%2C136.5%2095.55%2C136.7Q95.9%2C136.9%2096.25%2C136.8Q96.6%2C136.6%2096.95%2C137.1Q97.3%2C137.5%2097.65%2C136.8Q98.0%2C136.2%2098.35%2C136.2Q98.7%2C136.2%2099.05%2C135.6L99.4%2C135.1L100%2C0Z%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2245.47%22%20cy%3D%22145.2%22%20rx%3D%223.75%22%20ry%3D%221.88%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2238.26%22%20cy%3D%22152.3%22%20rx%3D%222.85%22%20ry%3D%221.42%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2238.2%22%20cy%3D%22166.5%22%20rx%3D%222.7%22%20ry%3D%221.35%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2270.88%22%20cy%3D%22153.9%22%20rx%3D%221.35%22%20ry%3D%220.68%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2274.64%22%20cy%3D%22146.0%22%20rx%3D%223.0%22%20ry%3D%221.5%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2268.72%22%20cy%3D%22153.7%22%20rx%3D%223.75%22%20ry%3D%221.88%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2238.99%22%20cy%3D%22161.6%22%20rx%3D%222.1%22%20ry%3D%221.05%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2241.21%22%20cy%3D%22161.2%22%20rx%3D%221.95%22%20ry%3D%220.98%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2233.03%22%20cy%3D%22166.6%22%20rx%3D%222.4%22%20ry%3D%221.2%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2295.48%22%20cy%3D%22145.6%22%20rx%3D%223.0%22%20ry%3D%221.5%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2292.09%22%20cy%3D%22121.7%22%20rx%3D%222.25%22%20ry%3D%221.12%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2237.55%22%20cy%3D%22163.7%22%20rx%3D%223.45%22%20ry%3D%221.72%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2257.39%22%20cy%3D%22138.9%22%20rx%3D%222.7%22%20ry%3D%221.35%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2265.15%22%20cy%3D%22159.0%22%20rx%3D%221.8%22%20ry%3D%220.9%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2245.41%22%20cy%3D%22139.9%22%20rx%3D%221.8%22%20ry%3D%220.9%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2218.79%22%20cy%3D%22163.2%22%20rx%3D%221.65%22%20ry%3D%220.83%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2259.16%22%20cy%3D%22143.2%22%20rx%3D%222.25%22%20ry%3D%221.12%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2285.26%22%20cy%3D%22128.0%22%20rx%3D%221.8%22%20ry%3D%220.9%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2284.09%22%20cy%3D%22120.1%22%20rx%3D%223.75%22%20ry%3D%221.88%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2256.42%22%20cy%3D%22158.6%22%20rx%3D%221.35%22%20ry%3D%220.68%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%226.82%22%20cy%3D%22179.4%22%20rx%3D%223.0%22%20ry%3D%221.5%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2254.56%22%20cy%3D%22149.4%22%20rx%3D%223.75%22%20ry%3D%221.88%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2220.25%22%20cy%3D%22170.7%22%20rx%3D%221.35%22%20ry%3D%220.68%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2213.81%22%20cy%3D%22174.2%22%20rx%3D%222.85%22%20ry%3D%221.42%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2229.83%22%20cy%3D%22170.4%22%20rx%3D%223.3%22%20ry%3D%221.65%22%20fill%3D%22%23fff%22%2F%3E%3Cellipse%20cx%3D%2294.11%22%20cy%3D%22131.0%22%20rx%3D%223.15%22%20ry%3D%221.58%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); }

/* ==========================================================================
   Gilberson Dias — Graphite Architectural Theme, Brand Assets & Custom Visuals
   ========================================================================== */

/* ---------- 1. Architectural Graphite Dark Theme (Default) ---------- */
.dark {
  --gd-amber: #e0a33a;
  --gd-amber-soft: rgba(224, 163, 58, 0.14);
  --gd-amber-border: rgba(224, 163, 58, 0.34);

  --background: #161719 !important;
  --foreground: #f1efea !important;
  --text-primary: #f1efea !important;
  --text-secondary: #c7c4bc !important;
  --text-muted: #98958d !important;
  --text-disabled: #6b6963 !important;

  --card: #1d1f23 !important;
  --card-foreground: #f1efea !important;
  --popover: #1d1f23 !important;
  --popover-foreground: #f1efea !important;

  --muted: #1b1d21 !important;
  --muted-foreground: #98958d !important;
  --secondary: #24272c !important;
  --secondary-foreground: #f1efea !important;
  --accent: #272a30 !important;
  --accent-foreground: #f1efea !important;

  --border: rgba(241, 239, 234, 0.11) !important;
  --input: #22252a !important;
  --ring: rgba(224, 163, 58, 0.45) !important;
  --dot-ink: rgba(241, 239, 234, 0.18) !important;

  /* Primary button: warm stone on graphite (faithful to design-guide.md) */
  --primary: #efeae0 !important;
  --primary-hover: #f8f5ef !important;
  --primary-foreground: #161719 !important;
  --brand-mark: #f1efea !important;

  --fig-surface: #1e2025 !important;
}

:root:not(.dark) {
  --gd-amber: #b8741a;
  --gd-amber-soft: rgba(184, 116, 26, 0.12);
  --gd-amber-border: rgba(184, 116, 26, 0.32);
}

/* ---------- 2. Wordmark & Monogram ---------- */
.gd-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  font-family: "Instrument Serif", var(--font-serif), Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-mark, var(--foreground));
  white-space: nowrap;
  user-select: none;
}

.gd-wordmark__dot {
  display: inline-block;
  width: 0.25em;
  height: 0.25em;
  background-color: var(--gd-amber);
  transform: translateY(-0.02em);
  flex-shrink: 0;
}

.gd-mark-badge {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.08em;
  font-family: "Instrument Serif", var(--font-serif), Georgia, serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f1efea;
}

.gd-mark-badge i {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  background-color: #e0a33a;
  flex-shrink: 0;
}

/* ---------- 3. Hero Glass Readability & Stack Marquee ---------- */
.fig-chat .fig-glass__pane {
  background: rgba(20, 22, 25, 0.62);
  border: 1px solid rgba(241, 239, 234, 0.16);
  box-shadow: 0 24px 56px -14px rgba(0, 0, 0, 0.6);
}

.gd-stack-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted-foreground);
  opacity: 0.82;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.gd-stack-item:hover {
  opacity: 1;
  color: var(--foreground);
}

.gd-stack-dot {
  width: 5px;
  height: 5px;
  background: var(--gd-amber);
  flex-shrink: 0;
}

/* ---------- 4. Architectural Precision Scanline Reveal (.ptp) ---------- */
.ptp {
  background: #181a1e !important;
  background-image:
    radial-gradient(55% 45% at 80% 15%, rgba(224, 163, 58, 0.08), transparent 70%),
    linear-gradient(rgba(241, 239, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 239, 234, 0.03) 1px, transparent 1px) !important;
  background-size: 100% 100%, 28px 28px, 28px 28px !important;
}
:root:not(.dark) .ptp {
  background: #f8f5ef !important;
  background-image:
    linear-gradient(rgba(25, 24, 22, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 24, 22, 0.04) 1px, transparent 1px) !important;
  background-size: 28px 28px, 28px 28px !important;
}
.ptp__live {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  clip-path: inset(0 0 calc((1 - var(--reveal, 0)) * 100%) 0) !important;
  -webkit-clip-path: inset(0 0 calc((1 - var(--reveal, 0)) * 100%) 0) !important;
  will-change: clip-path;
}
.gd-ptp-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--reveal, 0) * 100%);
  height: 2px;
  z-index: 25;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #e0a33a 14%, #f7d996 50%, #e0a33a 86%, transparent 100%);
  box-shadow: 0 0 18px 2px rgba(224, 163, 58, 0.45);
  opacity: calc(1 - max(0, (var(--reveal, 0) - 0.96) * 25));
  transition: opacity 0.2s ease;
}
.gd-ptp-scanline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 54px;
  background: linear-gradient(180deg, rgba(224, 163, 58, 0) 0%, rgba(224, 163, 58, 0.14) 100%);
}
.gd-ptp-scanline::after {
  content: "EM PRODUÇÃO";
  position: absolute;
  right: 14px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(22, 23, 25, 0.88);
  border: 1px solid rgba(224, 163, 58, 0.45);
  color: #e0a33a;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.dark .ptp__live {
  --card: #22252b !important;
  --ptp-mark: #e0a33a !important;
  --ptp-ink-1: #e0a33a !important;
  --ptp-ink-2: #6eb38c !important;
  --ptp-ink-3: #7da6d8 !important;
  --ptp-ink-4: #d88f6e !important;
}

/* ---------- 5. Bespoke Workflow Architectural Stages (Steps 01-06) ---------- */
.gd-wf-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  min-height: 360px;
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px solid rgba(241, 239, 234, 0.12);
  background-color: #191b1f;
  background-image:
    radial-gradient(65% 55% at var(--gx, 82%) var(--gy, 18%), rgba(224, 163, 58, 0.14), transparent 72%),
    linear-gradient(rgba(241, 239, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 239, 234, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  padding: clamp(1.15rem, 2.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #f1efea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gd-wf-stage--matrix {
  padding: clamp(0.85rem, 1.6vw, 1.25rem);
  justify-content: center;
}

.gd-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b9890;
}

.gd-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 163, 58, 0.32);
  background: rgba(224, 163, 58, 0.1);
  color: #e0a33a;
  font-size: 0.65rem;
}

.gd-stage-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0a33a;
  box-shadow: 0 0 8px rgba(224, 163, 58, 0.8);
}

/* Step 01: Diagnostic Flow Cards */
.gd-diag-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-block: auto;
  padding-block: 0.75rem;
}

.gd-diag-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(241, 239, 234, 0.09);
  background: rgba(22, 23, 25, 0.72);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gd-diag-row:hover {
  border-color: rgba(224, 163, 58, 0.35);
  transform: translateY(-1px);
}

.gd-diag-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gd-diag-tag {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d7b74;
}

.gd-diag-tag--ok {
  color: #e0a33a;
}

.gd-diag-val {
  font-size: 0.8rem;
  line-height: 1.3;
  color: #b7b3ab;
}

.gd-diag-val--ok {
  color: #f1efea;
  font-weight: 500;
}

.gd-diag-arrow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(224, 163, 58, 0.35);
  background: rgba(224, 163, 58, 0.1);
  color: #e0a33a;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.gd-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(241, 239, 234, 0.09);
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c8982;
}

/* Step 02: Interactive Prototype Browser (3 clickable tabs) */
.gd-proto-browser {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(241, 239, 234, 0.12);
  background: #141619;
  overflow: hidden;
}

.gd-proto-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(241, 239, 234, 0.09);
  background: #1b1e23;
}

.gd-proto-dots {
  display: flex;
  gap: 0.3rem;
}

.gd-proto-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(241, 239, 234, 0.2);
}

.gd-proto-tabs {
  display: flex;
  gap: 0.25rem;
}

.gd-proto-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #9a978f;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.26rem 0.6rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gd-proto-tab:hover {
  color: #f1efea;
  background: rgba(241, 239, 234, 0.06);
}

.gd-proto-tab[data-active="true"] {
  background: rgba(224, 163, 58, 0.16);
  border-color: rgba(224, 163, 58, 0.4);
  color: #f1efea;
}

.gd-proto-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gd-proto-pane[hidden] {
  display: none;
}

.gd-mock-box {
  border: 1px solid rgba(241, 239, 234, 0.1);
  border-radius: 0.45rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.gd-mock-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.gd-mock-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.gd-mock-k {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8f8c84;
}

.gd-mock-v {
  font-size: 1rem;
  font-weight: 600;
  color: #f1efea;
  margin-top: 0.15rem;
}

.gd-mock-v--amber {
  color: #e0a33a;
}

.gd-mock-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(241, 239, 234, 0.1);
  background: #1c1f24;
  font-size: 0.76rem;
  color: #e6e2da;
}

.gd-mock-node + .gd-mock-node {
  margin-top: 0.45rem;
}

.gd-badge-sm {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(224, 163, 58, 0.14);
  color: #e0a33a;
}

.gd-badge-sm--ok {
  background: rgba(110, 179, 140, 0.16);
  color: #7ec89e;
}

/* Step 03: Matrix restyle on Graphite */
.gd-wf-stage--matrix {
  justify-content: space-between;
}
.gd-wf-stage--matrix .fig-mx {
  container-type: inline-size;
  background: #15171a;
  border-radius: 0.6rem;
  border: 1px solid rgba(241, 239, 234, 0.1);
}
.gd-wf-stage--matrix .fig-mx__pin[data-now] {
  border-color: #e0a33a !important;
  background: #e0a33a !important;
  color: #161719 !important;
}
.gd-wf-stage--matrix .fig-mx__pin {
  background: #23262c;
  color: #f1efea;
  border-color: rgba(241, 239, 234, 0.18);
}

/* Step 04: Live Delivery & Validation Stage */
.gd-demo-window {
  flex: 1;
  margin-block: 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(241, 239, 234, 0.12);
  background: #141619;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.gd-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gd-check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(241, 239, 234, 0.08);
  background: #1b1e23;
  font-size: 0.78rem;
  color: #eae6de;
}

.gd-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(126, 200, 158, 0.16);
  color: #7ec89e;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.gd-presenter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.45rem;
  background: #202329;
  border: 1px solid rgba(224, 163, 58, 0.25);
}

.gd-presenter-id {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: #f1efea;
}

.gd-presenter-avatar {
  width: 28px;
  height: 28px;
  border-radius: 0.35rem;
  background: #141619;
  border: 1px solid rgba(224, 163, 58, 0.4);
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", serif;
  font-size: 0.85rem;
  color: #f1efea;
}

/* Step 05: 30-day Stabilization Timeline */
.gd-timeline-track {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-block: auto;
  padding-block: 0.6rem;
}

.gd-ms-card {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 1.25rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(241, 239, 234, 0.1);
  background: #15171b;
}

.gd-ms-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 99px;
  background: var(--ms-color, #e0a33a);
}

.gd-ms-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.gd-ms-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1efea;
}

.gd-ms-desc {
  font-size: 0.75rem;
  color: #9e9b93;
  line-height: 1.4;
}

.gd-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(241, 239, 234, 0.08);
  overflow: hidden;
  margin-top: 0.45rem;
}

.gd-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0a33a, #7ec89e);
}

/* Step 06: Ownership & Autonomy Transfer Hub */
.gd-autonomy-hub {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding-block: 0.6rem;
}

.gd-transfer-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem;
}

.gd-owner-box {
  padding: 1rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(241, 239, 234, 0.12);
  background: #141619;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.gd-owner-box--client {
  border-color: rgba(224, 163, 58, 0.38);
  background: rgba(224, 163, 58, 0.06);
}

.gd-owner-tile {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: #1f2228;
  border: 1px solid rgba(241, 239, 234, 0.14);
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", serif;
  font-size: 1.3rem;
  color: #f1efea;
}

.gd-owner-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: #e6e2da;
}

.gd-transfer-rail {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gd-transfer-rail span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0a33a;
  animation: gd-pulse-dot 1.8s infinite ease-in-out;
}
.gd-transfer-rail span:nth-child(2) { animation-delay: 0.25s; }
.gd-transfer-rail span:nth-child(3) { animation-delay: 0.5s; }

@keyframes gd-pulse-dot {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.gd-asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.gd-asset-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(241, 239, 234, 0.1);
  background: #15171b;
  font-size: 0.74rem;
  color: #dcd8cf;
}

.gd-asset-chip span:last-child {
  color: #7ec89e;
  font-family: var(--font-mono), monospace;
  font-size: 0.62rem;
}

/* ---------- 6. Showcase Section ("Como isso aparece na prática") ---------- */
.gd-showcase {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px solid rgba(241, 239, 234, 0.12);
  overflow: hidden;
  background-color: #16181c;
  background-image: url("showcase-backdrop.jpg");
  background-size: cover;
  background-position: center;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gd-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 21, 0.28) 0%, rgba(16, 18, 21, 0.58) 100%);
  pointer-events: none;
}

.gd-showcase__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 460px;
  display: grid;
}

.gd-showcase__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd-showcase__slide[data-active="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gd-app-window {
  width: 100%;
  max-width: 960px;
  border-radius: 0.75rem;
  border: 1px solid rgba(241, 239, 234, 0.14);
  background: rgba(20, 22, 26, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  color: #f1efea;
}

.gd-app-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(241, 239, 234, 0.09);
  background: rgba(29, 31, 36, 0.9);
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.68rem;
  color: #9a978f;
}

.gd-app-body {
  padding: clamp(1rem, 2.2vw, 1.65rem);
}

.gd-app-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 360px;
}

.gd-app-side {
  border-right: 1px solid rgba(241, 239, 234, 0.08);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(16, 18, 21, 0.5);
}

.gd-app-nav {
  padding: 0.45rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  color: #98958d;
}

.gd-app-nav--on {
  background: rgba(224, 163, 58, 0.14);
  color: #f1efea;
  font-weight: 500;
}

.gd-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gd-kpi-card {
  padding: 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(241, 239, 234, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.gd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.gd-table th {
  text-align: left;
  font-family: var(--font-mono), monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #84817a;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(241, 239, 234, 0.09);
}

.gd-table td {
  padding: 0.65rem;
  border-bottom: 1px solid rgba(241, 239, 234, 0.06);
  color: #dedad2;
}

.gd-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.5rem;
  height: 110px;
  padding-top: 0.75rem;
}

.gd-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}

.gd-bar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #e0a33a, rgba(224, 163, 58, 0.35));
}

.gd-bar-lbl {
  font-family: var(--font-mono), monospace;
  font-size: 0.6rem;
  color: #88857e;
}

/* WhatsApp Automation Split Mockup */
.gd-wa-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.gd-wa-chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: 0.55rem;
  background: #15171b;
  border: 1px solid rgba(241, 239, 234, 0.09);
}

.gd-bubble {
  max-width: 86%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.gd-bubble--in {
  align-self: flex-start;
  background: #23262d;
  color: #e9e5dd;
}

.gd-bubble--out {
  align-self: flex-end;
  background: rgba(224, 163, 58, 0.16);
  border: 1px solid rgba(224, 163, 58, 0.32);
  color: #f6f2ea;
}

/* Showcase Controls */
.gd-showcase__controls {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.gd-sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 239, 234, 0.14);
  background: rgba(20, 22, 26, 0.72);
  backdrop-filter: blur(10px);
  color: #b4b0a8;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gd-sc-btn:hover {
  color: #f1efea;
  border-color: rgba(241, 239, 234, 0.3);
}

.gd-sc-btn[data-active="true"] {
  background: #efeae0;
  color: #161719;
  border-color: #efeae0;
}

.gd-sc-num {
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  opacity: 0.7;
}

@media (max-width: 760px) {
  .gd-app-grid { grid-template-columns: 1fr; }
  .gd-app-side { display: none; }
  .gd-kpi-row { grid-template-columns: 1fr; }
  .gd-wa-split { grid-template-columns: 1fr; }
  .gd-diag-row { grid-template-columns: 1fr; }
  .gd-diag-arrow { transform: rotate(90deg); justify-self: center; }
  .gd-showcase__stage { min-height: 400px; }
}

/* ---------- 7. About Editorial Plates ---------- */
.gd-plate {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background-color: #131518;
  background-image:
    radial-gradient(60% 70% at 85% 20%, rgba(224, 163, 58, 0.14), transparent 70%),
    radial-gradient(circle, rgba(241, 239, 234, 0.1) 1px, transparent 1.2px);
  background-size: 100% 100%, 24px 24px;
  color: #f1efea;
  overflow: hidden;
}

.gd-plate--alt {
  background-color: #181a1f;
  background-image:
    radial-gradient(65% 75% at 15% 85%, rgba(224, 163, 58, 0.13), transparent 70%),
    radial-gradient(circle, rgba(241, 239, 234, 0.08) 1px, transparent 1.2px);
  background-size: 100% 100%, 24px 24px;
}

.gd-plate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e0a33a;
}

.gd-plate__eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: #e0a33a;
}

.gd-plate__identity {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.65rem);
}

.gd-plate__photo {
  width: clamp(82px, 8vw, 108px);
  height: clamp(82px, 8vw, 108px);
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid rgba(224, 163, 58, 0.45);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
  background: #191816;
}

.gd-plate__mono {
  font-family: "Instrument Serif", var(--font-serif), Georgia, serif;
  font-size: clamp(3.5rem, 6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #f1efea;
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
}

.gd-plate__mono i {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  background: #e0a33a;
}

.gd-plate__quote {
  font-family: "Instrument Serif", var(--font-serif), Georgia, serif;
  font-size: clamp(1.25rem, 1.85vw, 1.72rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #f1efea;
  max-width: 26ch;
}

.gd-plate__quote mark {
  display: inline-block;
  background: #e0a33a;
  color: #161719;
  line-height: 1.02;
  padding: 0.03em 0.14em;
  border-radius: 2px;
}

.gd-plate__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(241, 239, 234, 0.14);
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a978f;
}

/* ---------- 8. FAQ, Footer & Smooth Scroll ---------- */
.gd-faq-btn[aria-expanded="true"] .gd-faq-v {
  transform: scaleY(0);
}

@media (min-width: 640px) {
  .gd-footer-nav {
    grid-template-columns: repeat(3, minmax(0, auto)) !important;
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gd-transfer-rail span { animation: none; }
}

/* ---------- 9. Área do Cliente Inativa (reversível sem apagar o módulo) ---------- */
.gd-auth-inactive-banner {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(92vw, 38rem);
  padding: 0.75rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(224, 163, 58, 0.45);
  background: rgba(22, 23, 25, 0.94);
  backdrop-filter: blur(12px);
  color: #f1efea;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
}

.gd-auth-inactive-banner strong {
  color: #e0a33a;
  font-weight: 600;
}

.gd-auth-inactive-banner a {
  color: #f1efea;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body[data-auth-inactive="true"] form,
body[data-auth-inactive="true"] .space-y-3 > button {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}
