  :root{
    --bg:#f2f4f6;
    --card:#ffffff;
    --card-soft:#f9fafb;
    --ink-1:#191f28;
    --ink-2:#4e5968;
    --ink-3:#8b95a1;
    --line:#eef0f2;
    --brand:#585CE5;
    --brand-2:#3182f6;
    --brand-soft:rgba(88,92,229,0.08);
    --brand-soft-2:rgba(49,130,246,0.10);
    --shadow-card:0 2px 10px rgba(15,23,42,0.04), 0 12px 32px -18px rgba(15,23,42,0.10);
    --shadow-card-hover:0 6px 18px rgba(15,23,42,0.07), 0 22px 44px -20px rgba(15,23,42,0.16);
    --radius-lg:24px;
    --radius-md:18px;
    --ph-duotone-secondary-opacity:0.10;
  }

  /* 다크 모드 — html[data-theme="dark"]는 finpilot/js/main.js가 이미 쓰는 것과 같은
     속성/localStorage 키(fincalc_theme)를 공유해서, iframe으로 열리는 핀 파일럿/택스 파일럿과도
     테마가 어긋나지 않게 맞춘다. 거의 모든 컴포넌트가 var(--...) 기반이라 이 블록만으로
     앱 전반의 배경/텍스트/카드 색이 함께 전환된다. */
  html[data-theme="dark"]{
    --bg:#0b0f14;
    --card:#161b22;
    --card-soft:#1c222b;
    --ink-1:#f0f2f5;
    --ink-2:#a8b1bd;
    --ink-3:#6b7480;
    --line:#262c36;
    --brand:#7377ef;
    --brand-2:#5b9bf7;
    --brand-soft:rgba(115,119,239,0.16);
    --brand-soft-2:rgba(91,155,247,0.16);
    --shadow-card:0 2px 10px rgba(0,0,0,0.3), 0 12px 32px -18px rgba(0,0,0,0.5);
    --shadow-card-hover:0 6px 18px rgba(0,0,0,0.35), 0 22px 44px -20px rgba(0,0,0,0.55);
  }

  *{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
  html{-webkit-text-size-adjust:100%;}
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
  body{
    margin:0;
    height:100vh;
    overflow:hidden;
    background:var(--bg);
    color:var(--ink-1);
    font-family:'Inter',-apple-system,BlinkMacSystemFont,"Pretendard","Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
    letter-spacing:-0.03em;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
  }
  a{color:inherit;text-decoration:none;}
  button{font-family:inherit;letter-spacing:inherit;}

  i.ph-duotone{
    --ph-duotone-secondary-color: var(--brand);
    color:var(--brand);
    line-height:1;
  }

  .wrap{
    max-width:960px;
    margin:0 auto;
    padding:0 20px 96px;
  }
  @media (min-width:640px){ .wrap{padding:0 32px 120px;} }