/* ─────────────────────────────────────────────────────────────────────────
   AI 홈페이지 성장 진단 · ai-diagnosis.css
   prefix: aid- (AI Diagnosis)
   ───────────────────────────────────────────────────────────────────────── */

:root {
    --aid-bg:       #f5f4f0;
    --aid-surface:  #ffffff;
    --aid-ink:      #101113;
    --aid-muted:    rgba(16, 17, 19, 0.62);
    --aid-line:     rgba(16, 17, 19, 0.1);
    --aid-accent:   #00e868;
    --aid-accent-2: #5BB761;
    --aid-radius:   20px;
    --aid-shadow:   0 8px 32px rgba(12, 12, 16, 0.08);
    --aid-green:    #16a34a;
    --aid-yellow:   #ca8a04;
    --aid-red:      #dc2626;
    --aid-blue:     #2563eb;
    --aid-purple:   #7c3aed;
}

/* ── Nav: AI 진단 버튼 ───────────────────────────────────────────────────── */
.navigation__ai-diagnosis .navigation__button {
    background: #7c3aed;
    color: #fff;
    font-size: 13px;
}

.navigation__ai-diagnosis .navigation__button:hover {
    color: #fff;
    filter: brightness(1.1);
}

/* ── 메인 레이아웃 ──────────────────────────────────────────────────────── */
.aid-main {
    background: var(--aid-bg);
    padding-top: var(--header-height, 64px);
    padding-bottom: 0;
}

.aid-shell {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

/* ── 화면 전환 애니메이션 ────────────────────────────────────────────────── */
@keyframes aid-fade-up-in {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes aid-fade-out-up {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-20px); }
}

.aid-hero {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.aid-hero--exiting {
    animation: aid-fade-out-up 0.35s ease forwards;
    pointer-events: none;
}

.aid-hero--hidden {
    display: none !important;
}

.aid-results.is-entering {
    animation: aid-fade-up-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aid-loading.is-entering {
    animation: aid-fade-up-in 0.3s ease both;
}

/* ── 히스토리 섹션 (히어로 밖, 전체 너비) ──────────────────────────────── */
.aid-history {
    background: var(--aid-bg);
    border-top: 1px solid var(--aid-line);
    padding: 28px 0 40px;
}

.aid-history .aid-shell {
    /* 히스토리 자체 shell 없음 — JS가 직접 렌더 */
}

.aid-history__label {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aid-muted);
    text-align: center;
    padding: 0 20px;
}

.aid-history__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.aid-history-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--aid-line);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.aid-history-card:hover {
    border-color: rgba(16, 17, 19, 0.22);
    box-shadow: 0 4px 16px rgba(16, 17, 19, 0.08);
    transform: translateY(-1px);
}

.aid-history-card__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.aid-history-card__domain {
    font-size: 14px;
    font-weight: 700;
    color: var(--aid-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.aid-history-card__score {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
}

.aid-history-card__score.aid-score--high { color: var(--aid-green); background: rgba(22, 163, 74, 0.08); }
.aid-history-card__score.aid-score--mid  { color: var(--aid-yellow); background: rgba(202, 138, 4, 0.08); }
.aid-history-card__score.aid-score--low  { color: var(--aid-red); background: rgba(220, 38, 38, 0.08); }

.aid-history-card__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.aid-history-card__type {
    font-size: 11px;
    color: var(--aid-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aid-history-card__time {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--aid-muted);
    opacity: 0.65;
}

/* ── 결과 상단 "새 진단" 버튼 영역 ─────────────────────────────────────── */
.aid-result-back {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 20px 0 4px;
}

.aid-result-back__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(16, 17, 19, 0.06);
    border: 1px solid var(--aid-line);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--aid-ink);
    cursor: pointer;
    transition: background 0.15s;
}

.aid-result-back__btn:hover {
    background: rgba(16, 17, 19, 0.12);
}

/* ── 히어로 / 입력 섹션 ─────────────────────────────────────────────────── */
.aid-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 232, 104, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.07) 0%, transparent 40%),
        linear-gradient(180deg, #fff 0%, var(--aid-bg) 100%);
    min-height: calc(100vh - var(--header-height, 64px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 7vh, 90px) 0;
    border-bottom: 1px solid var(--aid-line);
}

.aid-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.aid-eyebrow {
    margin: 0 0 14px;
    color: var(--aid-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.aid-hero__title {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--aid-ink);
    line-height: 1.15;
}

.aid-hero__desc {
    margin: 0 0 36px;
    color: var(--aid-muted);
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.75;
}

/* ── URL 입력 폼 ─────────────────────────────────────────────────────────── */
.aid-form__row {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--aid-line);
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aid-form__row:focus-within {
    border-color: var(--aid-accent);
    box-shadow: 0 0 0 4px rgba(0, 232, 104, 0.12);
}

.aid-form__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--aid-ink);
    font-family: inherit;
    padding: 10px 0;
}

.aid-form__input::placeholder {
    color: rgba(16, 17, 19, 0.36);
}

.aid-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: var(--aid-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.aid-form__btn:hover {
    background: #1e2130;
}

.aid-form__btn:active {
    transform: scale(0.98);
}

.aid-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.aid-form__btn-icon {
    display: inline-flex;
}

.aid-form__hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--aid-muted);
    text-align: left;
}

.aid-form__error {
    margin: 8px 0 0;
    color: var(--aid-red);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

/* ── 특징 태그 ──────────────────────────────────────────────────────────── */
.aid-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.aid-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--aid-line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--aid-muted);
    font-weight: 600;
}

.aid-feature__icon {
    font-size: 15px;
}

/* ── display:flex/grid 가 있는 요소에서 [hidden]이 무시되는 문제 방지 ────── */
.aid-loading[hidden],
.aid-error-wrap[hidden],
.aid-results[hidden],
.aid-history[hidden] {
    display: none !important;
}

/* ── 로딩 ───────────────────────────────────────────────────────────────── */
.aid-loading {
    padding: 80px 0;
    min-height: calc(100vh - var(--header-height, 64px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aid-loading.is-exiting {
    animation: aid-fade-out-up 0.3s ease forwards;
    pointer-events: none;
}

.aid-loading__inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.aid-spinner {
    display: inline-block;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
}

.aid-spinner__ring {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 232, 104, 0.2);
    border-top-color: var(--aid-accent);
    border-radius: 50%;
    animation: aid-spin 0.8s linear infinite;
}

@keyframes aid-spin {
    to { transform: rotate(360deg); }
}

.aid-loading__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--aid-ink);
}

.aid-loading__steps {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--aid-muted);
}

.aid-loading__bar {
    height: 4px;
    background: var(--aid-line);
    border-radius: 2px;
    overflow: hidden;
}

.aid-loading__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--aid-accent), var(--aid-accent-2));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.aid-loading__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--aid-muted);
    opacity: 0.75;
}

/* ── 오류 ───────────────────────────────────────────────────────────────── */
.aid-error-wrap {
    padding: 60px 0;
    min-height: calc(100vh - var(--header-height, 64px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: aid-fade-up-in 0.35s ease both;
}

.aid-error-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--aid-radius);
    padding: 40px 32px;
    box-shadow: var(--aid-shadow);
}

.aid-error-card__icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.aid-error-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--aid-ink);
}

.aid-error-card__msg {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--aid-muted);
    line-height: 1.6;
}

/* ── 버튼 공통 ──────────────────────────────────────────────────────────── */
.aid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.aid-btn--primary {
    background: var(--aid-ink);
    color: #fff;
    border: none;
}

.aid-btn--primary:hover {
    background: #1e2130;
    color: #fff;
}

.aid-btn--outline {
    background: transparent;
    color: var(--aid-ink);
    border: 1.5px solid var(--aid-line);
}

.aid-btn--outline:hover {
    border-color: var(--aid-ink);
}

.aid-btn--accent {
    background: var(--aid-accent);
    color: #0a0a0a;
    border: none;
}

.aid-btn--accent:hover {
    filter: brightness(1.05);
}

.aid-btn--green {
    background: var(--aid-accent-2);
    color: #fff;
    border: none;
}

.aid-btn--green:hover {
    filter: brightness(1.08);
}

/* ── 결과 대시보드 ──────────────────────────────────────────────────────── */
.aid-results {
    padding-top: 48px;
}

.aid-result-url {
    margin-bottom: 32px;
}

.aid-result-url__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--aid-line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--aid-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.aid-result-url__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aid-accent);
    flex-shrink: 0;
}

.aid-section {
    margin-bottom: 40px;
}

.aid-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--aid-ink);
    letter-spacing: -0.02em;
}

.aid-section-title__icon {
    font-size: 22px;
}

/* ── 카드 ────────────────────────────────────────────────────────────────── */
.aid-card {
    background: var(--aid-surface);
    border: 1px solid var(--aid-line);
    border-radius: var(--aid-radius);
    padding: 28px;
    box-shadow: var(--aid-shadow);
}

.aid-card--accent {
    border-color: rgba(0, 232, 104, 0.3);
    background: linear-gradient(135deg, #fff 0%, rgba(0, 232, 104, 0.04) 100%);
}

.aid-card--dark {
    background: var(--aid-ink);
    color: #fff;
    border-color: transparent;
}

/* ── 종합 개요 카드 ─────────────────────────────────────────────────────── */
.aid-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}

.aid-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.aid-score-circle__svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.aid-score-circle__track {
    fill: none;
    stroke: var(--aid-line);
    stroke-width: 8;
}

.aid-score-circle__fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease, stroke 0.4s ease;
}

.aid-score-circle__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aid-score-circle__number {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--aid-ink);
}

.aid-score-circle__unit {
    font-size: 12px;
    color: var(--aid-muted);
    font-weight: 600;
}

.aid-overview__info {
    min-width: 0;
}

.aid-overview__type {
    font-size: 12px;
    font-weight: 700;
    color: var(--aid-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 6px;
}

.aid-overview__business {
    font-size: 18px;
    font-weight: 700;
    color: var(--aid-ink);
    margin: 0 0 12px;
    line-height: 1.3;
}

.aid-overview__summary {
    font-size: 14px;
    color: var(--aid-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── 핵심 점수 그리드 ───────────────────────────────────────────────────── */
.aid-scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.aid-score-card {
    background: var(--aid-surface);
    border: 1px solid var(--aid-line);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.aid-score-card__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--aid-muted);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aid-score-card__number {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.aid-score-card__bar {
    height: 5px;
    background: var(--aid-line);
    border-radius: 3px;
    overflow: hidden;
}

.aid-score-card__fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.9s ease 0.2s;
}

/* ── 리뉴얼 필요도 카드 ─────────────────────────────────────────────────── */
.aid-renewal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.aid-renewal-level {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.aid-renewal-level--1 { background: #dcfce7; color: #15803d; }
.aid-renewal-level--2 { background: #fef9c3; color: #854d0e; }
.aid-renewal-level--3 { background: #ffedd5; color: #c2410c; }
.aid-renewal-level--4 { background: #fee2e2; color: #b91c1c; }

.aid-renewal__reason {
    font-size: 14px;
    color: var(--aid-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

.aid-renewal__impact-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--aid-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
}

.aid-renewal__impact {
    font-size: 14px;
    color: var(--aid-ink);
    line-height: 1.65;
    margin: 0 0 18px;
}

.aid-renewal__scope-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--aid-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
}

.aid-renewal__scope {
    font-size: 14px;
    color: var(--aid-ink);
    line-height: 1.65;
    margin: 0;
}

.aid-help-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aid-help-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--aid-ink);
    line-height: 1.5;
}

.aid-help-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aid-accent);
    flex-shrink: 0;
    margin-top: 7px;
}

/* ── 카테고리 진단 그리드 ───────────────────────────────────────────────── */
.aid-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.aid-cat-card {
    background: var(--aid-surface);
    border: 1px solid var(--aid-line);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.aid-cat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.aid-cat-card__name {
    font-size: 14px;
    font-weight: 800;
    color: var(--aid-ink);
}

.aid-cat-card__score-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aid-cat-card__score {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.aid-cat-card__bar {
    height: 4px;
    background: var(--aid-line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.aid-cat-card__fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.9s ease 0.3s;
}

.aid-cat-card__summary {
    font-size: 13px;
    color: var(--aid-muted);
    line-height: 1.65;
    margin: 0 0 12px;
}

.aid-cat-card__recs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aid-cat-card__recs li {
    font-size: 12px;
    color: var(--aid-muted);
    padding-left: 12px;
    position: relative;
    line-height: 1.5;
}

.aid-cat-card__recs li::before {
    content: '·';
    position: absolute;
    left: 2px;
    font-weight: 900;
}

.aid-cat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--aid-line);
}

/* ── 뱃지 ────────────────────────────────────────────────────────────────── */
.aid-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.aid-badge--priority-high   { background: #fee2e2; color: #b91c1c; }
.aid-badge--priority-mid    { background: #fef9c3; color: #854d0e; }
.aid-badge--priority-low    { background: #dcfce7; color: #15803d; }

.aid-badge--status-good     { background: #dcfce7; color: #15803d; }
.aid-badge--status-ok       { background: #fef9c3; color: #854d0e; }
.aid-badge--status-bad      { background: #fee2e2; color: #b91c1c; }

.aid-badge--diff-easy       { background: #dcfce7; color: #15803d; }
.aid-badge--diff-mid        { background: #fef9c3; color: #854d0e; }
.aid-badge--diff-hard       { background: #fee2e2; color: #b91c1c; }

.aid-badge--field-plan      { background: #ede9fe; color: #5b21b6; }
.aid-badge--field-design    { background: #fce7f3; color: #9d174d; }
.aid-badge--field-dev       { background: #dbeafe; color: #1e40af; }
.aid-badge--field-mkt       { background: #ffedd5; color: #9a3412; }
.aid-badge--field-content   { background: #f0fdf4; color: #14532d; }

/* ── 이슈 / 퀵윈 / 태스크 카드 ─────────────────────────────────────────── */
.aid-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aid-list-card {
    background: var(--aid-surface);
    border: 1px solid var(--aid-line);
    border-radius: 16px;
    padding: 22px 22px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.aid-list-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.aid-list-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--aid-ink);
    line-height: 1.4;
    flex: 1;
}

.aid-list-card__desc {
    font-size: 13px;
    color: var(--aid-muted);
    line-height: 1.65;
    margin: 0 0 10px;
}

.aid-list-card__impact {
    font-size: 13px;
    font-weight: 600;
    color: var(--aid-ink);
    background: rgba(0, 232, 104, 0.08);
    border-left: 3px solid var(--aid-accent);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
    margin: 0 0 10px;
}

.aid-list-card__rec {
    font-size: 13px;
    color: var(--aid-muted);
    line-height: 1.6;
    margin: 0;
    padding-left: 14px;
    position: relative;
}

.aid-list-card__rec::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--aid-accent-2);
    font-weight: 900;
}

.aid-list-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--aid-line);
    flex-wrap: wrap;
}

/* ── 추천 카피 / SEO ────────────────────────────────────────────────────── */
.aid-copy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.aid-copy-preview {
    border: 2px dashed var(--aid-line);
    border-radius: 16px;
    padding: 24px;
    background: rgba(0, 232, 104, 0.03);
}

.aid-copy-preview__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aid-muted);
    margin: 0 0 12px;
}

.aid-copy-preview__headline {
    font-size: 18px;
    font-weight: 800;
    color: var(--aid-ink);
    line-height: 1.3;
    margin: 0 0 8px;
}

.aid-copy-preview__sub {
    font-size: 13px;
    color: var(--aid-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.aid-copy-preview__cta {
    display: inline-block;
    padding: 9px 18px;
    background: var(--aid-ink);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.aid-seo-preview {
    border: 1px solid var(--aid-line);
    border-radius: 16px;
    padding: 24px;
}

.aid-seo-preview__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aid-muted);
    margin: 0 0 14px;
}

.aid-seo-preview__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a0dab;
    line-height: 1.3;
    margin: 0 0 4px;
}

.aid-seo-preview__url {
    font-size: 13px;
    color: var(--aid-green);
    margin: 0 0 6px;
}

.aid-seo-preview__desc {
    font-size: 13px;
    color: #4d5156;
    line-height: 1.6;
    margin: 0;
}

/* ── 제안서 요약 ─────────────────────────────────────────────────────────── */
.aid-proposal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.aid-proposal-box {
    border: 1px solid var(--aid-line);
    border-radius: 14px;
    padding: 20px;
}

.aid-proposal-box__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 10px;
}

.aid-proposal-box--problem .aid-proposal-box__label { color: var(--aid-red); }
.aid-proposal-box--solution .aid-proposal-box__label { color: var(--aid-blue); }
.aid-proposal-box--outcome .aid-proposal-box__label { color: var(--aid-green); }

.aid-proposal-box__text {
    font-size: 14px;
    color: var(--aid-ink);
    line-height: 1.7;
    margin: 0;
}

.aid-proposal-full {
    border: 1px solid var(--aid-line);
    border-radius: 14px;
    padding: 20px;
    margin-top: 14px;
}

.aid-proposal-full__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aid-purple);
    margin: 0 0 10px;
}

.aid-talking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aid-talking-list li {
    font-size: 14px;
    color: var(--aid-ink);
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}

.aid-talking-list li::before {
    content: '"';
    position: absolute;
    left: 0;
    color: var(--aid-purple);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.aid-copy-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── CTA 섹션 ────────────────────────────────────────────────────────────── */
.aid-cta-card {
    background: var(--aid-ink);
    color: #fff;
    border-radius: var(--aid-radius);
    padding: 44px 40px;
    text-align: center;
}

.aid-cta-card__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aid-accent);
    margin: 0 0 14px;
}

.aid-cta-card__title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.aid-cta-card__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0 0 28px;
}

.aid-cta-card__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── 빈 상태 ────────────────────────────────────────────────────────────── */
.aid-empty {
    text-align: center;
    padding: 32px;
    color: var(--aid-muted);
    font-size: 14px;
}

/* ── 점수 색상 ──────────────────────────────────────────────────────────── */
.aid-score--high   { color: var(--aid-green); }
.aid-score--mid    { color: var(--aid-yellow); }
.aid-score--low    { color: var(--aid-red); }

.aid-fill--high    { background: var(--aid-green); }
.aid-fill--mid     { background: var(--aid-yellow); }
.aid-fill--low     { background: var(--aid-red); }

/* ── 복사 완료 토스트 ───────────────────────────────────────────────────── */
.aid-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--aid-ink);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.aid-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── 반응형 ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .aid-scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aid-cat-grid {
        grid-template-columns: 1fr;
    }

    .aid-renewal-card {
        grid-template-columns: 1fr;
    }

    .aid-copy-grid {
        grid-template-columns: 1fr;
    }

    .aid-proposal-grid {
        grid-template-columns: 1fr;
    }

    .aid-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .aid-score-circle {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .aid-hero {
        min-height: calc(100svh - var(--header-height, 64px));
        padding: 40px 0;
    }

    .aid-form__row {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .aid-form__input {
        padding: 6px 0;
    }

    .aid-form__btn {
        width: 100%;
        justify-content: center;
    }

    .aid-scores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .aid-cta-card {
        padding: 32px 20px;
    }

    .aid-card {
        padding: 20px 16px;
    }
}
