:root {
  --bg:#fff; --ink:#142139; --muted:#53627a; --subtle:#647086;
  --blue:#2854d8; --blue-dark:#1e40af; --line:#d9e1ec; --soft:#f5f7fb;
  --red:#b42332; --shadow:0 4px 18px #14213905;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
button { cursor:pointer; touch-action:manipulation; }
button:disabled { opacity:.5; cursor:not-allowed; }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
input,select { max-width:100%; }
svg { width:20px; height:20px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linejoin:round; stroke-linecap:round; flex-shrink:0; }
[hidden] { display:none!important; }
.symbols { position:absolute; width:0; height:0; overflow:hidden; }
.skip { position:fixed; top:-100px; left:16px; padding:14px; background:#fff; z-index:30; }
.skip:focus { top:12px; }
.site-header { max-width:1200px; margin:auto; padding:22px 30px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); gap:20px; }
.brand { display:flex; align-items:center; gap:11px; font-weight:850; font-size:24px; letter-spacing:-.035em; line-height:1.2; }
.brand-mark { display:grid; place-items:center; width:40px; height:42px; border-radius:9px; background:var(--ink); color:#fff; font-size:27px; letter-spacing:-.12em; padding-right:3px; }
.brand small { display:block; font-size:13px; font-weight:550; letter-spacing:0; margin-top:5px; color:var(--muted); }
.header-nav { display:flex; align-items:center; gap:26px; font-size:15px; font-weight:600; color:var(--muted); }
.header-nav>a { display:flex; align-items:center; gap:7px; min-height:44px; }
.header-nav>a:hover { color:var(--blue); }
.header-nav>a>svg { width:17px; height:17px; }
#save-count { display:grid; place-items:center; min-width:23px; height:24px; border:1px solid var(--line); border-radius:5px; font-size:12px; color:var(--muted); }
.languages { display:flex; gap:2px; border:1px solid var(--line); border-radius:8px; padding:3px; }
.languages a { display:grid; place-items:center; width:40px; min-height:38px; font-size:13px; font-weight:700; border-radius:5px; color:var(--muted); }
.languages a[aria-current] { background:var(--blue); color:#fff; }
main { max-width:1160px; padding:0 30px; margin:auto; }
.hero { padding:34px 0 27px; }
.eyebrow { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--blue); margin:0 0 13px; }
.eyebrow>span { width:5px; height:5px; background:var(--blue); border-radius:50%; }
h1 { margin:0; font-size:clamp(34px,3.4vw,46px); font-weight:780; line-height:1.35; letter-spacing:-.05em; word-break:keep-all; }
h1>span { color:var(--ink); }
.hero-description { max-width:780px; font-size:17px; line-height:1.8; color:var(--muted); margin:14px 0 0; word-break:keep-all; }
.mode-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 20px; }
.mode-tabs button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 22px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:16px; font-weight:650; color:var(--muted); white-space:nowrap; min-width:0; }
.mode-tabs button[aria-selected=true] { border-color:var(--blue); background:var(--blue); color:#fff; }
.mode-tabs button:hover { border-color:var(--blue); }
.calculator-layout { display:grid; grid-template-columns:44% minmax(0,1fr); gap:24px; align-items:stretch; }
.input-card,.result-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow); }
.input-card { padding:26px; }
.input-card-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.section-kicker { font-size:13px; font-weight:700; color:var(--blue); }
.currency-label { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.currency-label select { min-height:40px; padding:5px 8px; border:1px solid #b9c6d8; border-radius:6px; background:#fff; color:var(--ink); font-size:14px; }
.input-card h2 { font-size:23px; font-weight:750; letter-spacing:-.035em; line-height:1.55; margin:0 0 23px; word-break:keep-all; }
.input-label { display:block; font-size:17px; font-weight:650; color:var(--ink); margin-bottom:11px; }
.amount-input { display:flex; align-items:center; gap:9px; padding:9px 13px; border:1.5px solid #8d9eb8; border-radius:8px; }
.amount-input>span:first-child { color:var(--muted); font-size:24px; }
.amount-input input { width:100%; min-width:0; height:47px; padding:0; border:0; outline:0; background:#fff; color:var(--ink); font-size:34px; font-weight:750; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.amount-input input:focus-visible { outline:0; }
.amount-input:focus-within { border-color:var(--blue); box-shadow:0 0 0 2px #2854d820; }
.amount-input:has(input[aria-invalid=true]) { border-color:var(--red); }
.amount-input>span:last-child { font-size:15px; color:var(--muted); white-space:nowrap; }
.input-hint { font-size:14px; line-height:1.7; color:var(--muted); margin:10px 0 14px; }
.presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.presets button { min-height:44px; padding:7px 4px; border:1px solid #b9c6d8; border-radius:6px; background:#fff; color:var(--muted); font-size:14px; font-weight:600; white-space:nowrap; }
.presets button[aria-pressed=true] { background:#fff; color:var(--blue-dark); border:2px solid var(--blue); }
.presets button:hover { border-color:var(--blue); }
.second-question { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:26px 0 12px; }
.second-question label { font-size:17px; font-weight:650; color:var(--ink); }
.second-question strong { font-size:26px; font-weight:750; color:var(--blue-dark); white-space:nowrap; }
.input-card { --range-thumb-size:22px; }
input[type=range] { appearance:none; -webkit-appearance:none; width:100%; height:7px; padding:0; border:0; border-radius:5px; background:#d9e1ec; margin:18px 0 12px; cursor:pointer; }
input[type=range]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; box-sizing:border-box; width:var(--range-thumb-size); height:var(--range-thumb-size); border-radius:50%; background:var(--blue); border:3px solid #fff; box-shadow:0 1px 5px #14213940; }
input[type=range]::-moz-range-thumb { box-sizing:border-box; width:var(--range-thumb-size); height:var(--range-thumb-size); border-radius:50%; background:var(--blue); border:3px solid #fff; }
.slider-scale { height:32px; color:var(--muted); font-size:12px; }
.slider-scale-track { position:relative; margin-inline:calc(var(--range-thumb-size) / 2); }
.slider-scale span { position:absolute; transform:translateX(-50%); padding-top:10px; white-space:nowrap; }
.slider-scale span::before { content:''; position:absolute; top:0; left:50%; height:5px; border-left:1px solid #9bacc2; }
.quick-periods { border-top:1px solid var(--line); margin-top:9px; padding-top:13px; }
.quick-periods>span { display:block; font-size:13px; color:var(--muted); margin-bottom:8px; }
.period-presets { display:flex; gap:6px; flex-wrap:wrap; }
.period-presets button { flex:1; min-width:40px; min-height:44px; padding:6px 4px; border:1px solid #b9c6d8; border-radius:6px; background:#fff; color:var(--muted); font-size:14px; }
.period-presets button[aria-pressed=true] { color:var(--blue-dark); border-color:var(--blue); font-weight:750; }
.input-footer { margin-top:auto; padding-top:22px; }
.input-bottom { display:flex; align-items:center; justify-content:center; gap:7px; border-top:1px solid var(--line); padding-top:16px; margin:0; font-size:13px; line-height:1.8; color:var(--muted); text-align:center; }
.tiny-dot { height:4px; width:4px; border-radius:50%; background:var(--blue); flex-shrink:0; }
.view-result-button { display:none; }
.result-card { padding:26px 28px; border-top:4px solid var(--blue); }
.result-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; color:var(--ink); font-size:15px; font-weight:700; }
.example-label { border:1px solid #bdc9db; border-radius:5px; padding:4px 7px; font-size:12px; font-weight:500; color:var(--muted); }
.result-heading { font-size:17px; color:var(--muted); line-height:1.8; margin:17px 0 5px; }
.main-number { color:var(--ink); font-size:clamp(34px,4.1vw,54px); font-weight:800; line-height:1.3; letter-spacing:-.05em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.main-number small { font-size:18px; font-weight:550; margin-left:5px; }
.result-context { display:inline-block; max-width:100%; color:var(--blue-dark); font-size:15px; font-weight:650; line-height:1.8; margin:10px 0 0; }
.chart-wrap { margin-top:14px; width:100%; min-height:90px; }
.chart-wrap svg { display:block; width:100%; height:auto; stroke:none; overflow:visible; }
.chart-legend { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; font-size:13px; color:var(--muted); margin:8px 0 12px; }
.chart-legend span { display:flex; align-items:center; gap:6px; }
.legend-dot { display:inline-block; height:8px; width:8px; border-radius:50%; background:#71829b; }
.legend-dot.growth { background:var(--blue); }
.legend-dot.loss { background:var(--red); }
.chart-heading { margin-top:20px; }
.chart-heading strong { color:var(--ink); font-size:16px; }
.chart-heading p { color:var(--muted); font-size:14px; line-height:1.8; margin:6px 0 0; }
.chart-marker { cursor:pointer; }
.chart-checkpoints { display:grid; grid-template-columns:repeat(var(--checkpoint-count,3),minmax(0,1fr)); gap:8px; margin:0 0 12px; }
.chart-checkpoints button { min-height:44px; border:1px solid #b9c6d8; border-radius:7px; background:#fff; color:var(--muted); font-size:14px; font-weight:600; }
.chart-checkpoints button[aria-pressed=true] { border-color:var(--blue); color:var(--blue-dark); box-shadow:inset 0 0 0 1px var(--blue); }
.chart-inspector { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 15px; border:1px solid #bdcce8; border-left:3px solid var(--blue); border-radius:8px; padding:14px 16px; margin-bottom:20px; }
.chart-inspector>span { color:var(--muted); font-size:14px; align-self:center; }
.chart-inspector>strong { font-size:22px; color:var(--ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.chart-inspector>p { grid-column:1/-1; margin:0; font-size:13px; color:var(--muted); line-height:1.8; overflow-wrap:anywhere; }
.summary-period { font-size:14px; font-weight:700; color:var(--ink); margin:18px 0 9px; }
@media(max-width:600px){.chart-inspector{grid-template-columns:minmax(0,1fr);gap:5px}.chart-inspector>strong{font-size:24px}.chart-heading strong{font-size:16px}}
.result-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.summary-period:not([hidden])+.result-summary { margin-top:0; }
.result-summary>div { min-width:0; display:flex; flex-direction:column; gap:6px; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:var(--soft); font-size:14px; color:var(--muted); }
.result-summary strong { font-size:22px; font-weight:750; letter-spacing:-.03em; color:var(--ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.result-summary>div:last-child strong { color:var(--blue-dark); }
.result-summary>div:last-child strong.is-loss { color:var(--red); }
.rate-selector { border-top:1px solid var(--line); margin-top:22px; padding-top:18px; font-size:17px; font-weight:650; color:var(--ink); }
.rate-options { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:12px; }
#rate-buttons { display:flex; gap:6px; }
.rate-selector button { min-height:44px; min-width:44px; padding:7px; border:1px solid #b9c6d8; border-radius:6px; background:#fff; color:var(--muted); font-size:15px; }
.rate-selector button[aria-pressed=true] { background:var(--blue); color:#fff; border-color:var(--blue); font-weight:750; }
.custom-rate { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:14px; font-weight:500; }
.custom-rate-input { display:flex; align-items:center; gap:6px; min-height:44px; padding:0 9px; border:1px solid #9bacc5; border-radius:7px; background:#fff; color:var(--ink); }
.custom-rate-input:focus-within { border-color:var(--blue); outline:2px solid var(--blue); outline-offset:2px; }
.custom-rate-input input { width:64px; height:42px; min-width:0; border:0; outline:0; padding:9px 0; background:transparent; color:var(--ink); text-align:right; font:inherit; font-size:18px; line-height:1.25; font-weight:750; }
.custom-rate-input:has([aria-invalid=true]) { border-color:var(--red); }
.rate-hint { font-size:13px; font-weight:400; line-height:1.8; margin:9px 0 0; color:var(--muted); }
#rate-error { margin:10px 0 0; font-weight:400; }
.result-footer { margin-top:auto; padding-top:18px; }
.result-note { border-top:1px solid var(--line); padding-top:16px; font-size:14px; line-height:1.8; color:var(--muted); margin:0; }
.result-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.result-actions button { width:100%; min-width:0; gap:6px; padding-inline:8px; }
.save-button,.share-button,.outline-button,.solid-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:11px 18px; border-radius:7px; font-size:15px; font-weight:650; white-space:nowrap; }
.save-button,.outline-button { border:1px solid #a9b8cf; background:#fff; color:var(--ink); }
.share-button,.solid-button { border:1px solid var(--blue); background:var(--blue); color:#fff; }
.share-button:hover,.solid-button:hover { background:var(--blue-dark); }
.save-button:hover,.outline-button:hover { border-color:var(--blue); }
.save-button svg,.share-button svg { width:18px; height:18px; }
.shared-notice { margin:0 0 20px; padding:16px; border:1px solid #b8c8e1; border-left:3px solid var(--blue); border-radius:8px; background:#fff; color:var(--muted); font-size:15px; line-height:1.8; }
.friendly-section,.saved-section,.tools-section { margin-top:44px; }
.section-heading { margin-bottom:22px; }
.section-heading .section-kicker,.section-heading-row .section-kicker { display:none; }
.section-heading h2,.section-heading-row h2 { font-size:27px; font-weight:750; line-height:1.5; letter-spacing:-.035em; margin:0; word-break:keep-all; }
.section-heading p,.section-heading-row p { color:var(--muted); font-size:16px; line-height:1.8; margin:9px 0 0; }
.learning-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.learning-grid details { border:1px solid var(--line); background:#fff; border-radius:10px; align-self:start; }
.learning-grid summary { display:flex; align-items:center; gap:11px; min-height:78px; padding:17px; color:var(--ink); font-size:16px; font-weight:650; cursor:pointer; list-style:none; }
summary::-webkit-details-marker { display:none; }
.learning-grid summary b { margin-left:auto; color:var(--muted); font-size:20px; font-weight:400; }
.learning-icon { display:grid; place-items:center; width:32px; height:34px; border-radius:7px; font-size:22px; flex-shrink:0; }
.mint,.butter,.peach,.lilac { background:#fff; border:1px solid #c5d0e0; color:var(--blue-dark); }
.learning-grid p { padding:0 18px 18px; margin:0; color:var(--muted); font-size:15px; line-height:1.9; word-break:keep-all; }
.section-heading-row { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:21px; }
.local-badge { flex-shrink:0; font-size:13px; color:var(--muted); }
.empty-state { padding:25px 20px; border:1px dashed #aab9cd; border-radius:10px; background:#fff; }
.empty-state strong { font-size:16px; color:var(--ink); font-weight:650; }
.empty-state p { font-size:15px; line-height:1.8; color:var(--muted); margin:8px 0 0; }
.storage-note { font-size:14px; line-height:1.8; color:var(--muted); margin:14px 0 0; }
.saved-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.saved-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.saved-card small { color:var(--muted); font-size:13px; }
.saved-card .saved-assumption { display:block; color:var(--blue-dark); font-weight:650; }
.saved-card h3 { margin:11px 0; font-size:17px; line-height:1.8; font-weight:650; color:var(--ink); }
.saved-card p { color:var(--ink); font-size:24px; font-weight:750; line-height:1.5; overflow-wrap:anywhere; }
.saved-card-actions { display:flex; gap:8px; align-items:center; }
.saved-card-actions button { min-height:44px; padding:8px 13px; border:1px solid #b9c6d8; border-radius:6px; color:var(--blue-dark); background:#fff; font-size:14px; font-weight:600; }
.saved-card-actions button:last-child { border-color:transparent; margin-left:auto; color:var(--muted); }
.tools-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.tool { display:flex; align-items:flex-start; gap:12px; padding:21px 18px; border:1px solid var(--line); border-radius:10px; background:#fff; min-width:0; }
.tool:hover { border-color:var(--blue); }
.tool-icon { display:grid; place-items:center; width:35px; height:37px; font-size:24px; border-radius:8px; flex-shrink:0; }
.tool>div { min-width:0; }
.tool h3 { font-size:16px; font-weight:700; color:var(--ink); line-height:1.65; margin:0; word-break:keep-all; }
.tool p { font-size:14px; color:var(--muted); line-height:1.8; margin:6px 0 0; word-break:keep-all; }
.tool>span:last-child { margin-left:auto; color:var(--blue); font-size:16px; }
.method { margin-top:35px; padding:9px 0; border-top:1px solid var(--line); }
.method summary { display:flex; align-items:center; justify-content:space-between; min-height:48px; font-size:15px; font-weight:650; color:var(--muted); list-style:none; cursor:pointer; }
.method p { max-width:970px; font-size:15px; color:var(--muted); line-height:1.9; }
.error { padding:13px; border:1px solid #e6b1b7; border-radius:7px; background:#fff; color:var(--red); font-size:15px; line-height:1.8; }
footer { max-width:1100px; margin:24px auto 0; padding:28px 0 34px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-brand { color:var(--ink); font-size:21px; font-weight:850; letter-spacing:-.03em; }
footer>div>p { font-size:14px; line-height:1.8; color:var(--muted); margin:9px 0 0; }
footer nav { display:flex; gap:21px; align-items:center; flex-wrap:wrap; }
footer nav a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; color:var(--muted); }
footer .legal { width:100%; margin:0; color:var(--muted); font-size:13px; line-height:1.9; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); max-width:calc(100% - 30px); width:max-content; padding:15px 20px; background:var(--ink); color:#fff; border-radius:9px; box-shadow:0 8px 32px #14213920; font-size:15px; line-height:1.8; z-index:40; }
dialog { width:calc(100% - 28px); max-width:510px; max-height:92vh; overflow:auto; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:15px; padding:26px; box-shadow:0 25px 90px #14213930; }
dialog::backdrop { background:#14213966; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.dialog-heading .section-kicker { display:none; }
.dialog-heading h2,dialog>h2 { font-size:27px; font-weight:750; letter-spacing:-.04em; line-height:1.5; margin:0; }
.close-button { min-height:44px; min-width:44px; font-size:30px; color:var(--muted); border:0; background:#fff; }
dialog>p { color:var(--muted); font-size:15px; line-height:1.8; }
#share-canvas { display:block; width:100%; max-width:300px; height:auto; margin:18px auto; border:1px solid #bdc9db; border-radius:10px; }
.share-option { display:flex; align-items:flex-start; gap:10px; font-size:16px; font-weight:600; color:var(--ink); line-height:1.7; margin:18px 0; }
.share-option input { width:20px; height:20px; accent-color:var(--blue); margin:3px 0 0; flex-shrink:0; }
.share-option small { display:block; color:var(--muted); font-size:13px; font-weight:400; line-height:1.8; margin-top:4px; }
.share-actions { display:flex; flex-wrap:wrap; gap:8px; }
.share-actions button { flex:1; padding-left:10px; padding-right:10px; font-size:14px; }
#share-link { width:100%; margin-top:16px; padding:12px; border:1px solid #9bacc5; border-radius:7px; background:#fff; color:var(--ink); font-size:15px; }
.share-footnote { font-size:13px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:22px; }
.noscript { position:fixed; bottom:0; width:100%; padding:15px; background:#fff; border-top:2px solid var(--blue); font-size:15px; text-align:center; }
@media(max-width:1050px) {
  .calculator-layout { grid-template-columns:44% minmax(0,1fr); gap:18px; }
  .input-card,.result-card { padding:23px; }
  .presets button { font-size:13px; }
  .main-number { font-size:43px; }
  .learning-grid { grid-template-columns:1fr; }
  .learning-grid summary { min-height:68px; }
  .tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  footer { margin-left:30px; margin-right:30px; }
}
@media(min-width:901px) {
  html[lang=ko] .hero h1 br { display:none; }
  html[lang=ko] .hero h1>span { margin-left:.2em; }
}
@media(min-width:901px) and (max-width:1100px) {
  .custom-rate { flex-basis:100%; justify-content:space-between; }
}
@media(max-width:900px) {
  .calculator-layout { grid-template-columns:minmax(0,1fr); }
  .input-card,.result-card { padding:25px; }
  .hero { padding-top:28px; }
  .header-nav { gap:18px; }
  .hero-description { font-size:16px; }
  .result-top { font-size:16px; }
  .main-number { font-size:48px; }
  .chart-wrap { max-width:600px; margin:20px auto 0; }
  .result-summary strong { font-size:24px; }
  .view-result-button { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:48px; margin:0 0 16px; border:1px solid var(--blue); border-radius:7px; background:var(--blue); color:#fff; font-size:16px; font-weight:700; }
  .view-result-button svg { transform:rotate(90deg); }
  .saved-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .site-header { padding:17px 18px; gap:12px; }
  .brand { font-size:21px; gap:9px; }
  .brand-mark { width:33px; height:36px; font-size:24px; border-radius:7px; }
  .brand small { font-size:12px; margin-top:4px; }
  .header-nav { gap:11px; }
  .header-nav>a:nth-child(2),.nav-caption { display:none; }
  .header-nav>a { gap:4px; }
  .languages a { width:34px; min-height:38px; font-size:12px; }
  main { padding:0 18px; }
  .hero { padding:27px 0 23px; }
  h1 { font-size:33px; }
  .eyebrow { font-size:13px; margin-bottom:11px; }
  .hero-description { font-size:16px; line-height:1.8; margin-top:12px; }
  .mode-tabs { gap:6px; margin-bottom:16px; }
  .mode-tabs button { flex:1; padding:9px 6px; min-height:46px; font-size:15px; }
  .mode-tabs svg { display:none; }
  .input-card,.result-card { padding:22px; border-radius:11px; }
  .input-card-top { margin-bottom:15px; }
  .input-card h2 { font-size:22px; margin-bottom:21px; }
  .input-label,.second-question label { font-size:16px; }
  .currency-label { font-size:13px; }
  .amount-input { padding:8px 10px; gap:7px; }
  .amount-input input { height:45px; font-size:32px; }
  .amount-input>span:first-child { font-size:22px; }
  .presets { gap:6px; }
  .presets button { font-size:13px; padding:7px 3px; min-height:44px; }
  .input-hint { font-size:14px; }
  .second-question { margin-top:24px; }
  .second-question strong { font-size:24px; }
  .period-presets button { font-size:13px; }
  .input-bottom { font-size:13px; line-height:1.7; }
  .result-card { border-top:4px solid var(--blue); }
  .result-top { font-size:15px; }
  .example-label { font-size:12px; }
  .result-heading { font-size:16px; margin-top:20px; }
  .main-number { font-size:40px; }
  .main-number small { font-size:16px; }
  .result-context { font-size:15px; }
  .result-summary { grid-template-columns:minmax(0,1fr); gap:10px; }
  .result-summary>div { font-size:14px; }
  .result-summary strong { font-size:21px; }
  .rate-selector { font-size:16px; }
  .custom-rate { flex-basis:100%; justify-content:space-between; }
  .result-note { font-size:14px; }
  .save-button,.share-button { font-size:15px; padding:11px 9px; min-height:48px; }
  .result-actions { grid-template-columns:minmax(0,1fr); }
  .friendly-section,.saved-section,.tools-section { margin-top:36px; }
  .section-heading h2,.section-heading-row h2 { font-size:24px; }
  .section-heading-row { flex-wrap:wrap; gap:8px; margin-bottom:17px; }
  .section-heading p,.section-heading-row p { font-size:15px; }
  .learning-grid { gap:10px; }
  .learning-grid summary { font-size:16px; padding:16px; }
  .saved-grid { grid-template-columns:minmax(0,1fr); }
  .tools-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .tool { padding:19px 16px; }
  .tool h3 { font-size:17px; }
  .tool p { font-size:15px; }
  .method p { font-size:14px; }
  footer { margin:24px 18px 0; padding-top:24px; gap:15px; }
  footer nav { gap:19px; }
  footer nav a { font-size:14px; }
  footer .legal { font-size:13px; }
  dialog { padding:22px; }
  .dialog-heading h2 { font-size:25px; }
  #share-canvas { max-width:270px; }
  .share-actions button { font-size:14px; min-height:46px; }
}
@media(max-width:360px) {
  .result-summary { grid-template-columns:minmax(0,1fr); }
  .site-header { padding:15px 12px; gap:8px; }
  .brand { font-size:18px; gap:7px; }
  .brand small { font-size:11px; }
  .brand-mark { width:30px; height:33px; font-size:22px; }
  .header-nav { gap:7px; }
  .languages a { width:30px; }
  main { padding:0 12px; }
  h1 { font-size:30px; }
  .input-card,.result-card { padding:19px; }
  .section-kicker,.currency-label { font-size:12px; }
  .input-card-top { gap:8px; }
  .presets button { font-size:12px; }
  .amount-input input { font-size:29px; }
  .main-number { font-size:35px; }
  .result-summary strong { font-size:19px; }
  .save-button,.share-button { gap:5px; font-size:14px; }
  footer { margin-left:12px; margin-right:12px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }
