:root {
  --id-ink: #182421;
  --id-muted: #66726f;
  --id-sand: #f5f0e7;
  --id-paper: #fffdfa;
  --id-line: #ded8cd;
  --id-green: #315f50;
  --id-green-dark: #23483d;
  --id-gold: #c89a56;
  --id-danger: #a43e35;
  --id-shadow: 0 24px 70px rgba(31, 49, 43, .12);
}

.id-analyzer-shell, .id-analyzer-shell * { box-sizing: border-box; }
.id-analyzer-shell { color: var(--id-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; max-width: 1180px; margin: 40px auto; line-height: 1.5; }
.id-analyzer-shell button, .id-analyzer-shell input, .id-analyzer-shell textarea { font: inherit; }
.id-analyzer-loading { min-height: 420px; display: grid; place-content: center; justify-items: center; color: var(--id-muted); }
.id-spinner { width: 34px; height: 34px; border: 3px solid var(--id-line); border-top-color: var(--id-green); border-radius: 50%; animation: id-spin .8s linear infinite; }
@keyframes id-spin { to { transform: rotate(360deg); } }

.id-hero { min-height: 650px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; padding: clamp(34px, 7vw, 88px); background: radial-gradient(circle at 85% 15%, rgba(200,154,86,.24), transparent 28%), linear-gradient(135deg, #f8f4ec, #eee7da); border: 1px solid var(--id-line); border-radius: 28px; box-shadow: var(--id-shadow); overflow: hidden; }
.id-hero h1 { max-width: 760px; margin: 16px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.id-hero-copy > p { max-width: 690px; color: var(--id-muted); font-size: 18px; }
.id-eyebrow { color: var(--id-green); display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.id-hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin: 28px 0; color: var(--id-green-dark); font-size: 14px; font-weight: 700; }
.id-hero-points span:before { content: "✓"; margin-right: 7px; color: var(--id-gold); }
.id-score-preview { align-self: stretch; min-height: 460px; border-radius: 220px 220px 28px 28px; background: var(--id-green); display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; padding: 44px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.id-score-ring { width: 220px; height: 220px; border: 2px solid rgba(255,255,255,.45); outline: 14px solid rgba(255,255,255,.06); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.id-score-ring strong { font-family: Georgia, serif; font-size: 40px; }
.id-score-ring span { opacity: .75; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.id-preview-bars { width: 80%; margin-top: 52px; display: grid; gap: 12px; }
.id-preview-bars i { height: 7px; background: var(--id-gold); border-radius: 9px; opacity: .85; }
.id-privacy-note, .id-config-warning { font-size: 12px !important; margin-top: 16px; }
.id-privacy-note a { color: inherit; }
.id-config-warning { color: var(--id-danger) !important; }

.id-topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 16px; }
.id-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--id-ink); text-decoration: none; font-size: 12px; letter-spacing: .12em; }
.id-brand span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--id-green); font-family: Georgia, serif; }
.id-save-status { color: var(--id-muted); font-size: 12px; min-height: 18px; }
.id-progress { height: 4px; background: #e5dfd5; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.id-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--id-green), var(--id-gold)); transition: width .35s ease; }
.id-card { background: var(--id-paper); border: 1px solid var(--id-line); border-radius: 24px; box-shadow: var(--id-shadow); overflow: hidden; }
.id-card-head { padding: clamp(30px, 5vw, 58px); background: linear-gradient(145deg, #f8f4ed, #f1ebdf); border-bottom: 1px solid var(--id-line); position: relative; }
.id-card-head h2 { margin: 10px 0 8px; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 54px); font-weight: 500; letter-spacing: -.025em; }
.id-card-head p { color: var(--id-muted); max-width: 690px; margin: 0; font-size: 16px; }
.id-route-pill { position: absolute; right: 38px; top: 38px; background: rgba(49,95,80,.1); color: var(--id-green); border: 1px solid rgba(49,95,80,.18); border-radius: 50px; padding: 8px 14px; font-size: 12px; font-weight: 700; }
.id-fields { padding: clamp(28px, 5vw, 58px); display: grid; gap: 36px; }
.id-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.id-field legend { display: block; width: 100%; font-weight: 750; font-size: 18px; margin-bottom: 5px; }
.id-rationale { margin: 0 0 14px; color: var(--id-muted); font-size: 13px; max-width: 760px; }
.id-required { color: var(--id-danger); }
.id-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.id-option { display: flex; min-height: 56px; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--id-line); border-radius: 12px; cursor: pointer; background: white; transition: .18s ease; }
.id-option:hover { border-color: var(--id-green); transform: translateY(-1px); }
.id-option.is-selected { border-color: var(--id-green); background: rgba(49,95,80,.075); box-shadow: inset 0 0 0 1px var(--id-green); }
.id-option input { accent-color: var(--id-green); }
.id-field input[type="text"], .id-field input[type="email"], .id-field input[type="tel"], .id-field input[type="url"], .id-field textarea { width: 100%; border: 1px solid var(--id-line); border-radius: 12px; padding: 14px 15px; color: var(--id-ink); background: white; outline: none; }
.id-field textarea { resize: vertical; min-height: 115px; }
.id-field input:focus, .id-field textarea:focus { border-color: var(--id-green); box-shadow: 0 0 0 3px rgba(49,95,80,.11); }
.id-consent { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--id-line); border-radius: 12px; background: white; }
.id-consent input { margin-top: 4px; accent-color: var(--id-green); }
.id-field.is-invalid .id-options, .id-field.is-invalid input, .id-field.is-invalid textarea, .id-field.is-invalid .id-consent { border-color: var(--id-danger); }
.id-field-error { color: var(--id-danger); font-size: 12px; margin: 7px 0 0; }
.id-alert { margin: 24px clamp(28px, 5vw, 58px) 0; padding: 13px 16px; border-radius: 10px; color: #7a2e27; background: #fae9e7; border: 1px solid #efc9c4; }
.id-actions { display: flex; justify-content: space-between; padding: 24px clamp(28px, 5vw, 58px); border-top: 1px solid var(--id-line); background: #faf7f1; }
.id-button { appearance: none; border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.id-button:disabled { opacity: .55; cursor: wait; }
.id-primary { background: var(--id-green); color: white; box-shadow: 0 8px 24px rgba(49,95,80,.2); }
.id-primary:hover:not(:disabled) { background: var(--id-green-dark); transform: translateY(-1px); }
.id-secondary { background: transparent; border: 1px solid var(--id-line); color: var(--id-ink); }

.id-report { background: var(--id-paper); border: 1px solid var(--id-line); border-radius: 26px; box-shadow: var(--id-shadow); overflow: hidden; }
.id-report-hero { text-align: center; padding: clamp(46px, 8vw, 90px) 30px; background: radial-gradient(circle at 50% 0, rgba(200,154,86,.25), transparent 38%), var(--id-green); color: white; }
.id-report-hero .id-eyebrow { color: #efd8b5; }
.id-big-score { margin: 22px auto 10px; display: flex; justify-content: center; align-items: baseline; }
.id-big-score strong { font-family: Georgia, serif; font-size: clamp(88px, 15vw, 156px); font-weight: 500; line-height: .9; }
.id-big-score span { font-size: 24px; opacity: .7; }
.id-report-hero h2 { margin: 18px 0 8px; font-family: Georgia, serif; font-size: clamp(30px, 5vw, 48px); font-weight: 500; }
.id-report-hero p { opacity: .8; }
.id-report-section { padding: clamp(34px, 6vw, 72px); border-bottom: 1px solid var(--id-line); }
.id-report-section > h2, .id-report-cta h2 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; margin: 0 0 28px; }
.id-area-row { margin: 18px 0; }
.id-area-row > div { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7px; font-size: 14px; }
.id-area-row > div span { color: var(--id-muted); }
.id-area-row > i { display: block; height: 9px; border-radius: 12px; background: #e9e4db; overflow: hidden; }
.id-area-row > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--id-green), var(--id-gold)); }
.id-recommendations { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.id-recommendation { padding: 24px; background: #f5f0e7; border: 1px solid var(--id-line); border-radius: 16px; }
.id-recommendation > span { color: var(--id-gold); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.id-recommendation h3 { font-family: Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.15; }
.id-recommendation p { color: var(--id-muted); font-size: 14px; }
.id-recommendation strong { color: var(--id-green); font-size: 13px; }
.id-report-cta { text-align: center; padding: clamp(44px, 7vw, 80px); background: #f1eadf; }
.id-report-cta p { color: var(--id-muted); max-width: 660px; margin: 0 auto 25px; }
.id-quote { font-size: 17px; padding: 16px 28px; }
.id-success { display: inline-block; background: #dfede7; border: 1px solid #bad6ca; color: var(--id-green-dark); padding: 15px 20px; border-radius: 12px; }
.id-text-button { display: block; margin: 24px auto; background: none; border: 0; color: var(--id-muted); text-decoration: underline; cursor: pointer; }

@media (max-width: 800px) {
  .id-analyzer-shell { margin: 16px auto; }
  .id-hero { grid-template-columns: 1fr; gap: 35px; border-radius: 18px; }
  .id-score-preview { min-height: 360px; border-radius: 180px 180px 18px 18px; }
  .id-options, .id-recommendations { grid-template-columns: 1fr; }
  .id-route-pill { position: static; display: inline-block; margin-top: 18px; }
  .id-card, .id-report { border-radius: 18px; }
}

@media (max-width: 480px) {
  .id-hero { padding: 28px 22px; }
  .id-hero h1 { font-size: 40px; }
  .id-score-ring { width: 180px; height: 180px; }
  .id-card-head, .id-fields { padding-left: 22px; padding-right: 22px; }
  .id-actions { padding: 18px 22px; gap: 12px; }
  .id-button { padding: 12px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .id-analyzer-shell *, .id-analyzer-shell *::before, .id-analyzer-shell *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

