
/* ============================================================
   RAIO-X DO CURRÍCULO — Design System
   Art direction: confiança + clareza + modernidade discreta.
   Paleta: neutros quentes + azul confiança como accent único.
   Tipografia: Sora (display) + Inter (corpo) — limpo, legível, premium.
   Densidade: espaçosa, muito respiro, foco total em 1 ação por tela.
============================================================ */

:root, [data-theme="light"] {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbf9;
  --color-surface-offset: #f1efe9;
  --color-divider: #e3e0d8;
  --color-border: #dcd8ce;

  --color-text: #1c1d22;
  --color-text-muted: #62636b;
  --color-text-faint: #a3a2a0;
  --color-text-inverse: #f9f8f4;

  --color-primary: #1652f0;
  --color-primary-hover: #0f3fc4;
  --color-primary-active: #0b309b;
  --color-primary-highlight: #dbe4fd;

  --color-success: #1b8a4c;
  --color-success-highlight: #d9efe1;
  --color-warning: #b4600f;
  --color-warning-highlight: #f3e2cd;
  --color-error: #b0264a;
  --color-error-highlight: #f4d9e1;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(28,29,34,0.06);
  --shadow-md: 0 8px 24px rgba(28,29,34,0.08);
  --shadow-lg: 0 20px 48px rgba(28,29,34,0.14);

  --transition: 220ms cubic-bezier(0.16,1,0.3,1);

  --content-narrow: 640px;
  --content-default: 860px;
  --content-wide: 1100px;

  --font-display: 'Sora', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --text-xs: clamp(.75rem,.72rem + .1vw,.8125rem);
  --text-sm: clamp(.875rem,.85rem + .15vw,.9375rem);
  --text-base: clamp(1rem,.97rem + .2vw,1.0625rem);
  --text-lg: clamp(1.125rem,1.05rem + .5vw,1.375rem);
  --text-xl: clamp(1.5rem,1.2rem + 1.2vw,2.125rem);
  --text-2xl: clamp(1.875rem,1.3rem + 2.2vw,3rem);
  --text-hero: clamp(2.25rem,1.4rem + 3.4vw,3.75rem);
}

[data-theme="dark"] {
  --color-bg: #14151a;
  --color-surface: #1a1b21;
  --color-surface-2: #202128;
  --color-surface-offset: #24252d;
  --color-divider: #2d2e37;
  --color-border: #383a45;
  --color-text: #edecea;
  --color-text-muted: #9c9da6;
  --color-text-faint: #6b6c76;
  --color-text-inverse: #14151a;
  --color-primary: #6d8fff;
  --color-primary-hover: #8aa4ff;
  --color-primary-active: #a6bcff;
  --color-primary-highlight: #253158;
  --color-success: #4fbf82;
  --color-success-highlight: #1d3128;
  --color-warning: #e0954a;
  --color-warning-highlight: #3a2c1c;
  --color-error: #e0648a;
  --color-error-highlight: #3a222c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:none;text-size-adjust:none;-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{min-height:100dvh;line-height:1.6;font-family:var(--font-body);font-size:var(--text-base);color:var(--color-text);background:var(--color-bg);transition:background var(--transition),color var(--transition)}
img,svg{display:block;max-width:100%}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.15;text-wrap:balance;font-weight:700}
p,li{text-wrap:pretty;max-width:70ch}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:none}
ul{list-style:none}

:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px;border-radius:var(--radius-sm)}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

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

/* Layout */
.container{max-width:var(--content-default);margin-inline:auto;padding-inline:var(--space-5)}
.container-wide{max-width:var(--content-wide);margin-inline:auto;padding-inline:var(--space-5)}
.container-narrow{max-width:var(--content-narrow);margin-inline:auto;padding-inline:var(--space-5)}

/* Header */
.site-header{position:sticky;top:0;z-index:40;background:color-mix(in oklab,var(--color-bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--color-divider)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-block:var(--space-4)}
.logo{display:flex;align-items:center;gap:var(--space-2);font-family:var(--font-display);font-weight:700;font-size:var(--text-base)}
.logo svg{width:28px;height:28px;color:var(--color-primary)}
.theme-toggle{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);color:var(--color-text-muted);transition:background var(--transition)}
.theme-toggle:hover{background:var(--color-surface-offset)}

/* Hero */
.hero{padding-block:clamp(var(--space-16),8vw,var(--space-24)) clamp(var(--space-12),6vw,var(--space-20))}
.hero-grid{display:grid;gap:var(--space-12);align-items:center}
@media (min-width:900px){.hero-grid{grid-template-columns:1.1fr .9fr}}
.eyebrow{display:inline-flex;align-items:center;gap:var(--space-2);font-size:var(--text-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--color-primary);background:var(--color-primary-highlight);padding:var(--space-2) var(--space-4);border-radius:var(--radius-full);margin-bottom:var(--space-5)}
.hero h1{font-size:var(--text-hero);letter-spacing:-.02em;margin-bottom:var(--space-5)}
.hero h1 .accent{color:var(--color-primary)}
.hero p.lede{font-size:var(--text-lg);color:var(--color-text-muted);margin-bottom:var(--space-8);max-width:52ch}
.trust-row{display:flex;flex-wrap:wrap;gap:var(--space-5);margin-top:var(--space-8);color:var(--color-text-muted);font-size:var(--text-sm)}
.trust-row span{display:flex;align-items:center;gap:var(--space-2)}
.trust-row svg{width:16px;height:16px;color:var(--color-success)}

/* Tool mockup visual */
.mockup{position:relative;background:var(--color-surface);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);border:1px solid var(--color-divider);padding:var(--space-6);overflow:hidden}
.mockup-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-5)}
.mockup-header .dot-row{display:flex;gap:var(--space-2)}
.mockup-header .dot{width:8px;height:8px;border-radius:50%;background:var(--color-border)}
.mockup-score{display:flex;align-items:center;gap:var(--space-6);margin-bottom:var(--space-6)}
.score-ring{position:relative;width:104px;height:104px;flex-shrink:0}
.score-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.score-ring circle{fill:none;stroke-width:9}
.score-ring .bg{stroke:var(--color-surface-offset)}
.score-ring .fg{stroke:var(--color-primary);stroke-linecap:round;stroke-dasharray:280;stroke-dashoffset:90;transition:stroke-dashoffset 1.2s var(--transition)}
.score-ring .value{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:var(--text-lg);font-weight:700}
.mockup-score-label{font-size:var(--text-sm);color:var(--color-text-muted)}
.mockup-score-label strong{display:block;color:var(--color-text);font-size:var(--text-base);font-family:var(--font-display)}
.mockup-bars{display:flex;flex-direction:column;gap:var(--space-3)}
.mockup-bar-row{display:flex;align-items:center;gap:var(--space-3);font-size:var(--text-xs);color:var(--color-text-muted)}
.mockup-bar-row .label{width:92px;flex-shrink:0}
.mockup-bar-track{flex:1;height:8px;border-radius:var(--radius-full);background:var(--color-surface-offset);overflow:hidden}
.mockup-bar-fill{height:100%;border-radius:var(--radius-full);background:linear-gradient(90deg,var(--color-primary),color-mix(in oklab,var(--color-primary) 60%, #7ee0b0))}
.mockup-checklist{margin-top:var(--space-6);display:flex;flex-direction:column;gap:var(--space-2)}
.mockup-checklist li{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-xs);color:var(--color-text-muted)}
.mockup-checklist svg{width:16px;height:16px;color:var(--color-success);flex-shrink:0}
.mockup-badge{position:absolute;top:var(--space-5);right:calc(-1 * var(--space-3));background:var(--color-success);color:#fff;font-size:var(--text-xs);font-weight:600;padding:var(--space-2) var(--space-4);border-radius:var(--radius-full);box-shadow:var(--shadow-md);transform:rotate(3deg)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);font-weight:600;font-size:var(--text-sm);padding:var(--space-4) var(--space-8);border-radius:var(--radius-md);transition:background var(--transition),color var(--transition),transform var(--transition),box-shadow var(--transition);white-space:nowrap;text-decoration:none}
.btn-primary{background:var(--color-primary);color:#fff;box-shadow:var(--shadow-sm);border:none}
.btn-primary:hover{background:var(--color-primary-hover);box-shadow:var(--shadow-md);transform:translateY(-1px)}
.btn-primary:active{background:var(--color-primary-active);transform:translateY(0)}
.btn-secondary{background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border)}
.btn-secondary:hover{background:var(--color-surface-offset)}
.btn-block{width:100%}
.btn-lg{padding:var(--space-5) var(--space-10);font-size:var(--text-base)}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none!important}

/* Benefits */
.benefits{padding-block:clamp(var(--space-16),6vw,var(--space-24));border-top:1px solid var(--color-divider)}
.section-head{max-width:56ch;margin-bottom:var(--space-10)}
.section-head h2{font-size:var(--text-2xl);margin-bottom:var(--space-3)}
.section-head p{color:var(--color-text-muted);font-size:var(--text-base)}
.benefit-list{display:grid;gap:var(--space-4)}
@media (min-width:720px){.benefit-list{grid-template-columns:1fr 1fr}}
.benefit-item{display:flex;gap:var(--space-4);padding:var(--space-5);border-radius:var(--radius-lg);background:var(--color-surface);border:1px solid var(--color-divider)}
.benefit-item svg{width:22px;height:22px;color:var(--color-primary);flex-shrink:0;margin-top:2px}
.benefit-item strong{display:block;font-size:var(--text-base);margin-bottom:var(--space-1);font-family:var(--font-body);font-weight:600}
.benefit-item span{color:var(--color-text-muted);font-size:var(--text-sm)}

/* Form section */
.form-section{padding-block:clamp(var(--space-16),6vw,var(--space-24));background:var(--color-surface-2);border-top:1px solid var(--color-divider);border-bottom:1px solid var(--color-divider)}
.form-card{max-width:480px;margin-inline:auto;background:var(--color-surface);border:1px solid var(--color-divider);border-radius:var(--radius-xl);padding:clamp(var(--space-8),4vw,var(--space-10));box-shadow:var(--shadow-md)}
.form-card h3{font-size:var(--text-xl);margin-bottom:var(--space-2);text-align:center}
.form-card p.helper{color:var(--color-text-muted);font-size:var(--text-sm);text-align:center;margin-bottom:var(--space-6)}
.field{margin-bottom:var(--space-4)}
.field label{display:block;font-size:var(--text-sm);font-weight:600;margin-bottom:var(--space-2)}
.field input{width:100%;padding:var(--space-4);border-radius:var(--radius-md);border:1px solid var(--color-border);background:var(--color-surface);font-size:var(--text-base);transition:border-color var(--transition),box-shadow var(--transition)}
.field input:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-highlight);outline:none}
.field .error-msg{color:var(--color-error);font-size:var(--text-xs);margin-top:var(--space-2);display:none}
.field.has-error input{border-color:var(--color-error)}
.field.has-error .error-msg{display:block}
.form-note{margin-top:var(--space-5);text-align:center;font-size:var(--text-xs);color:var(--color-text-faint)}

/* FAQ */
.faq{padding-block:clamp(var(--space-16),6vw,var(--space-20))}
.faq-item{border-bottom:1px solid var(--color-divider)}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;padding:var(--space-5) 0;text-align:left;font-weight:600;font-size:var(--text-base)}
.faq-q svg{width:18px;height:18px;flex-shrink:0;transition:transform var(--transition);color:var(--color-text-muted)}
.faq-item[data-open="true"] .faq-q svg{transform:rotate(180deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height var(--transition)}
.faq-a p{padding-bottom:var(--space-5);color:var(--color-text-muted);font-size:var(--text-sm)}

/* Footer */
.site-footer{padding-block:var(--space-10);border-top:1px solid var(--color-divider);color:var(--color-text-faint);font-size:var(--text-xs)}
.site-footer .container{display:flex;flex-wrap:wrap;gap:var(--space-4);justify-content:space-between;align-items:center}

/* ============ FERRAMENTA (quiz app) ============ */
.tool-shell{min-height:100dvh;display:flex;flex-direction:column}
.tool-header{padding-block:var(--space-5);border-bottom:1px solid var(--color-divider)}
.tool-header .container{display:flex;align-items:center;justify-content:space-between}
.progress-wrap{flex:1;margin-inline:var(--space-6);height:6px;background:var(--color-surface-offset);border-radius:var(--radius-full);overflow:hidden}
.progress-bar{height:100%;width:0%;background:var(--color-primary);border-radius:var(--radius-full);transition:width .5s var(--transition)}
.progress-label{font-size:var(--text-xs);color:var(--color-text-muted);white-space:nowrap}

.tool-main{flex:1;display:flex;align-items:center;padding-block:var(--space-10)}
.step{display:none;animation:fadeSlide .45s var(--transition)}
.step.active{display:block;width:100%}
@keyframes fadeSlide{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

.intro-card{max-width:560px;margin-inline:auto;text-align:center}
.intro-card h1{font-size:var(--text-2xl);margin-bottom:var(--space-4)}
.intro-card p{color:var(--color-text-muted);margin-bottom:var(--space-8);font-size:var(--text-base)}

.question-card{max-width:640px;margin-inline:auto}
.question-tag{font-size:var(--text-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--color-primary);margin-bottom:var(--space-3)}
.question-card h2{font-size:var(--text-xl);margin-bottom:var(--space-8)}
.options{display:flex;flex-direction:column;gap:var(--space-3)}
.option{display:flex;align-items:center;gap:var(--space-4);padding:var(--space-4) var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);transition:border-color var(--transition),background var(--transition),transform var(--transition);cursor:pointer}
.option:hover{border-color:var(--color-primary);transform:translateX(2px)}
.option input{accent-color:var(--color-primary);width:18px;height:18px;flex-shrink:0}
.option.selected{border-color:var(--color-primary);background:var(--color-primary-highlight)}
.options.scale{flex-direction:row;gap:var(--space-2)}
.options.scale .option{flex:1;flex-direction:column;text-align:center;gap:var(--space-1);padding:var(--space-3)}
.step-actions{display:flex;justify-content:space-between;margin-top:var(--space-10);gap:var(--space-3)}

.loading-card{max-width:480px;margin-inline:auto;text-align:center}
.loading-card h2{font-size:var(--text-xl);margin-bottom:var(--space-8)}
.spinner{width:56px;height:56px;border-radius:50%;border:4px solid var(--color-primary-highlight);border-top-color:var(--color-primary);margin:0 auto var(--space-8);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.check-list{display:flex;flex-direction:column;gap:var(--space-3);text-align:left;max-width:320px;margin-inline:auto}
.check-list li{display:flex;align-items:center;gap:var(--space-3);color:var(--color-text-faint);font-size:var(--text-sm);transition:color var(--transition)}
.check-list li svg{width:18px;height:18px;color:var(--color-border);flex-shrink:0;transition:color var(--transition)}
.check-list li.done{color:var(--color-text)}
.check-list li.done svg{color:var(--color-success)}

.result-card{max-width:680px;margin-inline:auto}
.result-header{text-align:center;margin-bottom:var(--space-10)}
.result-header h1{font-size:var(--text-2xl);margin-bottom:var(--space-3)}
.result-header p{color:var(--color-text-muted)}
.result-score{display:flex;flex-direction:column;align-items:center;margin-bottom:var(--space-10)}
.result-score .score-ring{width:180px;height:180px}
.result-score .score-ring .value{font-size:var(--text-2xl)}
.result-compare{display:flex;justify-content:center;gap:var(--space-10);margin-top:var(--space-6);font-size:var(--text-sm);color:var(--color-text-muted)}
.result-compare strong{display:block;font-family:var(--font-display);font-size:var(--text-lg);color:var(--color-text)}
.result-section{margin-bottom:var(--space-8)}
.result-section h3{font-size:var(--text-lg);margin-bottom:var(--space-4)}
.result-list{display:flex;flex-direction:column;gap:var(--space-3)}
.result-list li{display:flex;gap:var(--space-3);padding:var(--space-4);border-radius:var(--radius-md);border:1px solid var(--color-divider);font-size:var(--text-sm)}
.result-list.strengths li svg{color:var(--color-success)}
.result-list.gaps li svg{color:var(--color-warning)}
.result-list svg{width:18px;height:18px;flex-shrink:0;margin-top:1px}

.prompt-box{background:var(--color-surface-offset);border:1px solid var(--color-divider);border-radius:var(--radius-lg);padding:var(--space-5);margin-bottom:var(--space-6)}
.prompt-box pre{white-space:pre-wrap;font-family:var(--font-body);font-size:var(--text-sm);color:var(--color-text-muted);max-height:220px;overflow:auto}
.prompt-actions{display:flex;justify-content:flex-end;margin-top:var(--space-3)}
.copy-toast{display:none;font-size:var(--text-xs);color:var(--color-success);margin-right:auto;align-self:center}
.copy-toast.show{display:inline}

.cta-final{text-align:center;padding-block:var(--space-10);border-top:1px solid var(--color-divider);margin-top:var(--space-10)}
.cta-final p{color:var(--color-text-muted);margin-bottom:var(--space-6)}

/* Obrigado page */
.thanks-hero{padding-block:clamp(var(--space-16),8vw,var(--space-24));text-align:center}
.thanks-hero .icon-badge{width:72px;height:72px;border-radius:50%;background:var(--color-success-highlight);color:var(--color-success);display:flex;align-items:center;justify-content:center;margin:0 auto var(--space-6)}
.thanks-hero .icon-badge svg{width:36px;height:36px}
.thanks-hero h1{font-size:var(--text-2xl);margin-bottom:var(--space-4)}
.thanks-hero p{color:var(--color-text-muted);max-width:56ch;margin-inline:auto}

.offer-section{padding-block:clamp(var(--space-16),6vw,var(--space-24));background:var(--color-surface-2);border-top:1px solid var(--color-divider)}
.offer-card{max-width:760px;margin-inline:auto;background:var(--color-surface);border:1px solid var(--color-divider);border-radius:var(--radius-xl);box-shadow:var(--shadow-md);padding:clamp(var(--space-8),4vw,var(--space-12))}
.offer-card .eyebrow{margin-bottom:var(--space-4)}
.offer-card h2{font-size:var(--text-xl);margin-bottom:var(--space-4)}
.offer-card > p{color:var(--color-text-muted);margin-bottom:var(--space-8)}
.offer-compare{display:grid;gap:var(--space-6);margin-bottom:var(--space-8)}
@media (min-width:640px){.offer-compare{grid-template-columns:1fr 1fr}}
.offer-compare .col{padding:var(--space-5);border-radius:var(--radius-md);border:1px solid var(--color-divider)}
.offer-compare .col.highlight{border-color:var(--color-primary);background:var(--color-primary-highlight)}
.offer-compare h4{font-size:var(--text-sm);margin-bottom:var(--space-3);font-family:var(--font-body);font-weight:700}
.offer-compare ul{display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--text-sm);color:var(--color-text-muted)}
.offer-price{display:flex;align-items:baseline;gap:var(--space-2);justify-content:center;margin-bottom:var(--space-6)}
.offer-price .value{font-family:var(--font-display);font-size:var(--text-2xl);color:var(--color-primary)}
.offer-price .label{color:var(--color-text-muted);font-size:var(--text-sm)}


/* ============================================================
   ACESSIBILIDADE — reforços WCAG AA
============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible, .option:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.option:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.faq-q:focus-visible { outline-offset: -2px; }

/* Skip link visível ao focar */
.sr-only:focus {
  position: fixed;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  margin: var(--space-2);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  z-index: 100;
  clip: auto;
  overflow: visible;
  white-space: normal;
}

/* Garantir toque mínimo 44px em controles */
.faq-q, .btn, .theme-toggle, .option { min-height: 44px; }
.field input { min-height: 48px; }

/* Contraste: texto muted revisado para 4.5:1 em ambos os temas já
   está definido nos tokens (#62636b em fundo claro, #9c9da6 em escuro). */


/* Ferramenta — classes extraídas de estilos inline (limpeza de código) */
.intro-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-muted);
}
.prompt-instructions {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
