@charset "UTF-8";

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-1Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-2ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-3Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-4Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-5Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-6SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-7Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-8ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Paperlogy";
    src: url("../fonts/Paperlogy-9Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f7f3ff;
    --text: #000000;
    --muted: #64748b;
    --line: #dfe8f4;
    --blue: #7b4dff;
    --blue-deep: #1d4ed8;
    --purple: #7c3aed;
    --green: #08c792;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 54px rgba(37, 99, 235, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: #ffffff;
    font-family: "Paperlogy", Arial, "Noto Sans KR", sans-serif;
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button,
input {
    font: inherit;
}

input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--text);
    background: #ffffff;
}

input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(37, 99, 235, 0.14);
}

button {
    min-height: 35px;
    padding: 0 15px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: var(--blue);
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #673ab7;
}

button:disabled {
    cursor: progress;
    background: #94a3b8;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.is-hidden {
    display: none !important;
}

.section {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0 0 22px;
    color: #111827;
    font-size: 28px;
}

.eyebrow2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    color: #000000;
    background: #e8ddff;
    font-size: 14px;
    font-weight: 600;
    margin: 25px 0;
}

.eyebrow2 svg {
    width: 30px;
    height: 30px;
    color: #8d57ff;
}

.eyebrow {
    color: #7b4dff;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1400px, calc(100% - 56px));
    min-height: 60px;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    color: #000000;
}

.logo-copy {
    display: grid;
    gap: 5px;
}

.logo-copy strong {
    color: #000000;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.logo-copy small {
    color: #8d62ff;
    font-size: 11px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-self: stretch;
    gap: 54px;
    color: #aaa9ad;
    font-size: 16px;
    font-weight: 400;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
}

.nav-links a.is-active {
    color: #7b4dff;
    font-weight: 800;
}

.nav-links a.is-disabled {
    color: #c4c4c8;
    cursor: not-allowed;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(610px, 1.05fr);
    align-items: center;
    gap: 10px;
    width: min(1400px, calc(100% - 56px));
    min-height: 900px;
    margin: 0 auto;
    padding: 0;
}

.hero-content {
    padding: 0;
}

h1 {
    max-width: 700px;
    margin: 0;
    color: #000000;
    font-size: 68px;
    line-height: 1.18;
    letter-spacing: 0;
    word-break: keep-all;
}

h1 span {
    color: transparent;
    background: linear-gradient(90deg, #ff0075 0%, #9450ff 48%, #10b7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    max-width: 640px;
    margin: 30px 0 30px;
    color: #3f3f46;
    font-size: 20px;
    line-height: 1.55;
    word-break: keep-all;
}

.analyze-form {
    max-width: 660px;
    margin-top: 0;
    padding: 28px 25px 25px;
    border: 0;
    border-radius: 16px;
    background: #faf8ff;
    box-shadow: none;
}

.analyze-form label,
.pdf-form label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.analyze-form label {
    display: block;
    margin-bottom: 14px;
    color: #121c33;
    font-size: 22px;
    font-weight: 600;
}

.input-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 165px;
    gap: 12px;
}

.input-row input {
    min-height: 66px;
    padding: 0 20px;
    border: 1px solid #dddddd;
    border-radius: 11px;
    font-size: 20px;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.input-row input::placeholder {
    color: #9aa4b6;
}

.input-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 66px;
    border-radius: 11px;
    background: linear-gradient(90deg, #ff0075 0%, #9450ff 48%, #10b7ff 100%);
    box-shadow: none;
    font-size: 19px;
    font-weight: 800;
}

.input-row button:hover {
    background: linear-gradient(90deg, #db0064 0%, #7d42e4 48%, #0b9fe3 100%);
}

.input-row button svg {
    width: 25px;
    height: 25px;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 16px 0 0;
    color: #151515;
    font-size: 16px;
    font-weight: 500;
}

.privacy-note svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #000000;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
    margin-top: 38px;
    padding: 30px 25px;
    border-radius: 16px;
    background: #faf8ff;
}

.hero-benefits div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-width: 0;
}

.hero-benefits span,
.trust-list span {
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #7b4dff;
    background: #e9ddff;
}

.hero-benefits span {
    width: 42px;
    height: 42px;
}

.hero-benefits p {
    min-width: 0;
    margin: 0;
}

.hero-benefits svg {
    width: 28px;
    height: 28px;
}

.hero-benefits strong,
.hero-benefits small {
    display: block;
    white-space: nowrap;
}

.hero-benefits strong {
    color: #242424;
    font-size: 16px;
    font-weight: 600;
}

.hero-benefits small {
    margin-top: 4px;
    color: #AEAEAE;
    font-size: 11px;
    font-weight: 400;
}

.form-message {
    min-height: 22px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.form-message.is-success {
    color: var(--blue);
}

.form-message.is-error {
    color: #dc2626;
}

.hero-panel,
.empty-state,
.report-panel,
.metrics-panel,
.pdf-form {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero-panel {
    min-height: 670px;
    padding: 28px 28px 30px;
    border: 0;
    border-radius: 16px;
    background: #f7f3ff;
    box-shadow: none;
}

.hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.hero-panel-head h2,
.audit-process h2,
.trust-panel h2 {
    margin: 0;
    color: #000000;
    font-size: 19px;
    font-weight: 800;
}

.hero-panel-head p {
    margin: 0;
    color: #1b1b1b;
    font-size: 12px;
    font-weight: 500;
}

.hero-panel-head strong {
    margin-right: 8px;
    font-weight: 800;
}

.score-overview-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    min-height: 246px;
    padding: 0px 30px;
    border-radius: 13px;
    background: #ffffff;
}

.score-ring {
    position: relative;
    display: block;
    width: 220px;
    height: 205px;
    margin: 0 auto;
}

.gauge-svg {
    display: block;
    width: 100%;
    height: 176px;
    overflow: visible;
}

.gauge-rest,
.gauge-track {
    fill: none;
    stroke-linecap: round;
}

.gauge-rest {
    stroke: #ececee;
    stroke-width: 20;
}

.gauge-track {
    stroke: url(#heroScoreGradient);
    stroke-width: 20;
    stroke-dasharray: 362 440;
}

.gauge-dot {
    fill: url(#heroScoreDotGradient);
    stroke: none;
    filter: drop-shadow(0 7px 10px rgba(101, 80, 255, 0.28));
}

.gauge-number {
    fill: #111827;
    stroke: none;
    font-size: 11px;
    font-weight: 600;
}

.gauge-label {
    position: absolute;
    left: 50%;
    top: 74px;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: 180px;
    text-align: center;
    transform: translateX(-50%);
}

.gauge-label strong {
    color: var(--text);
    font-size: 62px;
    font-weight: 800;
    line-height: 0.9;
}

.gauge-label span {
    display: block;
    margin-top: 10px;
    color: #8a93a6;
    font-size: 15px;
    font-weight: 400;
}

.gauge-label em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 82px;
    min-height: 29px;
    margin-top: 16px;
    border-radius: 999px;
    color: var(--green);
    background: #e5f8f1;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
}

.gauge-label em.is-excellent,
.gauge-label em.is-good {
    color: var(--green);
    background: #e5f8f1;
    padding: 0 15px;
}

.gauge-label em.is-needed {
    color: #d97706;
    background: #fff7ed;
    padding: 0 15px;
}

.gauge-label em.is-optional {
    color: #d97706;
    background: #fffbeb;
    padding: 0 15px;
}

.gauge-label em.is-urgent {
    color: #dc2626;
    background: #fee2e2;
    padding: 0 15px;
}

.gauge-label em svg {
    width: 13px;
    height: 13px;
}

.score-comment {
    margin: 20px 0 10px;
    color: #161616;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    text-align: left;
    word-break: keep-all;
}

.score-comment .recommendation-ai-icon {
    margin-right: 7px;
    vertical-align: middle;
}

dl {
    margin: 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.score-side-summary dl div {
    align-items: center;
    min-height: 48px;
    padding: 7px 0;
    border-top: 0;
}

.score-side-summary dt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.score-side-summary dt span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #7b4dff;
    background: #f0e8ff;
}

.score-side-summary dt span svg {
    width: 18px;
    height: 18px;
}

.score-side-summary dd {
    color: #000000;
    font-size: 18px;
    font-weight: 700;
}

.audit-process {
    width: auto;
    margin: 18px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.audit-process ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 14px 0 0;
    padding: 14px 16px 16px;
    border-radius: 12px;
    background: #ffffff;
    list-style: none;
}

.audit-process li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    padding-top: 8px;
    text-align: center;
}

.audit-process li span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #7b4dff;
    background: #f2ecff;
}

.audit-process li span svg {
    width: 24px;
    height: 24px;
}

.audit-process strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.audit-process small {
    color: #AEAEAE;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.trust-panel {
    margin-top: 20px;
}

.trust-panel h2 {
    margin-bottom: 12px;
}

.trust-list {
    display: grid;
    gap: 17px;
    padding: 20px 24px;
    border-radius: 12px;
    background: #ffffff;
}

.trust-list div {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.trust-list span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.trust-list svg {
    width: 22px;
    height: 22px;
}

.trust-list p {
    margin: 0;
}

.trust-list strong,
.trust-list small {
    display: block;
}

.trust-list strong {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.trust-list small {
    margin-top: 5px;
    color: #AEAEAE;
    font-size: 12px;
    font-weight: 400;
}

.empty-state {
    padding: 36px;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.report-panel {
    padding: 28px;
}

.report-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.report-summary h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
    word-break: break-word;
}

.report-summary p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.report-summary .technology-profile {
    margin-top: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.overall-score {
    flex: 0 0 auto;
    color: #0f172a;
    text-align: right;
}

.overall-score span {
    font-size: 56px;
    font-weight: 800;
}

.overall-score small {
    color: var(--muted);
    font-weight: 700;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.score-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.score-card-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.score-card-top,
.metric-top,
.score-meter-head,
.sub-score-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.score-title-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.score-card h3 {
    margin: 0;
    color: #111827;
}

.score-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

.grade,
.metric-grade {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 700;
}

.grade {
    min-height: 28px;
    padding: 0 15px;
    font-size: 13px;
}

.metric-grade {
    padding: 3px 9px;
    font-size: 12px;
}

.grade.is-excellent,
.metric-grade.is-excellent {
    color: #047857;
    background: #d1fae5;
}

.grade.is-good,
.metric-grade.is-good {
    color: #0369a1;
    background: #e0f2fe;
}

.grade.is-normal,
.metric-grade.is-normal {
    color: #ff9800;
    background: #fef3c7;
}

.grade.is-poor,
.metric-grade.is-poor {
    color: #b91c1c;
    background: #fee2e2;
}

.score-meter {
    margin: 14px 0 16px;
    padding: 13px 14px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.score-meter-head {
    align-items: baseline;
    margin-bottom: 10px;
}

.score-meter-head span {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.score-meter-head strong {
    color: #7b4dff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.score-meter-head small {
    margin-left: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.bar,
.sub-score-bar {
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.bar {
    height: 10px;
    margin: 0;
    background: #dbeafe;
}

.bar span,
.sub-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.bar span {
    background: linear-gradient(90deg, #8959ff, #ec0d8c);
}

.sub-score-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.sub-score-item {
    display: grid;
    gap: 6px;
}

.sub-score-label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.sub-score-label strong {
    color: var(--blue);
}

.sub-score-bar {
    height: 6px;
}

.sub-score-bar span {
    background: #673AB7;
}

.recommendation-detail {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #8d62ff;
    border-radius: 8px;
    color: #8d62ff;
    background: #efe9ff;
}

.recommendation-detail strong {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 6px;
    font-size: 16px;
}

.recommendation-detail p {
    color: #27006c;
    font-size: 13px;
}

.recommendation-ai-icon,
.source-ai-icon,
.source-button-ai-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 2px solid transparent;
    font-weight: 900;
    line-height: 1;
}

.recommendation-ai-icon {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #20d6c7 0%, #2563eb 48%, #a21caf 100%) border-box;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
    font-size: 13px;
}

.source-ai-icon,
.source-button-ai-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 10px;
}

.source-ai-icon {
    background:
        linear-gradient(#111827, #111827) padding-box,
        linear-gradient(135deg, #e50f8e 0%, #2563eb 48%, #a21caf 100%) border-box;
        
}

.source-button-ai-icon {
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, #ea0e8e 0%, #8c57fc 48%, #03A9F4 100%) border-box;
}

.recommendation-ai-icon span,
.source-button-ai-icon span {
    color: transparent;
    background: linear-gradient(135deg, #18cfc4, #2563eb 52%, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
}

.source-ai-icon span {
    color: transparent;
    background: linear-gradient(135deg, #67e8f9, #93c5fd 48%, #e879f9);
    -webkit-background-clip: text;
    background-clip: text;
}

.improvement-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.example-source-button,
.source-toggle-button {
    height: 35px;
    padding: 0 15px;
    font-size: 13px;
    white-space: nowrap;
}

.example-source-button {
    color: #7b4dff;
    border: 1px solid #d8c9ff;
    background: #f4efff;
}

.example-source-button:hover {
    color: #6236dc;
    border-color: #b9a3ff;
    background: #ebe2ff;
}

.source-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    border: 1px solid #7b4dff;
    background: #7b4dff;
}

.source-toggle-button:hover {
    background: #6236dc;
}

.source-suggestion {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #0f172a;
}

.source-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #dbeafe;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.source-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.source-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 400;
}

.source-suggestion pre {
    max-height: 360px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.source-suggestion code {
    font-family: Consolas, "Courier New", monospace;
}

.code-comment {
    color: #7dd3fc;
}

.code-tag,
.code-keyword {
    color: #f472b6;
}

.code-attr,
.code-property {
    color: #a78bfa;
}

.code-string {
    color: #fde68a;
}

.code-number,
.code-color {
    color: #5eead4;
}

.code-punct {
    color: #94a3b8;
}

.copy-source-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #dbeafe;
    border: 1px solid rgba(219, 234, 254, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.copy-source-button:hover {
    color: #ffffff;
    border-color: rgba(219, 234, 254, 0.35);
    background: rgba(255, 255, 255, 0.16);
}

.copy-icon {
    position: relative;
    display: block;
    width: 17px;
    height: 19px;
}

.copy-icon::before,
.copy-icon::after {
    position: absolute;
    width: 11px;
    height: 13px;
    content: "";
    border: 1px solid #ffffff;
    border-radius: 3px;
}

.copy-icon::before {
    top: 0;
    left: 0;
    opacity: 0.55;
}

.copy-icon::after {
    right: 0;
    bottom: 0;
    background: #0f172a;
}

.copy-source-button.is-copied .copy-icon {
    width: 16px;
    height: 10px;
    border-bottom: 3px solid #86efac;
    border-left: 3px solid #86efac;
    transform: rotate(-45deg) translateY(-1px);
}

.copy-source-button.is-copied .copy-icon::before,
.copy-source-button.is-copied .copy-icon::after {
    display: none;
}

.premium-crown-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 18px;
    flex: 0 0 auto;
}

.premium-crown-icon::before {
    position: absolute;
    left: 2px;
    right: 2px;
    top: 1px;
    height: 10px;
    content: "";
    border: 2px solid #f59e0b;
    border-top: 0;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(180deg, #facc15 0%, #f59e0b 100%);
    clip-path: polygon(0 100%, 0 12%, 28% 54%, 50% 0, 72% 54%, 100% 12%, 100% 100%);
}

.premium-crown-icon::after {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 1px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: #f59e0b;
}

.renewal-decision {
    max-width: 100%;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.renewal-decision strong {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    color: #1d4ed8;
    font-size: 22px;
    font-weight: 800;
}

.renewal-decision p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

.renewal-score-message,
.renewal-opinion-message {
    display: block;
}

.renewal-score-message {
    margin-bottom: 4px;
    color: #0f172a;
    font-weight: 900;
}

.renewal-decision .renewal-score-message {
    color: #0f172a !important;
    font-size: 18px;
}

.renewal-decision.is-urgent {
    border-color: #fecaca;
    background: #fff1f2;
}

.renewal-decision.is-urgent strong {
    color: #b91c1c;
}

.renewal-decision.is-needed {
    border-color: #fed7aa;
    background: #fff7ed;
}

.renewal-decision.is-needed strong {
    color: #ea580c;
}

.renewal-decision.is-optional {
    border-color: #fde68a;
    background: #fffbeb;
}

.renewal-decision.is-optional strong {
    color: #d97706;
}

.renewal-decision.is-good {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.renewal-decision.is-good strong {
    color: #047857;
}

.metric-renewal {
    margin: 0 0 18px;
}

.metrics-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.renewal-scale {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.renewal-scale-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.renewal-scale-item::before {
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 2px;
}

.renewal-scale strong,
.renewal-scale span {
    color: inherit;
    font-size: 15px;
}

.renewal-scale span {
    font-weight: 700;
}

.renewal-scale-item.is-urgent {
    color: #b91c1c;
}

.renewal-scale-item.is-urgent::before {
    background: #ef4444;
}

.renewal-scale-item.is-needed {
    color: #ff5722;
}

.renewal-scale-item.is-needed::before {
    background: #f97316;
}

.renewal-scale-item.is-optional {
    color: #ff9800;
}

.renewal-scale-item.is-optional::before {
    background: #facc15;
}

.renewal-scale-item.is-good {
    color: #047857;
}

.renewal-scale-item.is-good::before {
    background: #22c55e;
}

.metric-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-list > span {
    padding: 10px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    color: #334155;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.metric-score-item {
    display: grid;
    gap: 5px;
    min-height: 118px;
    padding: 10px 15px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
}

.metric-score-item span {
    color: #334155;
}

.metric-score-item strong {
    color: #000000;
    font-size: 40px;
    line-height: 1;
}

.live-preview-panel {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.preview-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
}

.preview-heading span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.live-preview-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    aspect-ratio: 1366 / 900;
}

.live-preview-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.live-preview-frame iframe.is-blocked-preview {
    opacity: 0;
}

.live-preview-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.preview-fallback-visual {
    position: relative;
    width: min(320px, 82%);
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.preview-window-dot {
    position: absolute;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.preview-window-dot:nth-child(1) {
    left: 16px;
    background: #f87171;
}

.preview-window-dot:nth-child(2) {
    left: 30px;
    background: #facc15;
}

.preview-window-dot:nth-child(3) {
    left: 44px;
    background: #34d399;
}

.preview-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translate(-50%, -32%);
}

.preview-lock::before {
    position: absolute;
    left: 50%;
    bottom: 31px;
    width: 28px;
    height: 24px;
    content: "";
    border: 6px solid #2563eb;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    transform: translateX(-50%);
}

.preview-lock::after {
    position: absolute;
    left: 50%;
    top: 14px;
    width: 7px;
    height: 14px;
    content: "";
    border-radius: 999px;
    background: #ffffff;
    transform: translateX(-50%);
}

.preview-lines {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: grid;
    gap: 8px;
}

.preview-lines i {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
}

.preview-lines i:nth-child(2) {
    width: 76%;
}

.preview-lines i:nth-child(3) {
    width: 58%;
}

.live-preview-fallback strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.live-preview-fallback p {
    max-width: 520px;
    margin: 8px auto 0;
    color: var(--muted);
    line-height: 1.6;
}

.pdf-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding: 18px;
}

.pdf-form label:not(.consent-row) {
    display: block;
    margin-bottom: 10px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.consent-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.consent-row-all {
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #eff6ff;
    color: #0f172a;
    font-weight: 700;
}

.consent-row a {
    color: var(--blue-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pdf-form button {
    width: fit-content;
}

.site-footer {
    margin-top: auto;
    padding: 18px 10px;
    color: #696969;
    text-align: center;
    background: #faf8ff;
    font-size: 13px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #334155;
    font-weight: 700;
}

.site-footer p {
    margin: 4px 0 0;
}

.site-footer p a,
.legal-document p a {
    color: var(--blue-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page {
    min-height: 100vh;
    background: #ffffff;
}

.legal-document {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0;
}

.legal-document h1 {
    margin: 0 0 22px;
    color: #0f172a;
    font-size: 36px;
}

.legal-document h2 {
    margin: 30px 0 10px;
    color: #111827;
    font-size: 21px;
}

.legal-document p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.legal-actions {
    display: flex;
    gap: 10px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.legal-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-weight: 800;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    font-size: 13px;
    letter-spacing: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.is-analysis-loading {
    overflow: hidden;
}

.analysis-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.82)),
        rgba(15, 23, 42, 0.86);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.analysis-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.analysis-loading-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 34px 28px 28px;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.85);
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

.analysis-loading-panel::before {
    position: absolute;
    inset: -45% -25% auto;
    height: 170px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(32, 214, 199, 0.22), rgba(147, 51, 234, 0.18), transparent);
    transform: rotate(-8deg);
    animation: shimmerSweep 2.4s ease-in-out infinite;
}

.analysis-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 18px;
}

.analysis-orbit::before {
    position: absolute;
    inset: 4px;
    content: "";
    border: 2px solid rgba(37, 99, 235, 0.14);
    border-top-color: #20d6c7;
    border-right-color: #9333ea;
    border-radius: 50%;
    animation: orbitSpin 1.5s linear infinite;
}

.analysis-ai-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 4px solid transparent;
    border-radius: 17px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #20d6c7 0%, #2563eb 48%, #a21caf 100%) border-box;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.2);
    font-size: 27px;
    font-weight: 900;
}

.analysis-ai-mark span {
    color: transparent;
    background: linear-gradient(135deg, #18cfc4, #2563eb 52%, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
}

.spark {
    position: absolute;
    display: block;
    background: linear-gradient(135deg, #20d6c7, #9333ea);
    clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
    filter: drop-shadow(0 0 8px rgba(32, 214, 199, 0.8)) drop-shadow(0 0 14px rgba(147, 51, 234, 0.5));
    animation: sparklePulse 1.25s ease-in-out infinite;
}

.spark-one {
    top: 7px;
    right: 15px;
    width: 18px;
    height: 18px;
}

.spark-two {
    right: 3px;
    bottom: 24px;
    width: 12px;
    height: 12px;
    animation-delay: 0.28s;
}

.spark-three {
    left: 8px;
    bottom: 28px;
    width: 10px;
    height: 10px;
    animation-delay: 0.52s;
}

.analysis-loading-panel strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.analysis-loading-panel p {
    max-width: 320px;
    margin: 10px auto 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.analysis-loading-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e0e7ff;
}

.analysis-loading-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20d6c7, #2563eb, #9333ea);
    animation: loadingBar 1.35s ease-in-out infinite;
}

@keyframes shimmerSweep {
    from {
        transform: translateX(-35%) rotate(-8deg);
    }
    to {
        transform: translateX(35%) rotate(-8deg);
    }
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sparklePulse {
    0%,
    100% {
        opacity: 0.18;
        transform: scale(0.55) rotate(0deg);
    }
    35% {
        opacity: 1;
        transform: scale(1.22) rotate(10deg);
    }
    70% {
        opacity: 0.38;
        transform: scale(0.74) rotate(-8deg);
    }
}

@keyframes loadingBar {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(260%);
    }
}

@media (max-width: 1400px) {
    .nav {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        width: min(100% - 32px, 1120px);
        min-height: auto;
        padding: 16px 0;
    }

    .nav-links {
        align-self: center;
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
        overflow: visible;
        font-size: 13px;
    }

    .nav-links a {
        min-height: 36px;
        padding: 0 10px;
        white-space: normal;
    }

    .hero {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 1120px);
        min-height: auto;
        padding: 28px 0;
        gap: 28px;
    }

    .hero-content,
    .hero-content > *,
    .hero-content h1,
    .hero-description,
    .analyze-form,
    .hero-benefits {
        width: 100%;
        max-width: 100%;
    }

    .hero-content .eyebrow2 {
        width: fit-content;
        max-width: 100%;
    }

    .hero-benefits {
        display: flex;
        flex-direction: column;
    }

    h1 {
        font-size: 42px;
    }

    .input-row,
    .score-grid,
    .metric-list {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
        padding: 28px 18px;
    }

    .score-overview-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 18px;
    }

    .score-side-summary {
        display: grid;
        justify-items: stretch;
    }

    .score-ring,
    .gauge-svg {
        width: 320px;
        max-width: 100%;
    }

    .gauge-label {
        top: 108px;
    }

    .gauge-label strong {
        font-size: 58px;
    }

    .audit-process {
        width: auto;
        margin: 22px 0 0;
    }

    .audit-process ol {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .audit-process li {
        grid-template-columns: 58px minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }

    .audit-process li span {
        grid-row: span 2;
        width: 52px;
        height: 52px;
    }

    .audit-process li:not(:last-child)::after {
        display: none;
    }

    .report-summary,
    .preview-heading,
    .score-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .overall-score {
        text-align: left;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
}
