  :root{
    --bg:#EEF2ED;
    --surface:#FFFFFF;
    --paper:#FBF7EC;
    --paper-line:#E4DCC8;
    --ink:#142136;
    --muted:#64708A;
    --mint:#14805F;
    --mint-deep:#0E6249;
    --rust:#B84422;
    --seal:#9C3226;
    --gold:#93672E;
    --line:rgba(20,33,54,0.12);
    --line-soft:rgba(20,33,54,0.07);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:'Pretendard', -apple-system, sans-serif;
    line-height:1.55;
  }
  .num, .mono{ font-family:'IBM Plex Mono', monospace; }

  a{color:var(--mint-deep);}

  .wrap{max-width:920px;margin:0 auto;padding:0 20px;}

  header.site{
    padding:64px 0 48px;
    border-bottom:1px solid var(--line);
    background:
      radial-gradient(circle at 15% 20%, rgba(20,128,95,0.10), transparent 45%),
      radial-gradient(circle at 85% 0%, rgba(184,68,34,0.08), transparent 40%);
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px; letter-spacing:0.14em; text-transform:uppercase;
    color:var(--gold); border:1px solid rgba(147,103,46,0.35);
    background:rgba(147,103,46,0.06);
    padding:5px 10px; border-radius:100px; margin-bottom:18px;
  }
  h1{
    font-size:clamp(28px,4.2vw,42px);
    line-height:1.25; margin:0 0 14px; letter-spacing:-0.01em;
    font-weight:800; color:var(--ink);
  }
  header.site p.lead{ color:#4B5670; font-size:16px; max-width:60ch; margin:0; }

  main.wrap{ padding:88px 20px 30px; }
  @keyframes fade{ from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;} }

  /* 보조 계산기 팝업 트리거 */
  .side-tools{
    margin-top:28px; padding:20px; border-radius:14px;
    background:rgba(20,33,54,0.03); border:1px dashed var(--line);
    text-align:center;
  }
  .side-tools-label{ font-size:13.5px; color:var(--muted); margin-bottom:12px; }
  .side-tools-buttons{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
  .side-tools-buttons button{ width:auto; }

  /* 팝업(모달) */
  .modal-overlay{
    display:none; position:fixed; inset:0; z-index:100;
    background:rgba(15,22,36,0.55);
    align-items:flex-start; justify-content:center;
    padding:5vh 16px; overflow-y:auto;
  }
  .modal-overlay.open{ display:flex; animation:fade .18s ease; }
  .modal-box{
    background:var(--surface); border-radius:16px; padding:28px;
    max-width:640px; width:100%; position:relative;
    box-shadow:0 24px 60px rgba(15,22,36,0.35);
    margin-bottom:5vh;
  }
  .modal-box h2{ margin:0 0 6px; font-size:19px; padding-right:30px; }
  .modal-box .sub{ color:var(--muted); font-size:13.5px; margin-bottom:20px; }
  .modal-close{
    position:absolute; top:18px; right:18px; width:32px; height:32px;
    border-radius:50%; border:1px solid var(--line); background:var(--surface);
    color:var(--muted); font-size:18px; line-height:1; cursor:pointer;
  }
  .modal-close:hover{ color:var(--rust); border-color:var(--rust); }

  @keyframes flashFill{
    0%{ box-shadow:0 0 0 0 rgba(20,128,95,0.45); }
    100%{ box-shadow:0 0 0 8px rgba(20,128,95,0); }
  }
  .flash-fill{ animation:flashFill 1s ease; border-color:var(--mint) !important; }

  .card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:14px;
    padding:26px;
    margin-bottom:22px;
    box-shadow:0 1px 2px rgba(20,33,54,0.04);
  }
  .card.card-main{
    border:1px solid rgba(20,128,95,0.25);
    box-shadow:0 10px 28px rgba(20,128,95,0.08), 0 1px 2px rgba(20,33,54,0.04);
  }
  .card h2{ margin:0 0 6px; font-size:20px; color:var(--ink); }
  .card .sub{ color:var(--muted); font-size:13.5px; margin-bottom:22px; }

  .sec-tag-main{ color:var(--mint-deep) !important; }

  .grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  @media (max-width:640px){ .grid{ grid-template-columns:1fr; } }

  label{ display:block; font-size:13px; color:#3C4A63; margin-bottom:6px; font-weight:600; }
  .field{ margin-bottom:16px; }
  .field small{ display:block; color:var(--muted); font-size:11.5px; margin-top:5px; }
  input[type=number], input[type=text], input[type=date], select{
    width:100%; padding:11px 12px; border-radius:9px;
    border:1px solid var(--line);
    background:#FFFFFF; color:var(--ink);
    font-family:'IBM Plex Mono', monospace; font-size:15px;
  }
  input:focus, select:focus{ outline:2px solid var(--mint); outline-offset:1px; }
  .checkline{ display:flex; align-items:flex-start; gap:9px; padding:11px 0; border-top:1px dashed var(--line); }
  .checkline:first-child{ border-top:none; }
  .checkline input{ width:auto; margin-top:3px; }
  .checkline span{ font-size:14px; color:#324061; }

  button.primary{
    background:var(--mint); color:#FFFFFF; border:none;
    font-weight:800; font-size:15px; padding:13px 20px; border-radius:10px;
    cursor:pointer; width:100%; margin-top:6px;
    transition:transform .1s, background .15s;
  }
  button.primary:hover{ background:var(--mint-deep); }
  button.primary:active{ transform:scale(0.99); }
  button.ghost{
    background:none; border:1px solid var(--line); color:var(--ink);
    padding:9px 14px; border-radius:9px; font-size:13px; cursor:pointer; font-weight:600;
  }
  button.ghost:hover{ border-color:var(--mint); color:var(--mint-deep); }

  .warn{
    margin-top:14px; padding:12px 14px; border-radius:9px;
    background:rgba(184,68,34,0.08); border:1px solid rgba(184,68,34,0.3);
    color:#8A3016; font-size:13.5px;
  }
  .ok-note{
    margin-top:14px; padding:12px 14px; border-radius:9px;
    background:rgba(20,128,95,0.08); border:1px solid rgba(20,128,95,0.28);
    color:#0E6249; font-size:13.5px;
  }

  /* Receipt result card */
  .receipt{
    background:var(--paper); color:var(--ink);
    border-radius:4px; padding:0; margin-top:24px;
    position:relative; overflow:hidden;
    box-shadow:0 14px 30px rgba(20,33,54,0.12), 0 1px 0 rgba(20,33,54,0.06);
  }
  .receipt-cut{
    height:14px;
    background-image: radial-gradient(circle at 10px 0, transparent 7px, var(--paper) 7px);
    background-size:20px 14px; background-repeat:repeat-x;
    background-position: bottom;
  }
  .receipt-inner{ padding:8px 26px 26px; }
  .receipt-head{
    text-align:center; padding:18px 0 14px; border-bottom:1px dashed var(--paper-line);
  }
  .receipt-head .tag{ font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:0.18em; color:var(--muted); text-transform:uppercase; }
  .receipt-head h3{ margin:6px 0 0; font-size:17px; }
  .rline{
    display:flex; justify-content:space-between; align-items:baseline;
    padding:9px 0; border-bottom:1px dotted var(--paper-line);
    font-size:14px;
  }
  .rline .l{ color:#5A6270; }
  .rline .v{ font-family:'IBM Plex Mono', monospace; font-weight:600; }
  .rline.deduct .v{ color:var(--rust); }
  .rline.total{
    border-bottom:none; margin-top:6px; padding-top:14px; border-top:2px solid var(--ink);
    font-size:16px; font-weight:800;
  }
  .rline.total .v{ font-size:20px; color:var(--mint-deep); }

  .stamp{
    position:absolute; top:20px; right:22px;
    width:84px; height:84px; border-radius:50%;
    border:3px solid var(--seal); color:var(--seal);
    display:flex; align-items:center; justify-content:center;
    text-align:center; font-family:'IBM Plex Mono'; font-weight:700;
    font-size:12px; line-height:1.25; transform:rotate(-14deg);
    opacity:0.92; letter-spacing:0.03em;
  }

  .bar-compare{ margin-top:20px; padding:16px 0 4px; }
  .bar-row{ margin-bottom:12px; }
  .bar-label{ display:flex; justify-content:space-between; font-size:12.5px; color:var(--muted); margin-bottom:5px; font-family:'IBM Plex Mono'; }
  .bar-track{ height:10px; border-radius:6px; background:var(--paper-line); overflow:hidden; }
  .bar-fill{ height:100%; border-radius:6px; }

  .receipt-actions{ display:flex; gap:10px; margin-top:20px; }
  .receipt-actions button{ flex:1; }

  /* 금액 입력 필드 우측 단위 힌트 (예: 4,000만원) */
  .amount-field{ position:relative; }
  .amount-field input[type=number]{ padding-right:104px; }
  .amount-field .unit-hint{
    position:absolute; top:50%; right:12px; transform:translateY(-50%);
    font-family:'Pretendard'; font-size:12.5px; font-weight:600; color:var(--mint-deep);
    pointer-events:none; max-width:96px; text-align:right;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }

  .bonus-row{ display:flex; gap:8px; margin-bottom:8px; align-items:center; }
  .bonus-row input[type=date]{ flex:1.3; }
  .bonus-row .bonus-amount-wrap{ flex:1; }
  .bonus-row .bonus-amount-wrap input[type=number]{ padding-right:88px; }
  .bonus-row .bonus-amount-wrap .unit-hint{ right:12px; max-width:78px; font-size:12px; }
  .bonus-row button{
    flex:0 0 auto; background:none; border:1px solid var(--line); color:var(--muted);
    width:34px; height:34px; border-radius:8px; cursor:pointer; font-size:16px; line-height:1;
  }
  .bonus-row button:hover{ border-color:var(--rust); color:var(--rust); }

  .faq{ margin-top:10px; }
  .faq-item{ border-bottom:1px solid var(--line); }
  .faq-q{
    width:100%; text-align:left; background:none; border:none; color:var(--ink);
    font-size:15.5px; font-weight:700; padding:18px 4px; cursor:pointer;
    display:flex; justify-content:space-between; align-items:center; gap:12px;
  }
  .faq-q::after{ content:'+'; font-family:'IBM Plex Mono'; color:var(--mint-deep); font-size:20px; }
  .faq-item.open .faq-q::after{ content:'−'; }
  .faq-a{ display:none; padding:0 4px 18px; color:#4B5670; font-size:14.5px; }
  .faq-item.open .faq-a{ display:block; }

  footer.site{
    border-top:1px solid var(--line); padding:34px 0 60px; margin-top:20px;
    color:var(--muted); font-size:12.5px;
  }
  footer.site p{ margin:0 0 8px; }

  .badge{
    display:inline-block; font-family:'IBM Plex Mono'; font-size:11px;
    background:rgba(147,103,46,0.08); color:var(--gold); border:1px solid rgba(147,103,46,0.3);
    padding:2px 8px; border-radius:100px; margin-left:8px;
  }

  h2 .sec-tag{ font-family:'IBM Plex Mono'; font-size:12px; color:var(--mint-deep); display:block; letter-spacing:0.1em; margin-bottom:6px;}

/* ---- SY Project 안내/FAQ 섹션 ---- */
.sy-info{ margin-top:36px; padding-top:24px; border-top:1px solid var(--line); }
.sy-info h2{ font-size:16px; color:var(--ink); margin-bottom:10px; }
.sy-info > p{ font-size:13.5px; line-height:1.75; color:var(--muted); margin-bottom:16px; }
.sy-faq details{ border-top:1px solid var(--line); padding:12px 0; }
.sy-faq summary{ cursor:pointer; font-weight:600; font-size:13.5px; color:var(--ink); list-style:none; }
.sy-faq summary::-webkit-details-marker{ display:none; }
.sy-faq summary::before{ content:'+ '; color:var(--mint); }
.sy-faq details[open] summary::before{ content:'– '; }
.sy-faq details p{ margin-top:8px; font-size:13px; color:var(--muted); line-height:1.7; }
