/* ===== ことばみまもり index.css ===== */

    /* ===== CSS Variables ===== */
    :root {
      --bg:        #f7f8fc;
      --surface:   #ffffff;
      --surface2:  #f0f2fa;
      --border:    #dde1f0;
      --text:      #1e2340;
      --muted:     #6b7299;
      --accent:    #4a6cf7;
      --accent-lt: #eef1ff;
      --green:     #22c48a;
      --green-lt:  #e6faf3;
      --amber:     #f59e0b;
      --amber-lt:  #fff8e6;
      --red:       #ef4444;
      --red-lt:    #fff0f0;
      --radius:    14px;
      --shadow:    0 4px 24px rgba(74,108,247,0.08);
      --shadow-md: 0 8px 40px rgba(74,108,247,0.13);
    }

    /* ===== ダークモード（OS設定 or 手動切り替え） ===== */
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        --bg:        #0f1117;
        --surface:   #1a1d27;
        --surface2:  #22263a;
        --border:    #2e3350;
        --text:      #e8eaf6;
        --muted:     #8b93b8;
        --accent:    #6b8aff;
        --accent-lt: #1a2040;
        --green:     #2dd4a0;
        --green-lt:  #0d2b22;
        --amber:     #fbbf24;
        --amber-lt:  #2a1f05;
        --red:       #f87171;
        --red-lt:    #2a0e0e;
        --shadow:    0 4px 24px rgba(0,0,0,0.3);
        --shadow-md: 0 8px 40px rgba(0,0,0,0.45);
      }
      :root:not([data-theme="light"]) .hero {
        background: linear-gradient(160deg, #13172a 0%, #0f1117 60%);
      }
      :root:not([data-theme="light"]) textarea:focus {
        box-shadow: 0 0 0 4px rgba(107,138,255,0.15);
      }
      :root:not([data-theme="light"]) .verdict.safe    { background: #0d2b22; border-color: rgba(45,212,160,0.3); color: #2dd4a0; }
      :root:not([data-theme="light"]) .verdict.caution { background: #2a1f05; border-color: rgba(251,191,36,0.3); color: #fbbf24; }
      :root:not([data-theme="light"]) .verdict.danger  { background: #2a0e0e; border-color: rgba(248,113,113,0.3); color: #f87171; }
      :root:not([data-theme="light"]) .advice-box { background: #1a2040; border-color: rgba(107,138,255,0.2); }
      :root:not([data-theme="light"]) .risk-change-banner.improved  { background: #0d2b22; border-color: rgba(45,212,160,0.35); color: #2dd4a0; }
      :root:not([data-theme="light"]) .risk-change-banner.worsened  { background: #2a0e0e; border-color: rgba(248,113,113,0.3); color: #f87171; }
      :root:not([data-theme="light"]) .risk-change-banner.unchanged { background: var(--surface2); }
    }

    /* 手動でダークモードを選択した場合 */
    :root[data-theme="dark"] {
      --bg:        #0f1117;
      --surface:   #1a1d27;
      --surface2:  #22263a;
      --border:    #2e3350;
      --text:      #e8eaf6;
      --muted:     #8b93b8;
      --accent:    #6b8aff;
      --accent-lt: #1a2040;
      --green:     #2dd4a0;
      --green-lt:  #0d2b22;
      --amber:     #fbbf24;
      --amber-lt:  #2a1f05;
      --red:       #f87171;
      --red-lt:    #2a0e0e;
      --shadow:    0 4px 24px rgba(0,0,0,0.3);
      --shadow-md: 0 8px 40px rgba(0,0,0,0.45);
    }
    :root[data-theme="dark"] .hero {
      background: linear-gradient(160deg, #13172a 0%, #0f1117 60%);
    }
    :root[data-theme="dark"] textarea:focus {
      box-shadow: 0 0 0 4px rgba(107,138,255,0.15);
    }
    :root[data-theme="dark"] .verdict.safe    { background: #0d2b22; border-color: rgba(45,212,160,0.3); color: #2dd4a0; }
    :root[data-theme="dark"] .verdict.caution { background: #2a1f05; border-color: rgba(251,191,36,0.3); color: #fbbf24; }
    :root[data-theme="dark"] .verdict.danger  { background: #2a0e0e; border-color: rgba(248,113,113,0.3); color: #f87171; }
    :root[data-theme="dark"] .advice-box { background: #1a2040; border-color: rgba(107,138,255,0.2); }
    :root[data-theme="dark"] .risk-change-banner.improved  { background: #0d2b22; border-color: rgba(45,212,160,0.35); color: #2dd4a0; }
    :root[data-theme="dark"] .risk-change-banner.worsened  { background: #2a0e0e; border-color: rgba(248,113,113,0.3); color: #f87171; }
    :root[data-theme="dark"] .risk-change-banner.unchanged { background: var(--surface2); }

    /* ===== テーマ切り替えボタン ===== */
    .btn-theme {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 100px;
      color: var(--muted);
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.78rem;
      font-weight: 500;
      padding: 0.3rem 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .btn-theme:hover {
      background: var(--accent-lt);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* ===== Reset & Base ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Zen Kaku Gothic New', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.75;
      min-height: 100vh;
    }

    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }

    /* ===== Animations ===== */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes pulse-ring {
      0%   { transform: scale(1); opacity: 0.5; }
      100% { transform: scale(1.5); opacity: 0; }
    }

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

    @keyframes barGrow {
      from { width: 0%; }
    }

    .fade-up { animation: fadeUp 0.55s ease both; }
    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.2s; }
    .delay-3 { animation-delay: 0.3s; }
    .delay-4 { animation-delay: 0.4s; }

    /* ===== Header ===== */
    header {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 1rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(74,108,247,0.06);
    }

    .header-logo {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .header-logo .logo-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse-ring 2s ease-out infinite;
      position: relative;
    }

    .header-link {
      font-size: 0.8rem;
      color: var(--muted);
    }

    /* ===== Hero ===== */
    .hero {
      text-align: center;
      padding: 4rem 1.5rem 2.5rem;
      background: linear-gradient(160deg, #eef1ff 0%, #f7f8fc 60%);
      border-bottom: 1px solid var(--border);
    }

    .hero-tag {
      display: inline-block;
      background: var(--accent-lt);
      color: var(--accent);
      border: 1px solid rgba(74,108,247,0.25);
      border-radius: 100px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 0.3rem 1rem;
      margin-bottom: 1.25rem;
    }

    .hero h1 {
      font-family: 'Noto Serif JP', serif;
      font-size: clamp(1.8rem, 5vw, 2.8rem);
      font-weight: 600;
      line-height: 1.3;
      margin-bottom: 0.75rem;
      color: var(--text);
    }

    .hero h1 span {
      color: var(--accent);
    }

    .hero-sub {
      color: var(--muted);
      font-size: 0.95rem;
      max-width: 480px;
      margin: 0 auto 1.5rem;
      font-weight: 300;
    }

    /* プライバシー安心バッジ — ヒーロー内に目立つ位置で表示 */
    .privacy-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--green-lt);
      color: #15a372;
      border: 1px solid rgba(34,196,138,0.3);
      border-radius: 100px;
      font-size: 0.78rem;
      font-weight: 500;
      padding: 0.35rem 1rem;
    }

    /* ===== Main Content ===== */
    main {
      max-width: 720px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem 4rem;
    }

    /* ===== Card ===== */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2rem;
      margin-bottom: 1.5rem;
    }

    /* ===== マニュアルリンク ===== */
    .manual-inline-link {
      margin-bottom: 1rem;
      padding: 0.75rem 0.95rem;
      background: #f8faff;
      border: 1px solid rgba(74,108,247,0.14);
      border-radius: 10px;
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.7;
    }

    .manual-inline-link a {
      color: var(--accent);
      font-weight: 700;
      text-decoration: none;
    }

    .manual-inline-link a:hover {
      text-decoration: underline;
    }

    /* ===== サンプル文章ボタン ===== */
    .sample-label {
      font-size: 0.78rem;
      color: var(--muted);
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    .sample-btns {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.25rem;
    }

    .sample-btn {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 100px;
      color: var(--muted);
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.78rem;
      padding: 0.3rem 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .sample-btn:hover {
      background: var(--accent-lt);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* ===== Textarea ===== */
    .textarea-wrap {
      position: relative;
      margin-bottom: 0.75rem;
    }

    textarea {
      width: 100%;
      min-height: 160px;
      border: 2px solid var(--border);
      border-radius: 10px;
      padding: 1rem;
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.95rem;
      line-height: 1.75;
      color: var(--text);
      background: var(--bg);
      resize: vertical;
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }

    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(74,108,247,0.1);
      background: var(--surface);
    }

    textarea::placeholder {
      color: #b0b6cc;
    }

    /* 文字数カウント＋コピーボタンの行 */
    .char-count-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.25rem;
    }

    .char-count {
      font-size: 0.78rem;
      color: var(--muted);
    }

    .char-count.warn { color: var(--amber); }
    .char-count.over { color: var(--red); }

    /* ===== テキストコピーボタン ===== */
    .btn-copy-text {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--muted);
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.75rem;
      font-weight: 500;
      padding: 0.25rem 0.65rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .btn-copy-text:hover {
      background: var(--accent-lt);
      border-color: var(--accent);
      color: var(--accent);
    }

    .btn-copy-text.copied {
      background: var(--green-lt);
      border-color: var(--green);
      color: #15a372;
    }

    /* ===== リスク変化バナー ===== */
    .risk-change-banner {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      border-radius: 10px;
      padding: 0.65rem 1rem;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .risk-change-banner.improved {
      background: var(--green-lt);
      border: 1px solid rgba(34,196,138,0.4);
      color: #15a372;
    }

    .risk-change-banner.worsened {
      background: var(--red-lt);
      border: 1px solid rgba(239,68,68,0.35);
      color: #c93333;
    }

    .risk-change-banner.unchanged {
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--muted);
    }

    /* ===== SNS別文字数ガイド ===== */
    .sns-guide {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.4rem 0.6rem;
      margin-bottom: 1rem;
      font-size: 0.75rem;
    }

    .sns-guide-label {
      color: var(--muted);
      font-weight: 500;
      flex-shrink: 0;
    }

    .sns-guide-item {
      padding: 0.15rem 0.6rem;
      border-radius: 100px;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--muted);
      font-weight: 500;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    /* 上限を超えた場合に赤くハイライト */
    .sns-guide-item.over-limit {
      background: var(--red-lt);
      border-color: var(--red);
      color: var(--red);
      font-weight: 700;
    }

    /* ===== プライバシー注記（テキストエリア直下） ===== */
    .privacy-note {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.78rem;
      color: #15a372;
      margin-bottom: 1rem;
      font-weight: 500;
    }

    /* ===== Submit Button ===== */
    .btn-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;
      padding: 0.9rem 1.5rem;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      letter-spacing: 0.03em;
    }

    .btn-primary:hover:not(:disabled) {
      background: #3558e8;
      box-shadow: 0 6px 20px rgba(74,108,247,0.3);
      transform: translateY(-1px);
    }

    .btn-primary:active:not(:disabled) {
      transform: translateY(0);
    }

    .btn-primary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    /* ===== Loading ===== */
    #loading {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      padding: 2rem;
      color: var(--muted);
      font-size: 0.88rem;
    }

    .spinner {
      width: 36px; height: 36px;
      border: 3px solid var(--border);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    /* ===== Result Area ===== */
    #result-area {
      display: none;
      animation: fadeUp 0.4s ease;
    }

    .result-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .result-title {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.1rem;
      font-weight: 600;
    }

    /* 再チェックボタン */
    .btn-recheck {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--muted);
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.82rem;
      padding: 0.45rem 1rem;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 500;
    }

    .btn-recheck:hover {
      background: var(--accent-lt);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* ===== Score Items ===== */
    .score-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .score-item {
      background: var(--surface2);
      border-radius: 10px;
      padding: 1rem 1.25rem 1rem 1.75rem;
    }

    /* 気になりそうな点・改善のヒント — リスト共通スタイル */
    .result-list {
      padding-left: 1.5rem;
      margin-top: 0.4rem;
    }

    .result-list li {
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.8;
      margin-bottom: 0.35rem;
    }

    .result-list li:last-child { margin-bottom: 0; }

    .score-item-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.6rem;
    }

    .score-item-label {
      font-size: 0.88rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .score-item-value {
      font-size: 1.1rem;
      font-weight: 700;
      font-family: 'Noto Serif JP', serif;
    }

    /* ゲージバー */
    .gauge-track {
      height: 10px;
      background: var(--border);
      border-radius: 100px;
      overflow: hidden;
    }

    .gauge-fill {
      height: 100%;
      border-radius: 100px;
      transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      width: 0%;
    }

    .gauge-low    { background: linear-gradient(90deg, #34d399, #22c48a); }
    .gauge-mid    { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
    .gauge-high   { background: linear-gradient(90deg, #fb923c, #ef4444); }

    .score-desc {
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 0.5rem;
      line-height: 1.5;
    }

    /* ===== 総合判定バッジ ===== */
    .verdict {
      display: flex;
      align-items: center;
      gap: 1rem;
      border-radius: 10px;
      padding: 1rem 1.25rem;
      margin-bottom: 1.5rem;
      border: 1.5px solid;
    }

    .verdict.safe   { background: var(--green-lt); border-color: rgba(34,196,138,0.35); color: #15a372; }
    .verdict.caution{ background: var(--amber-lt);  border-color: rgba(245,158,11,0.35);  color: #b07d08; }
    .verdict.danger { background: var(--red-lt);   border-color: rgba(239,68,68,0.35);   color: #c93333; }

    .verdict-icon { font-size: 1.8rem; }
    .verdict-text h3 { font-size: 0.95rem; font-weight: 700; }
    .verdict-text p  { font-size: 0.8rem; margin-top: 0.15rem; opacity: 0.9; }

    /* ===== アドバイス ===== */
    .advice-box {
      background: var(--accent-lt);
      border: 1px solid rgba(74,108,247,0.2);
      border-radius: 10px;
      padding: 1rem 1.25rem;
      margin-bottom: 1.5rem;
    }

    .advice-box h4 {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 0.4rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .advice-box p {
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.8;
    }

    .advice-box ul {
      padding-left: 1.5rem;
      margin-top: 0.4rem;
    }

    .advice-box ul li {
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.8;
      margin-bottom: 0.35rem;
    }

    .advice-box ul li:last-child { margin-bottom: 0; }

    /* ===== 各種SNSを開くボタンの文章 ===== */
    .share-info-label {
      font-size: 0.78rem;
      color: var(--muted);
      margin-bottom: 0.75rem;
      font-weight: 500;
    }

    /* ===== SNSプルダウン＋開くボタン ===== */
    .sns-open-row {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      flex-wrap: wrap;
    }

    .sns-select {
      flex: 1;
      min-width: 160px;
      padding: 0.6rem 0.9rem;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text);
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.2s;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7299' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.75rem center;
      padding-right: 2rem;
    }

    .sns-select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
    }

    .btn-sns-open {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.88rem;
      font-weight: 700;
      padding: 0.6rem 1.25rem;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
      white-space: nowrap;
    }

    .btn-sns-open:hover {
      background: #3558e8;
      transform: translateY(-1px);
    }

    /* ===== 説明アコーディオン ===== */
    .accordion {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 1.5rem;
    }

    .accordion-trigger {
      width: 100%;
      background: var(--surface);
      border: none;
      padding: 1rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--muted);
      transition: background 0.2s;
    }

    .accordion-trigger:hover { background: var(--surface2); }

    .accordion-arrow {
      transition: transform 0.3s;
      font-size: 0.75rem;
    }

    .accordion-trigger[aria-expanded="true"] .accordion-arrow {
      transform: rotate(180deg);
    }

    .accordion-body {
      display: none;
      background: var(--surface2);
      padding: 1.25rem;
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.8;
      border-top: 1px solid var(--border);
    }

    .accordion-body.open { display: block; }

    /* ===== Notice ===== */
    .notice {
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 0.25rem;
      display: flex;
      gap: 0.3rem;
      align-items: flex-start;
    }

    /* ===== FAQ ===== */
    .faq-section {
      margin-bottom: 2rem;
    }

    .faq-title {
      font-family: 'Noto Serif JP', serif;
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 1rem;
      color: var(--text);
    }

    .faq-item {
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 0.6rem;
      overflow: hidden;
      background: var(--surface);
    }

    .faq-q {
      width: 100%;
      background: none;
      border: none;
      padding: 1rem 1.25rem;
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      cursor: pointer;
      font-family: 'Zen Kaku Gothic New', sans-serif;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
      transition: background 0.2s;
    }

    .faq-q:hover { background: var(--surface2); }

    .faq-q .q-icon { color: var(--accent); font-weight: 900; flex-shrink: 0; }
    .faq-q .faq-arrow { color: var(--muted); font-size: 0.75rem; transition: transform 0.3s; }
    .faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }

    .faq-a {
      display: none;
      padding: 0 1.25rem 1rem;
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.75;
      border-top: 1px solid var(--border);
      padding-top: 0.75rem;
    }

    .faq-a.open { display: block; }

    /* ===== Footer ===== */
    footer {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 2rem 1.5rem;
      text-align: center;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.25rem 1rem;
      margin-bottom: 0.75rem;
      font-size: 0.8rem;
    }

    .footer-links a { color: var(--muted); }
    .footer-links a:hover { color: var(--accent); }

    .footer-copy {
      font-size: 0.75rem;
      color: #b0b6cc;
    }

    /* ===== Responsive ===== */
    @media (max-width: 600px) {
      header { padding: 0.85rem 1rem; }
      .hero  { padding: 2.5rem 1rem 2rem; }
      main   { padding: 1.5rem 1rem 3rem; }
      .card  { padding: 1.25rem; }
      .hero h1 { font-size: 1.6rem; }
      .result-header { flex-direction: column; align-items: flex-start; }
    }
  