/* Anuphan is self-hosted in Thai and Latin subsets to keep first-load font transfer small. */
@font-face {
  font-family: "Anuphan";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/anuphan-thai-variable.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Anuphan";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/anuphan-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f7f8f5;
  --surface: #fff;
  --surface-2: #fafbf8;
  --text: #17202a;
  --muted: #66706b;
  --line: #e3e8e4;
  --brand: #0f8f7a;
  --brand-2: #08705f;
  --brand-soft: #e8f5f1;
  --accent: #f4a62a;
  --shadow: 0 22px 52px rgba(27, 72, 61, .11);
  --shadow-sm: 0 9px 28px rgba(27, 72, 61, .07);
  --radius: 22px;
  --max: 1224px;
  --font-sans: "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, ui-sans-serif, system-ui, sans-serif;
  --font-display: "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, ui-sans-serif, sans-serif;
  --font-numeric: "Segoe UI", Tahoma, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  background: radial-gradient(circle at 8% 2%, #fff9ec 0, transparent 25%), radial-gradient(circle at 91% 5%, #e5f3e9 0, transparent 24%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #52c4ae; outline-offset: 3px; }
.container { width: min(calc(100% - 32px), var(--max)); margin: auto; }
.hidden, [hidden] { display: none !important; }
.visual-fill { fill: currentColor; stroke: none; }
.visual-soft { fill: currentColor; stroke: none; opacity: .17; }
.visual-paper { fill: #fff; stroke: none; opacity: .96; }
.visual-line, .visual-line-light { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visual-line-light { stroke: #fff; }
.tool-visual, .benefit-visual { display: block; overflow: visible; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(227, 232, 228, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}
.nav { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-leaf-main { fill: #0f8f7a; }
.brand-leaf-side { fill: #43b86b; }
.brand-stem { fill: none; stroke: #08705f; stroke-width: 1.7; stroke-linecap: round; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.brand-copy small { margin-top: 4px; color: #75847d; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links a { padding: 9px 12px; border-radius: 999px; color: #3f4b46; font-size: 14px; font-weight: 600; }
.nav-links a { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-2); transform: translateY(-1px); }
.nav-cta { min-width: 136px; background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; box-shadow: 0 9px 20px rgba(15, 143, 122, .2); color: #fff !important; text-align: center; }
.nav-cta span { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.nav-cta:hover span { transform: translateX(3px); }
.menu-btn { display: none; margin-left: auto; padding: 9px 12px; border: 0; border-radius: 11px; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 24px 0 14px; background: #fbf8ee; }
.hero::before { position: absolute; inset: 0; z-index: -3; background: radial-gradient(circle at 18% 30%, rgba(255, 251, 239, .96) 0 24%, transparent 47%), radial-gradient(circle at 82% 42%, rgba(214, 239, 221, .92) 0 20%, transparent 53%), linear-gradient(112deg, #fffaf0 0%, #f8f7ed 43%, #e7f3e9 100%); content: ""; }
.hero::after { position: absolute; right: -8%; bottom: -48%; z-index: -2; width: 72%; height: 88%; border-radius: 52% 48% 0 0; background: linear-gradient(135deg, rgba(187, 225, 197, .24), rgba(231, 244, 232, .58)); content: ""; transform: rotate(-8deg); pointer-events: none; }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero-orb-one { top: -170px; right: 13%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(75, 170, 103, .14), rgba(75, 170, 103, 0) 68%); }
.hero-orb-two { bottom: -260px; left: -8%; width: 540px; height: 540px; background: radial-gradient(circle, rgba(244, 166, 42, .15), rgba(244, 166, 42, 0) 68%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(520px, .98fr); gap: 10px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #c3e4d7; border-radius: 999px; background: rgba(229, 246, 238, .9); color: #08705f; font-size: 13px; font-weight: 600; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 60% 20% 60% 20%; background: #28a878; transform: rotate(-25deg); }
.hero h1 { max-width: 670px; margin: 14px 0 10px; font-family: var(--font-display); font-size: clamp(44px, 4.1vw, 56px); font-weight: 700; line-height: 1.11; letter-spacing: 0; text-wrap: balance; }
.hero h1 span { position: relative; color: var(--brand-2); }
.hero h1 span::after { position: absolute; bottom: -3px; left: 15%; width: 132px; height: 6px; border-radius: 99% 45% 80% 40%; background: var(--accent); content: ""; transform: rotate(-3deg); }
.hero p { max-width: 625px; margin: 0; color: #53615b; font-size: 16px; font-weight: 400; line-height: 1.67; }
.search-shell { position: relative; max-width: 625px; margin: 20px 0 0; }
.search-shell input { width: 100%; min-height: 56px; padding: 14px 148px 14px 52px; border: 1px solid #c8d8d0; border-radius: 17px; outline: none; background: rgba(255, 255, 255, .98); box-shadow: 0 12px 26px rgba(33, 80, 67, .1), inset 0 1px 0 #fff; font-size: 15px; font-weight: 400; transition: border-color .18s ease, box-shadow .18s ease; }
.search-shell input::-webkit-search-cancel-button { display: none; }
.search-shell input:focus { border-color: #50af9d; box-shadow: 0 0 0 4px #e8f5f1, var(--shadow); }
.search-icon { position: absolute; top: 50%; left: 19px; z-index: 1; display: grid; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.search-icon-svg { width: 22px; height: 22px; }
.search-submit { position: absolute; top: 50%; right: 8px; z-index: 2; min-width: 86px; transform: translateY(-50%); padding: 9px 13px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 7px 16px rgba(15, 143, 122, .2); color: #fff; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; }
.search-submit:hover { filter: brightness(.98); }
.search-clear { position: absolute; top: 50%; right: 101px; z-index: 2; display: grid; width: 32px; height: 32px; padding: 0; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: #eef3ef; color: #53645d; font-size: 20px; line-height: 1; cursor: pointer; }
.search-clear:hover { background: #dfeae4; color: var(--brand-2); }
.search-status { max-width: 680px; margin: 8px 0 0; color: #356b5e; font-size: 13px; font-weight: 700; }
.quick-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 11px; color: var(--muted); font-size: 12px; }
.quick-links a { padding: 4px 10px; border: 1px solid #d4e2da; border-radius: 999px; background: rgba(255, 255, 255, .82); color: #34443d; font-weight: 600; }
.quick-links a:hover { border-color: #80c7b6; background: #fff; color: var(--brand-2); }
.hero-visual { position: relative; min-height: 372px; isolation: isolate; }
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-shape-one { right: 0; bottom: 4px; width: 305px; height: 305px; background: rgba(207, 233, 211, .56); }
.hero-shape-two { right: 45px; bottom: -34px; width: 410px; height: 135px; border-radius: 50% 50% 10% 10%; background: rgba(255, 246, 226, .7); transform: rotate(-5deg); }
.helper-frame { position: absolute; right: -28px; bottom: -33px; z-index: 2; width: 260px; height: 340px; overflow: visible; }
.helper-halo { position: absolute; inset: 42px -18px 4px 12px; border-radius: 50% 50% 42% 48%; background: radial-gradient(circle at 48% 34%, rgba(255,255,255,.9), rgba(210,235,216,.38) 65%, transparent 68%); }
.hero-helper-image { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 18px rgba(41, 78, 61, .12)); }
.hero-helper-image.is-placeholder { opacity: .96; }
.helper-frame.is-real { right: clamp(-50px, -3vw, -32px); bottom: -14px; z-index: 3; width: clamp(530px, 43vw, 610px); height: auto; aspect-ratio: 1671 / 941; pointer-events: none; }
.helper-frame.is-real .helper-halo { display: none; }
.helper-frame.is-real .hero-helper-image { height: auto; object-position: right bottom; filter: drop-shadow(0 18px 22px rgba(41, 78, 61, .13)); }
.hero-visual.has-real-helper .hero-note, .hero-visual.has-real-helper .hero-callout, .hero-visual.has-real-helper .floating-leaf { display: none; }
.preview-card { position: absolute; z-index: 4; width: clamp(176px, 14.5vw, 196px); padding: 10px; border: 1px solid rgba(216, 228, 219, .94); border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 12px 26px rgba(38, 74, 62, .11), inset 0 1px 0 #fff; }
.preview-vat { top: 2%; left: 0; transform: rotate(-3.2deg); }
.preview-wht { top: -2%; right: 27%; z-index: 5; width: clamp(158px, 12.5vw, 170px); transform: rotate(3deg); }
.preview-loan { top: 39%; left: 25%; z-index: 6; width: clamp(160px, 13vw, 176px); transform: rotate(-2deg); }
.preview-title { display: flex; gap: 7px; align-items: center; margin-bottom: 6px; }
.preview-title strong { font-size: 12px; font-weight: 700; }
.preview-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.preview-icon-svg { width: 18px; height: 18px; }
.preview-card dl { display: grid; gap: 1px; margin: 0; }
.preview-card dl div { display: flex; justify-content: space-between; gap: 9px; padding: 1px 2px; color: #68736e; font-size: 9px; }
.preview-card dt, .preview-card dd { margin: 0; }
.preview-card dd { color: #34443d; font-family: var(--font-numeric); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.preview-card .preview-total { margin-top: 3px; padding: 5px 6px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.preview-card .preview-total dd { color: var(--accent); font-size: 12px; font-weight: 700; }
.hero-note { position: absolute; top: 179px; left: -12px; z-index: 3; display: grid; grid-template-columns: 32px 1fr; width: 174px; padding: 9px 10px; border: 1px solid #e3e7d9; border-radius: 14px; background: rgba(255, 252, 241, .96); box-shadow: var(--shadow-sm); transform: rotate(-2deg); }
.hero-note > span { display: grid; grid-row: 1 / 3; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #fff0c7; color: #d6840c; }
.hero-note strong, .hero-note small { display: block; }
.hero-note strong { font-size: 11px; }
.hero-note small { color: var(--muted); font-size: 9px; }
.hero-callout { position: absolute; top: 180px; right: -4px; z-index: 7; color: #35645b; font-family: "Segoe Print", "Comic Sans MS", cursive; font-size: 12px; line-height: 1.35; text-align: center; transform: rotate(-4deg); }
.hero-callout svg { display: block; width: 65px; height: 45px; margin: -3px 0 0 4px; }
.hero-callout path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.floating-leaf { position: absolute; z-index: 7; width: 22px; height: 11px; border-radius: 100% 0 100% 0; background: #79b94c; opacity: .9; }
.leaf-one { top: 5px; right: 26px; transform: rotate(-24deg); }
.leaf-two { top: 170px; left: 38px; transform: rotate(22deg) scale(.72); }
.leaf-three { right: 112px; bottom: 3px; transform: rotate(-42deg) scale(.62); }
.hero-spark { display: grid; place-items: center; color: currentColor; }
.hero-spark-svg { width: 21px; height: 21px; }

.trust-strip { padding: 9px 0 14px; border: 0; background: linear-gradient(90deg, #fbf8ee, #edf6ef); }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid #dce9df; border-radius: 22px; background: rgba(239, 248, 241, .9); box-shadow: 0 12px 28px rgba(47, 87, 67, .05); }
.highlight-grid > div { display: flex; gap: 13px; align-items: center; min-height: 82px; padding: 10px 20px; border-right: 1px solid #d7e5da; }
.highlight-grid > div:last-child { border-right: 0; }
.highlight-grid p { margin: 0; line-height: 1.35; }
.highlight-grid strong, .highlight-grid small { display: block; }
.highlight-grid strong { color: #143f35; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.highlight-grid small { margin-top: 2px; color: #66766f; font-size: 10px; font-weight: 400; }
.trust-icon { position: relative; display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(8, 112, 95, .06); border-radius: 18px; background: #cdf0df; color: #08705f; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 7px 14px rgba(23, 91, 69, .08); }
.trust-icon::after { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.78); content: ""; }
.benefit-free .trust-icon { background: #ffe8b6; color: #e28610; }
.benefit-account .trust-icon { background: #d8f4e7; color: #087761; }
.benefit-updates .trust-icon { background: #ccefe0; color: #08705f; }
.benefit-tools .trust-icon { border-radius: 16px 21px 17px 20px; }
.benefit-free .trust-icon { border-radius: 50% 44% 50% 46%; }
.benefit-account .trust-icon { border-radius: 20px; }
.benefit-updates .trust-icon { border-radius: 18px 18px 22px 16px; }
.trust-icon-svg { width: 29px; height: 29px; }

.section { padding: 32px 0; }
.section-tools { padding-top: 24px; }
.section-workspace { padding-top: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.24; letter-spacing: 0; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-weight: 400; }
.section-kicker { display: block; margin-bottom: 5px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.section-tools > .container > .section-head .section-kicker::before { display: inline-block; width: 12px; height: 5px; margin-right: 6px; border-radius: 100% 0 100% 0; background: #56ad62; content: ""; transform: rotate(-18deg); }
.section-crown { display: inline-block; width: 31px; height: 24px; margin: 0 0 -2px 5px; overflow: visible; transform: rotate(5deg); }
.crown-fill { fill: #f7b62e; }
.crown-shadow { fill: #d78d0f; opacity: .9; }
.crown-jewel { fill: #ffc84f; stroke: #e79c12; stroke-width: 1; }
.crown-highlight { fill: none; stroke: #fff1b7; stroke-width: 2; stroke-linecap: round; opacity: .9; }
.text-link { padding: 8px 12px; border: 1px solid #d5e1da; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--brand-2); font-size: 13px; font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool-card { --accent: var(--brand); --accent-soft: var(--brand-soft); position: relative; display: flex; min-height: 172px; flex-direction: column; padding: 16px; overflow: hidden; border: 1px solid rgba(213, 222, 216, .88); border-radius: 19px; background: rgba(255, 255, 255, .98); box-shadow: 0 1px 1px rgba(20, 53, 43, .02), 0 8px 24px rgba(27, 72, 61, .055); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tool-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); opacity: .72; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 28%, #d9e3dc); box-shadow: 0 17px 34px rgba(27, 72, 61, .105); }
.tool-card:hover::before, .tool-card:focus-visible::before { transform: scaleX(1); }
.category-tax { --accent: #109b72; --accent-soft: #dff6ec; }
.category-business { --accent: #d98712; --accent-soft: #fff1d6; }
.category-finance { --accent: #168c86; --accent-soft: #ddf5f2; }
.category-work { --accent: #e2655c; --accent-soft: #ffe7e6; }
.category-document { --accent: #7459c7; --accent-soft: #eee8ff; }
.tool-vat-calculator { --accent: #0c9b70; --accent-soft: #d9f5e8; }
.tool-reverse-vat { --accent: #ed7b2d; --accent-soft: #fff0d7; }
.tool-withholding-tax { --accent: #eb5668; --accent-soft: #ffe3e8; }
.tool-vat-wht { --accent: #7651d6; --accent-soft: #ece3ff; }
.tool-net-received { --accent: #138c69; --accent-soft: #ddf3e8; }
.tool-profit-calculator { --accent: #2d78db; --accent-soft: #e1edff; }
.tool-margin-calculator { --accent: #dc9518; --accent-soft: #fff0cf; }
.tool-loan-payment, .tool-car-loan { --accent: #117f7c; --accent-soft: #daf3f1; }
.tool-markup-calculator { --accent: #d8733d; --accent-soft: #ffeadf; }
.tool-break-even { --accent: #168f83; --accent-soft: #dcf3ef; }
.tool-discount-calculator { --accent: #e16858; --accent-soft: #ffe5e1; }
.tool-percentage-calculator { --accent: #7257c7; --accent-soft: #eee9ff; }
.tool-commission-calculator { --accent: #0e9170; --accent-soft: #ddf4eb; }
.tool-unit-price { --accent: #397bc6; --accent-soft: #e3effc; }
.tool-simple-interest { --accent: #218d6d; --accent-soft: #e0f3ea; }
.tool-compound-interest { --accent: #168b87; --accent-soft: #dcf3f1; }
.tool-savings-goal { --accent: #3d78bd; --accent-soft: #e3eefb; }
.tool-overtime-calculator { --accent: #df655f; --accent-soft: #ffe5e4; }
.tool-invoice-generator { --accent: #7459c7; --accent-soft: #eee8ff; }
.tool-quotation-generator { --accent: #526fc2; --accent-soft: #e8edff; }
.tool-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tool-icon { position: relative; display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 16px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.82); transition: transform .2s ease, background-color .2s ease; }
.tool-icon::after { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.85); content: ""; }
.tool-icon-svg { width: 30px; height: 30px; }
.tool-arrow { display: grid; width: 25px; height: 30px; place-items: center; color: #6e8790; transition: transform .2s ease, color .2s ease; }
.tool-arrow svg { width: 18px; height: 18px; }
.tool-arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-card:hover .tool-icon, .tool-card:focus-visible .tool-icon { transform: rotate(-3deg) scale(1.06); background: color-mix(in srgb, var(--accent-soft) 72%, white); }
.tool-card:hover .tool-arrow, .tool-card:focus-visible .tool-arrow { transform: translateX(3px); color: var(--accent); }
.tool-card h3 { margin: 12px 0 4px; font-size: 17px; font-weight: 700; line-height: 1.38; letter-spacing: 0; }
.tool-card p { margin: 0; color: #64716b; font-size: 14px; font-weight: 400; line-height: 1.55; }
.tool-go { margin-top: auto; padding-top: 16px; color: var(--accent); font-size: 13px; font-weight: 700; }
.featured-grid { margin-bottom: 16px; }
.featured-card { display: grid; min-height: 108px; grid-template-columns: 52px minmax(0, 1fr) 24px; grid-template-rows: auto 1fr; column-gap: 11px; padding: 13px 14px; }
.featured-card .tool-card-top { display: contents; }
.featured-card .tool-icon { grid-column: 1; grid-row: 1 / 3; align-self: start; }
.featured-card .tool-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.featured-card h3 { grid-column: 2; grid-row: 1; margin: 1px 0 3px; font-size: 16px; line-height: 1.31; }
.featured-card p { grid-column: 2; grid-row: 2; font-size: 12px; line-height: 1.42; }
.featured-card .tool-go { display: none; }
.home-updates { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr) auto; align-items: stretch; margin-top: 17px; overflow: hidden; border: 1px solid #dce7ed; border-radius: 16px; background: linear-gradient(90deg, #f4f8fd, #fbfcfd); box-shadow: 0 8px 22px rgba(42, 72, 93, .05); }
.home-updates-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.home-updates-head h3, .home-updates-head p { margin: 0; }
.home-updates-head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.home-updates-head p { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.home-update-list { display: contents; }
.home-updates-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #e4efff; color: #3e7fdf; }
.home-update-icon-svg { width: 18px; height: 18px; }
.home-update-item { min-width: 0; padding: 11px 13px; border-left: 1px solid #e2e9ee; }
.home-update-item > div { display: flex; gap: 6px; align-items: center; margin-bottom: 3px; color: #7a8791; font-size: 9px; }
.home-update-item span { padding: 2px 6px; border-radius: 999px; background: #e6f4ed; color: #14745d; font-weight: 700; }
.home-update-item.is-latest span { background: #d8f2e7; color: #08705f; }
.home-update-item b { display: -webkit-box; overflow: hidden; color: #32454d; font-size: 11px; font-weight: 600; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.latest-update.home-updates-all { position: static; display: flex; width: auto; justify-content: center; align-items: center; padding: 12px 15px; border: 0; border-left: 1px solid #e2e9ee; border-radius: 0; background: transparent; box-shadow: none; color: var(--brand-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.latest-update.home-updates-all:hover { background: #edf6f2; transform: none; }
.all-tools-head { margin: 42px 0 18px; scroll-margin-top: 96px; }
.all-tools-head h2 { margin: 0; font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.category-block { margin-top: 34px; scroll-margin-top: 92px; }
.category-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.category-label b { font-size: 20px; font-weight: 700; }
.category-label span { color: var(--muted); font-size: 14px; }
.empty-search { display: none; padding: 34px; color: var(--muted); text-align: center; }
.cta-panel { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; margin: 52px 0 30px; padding: 34px; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 88% 0, rgba(244, 166, 42, .2), transparent 34%), linear-gradient(135deg, #123d35, #08705f); color: #fff; box-shadow: 0 24px 58px rgba(8, 86, 72, .18); }
.cta-eyebrow { display: block; margin-bottom: 8px; color: #9ee5d6; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.cta-panel h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.16; letter-spacing: 0; }
.cta-panel p { margin: 0; color: #d8f2eb; }
.metric-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: min(100%, 360px); justify-self: end; }
.metric-chip { padding: 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .12); }
.metric-chip strong { display: block; font-family: var(--font-numeric); font-size: 20px; font-variant-numeric: tabular-nums; }
.metric-chip span { color: #d8f2eb; font-size: 12px; }

.breadcrumbs { padding: 22px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--brand-2); }
.tool-hero { padding: 22px 0 12px; }
.tool-hero-inner { display: flex; align-items: flex-start; justify-content: flex-start; gap: 18px; }
.page-tool-icon { --accent: var(--brand); --accent-soft: var(--brand-soft); display: grid; width: 58px; height: 58px; flex: 0 0 auto; margin-top: 4px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 18px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 9px 22px color-mix(in srgb, var(--accent) 10%, transparent); }
.page-tool-icon-svg { width: 36px; height: 36px; }
.tool-hero h1 { margin: 7px 0; font-family: var(--font-display); font-size: clamp(33px, 4.4vw, 46px); font-weight: 700; line-height: 1.16; letter-spacing: 0; }
.tool-hero p { max-width: 740px; margin: 0; color: var(--muted); font-size: 17px; }
.mini-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-size: 12px; font-weight: 700; }
.reviewed { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.calculator-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 20px; align-items: stretch; margin: 20px 0 24px; }
.calc-card, .result-card, .content-card, .related-card, .doc-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.calc-card { padding: 24px; }
.calc-card h2, .result-card h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.fields { display: grid; gap: 15px; }
.field label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #d0d5dd; border-radius: 13px; outline: none; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #50af9d; box-shadow: 0 0 0 4px var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: #f04438; box-shadow: 0 0 0 4px #fef3f2; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.form-error { margin-top: 14px; padding: 11px 13px; border: 1px solid #fecdca; border-radius: 12px; background: #fef3f2; color: #b42318; font-size: 13px; }
.calc-btn { width: 100%; margin-top: 18px; padding: 14px 18px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px rgba(15, 143, 122, .22); color: #fff; font-weight: 700; cursor: pointer; }
.calc-btn:hover { filter: brightness(.98); }
.result-card { position: relative; padding: 24px; overflow: hidden; border-color: #175449; background: linear-gradient(150deg, #172b27 0%, #0c5146 58%, #0f8f7a 125%); color: #fff; box-shadow: 0 16px 38px rgba(11, 83, 70, .16); }
.result-card::after { position: absolute; top: -80px; right: -80px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255, 255, 255, .07); content: ""; }
.result-kicker { color: #afe7db; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.result-primary { margin: 10px 0 18px; font-family: var(--font-numeric); font-size: clamp(34px, 5vw, 48px); font-weight: 700; line-height: 1.14; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-row strong, .preview-card dd, .total-row strong, .update-meta time { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
.result-list { position: relative; z-index: 2; display: grid; }
.result-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.result-row span { color: #cbd5e1; }
.result-row strong { text-align: right; }
.result-actions { position: relative; z-index: 2; display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.result-actions button { min-height: 42px; padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 11px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; cursor: pointer; }
.result-actions button:hover { background: rgba(255, 255, 255, .18); }
.result-actions button:disabled { opacity: .45; cursor: not-allowed; }
.result-note { margin-top: 15px; color: #bde9df; font-size: 12px; }

.ad-slot { display: grid; min-height: 116px; max-width: 970px; margin: 24px auto; place-items: center; border: 1px dashed #cbd5e1; border-radius: 16px; background: rgba(255, 255, 255, .55); color: #98a2b3; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.content-card { padding: 30px; }
.content-card h1, .content-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: 0; }
.content-card h3 { margin: 28px 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.content-card p, .content-card li { color: #475467; }
.formula-box, .example-box { margin: 16px 0; padding: 18px; border-radius: 16px; font-weight: 700; }
.formula-box { border: 1px solid #eaecf0; background: var(--surface-2); color: #344054; }
.example-box { border: 1px solid #b8ded2; background: #eef9f5; color: #136553; }
.example-box p { margin: 6px 0 0; font-weight: 400; }
.note-list { padding-left: 20px; }
.faq { border-top: 1px solid #eaecf0; }
.faq details { padding: 14px 0; border-bottom: 1px solid #eaecf0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; }
.source-box { margin-top: 22px; padding: 14px 16px; border: 1px solid #b8ded2; border-radius: 14px; background: #eef9f5; font-size: 13px; }
.source-box a { color: var(--brand-2); font-weight: 700; }
.source-box .reviewed { margin-top: 5px; }
.sidebar { position: sticky; top: 94px; }
.related-card { padding: 18px; }
.related-card h3 { margin: 0 0 12px; }
.related-link { display: block; padding: 12px; border: 1px solid transparent; border-radius: 12px; }
.related-link:hover { border-color: #eaecf0; background: var(--surface-2); }
.related-link b { display: block; font-size: 14px; }
.related-link span { display: block; color: var(--muted); font-size: 12px; }

.legal-page { padding: 38px 0 70px; }
.legal-page .content-card { max-width: 850px; margin: auto; }
.inline-button { display: inline-block; padding: 10px 14px; }
.info-hero { padding: 58px 0 28px; }
.info-hero-inner { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.info-hero h1 { max-width: 760px; margin: 6px 0 10px; font-family: var(--font-display); font-size: clamp(40px, 6vw, 62px); font-weight: 700; line-height: 1.12; letter-spacing: 0; }
.info-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; }
.info-hero-mark { display: grid; width: 84px; height: 84px; flex: 0 0 auto; place-items: center; border: 1px solid #cbe5dc; border-radius: 26px; background: linear-gradient(145deg, #fff, var(--brand-soft)); box-shadow: var(--shadow); color: var(--brand); }
.info-hero-icon { width: 40px; height: 40px; }
.updates-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 52px; align-items: start; }
.updates-intro { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-sm); }
.updates-intro strong { display: block; color: var(--brand-2); font-family: var(--font-numeric); font-size: 42px; line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.updates-intro span { display: block; margin-top: 8px; font-weight: 700; }
.updates-intro p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.update-list { position: relative; }
.update-list::before { position: absolute; top: 14px; bottom: 20px; left: 7px; width: 1px; background: #c8dfd7; content: ""; }
.update-entry { position: relative; display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 24px; padding: 0 0 38px 34px; }
.update-entry::before { position: absolute; top: 8px; left: 0; width: 15px; height: 15px; border: 4px solid var(--bg); border-radius: 50%; background: #8eb8aa; box-shadow: 0 0 0 1px #b7d4ca; content: ""; }
.update-entry.update-latest::before { background: var(--brand); box-shadow: 0 0 0 5px #dcefe9; }
.update-meta time { display: block; color: #344054; font-size: 13px; font-weight: 700; }
.update-meta span { display: inline-flex; margin-top: 7px; padding: 4px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-size: 11px; font-weight: 700; }
.update-content { padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.update-latest .update-content { border-color: #b8dacf; box-shadow: 0 16px 38px rgba(15, 143, 122, .09); }
.update-content h2 { margin: 0 0 7px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0; }
.update-content p { margin: 0; color: var(--muted); }
.update-content ul { margin: 16px 0 0; padding-left: 20px; color: #475467; }
.update-content li + li { margin-top: 7px; }
.feedback-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 24px; align-items: start; }
.feedback-aside, .feedback-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.feedback-aside { padding: 24px; }
.feedback-aside h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.feedback-type-list { display: grid; gap: 10px; }
.feedback-type-list div { padding: 12px 14px; border-radius: 13px; background: #f6f8fb; }
.feedback-type-list b, .feedback-type-list span { display: block; }
.feedback-type-list b { font-size: 14px; }
.feedback-type-list span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.privacy-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #667085; font-size: 12px; }
.feedback-card { padding: 26px; }
.feedback-status { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; padding: 13px 15px; border-radius: 14px; font-size: 13px; }
.feedback-status span { color: #475467; }
.status-ready { border: 1px solid #abefc6; background: #ecfdf3; color: #067647; }
.status-pending { border: 1px solid #fedf89; background: #fffaeb; color: #93370d; }
.external-form-link { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #b8ded2; border-radius: 13px; background: #eef9f5; color: #136553; font-size: 13px; font-weight: 700; }
.feedback-form { display: grid; gap: 16px; }
.feedback-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-submit { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px rgba(15, 143, 122, .2); color: #fff; font-weight: 700; cursor: pointer; }
.feedback-submit:hover { filter: brightness(.98); transform: translateY(-1px); }
.feedback-response { min-height: 1.5em; margin: -4px 0 0; color: var(--brand-2); font-size: 13px; }
.feedback-copy-fallback label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.feedback-copy-fallback textarea { width: 100%; padding: 13px 14px; border: 1px solid #50af9d; border-radius: 13px; background: #f5fbf8; color: var(--text); resize: vertical; }
.site-footer { position: relative; margin-top: 46px; overflow: hidden; border-top: 1px solid #dce7df; background: radial-gradient(circle at 8% 12%, rgba(244, 166, 42, .09), transparent 25%), linear-gradient(110deg, #fbfcf7, #eff7f1); }
.site-footer::before { position: absolute; top: 0; left: 0; width: 210px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent), transparent); content: ""; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 28px; padding: 31px 0 27px; }
.footer-grid h4 { margin: 0 0 8px; color: #234139; font-size: 13px; font-weight: 700; }
.footer-grid a { display: block; padding: 3px 0; color: #65716c; font-size: 13px; }
.footer-grid a:hover { color: var(--brand-2); }
.footer-grid p { max-width: 345px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.footer-grid .footer-feedback { display: inline-flex; padding: 6px 10px; border-radius: 10px; background: #e2f2eb; color: var(--brand-2); font-weight: 700; }
.footer-bottom { padding: 13px 0; border-top: 1px solid #dfe8e2; color: #8b9791; font-size: 11px; }
.cookie-banner { position: fixed; right: 18px; bottom: 18px; left: 18px; z-index: 90; display: none; grid-template-columns: 1fr auto; gap: 16px; align-items: center; max-width: 760px; margin: auto; padding: 18px; border: 1px solid #d0d5dd; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(16, 24, 40, .2); }
.cookie-banner.show { display: grid; }
.cookie-banner p { margin: 0; color: #475467; font-size: 13px; }
.cookie-actions { display: flex; gap: 8px; }
.btn-secondary, .btn-primary { padding: 10px 13px; border: 0; border-radius: 11px; font-weight: 700; cursor: pointer; }
.btn-secondary { background: #f2f4f7; color: #344054; }
.btn-primary { background: var(--brand-2); color: #fff; }

.doc-layout { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); gap: 20px; margin: 22px 0; }
.doc-card { padding: 22px; }
.doc-form { display: grid; gap: 13px; }
.doc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-table-wrap, .preview-table-wrap { max-width: 100%; overflow-x: auto; }
.doc-items { width: 100%; min-width: 490px; margin-top: 12px; border-collapse: collapse; }
.doc-items th, .doc-items td { padding: 9px 7px; border-bottom: 1px solid #eaecf0; font-size: 13px; text-align: left; }
.doc-items input { width: 100%; padding: 8px; border: 1px solid #d0d5dd; border-radius: 9px; }
.item-remove { padding: 7px 9px; border: 0; border-radius: 8px; background: #fee4e2; color: #b42318; cursor: pointer; }
.add-item { margin-top: 10px; padding: 9px 12px; border: 1px solid #b8ded2; border-radius: 10px; background: #eef9f5; color: var(--brand-2); font-weight: 700; cursor: pointer; }
.doc-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
.doc-actions .print-btn { margin-top: 0; }
.doc-preview { min-width: 0; min-height: 780px; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.doc-preview-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--text); }
.document-brand .brand-mark { width: 34px; height: 34px; }
.document-brand .brand-copy strong { font-size: 18px; }
.document-brand .brand-copy small { display: none; }
.doc-preview h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.doc-meta { color: var(--muted); font-size: 13px; text-align: right; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 24px 0; }
.doc-parties small { display: block; margin-bottom: 5px; color: #98a2b3; font-weight: 700; }
.doc-preview [data-seller], .doc-preview [data-customer], .preview-table td { overflow-wrap: anywhere; }
.preview-table { width: 100%; border-collapse: collapse; }
.preview-table th { padding: 10px; background: #eef6f2; color: #24443b; font-size: 12px; text-align: left; }
.preview-table td { padding: 10px; border-bottom: 1px solid #eaecf0; font-size: 13px; }
.totals { width: min(100%, 340px); margin: 18px 0 0 auto; }
.total-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.total-row.invoice-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid #d0d5dd; font-weight: 700; }
.total-row.grand { margin-top: 5px; padding-top: 12px; border-top: 2px solid var(--brand-2); color: var(--brand-2); font-size: 18px; font-weight: 700; }
.print-btn { width: 100%; margin-top: 16px; padding: 13px; border: 0; border-radius: 13px; background: var(--text); color: #fff; font-weight: 700; cursor: pointer; }
.doc-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid #eaecf0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }

@media (min-width: 981px) and (max-width: 1179px) {
  .hero-grid { grid-template-columns: minmax(0, .96fr) minmax(500px, 1.04fr); gap: 4px; }
  .hero-visual { min-height: 360px; }
  .helper-frame.is-real { right: -30px; bottom: -14px; width: clamp(500px, 49vw, 530px); }
  .preview-card { width: 174px; padding: 9px; }
  .preview-wht { top: 0; right: 20%; width: 156px; }
  .preview-loan { top: 39%; left: 31%; width: 148px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, .98fr) minmax(350px, 1.02fr); gap: 4px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 14px; }
  .search-shell { margin-top: 16px; }
  .quick-links { gap: 5px; }
  .quick-links a { padding: 3px 7px; }
  .hero-visual { min-height: 340px; }
  .helper-frame { right: -10px; bottom: -24px; width: 200px; height: 275px; }
  .helper-frame.is-real { right: -14px; bottom: -14px; width: clamp(350px, 48vw, 430px); height: auto; }
  .preview-card { width: 154px; padding: 8px; }
  .preview-wht { top: 0; right: 12%; width: 142px; }
  .preview-loan { top: 39%; left: 0; width: 148px; }
  .preview-title { gap: 5px; margin-bottom: 4px; }
  .preview-title strong { font-size: 11px; }
  .preview-icon { width: 25px; height: 25px; }
  .preview-icon-svg { width: 16px; height: 16px; }
  .preview-card dl div { font-size: 8.5px; }
  .preview-card .preview-total dd { font-size: 11px; }
  .hero-note, .hero-callout { display: none; }
  .home-updates { grid-template-columns: 1.15fr repeat(2, 1fr) auto; }
  .home-update-item:nth-of-type(3) { display: none; }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid > div:nth-child(2) { border-right: 0; }
  .highlight-grid > div:nth-child(-n+2) { border-bottom: 1px solid #dce7df; }
  .highlight-grid > div:first-child, .highlight-grid > div:nth-child(3) { padding-left: 16px; }
  .highlight-grid > div:last-child { padding-right: 16px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout, .doc-layout, .cta-panel, .calculator-wrap, .updates-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .metric-preview { justify-self: start; }
  .updates-intro { position: static; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; }
  .updates-intro p { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 65px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}

@media (max-width: 720px) {
  .nav { height: 64px; }
  .nav-links { position: absolute; top: 65px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .hero { padding: 25px 0 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero p, .search-shell { margin-right: auto; margin-left: auto; }
  .quick-links { justify-content: center; }
  .hero h1 { margin-top: 17px; font-size: 34px; }
  .hero h1 span::after { bottom: -3px; width: 88px; height: 5px; }
  .hero p { font-size: 16px; }
  .hero-visual { display: grid; grid-template-columns: repeat(2, minmax(0, clamp(138px, 39vw, 152px))); justify-content: space-between; gap: 8px; min-height: 0; }
  .hero-shape, .helper-frame, .hero-callout, .floating-leaf { display: none; }
  .hero-visual.has-real-helper .helper-frame.is-real { display: block; right: -6px; bottom: -6px; z-index: 5; width: clamp(150px, 42vw, 168px); height: clamp(132px, 38vw, 152px); overflow: hidden; }
  .hero-visual.has-real-helper .helper-frame.is-real .hero-helper-image { position: absolute; right: -10px; bottom: 0; width: clamp(270px, 72vw, 295px); max-width: none; height: auto; }
  .preview-card { position: relative; inset: auto; width: auto; padding: 8px; border-radius: 12px; transform: none; }
  .preview-vat, .preview-wht, .preview-loan { top: auto; right: auto; left: auto; width: auto; transform: none; }
  .preview-loan { grid-column: 1 / -1; }
  .hero-visual.has-real-helper .preview-loan { width: min(62%, 224px); justify-self: start; }
  .preview-title { margin-bottom: 5px; }
  .preview-title strong { font-size: 11px; }
  .preview-icon { width: 27px; height: 27px; border-radius: 8px; }
  .preview-icon-svg { width: 15px; height: 15px; }
  .preview-card dl { gap: 1px; }
  .preview-card dl div { font-size: 8.5px; }
  .preview-card .preview-total { margin-top: 2px; padding: 4px 5px; }
  .preview-card .preview-total dd { font-size: 12px; }
  .hero-note { display: none; }
  .trust-strip { padding: 7px 0 11px; }
  .highlight-grid { border-radius: 18px; }
  .highlight-grid > div { min-height: 72px; padding: 8px 10px !important; }
  .trust-icon { width: 36px; height: 36px; }
  .trust-icon-svg { width: 19px; height: 19px; }
  .highlight-grid strong { font-size: 13px; }
  .highlight-grid small { font-size: 9px; }
  .search-shell input { min-height: 58px; padding-right: 126px; }
  .search-submit { right: 6px; min-width: 72px; padding: 8px 10px; }
  .search-clear { right: 83px; width: 30px; height: 30px; }
  .search-status { margin-right: auto; margin-left: auto; text-align: center; }
  .quick-links { gap: 7px; }
  .section-tools { padding-top: 25px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 168px; }
  .featured-card { min-height: 116px; }
  .home-updates { grid-template-columns: 1fr; margin-top: 14px; }
  .home-update-item, .latest-update.home-updates-all { border-top: 1px solid #e2e9ee; border-left: 0; }
  .home-update-item:nth-of-type(3) { display: block; }
  .latest-update.home-updates-all { justify-content: flex-start; }
  .tool-hero-inner { gap: 13px; }
  .page-tool-icon { width: 48px; height: 48px; border-radius: 15px; }
  .page-tool-icon-svg { width: 25px; height: 25px; }
  .tool-hero h1 { font-size: 34px; }
  .breadcrumbs { padding-top: 14px; }
  .tool-hero { padding: 20px 0 10px; }
  .tool-hero p { font-size: 15px; line-height: 1.58; }
  .calculator-wrap { gap: 12px; }
  .calc-card, .result-card, .content-card { padding: 20px; }
  .result-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .result-actions button { width: 100%; }
  .article-layout { display: block; }
  .sidebar { margin-top: 14px; }
  .ad-slot { min-height: 90px; margin: 18px 0; }
  .ad-slot.ad-optional { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-end; }
  .doc-grid-2, .doc-parties, .doc-actions { grid-template-columns: 1fr; }
  .doc-preview { min-height: 600px; padding: 20px; overflow: hidden; }
  .doc-preview-head { display: block; }
  .doc-meta { margin-top: 10px; text-align: left; }
  .preview-table { min-width: 620px; }
  .doc-card { padding: 15px; }
  .section-head { display: block; }
  .section-head h2 { font-size: 26px; }
  .section-head .text-link { display: inline-block; margin-top: 10px; }
  .category-label { align-items: flex-start; flex-direction: column; gap: 1px; }
  .all-tools-head { margin-top: 44px; }
  .cta-panel { margin-top: 40px; padding: 24px; }
  .cta-panel h2 { font-size: 29px; }
  .info-hero { padding: 42px 0 18px; }
  .info-hero-mark { display: none; }
  .update-entry { grid-template-columns: 1fr; gap: 10px; padding-left: 28px; }
  .update-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .update-meta time { display: inline; }
  .update-meta span { margin-top: 0; }
  .update-content { padding: 20px; }
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-aside { order: 2; }
  .feedback-card { padding: 20px; }
  .feedback-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { display: none; }
  .hero h1 { font-size: 33px; }
  .quick-links span { width: 100%; }
  .tool-hero-inner { display: block; }
  .page-tool-icon { width: 42px; height: 42px; margin: 0 0 8px; border-radius: 13px; }
  .page-tool-icon-svg { width: 22px; height: 22px; }
  .tool-hero h1 { margin: 5px 0; font-size: 31px; }
  .info-hero h1 { font-size: 38px; }
  .result-primary { font-size: 32px; }
  .result-row { gap: 12px; font-size: 14px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .site-header, .site-footer, .breadcrumbs, .tool-hero, .doc-card, .ad-slot, .cookie-banner, .no-print { display: none !important; }
  .container { width: 100%; max-width: none; }
  .doc-layout { display: block; margin: 0; }
  .doc-preview { min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .preview-table-wrap { overflow: visible; }
  .preview-table { min-width: 0; }
  .section { padding: 0; }
}
