*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #070B14;
    --surface: #0F1629;
    --surface2: #161E38;
    --surface3: #1E2845;
    --blue: #4F8FFF;
    --blue-dark: #2563EB;
    --blue-glow: rgba(79,143,255,0.15);
    --amber: #F5A623;
    --amber-dim: rgba(245,166,35,0.12);
    --green: #22D3A0;
    --green-dim: rgba(34,211,160,0.12);
    --red: #FF5B5B;
    --text: #F0F4FF;
    --text2: #8892A8;
    --text3: #4B5675;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --radius: 12px;
    --radius-lg: 20px;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
  h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6%; height: 68px;
    background: rgba(7,11,20,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
  .nav-logo span { color: var(--blue); }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; transition: color 0.2s; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta { background: var(--blue); color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'Space Grotesk', sans-serif; text-decoration: none; transition: opacity 0.2s; }
  .nav-cta:hover { opacity: 0.85; }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 6% 80px;
    position: relative; overflow: hidden;
  }
  .hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(79,143,255,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-inner { max-width: 1160px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-dim); border: 1px solid rgba(245,166,35,0.25); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--amber); margin-bottom: 24px; }
  .hero-badge::before { content: '✦'; font-size: 10px; }
  .hero h1 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 800; line-height: 1.1; color: var(--text); margin-bottom: 20px; }
  .hero h1 .hl { color: var(--blue); }
  .hero p { font-size: 17px; color: var(--text2); max-width: 460px; line-height: 1.7; margin-bottom: 36px; }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary { background: linear-gradient(135deg, var(--blue), #76AFFF); color: #fff; border: none; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Space Grotesk', sans-serif; text-decoration: none; transition: all 0.2s; display: inline-block; box-shadow: 0 12px 30px rgba(79, 143, 255, 0.25); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(79, 143, 255, 0.32); }
  .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: 'Space Grotesk', sans-serif; text-decoration: none; transition: all 0.2s; display: inline-block; }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
  .hero-note { margin-top: 20px; font-size: 13px; color: var(--text3); }
  .hero-note span { color: var(--green); }

  .benefits-bar {
    padding: 0 6% 20px;
  }
  .benefits-bar-inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    padding: 18px 24px;
    border: 1px solid var(--border2);
    background: rgba(15, 22, 41, 0.8);
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }
  .benefit-pill {
    padding: 8px 14px;
    font-size: 13px; color: var(--text2);
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
  }

  /* hero right - score card */
  .hero-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
  }
  .hero-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(79,143,255,0.3) 0%, transparent 50%, rgba(245,166,35,0.15) 100%);
    z-index: -1;
  }
  .card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .card-tag { font-size: 12px; color: var(--text2); background: var(--surface2); padding: 4px 10px; border-radius: 6px; }
  .card-score-big { font-family: 'Space Grotesk', sans-serif; font-size: 52px; font-weight: 800; color: var(--amber); line-height: 1; }
  .card-score-big small { font-size: 20px; color: var(--text3); }
  .card-label { font-size: 12px; color: var(--text2); margin-bottom: 20px; }
  .comp-row { margin-bottom: 14px; }
  .comp-row-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-bottom: 5px; }
  .comp-row-header strong { font-size: 13px; color: var(--text); font-weight: 500; }
  .comp-row-header span { color: var(--green); font-weight: 600; }
  .bar-bg { background: var(--surface2); border-radius: 4px; height: 6px; overflow: hidden; }
  .bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--green)); }
  .bar-fill.amber { background: linear-gradient(90deg, var(--amber), #FFD666); }
  .chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
  .chip { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
  .chip-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,211,160,0.2); }
  .chip-blue { background: var(--blue-glow); color: var(--blue); border: 1px solid rgba(79,143,255,0.2); }

  .result-panel {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  }
  .result-alert {
    font-size: 13px;
    color: #F59E0B;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(245,158,11,0.16);
    border-radius: 12px;
    background: rgba(245,158,11,0.08);
  }
  .result-score-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .result-score-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--amber);
  }
  .result-score-max {
    font-size: 18px;
    color: var(--text3);
    margin-left: 6px;
  }
  .result-score-label {
    font-size: 14px;
    color: var(--text2);
  }
  .result-comp-item {
    margin-bottom: 18px;
  }
  .result-comp-hdr {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 8px;
  }
  .result-comp-name {
    color: var(--text);
    font-weight: 600;
  }
  .result-comp-score {
    font-weight: 700;
  }
  .result-bar-bg {
    background: var(--surface2);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
  }
  .result-bar-fill {
    height: 100%;
    border-radius: 6px;
  }
  .result-comp-feedback {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
  }
  .result-feedback {
    margin-top: 18px;
    padding: 16px;
    background: rgba(79,143,255,0.08);
    border-radius: 14px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
  }
  .result-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
  }
  .result-section {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
  }
  .result-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
  }
  .result-section ul {
    list-style: disc inside;
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
  }
  .result-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px 20px;
    color: var(--text);
    font-size: 15px;
  }
  .result-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.18);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
  }
  @keyframes spinner {
    to { transform: rotate(360deg); }
  }
  .result-error {
    padding: 20px;
    border-radius: 14px;
    background: rgba(239,68,68,0.1);
    color: #FECACA;
    font-size: 14px;
  }

  /* ── STATS ── */
  .stats { padding: 40px 6%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stats-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .stat-item { text-align: center; }
  .stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 800; color: var(--text); }
  .stat-num span { color: var(--blue); }
  .stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }

  /* ── SECTIONS GENERAL ── */
  section { padding: 100px 6%; }
  .section-inner { max-width: 1160px; margin: 0 auto; }
  .eyebrow { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
  .section-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; color: var(--text); margin-bottom: 16px; line-height: 1.15; }
  .section-sub { font-size: 17px; color: var(--text2); max-width: 580px; line-height: 1.7; }
  .text-center { text-align: center; }
  .text-center .section-sub { margin: 0 auto; }

  /* ── PROBLEMA ── */
  .problema { background: var(--surface); }
  .dores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
  .dor-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
  .dor-icon { font-size: 28px; margin-bottom: 16px; }
  .dor-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
  .dor-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }
  .dor-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 12px 12px 0 0; background: var(--red); opacity: 0.5; }

  /* ── PRODUTO ── */
  .produto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
  .produto-screen {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
  }
  .screen-topbar { display: flex; gap: 6px; margin-bottom: 18px; }
  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot-r { background: #FF5B5B; } .dot-y { background: #F5A623; } .dot-g { background: #22D3A0; }
  .screen-score { text-align: center; padding: 20px; background: var(--surface2); border-radius: 10px; margin-bottom: 16px; }
  .screen-score-num { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 800; color: var(--amber); }
  .screen-score-label { font-size: 12px; color: var(--text2); margin-top: 2px; }
  .screen-comp { margin-bottom: 12px; }
  .screen-comp-hdr { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
  .screen-comp-name { color: var(--text2); }
  .screen-comp-score { color: var(--green); font-weight: 600; }
  .screen-bar { background: var(--surface2); height: 5px; border-radius: 3px; overflow: hidden; }
  .screen-bar-fill { height: 100%; border-radius: 3px; }
  .screen-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
  .screen-tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; }
  .st-green { background: var(--green-dim); color: var(--green); }
  .st-red { background: rgba(255,91,91,0.1); color: #FF8A8A; }

  .produto-features { display: flex; flex-direction: column; gap: 28px; }
  .feat-item { display: flex; gap: 18px; align-items: flex-start; }
  .feat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
  .feat-icon.blue { background: var(--blue-glow); }
  .feat-icon.amber { background: var(--amber-dim); }
  .feat-icon.green { background: var(--green-dim); }
  .feat-text h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
  .feat-text p { font-size: 14px; color: var(--text2); line-height: 1.6; }

  /* ── COMPETÊNCIAS ── */
  .comps { background: var(--surface); }
  .comps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 52px; }
  .comp-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    position: relative; overflow: hidden;
  }
  .comp-num-big { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 800; color: var(--surface3); position: absolute; top: 10px; right: 16px; line-height: 1; }
  .comp-icon { font-size: 24px; margin-bottom: 16px; }
  .comp-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
  .comp-card p { font-size: 12px; color: var(--text2); line-height: 1.6; }
  .comp-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 12px 12px 0 0; background: var(--blue); }

  /* ── COMO FUNCIONA ── */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; position: relative; }
  .steps::before { content: ''; position: absolute; top: 24px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, var(--border2), transparent); }
  .step { text-align: center; }
  .step-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
  .step h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
  .step p { font-size: 14px; color: var(--text2); line-height: 1.6; }

  /* ── DEPOIMENTOS ── */
  .deps { background: var(--surface); }
  .deps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
  .dep-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
  .dep-stars { color: var(--amber); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
  .dep-text { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
  .dep-author { display: flex; align-items: center; gap: 12px; }
  .dep-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--blue); font-family: 'Space Grotesk', sans-serif; }
  .dep-name { font-size: 14px; font-weight: 600; color: var(--text); }
  .dep-info { font-size: 12px; color: var(--text2); }

  /* ── PREÇOS ── */
  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: start; }
  .price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; }
  .price-card.featured { border-color: var(--blue); background: linear-gradient(160deg, var(--surface2) 0%, var(--surface) 100%); }
  .price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 16px; border-radius: 20px; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; }
  .price-plan { font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
  .price-val { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
  .price-val small { font-size: 16px; color: var(--text2); font-weight: 400; }
  .price-period { font-size: 13px; color: var(--text3); margin-bottom: 24px; }
  .price-items { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
  .price-items li { font-size: 14px; color: var(--text2); display: flex; align-items: flex-start; gap: 10px; }
  .price-items li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
  .price-items li.off { color: var(--text3); }
  .price-items li.off::before { content: '✗'; color: var(--text3); }
  .price-btn { width: 100%; padding: 13px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Space Grotesk', sans-serif; text-align: center; text-decoration: none; display: block; transition: all 0.2s; }
  .price-btn-primary { background: var(--blue); color: #fff; border: none; }
  .price-btn-primary:hover { opacity: 0.88; }
  .price-btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
  .price-btn-outline:hover { border-color: var(--blue); color: var(--blue); }

  /* ── FAQ ── */
  .faq-list { margin-top: 52px; max-width: 720px; margin-left: auto; margin-right: auto; }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-q { width: 100%; background: none; border: none; color: var(--text); font-size: 16px; font-weight: 600; text-align: left; padding: 22px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Space Grotesk', sans-serif; }
  .faq-q span { font-size: 20px; color: var(--text2); transition: transform 0.25s; flex-shrink: 0; }
  .faq-a { font-size: 15px; color: var(--text2); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
  .faq-a.open { max-height: 200px; padding-bottom: 20px; }
  .faq-q.active span { transform: rotate(45deg); }

  /* ── CTA FINAL ── */
  .cta-final {
    padding: 80px 6%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
    border-top: 1px solid var(--border);
    text-align: center;
  }
  .cta-final h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; margin-bottom: 16px; }
  .cta-final p { font-size: 17px; color: var(--text2); margin-bottom: 36px; }
  .cta-final .btn-primary { font-size: 16px; padding: 16px 40px; }

  /* ── FOOTER ── */
  footer { padding: 32px 6%; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
  .footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--text2); }
  .footer-logo span { color: var(--blue); }
  .footer-links { display: flex; gap: 24px; }
  .footer-links a { color: var(--text3); font-size: 13px; text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--text2); }
  .footer-copy { font-size: 13px; color: var(--text3); }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .benefits-bar-inner { border-radius: 24px; justify-content: flex-start; }
    .dores-grid, .comps-grid { grid-template-columns: 1fr 1fr; }
    .produto-grid { grid-template-columns: 1fr; }
    .deps-grid, .pricing-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    nav .nav-links { display: none; }
  }
  @media (max-width: 600px) {
    section { padding: 70px 5%; }
    .dores-grid, .comps-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
    .hero { padding: 90px 5% 60px; }
    .hero h1 { font-size: 32px; }
    .benefits-bar { padding: 0 5% 18px; }
    .benefits-bar-inner { padding: 14px; }
    .benefit-pill { font-size: 12px; }
  }

  /* ── CORRETOR SECTION ── */
  .corrector-section {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #071423 0%, #102b53 45%, #4f8fff 100%);
    padding: 80px 6% 90px;
  }
  .cor-doodles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .cor-doodles svg { position: absolute; opacity: 0.18; }
  .corrector-inner { max-width: 1150px; margin: 0 auto; position: relative; z-index: 2; }
  .corrector-header { text-align: center; margin-bottom: 32px; }
  .corrector-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #ffffff; margin-bottom: 8px; }
  .corrector-header p { font-size: 17px; color: rgba(255,255,255,0.9); font-weight: 500; }
  .corrector-header .hl-green { background: linear-gradient(135deg, #22D3A0, #4F8FFF); color: #fff; padding: 2px 10px; border-radius: 999px; }
  .corrector-card {
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    box-shadow: 0 25px 90px rgba(3, 10, 30, 0.25);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    overflow: hidden;
    backdrop-filter: blur(12px);
  }
  .corrector-left { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
  .corrector-left h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
  .cor-select {
    width: 100%; padding: 11px 16px; border: 2px solid #4F8FFF; border-radius: 12px;
    font-size: 14px; color: #0f172a; background: #fff; font-family: 'Inter', sans-serif;
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234F8FFF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
  }
  .cor-input {
    width: 100%; padding: 11px 16px; border: 1.5px solid #dbe7ff; border-radius: 12px;
    font-size: 14px; color: #0f172a; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s; background: #fff;
  }
  .cor-input:focus { outline: none; border-color: #4F8FFF; box-shadow: 0 0 0 3px rgba(79,143,255,0.14); }
  .cor-textarea {
    width: 100%; min-height: 180px; padding: 14px 16px; border: 1.5px solid #dbe7ff; border-radius: 14px;
    font-size: 14px; color: #0f172a; font-family: 'Inter', sans-serif; resize: vertical; line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .cor-textarea:focus { outline: none; border-color: #4F8FFF; box-shadow: 0 0 0 3px rgba(79,143,255,0.14); }
  .cor-placeholder { color: #9CA3AF; }

  .api-card {
    padding: 16px;
    border: 1px solid #dfeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  }
  .api-card-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
  .api-card-title { font-size: 14px; font-weight: 800; color: #0f172a; }
  .api-card-sub { font-size: 12px; color: #475569; margin-top: 4px; line-height: 1.5; }
  .api-chip { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; background: rgba(79,143,255,0.14); color: #1d4ed8; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
  .api-grid { display: grid; gap: 10px; }
  .api-note { margin-top: 10px; font-size: 12px; color: #64748b; line-height: 1.5; }

  /* camera */
  .camera-zone { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
  .btn-camera {
    display: flex; align-items: center; gap: 8px; padding: 10px 18px;
    border: 1.5px dashed #4F8FFF; border-radius: 12px; background: #F0F5FF;
    color: #2563EB; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.2s;
  }
  .btn-camera:hover { background: #E0ECFF; transform: translateY(-1px); }
  .btn-upload {
    display: flex; align-items: center; gap: 8px; padding: 10px 18px;
    border: 1.5px dashed #cbd5e1; border-radius: 12px; background: #F9FAFB;
    color: #64748b; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.2s;
  }
  .btn-upload:hover { border-color: #94a3b8; color: #334155; }
  #file-input { display: none; }
  .photo-preview-wrap { margin-top: 8px; display: none; border-radius: 14px; overflow: hidden; border: 2px solid #4F8FFF; position: relative; }
  .photo-preview-wrap img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
  .photo-preview-wrap .remove-photo { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
  .photo-note { font-size: 12px; color: #64748b; margin-top: 6px; }

  /* camera modal */
  .camera-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 999; align-items: center; justify-content: center; }
  .camera-modal.open { display: flex; }
  .camera-modal-inner { background: #0f172a; border-radius: 16px; padding: 24px; width: 90%; max-width: 540px; }
  .camera-modal-title { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 16px; font-size: 17px; }
  #camera-video { width: 100%; border-radius: 10px; background: #000; min-height: 200px; }
  .camera-controls { display: flex; gap: 10px; margin-top: 14px; }
  .btn-snap { flex: 1; background: linear-gradient(135deg, #4F8FFF, #7C5CFF); color: #fff; border: none; padding: 12px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Space Grotesk', sans-serif; }
  .btn-close-cam { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }
  #snap-canvas { display: none; }

  /* corrector right panel */
  .corrector-right { background: #F8FAFC; border-left: 1px solid #E2E8F0; display: flex; flex-direction: column; }
  .analysis-tabs { display: flex; border-bottom: 1px solid #E5E7EB; }
  .analysis-tab { padding: 14px 20px; font-size: 14px; font-weight: 600; color: #94A3B8; cursor: pointer; border-bottom: 2px solid transparent; font-family: 'Space Grotesk', sans-serif; }
  .analysis-tab.active { color: #4F8FFF; border-bottom-color: #4F8FFF; }
  .analysis-body { padding: 16px; flex: 1; }
  .analysis-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid #E2E8F0; }
  .analysis-row:last-child { border-bottom: none; }
  .analysis-row-label { font-size: 14px; color: #334155; display: flex; align-items: center; gap: 6px; }
  .analysis-row-label .info { width: 16px; height: 16px; background: #E2E8F0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #64748b; cursor: help; }
  .analysis-row-val { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #0f172a; }
  .analysis-row-val.ok { color: #059669; }
  .analysis-row-val.warn { color: #D97706; }
  .analysis-row-val.bad { color: #DC2626; }

  /* results panel */
  .result-panel {
    padding: 24px;
    border-top: 1px solid #E5E7EB;
    display: grid;
    gap: 20px;
  }
  .result-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79,143,255,0.14), rgba(245,166,35,0.12));
    border: 1px solid rgba(79,143,255,0.12);
  }
  .result-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #1D4ED8;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  .result-premium-badge::before {
    content: '★';
    font-size: 14px;
  }
  .result-premium-text {
    font-size: 14px;
    color: #0F172A;
    line-height: 1.7;
  }
  .result-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 18px;
  }
  .result-score-box {
    background: linear-gradient(145deg, #020617 0%, #12213d 100%);
    border-radius: 28px;
    padding: 34px 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 30px 100px rgba(15, 23, 42, 0.22);
    position: relative;
    overflow: hidden;
  }
  .result-score-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 35%);
    pointer-events: none;
  }
  .result-score-badge {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }
  .result-score-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 68px;
    font-weight: 900;
    color: #F8B739;
    line-height: 1;
    position: relative;
    z-index: 1;
  }
  .result-score-max {
    font-size: 20px;
    color: rgba(255,255,255,0.55);
    margin-left: 8px;
  }
  .result-score-label {
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    margin-top: 10px;
    font-weight: 600;
    position: relative;
    z-index: 1;
  }
  .result-score-detail {
    font-size: 14px;
    color: rgba(241,245,249,0.78);
    line-height: 1.9;
    margin-top: 18px;
    position: relative;
    z-index: 1;
  }
  .result-overview {
    display: grid;
    gap: 16px;
  }
  .overview-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
  }
  .overview-note {
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
    border-color: #BFDBFE;
  }
  .overview-title {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0F172A;
    font-weight: 800;
    margin-bottom: 16px;
  }
  .overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
  }
  .overview-item strong {
    font-size: 15px;
    color: #0F172A;
  }
  .overview-card p {
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
  }
  .result-breakdown-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
  }
  .result-breakdown {
    display: grid;
    gap: 16px;
  }
  .result-breakdown-item {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
  }
  .result-breakdown-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .result-breakdown-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
  }
  .result-breakdown-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(99,102,241,0.12);
    color: #4338CA;
  }
  .tag-green { background: rgba(22,163,74,0.12); color: #166534; }
  .tag-blue { background: rgba(59,130,246,0.12); color: #1D4ED8; }
  .tag-amber { background: rgba(245,158,11,0.14); color: #92400E; }
  .result-breakdown-score {
    font-size: 14px;
    font-weight: 900;
  }
  .result-breakdown-feedback {
    font-size: 14px;
    color: #475569;
    margin-top: 16px;
    line-height: 1.75;
  }
  .result-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
  }
  .result-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 14px;
  }
  .result-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.75;
  }
  .result-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .highlight-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
  }
  .highlight-card.wide {
    grid-column: span 3;
  }
  .highlight-title {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 14px;
  }
  .highlight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
  }
  .highlight-list li {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
  }
  .highlight-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 2px;
    color: #2563EB;
    font-size: 18px;
    line-height: 1;
  }
  .highlight-strong .highlight-title { color: #166534; }
  .highlight-improve .highlight-title { color: #B45309; }
  .highlight-suggest .highlight-title { color: #1D4ED8; }
  .result-alert {
    background: #EFF6FF;
    border: 1px solid #93C5FD;
    color: #1D4ED8;
    border-radius: 20px;
    padding: 14px 18px;
    font-size: 14px;
  }
  .result-loading { text-align: center; padding: 24px; color: #475569; font-size: 13px; }
  .result-spinner {
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 3px solid #E2E8F0;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
  }
  @media (max-width: 980px) {
    .result-summary { grid-template-columns: 1fr; }
    .result-highlights { grid-template-columns: 1fr; }
  }
  @media (max-width: 680px) {
    .result-breakdown-title { font-size: 15px; }
  }
  .result-score-max {
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    margin-left: 6px;
  }
  .result-score-label {
    font-size: 16px;
    color: rgba(255,255,255,0.72);
    margin-top: 10px;
    font-weight: 600;
  }
  .result-score-detail {
    font-size: 14px;
    color: rgba(241,245,249,0.8);
    line-height: 1.8;
    margin-top: 14px;
  }
  .result-overview {
    display: grid;
    gap: 16px;
  }
  .overview-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  }
  .overview-note {
    background: #F8FAFC;
    border-color: #CBD5E1;
  }
  .overview-title {
    font-size: 13px;
    color: #0F172A;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
    margin-bottom: 14px;
  }
  .overview-item strong {
    font-size: 15px;
    color: #0F172A;
  }
  .overview-card p {
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
  }
  .result-breakdown-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
  }
  .result-breakdown {
    display: grid;
    gap: 14px;
  }
  .result-breakdown-item {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
  }
  .result-breakdown-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .result-breakdown-name {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
  }
  .result-breakdown-score {
    font-size: 13px;
    font-weight: 700;
  }
  .result-breakdown-feedback {
    font-size: 13px;
    color: #475569;
    margin-top: 12px;
    line-height: 1.75;
  }
  .result-bar-bg {
    background: #F1F5F9;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
  }
  .result-bar-fill {
    height: 100%;
    border-radius: 999px;
  }
  .result-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  }
  .result-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
  }
  .result-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
  }
  .result-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .highlight-card {
    background: #F8FAFC;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #E2E8F0;
  }
  .highlight-card.wide {
    grid-column: span 2;
  }
  .highlight-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
  }
  .highlight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }
  .highlight-list li {
    font-size: 14px;
    color: #475569;
    line-height: 1.75;
    padding-left: 18px;
    position: relative;
  }
  .highlight-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.2em;
    color: #2563EB;
    font-size: 18px;
    line-height: 1;
  }
  .highlight-strong .highlight-title { color: #065F46; }
  .highlight-improve .highlight-title { color: #B45309; }
  .highlight-suggest .highlight-title { color: #1D4ED8; }
  .result-alert {
    background: #F8FAFC;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 14px;
  }
  .result-loading { text-align: center; padding: 24px; color: #475569; font-size: 13px; }
  .result-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #E2E8F0;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
  }

  /* submit btn */
  .cor-submit-wrap { text-align: center; margin-top: 24px; }
  .cor-submit-btn {
    background: #6B7280; color: #fff; border: none; padding: 15px 40px;
    border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer;
    font-family: 'Space Grotesk', sans-serif; display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.2s;
  }
  .cor-submit-btn.ready { background: #4F8FFF; }
  .cor-submit-btn.ready:hover { background: #2563EB; transform: translateY(-1px); }
  .cor-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

  @media (max-width: 760px) {
    .corrector-card { grid-template-columns: 1fr; }
    .corrector-right { border-left: none; border-top: 1px solid #F0F0F0; }
  }

  /* ── MODE TABS ── */
  .mode-tabs {
    display: flex; gap: 8px; margin-bottom: 20px;
    background: #F4F6FA; border-radius: 12px; padding: 5px;
  }
  .mode-tab {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 16px; border: none; border-radius: 9px; font-size: 14px; font-weight: 600;
    font-family: 'Space Grotesk', sans-serif; cursor: pointer; color: #6B7280;
    background: transparent; transition: all 0.18s;
  }
  .mode-tab:hover { color: #374151; background: #E9ECF2; }
  .mode-tab.active { background: #fff; color: #2563EB; box-shadow: 0 1px 4px rgba(0,0,0,.10); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  .fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }

  /* ── PREMIUM MODAL ── */
  @keyframes premiumIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
  }

  .premium-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background: rgba(7,11,20,0.82);
    backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
    padding: 20px;
  }
  .premium-overlay.open {
    display: flex;
  }

  .premium-card {
    position: relative;
    background: var(--surface2);
    border: 1px solid rgba(79,143,255,0.3);
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 460px; width: 100%;
    box-shadow: 0 0 60px rgba(79,143,255,0.12), 0 24px 60px rgba(0,0,0,0.5);
    animation: premiumIn 0.35s cubic-bezier(.22,.68,0,1.2) forwards;
  }

  .premium-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none; color: var(--text3);
    font-size: 18px; cursor: pointer; line-height: 1;
    transition: color 0.15s;
  }
  .premium-close:hover { color: var(--text); }

  .premium-badge-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  }
  .premium-badge-chip {
    background: linear-gradient(135deg, var(--blue), #76AFFF);
    color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; padding: 3px 10px; border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
  }
  .premium-badge-lock {
    font-size: 13px; color: var(--text2);
  }

  .premium-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 4vw, 26px); font-weight: 800;
    color: var(--text); line-height: 1.2; margin-bottom: 6px;
  }
  .premium-title span { color: var(--blue); }

  .premium-sub {
    font-size: 14px; color: var(--text2); margin-bottom: 24px;
  }

  .premium-list {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 26px;
  }
  .premium-list li {
    font-size: 14px; color: var(--text2);
    display: flex; align-items: flex-start; gap: 10px;
  }
  .premium-list li strong { color: var(--text); }
  .pcheck {
    flex-shrink: 0; margin-top: 1px;
    color: var(--green); font-weight: 700; font-size: 15px;
  }

  .premium-price-block {
    background: rgba(79,143,255,0.08);
    border: 1px solid rgba(79,143,255,0.2);
    border-radius: 12px;
    padding: 16px 20px; margin-bottom: 22px;
    text-align: center;
  }
  .premium-price-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px; font-weight: 800; color: var(--text);
  }
  .premium-price-main span {
    font-size: 18px; font-weight: 500; color: var(--text2);
  }
  .premium-price-note {
    font-size: 13px; color: var(--text3); margin-top: 4px;
  }

  .premium-cta {
    display: block; width: 100%; text-align: center; text-decoration: none;
    background: linear-gradient(135deg, var(--blue), #76AFFF);
    color: #fff; font-family: 'Space Grotesk', sans-serif;
    font-size: 15px; font-weight: 700;
    padding: 14px 20px; border-radius: 10px; margin-bottom: 12px;
    box-shadow: 0 10px 28px rgba(79,143,255,0.3);
    transition: all 0.2s;
  }
  .premium-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(79,143,255,0.4); }

  .premium-skip {
    display: block; width: 100%; text-align: center;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--text3); padding: 6px;
    transition: color 0.15s;
  }
  .premium-skip:hover { color: var(--text2); }
