/* DEV24 CALC v4 — premium engineering UI. Loaded after the functional calculator stylesheet. */
:root {
  color-scheme:dark;
  --bg:#080A12;
  --paper:#0E111C;
  --ink:#F5F6FB;
  --ink2:#F5F6FB;
  --muted:#A2A7B8;
  --line:#242838;
  --soft:#0B0E18;
  --acid:#AF68FA;
  --teal:#6375FF;
  --accent:#AF68FA;
  --accent-blue:#6375FF;
  --success:#76E0AF;
  --radius:16px;
  --shadow:none;
  --mono:'JetBrains Mono',SFMono-Regular,Consolas,'Liberation Mono',monospace;
  --gradient:linear-gradient(105deg,#A846F8 0%,#7952FA 46%,#3879F8 100%);
}
* {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:88px}
body {margin:0;background:var(--bg);color:var(--ink);font-family:var(--mono);font-size:13px;line-height:1.78;-webkit-font-smoothing:antialiased;overflow-x:clip}
input,button,select {font-family:var(--mono)}
button,a,input,select { -webkit-tap-highlight-color:transparent }
::selection {background:#7952FA;color:#fff}
a {text-decoration:none;color:inherit}
a:hover {color:inherit}
[hidden] {display:none!important}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {outline:2px solid #AB72FF!important;outline-offset:3px}
.container {max-width:1236px;padding-inline:28px;margin-inline:auto}
.topbar {height:76px;background:rgba(8,10,18,.94);border-bottom:1px solid #1B2030;position:relative;z-index:20;backdrop-filter:blur(16px)}
.topbar-inner {height:100%;display:flex;gap:28px;justify-content:space-between;align-items:center}
.brand {display:flex;align-items:center;gap:9px;flex:0 0 auto;white-space:nowrap}
.brand-mark-img {width:45px;height:36px;object-fit:contain;margin-left:-3px}
.brand-text {font-size:22px;letter-spacing:-.075em;color:#F5F6FB;font-weight:800}
.brand-sep {width:1px;height:25px;background:#44485F;margin:0 11px}
.brand-calc {color:#B96DFD;font-size:19px;font-weight:750;letter-spacing:-.055em}
.top-links {display:flex;align-items:center;gap:30px;margin:0 auto;font-size:12px;font-weight:650;letter-spacing:-.025em}
.top-links a {color:#C8CAD7;transition:color .2s}
.top-links a:hover {color:#BF88FF}
.head-actions {margin:0;display:flex;align-items:center;gap:18px}
.lang {color:#C2C7D8;font-size:12px;font-weight:700}
.lang span {color:#B98AFF}
.mini-cta {display:flex;align-items:center;gap:8px;background:var(--gradient);padding:11px 16px;min-height:44px;color:white;border-radius:9px;font-size:11px;box-shadow:0 0 0 1px rgba(151,118,255,.15) inset;transition:transform .2s,box-shadow .2s}
.mini-cta span {margin:0;color:#fff}
.mini-cta:hover {background:var(--gradient);transform:translateY(-2px);box-shadow:0 6px 20px rgba(123,80,249,.22)}
/* Hero */
.hero.dev-hero {background:#080A12;position:relative;color:var(--ink);overflow:hidden}
.hero.dev-hero:before {content:"";position:absolute;inset:0;pointer-events:none;opacity:.3;background:linear-gradient(#1A1F34 1px,transparent 1px),linear-gradient(90deg,#1A1F34 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,transparent 0%,#000 40%,transparent 100%)}
.hero.dev-hero:after {content:"";position:absolute;pointer-events:none;width:570px;height:570px;background:radial-gradient(ellipse,rgba(105,43,215,.21),transparent 67%);right:-330px;top:40px;z-index:0}
.dev-hero .hero-inner {min-height:432px;display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);align-items:center;gap:34px;z-index:1}
.dev-hero .hero-content {padding:67px 0 58px;position:relative;z-index:2}
.hero-kicker,.dev-hero .hero-kicker {color:#C4D2E5;display:flex;align-items:center;gap:9px;letter-spacing:.018em;text-transform:uppercase;font-size:10px;font-weight:650;flex-wrap:wrap}
.status-dot {display:inline-block;flex:none;width:7px;height:7px;background:#51D6A0;border-radius:100%;box-shadow:0 0 0 3px rgba(81,214,160,.08)}
.kicker-separator {color:#59617D;font-weight:500}
.dev-hero h1 {font-size:clamp(35px,3.7vw,54px);line-height:1.11;letter-spacing:-.065em;margin:20px 0 19px;max-width:590px;color:#F5F6FB;font-weight:800}
.gradient-text {display:inline;background:linear-gradient(90deg,#B564FF 0%,#9A70FF 45%,#7385FF 100%);color:transparent;-webkit-background-clip:text;background-clip:text}
.dev-hero p {font-size:12px;line-height:1.9;color:#A9B0C4;margin:0;max-width:565px}
.hero-actions {margin-top:22px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dev-hero .hero-action,.hero-secondary {font-size:11px;font-weight:750;min-height:46px;display:flex;justify-content:center;align-items:center;gap:12px;padding:12px 17px;border-radius:9px;border:1px solid transparent;box-shadow:none;white-space:nowrap;transition:transform .2s,border-color .2s,background .2s}
.dev-hero .hero-action {margin:0;color:#fff;background:var(--gradient)}
.dev-hero .hero-action:hover {transform:translateY(-2px);background:var(--gradient)}
.dev-hero .hero-action span:last-child {font-size:17px}
.hero-secondary {color:#F3F4FB;background:rgba(11,14,24,.83);border-color:#5B4788;box-shadow:none}
.hero-secondary:hover {color:#F3F4FB;border-color:#B275FF;transform:translateY(-2px)}
.hero-highlights {margin-top:30px;display:flex;gap:13px;align-items:center;font-size:10px;color:#8C96AD;flex-wrap:wrap}
.hero-highlights b {color:#C2C9E0}
.hero-highlights i {height:10px;background:#343E53}
/* Live IDE-like calculator; actual inputs update instantly */
.dev-hero .hero-visual {display:block;height:auto;min-width:0;opacity:1;margin:0;width:100%;position:relative}
.ide-window {background:#0D1120;border:1px solid #3A425A;border-radius:13px;overflow:hidden;box-shadow:0 20px 70px rgba(0,0,0,.29)}
.ide-top {height:36px;border-bottom:1px solid #293045;display:flex;align-items:center;gap:12px;padding:0 13px;font-size:9px;color:#BBC4D7;background:#111629}
.ide-dots {display:flex;gap:5px}.ide-dots i {display:block;width:8px;height:8px;border-radius:50%;background:#FF626B}.ide-dots i:nth-child(2){background:#F1B852}.ide-dots i:nth-child(3){background:#30C985}
.ide-top-title {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ide-top-stat {margin-left:auto;display:flex;align-items:center;gap:7px;color:#78DAAE;font-size:9px;white-space:nowrap}
.ide-top-stat .status-dot {width:6px;height:6px}
.ide-body {display:grid;grid-template-columns:119px minmax(0,1fr) 128px;min-height:298px}
.ide-sidebar {border-right:1px solid #293045;padding:17px 9px;background:#0A0E1B;font-size:10px;line-height:1.75;color:#AAB7CC}
.ide-tree-label {color:#E3E7F3;white-space:nowrap;font-size:9px}
.ide-folder {padding:10px 3px 4px;white-space:nowrap;color:#CED4E1}
.ide-folder.muted {color:#7E8BA5}
.ide-item,.ide-active {display:block;border-radius:5px;padding:3px 10px;margin:2px 0 2px 6px;white-space:nowrap;color:#A1B0CE}
.ide-active {color:#fff;background:linear-gradient(90deg,#5D2CBA,#7145DC)}
.ide-center {min-width:0;padding:17px 15px 13px}
.ide-calc-title {display:flex;align-items:center;gap:9px;margin-bottom:14px}
.feature-block-icon {width:34px;height:34px;border-radius:8px;color:#C6A1FF;display:grid;place-items:center;flex:none;background:#332054;font-size:19px}
.ide-calc-title h2 {font-size:12px;color:#F4F6FD;line-height:1.35;margin:0 0 3px;letter-spacing:-.035em}
.ide-calc-title p {font-size:9px;margin:0;color:#8994AA;line-height:1.4}
.demo-row {display:flex;align-items:center;gap:10px;margin-top:8px}
.demo-row label {flex:0 0 69px;font-size:10px;color:#B8BED1}
.demo-row input {min-width:0;max-width:100%;width:100%;height:34px;border:1px solid #343C54;background:#141B2C;color:#F7F8FD;padding:6px 10px;border-radius:6px;font-size:11px}
.demo-row input:focus {border-color:#9F6BF7;outline:1px solid #9F6BF7}
.ide-result {position:relative;margin-top:10px;border:1px solid #343D59;border-radius:8px;background:#121C2E;padding:9px 12px;display:flex;flex-direction:column;gap:1px}
.ide-result-label {color:var(--success);font-size:9px}
.ide-result strong {font-size:clamp(14px,1.4vw,19px);color:#fff;letter-spacing:-.04em;line-height:1.55;white-space:nowrap}
.ide-result strong small {font-size:10px;color:#ACB7C9}
.ide-result-note {position:absolute;right:9px;top:16px;font-size:9px;color:#76E0AF;background:rgba(84,214,159,.11);padding:3px 5px;border-radius:5px}
.demo-formula {font-size:9px!important;color:#6E7B99!important;margin-top:6px!important;line-height:1.3!important}
.demo-open {font-size:9px;color:#B18EFF;text-decoration:underline;text-underline-offset:3px}
.demo-open:hover {color:#fff}
.ide-stats {border-left:1px solid #293045;background:#0B0F1D;padding:11px 9px;display:flex;flex-direction:column;gap:10px}
.stat-box,.stat-checks {border:1px solid #29334B;border-radius:7px;padding:10px 8px}
.stat-caption {font-size:8px;color:#9B7CF4;display:block;white-space:nowrap}
.stat-box strong {display:block;color:#F4F5FC;font-size:22px;line-height:1.6}
.stat-box strong span {font-size:10px;color:#B9BAD5}
.stat-bars {height:47px;display:flex;align-items:end;gap:5px;padding:2px}
.stat-bars i {display:block;flex:1;border-radius:3px 3px 0 0;background:linear-gradient(0deg,#3958CF,#B064EE);height:40%}
.stat-bars i:nth-child(2){height:55%}.stat-bars i:nth-child(3){height:49%}.stat-bars i:nth-child(4){height:80%}.stat-bars i:nth-child(5){height:65%}.stat-bars i:nth-child(6){height:91%}.stat-bars i:nth-child(7){height:97%}
.stat-checks {display:flex;flex-direction:column;gap:7px;font-size:8px;color:#A6B3C6;line-height:1.55}.stat-checks span {color:#A9B7C8}.stat-checks span::first-letter{color:#76E0AF}
/* Search, popular grid, full catalogue */
.directory {padding-top:12px;padding-bottom:52px}
.directory-search {max-width:910px;margin:0 auto 28px}
.search-wrap {display:block;position:relative}
.directory-search .search-wrap input {background:#151B2B;border:1px solid #475069;box-shadow:0 8px 26px rgba(0,0,0,.18);border-radius:9px;color:#EAF0FF;width:100%;height:52px;font-size:12px;padding:0 100px 0 50px;outline:0}
.directory-search .search-wrap input::placeholder {color:#9CA6C0;opacity:1}
.directory-search .search-wrap input:focus {border-color:#A777FF;box-shadow:0 0 0 2px rgba(175,104,250,.12)}
.directory-search .search-icon {font-size:29px;left:16px;color:#CBD4EA;top:52%;font-weight:400}
.directory-search kbd {position:absolute;right:13px;top:50%;transform:translateY(-50%);background:#292F46;border:1px solid #39405A;border-radius:5px;color:#C8CEE0;font-size:10px;padding:2px 8px;pointer-events:none}
.directory-mobile-filter {display:none}
.directory-featured {display:grid;grid-template-columns:229px minmax(0,1fr);gap:23px;align-items:start}
.category-sidebar h2,.featured-heading h2 {font-size:17px;letter-spacing:-.05em;margin:0 0 13px;line-height:1.5;font-weight:800}
.category-nav {background:#101422;border:1px solid #282E44;padding:8px;border-radius:12px;display:flex;flex-direction:column;gap:3px}
.category-nav-btn {width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:0;background:transparent;color:#B9C0D3;padding:9px 9px;border-radius:7px;font-size:10px;line-height:1.5;transition:background .15s,color .15s}
.category-nav-btn:hover,.category-nav-btn.selected {background:linear-gradient(110deg,rgba(120,62,198,.50),rgba(76,55,139,.26));color:#EEE5FF}
.category-nav-btn .category-icon {width:16px;font-size:15px;color:#BAA8E6;text-align:center;flex:none}
.category-nav-btn>span:nth-child(2){flex:1}
.category-nav-btn small {font-size:10px;border-radius:5px;background:#272D40;color:#B9C5DB;padding:1px 6px}
.category-nav-btn.selected small {background:#5D4394;color:#EBDFFF}
.featured-heading {display:flex;justify-content:space-between;align-items:end;gap:10px;margin:-4px 0 13px}
.featured-heading .eyebrow {font-size:9px;color:#8B7CA8}
.featured-heading h2 {margin:2px 0 0}
.featured-heading>a {font-size:10px;color:#C58AFF;white-space:nowrap}.featured-heading>a:hover{text-decoration:underline}
.featured-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.featured-card {min-width:0;display:flex;align-items:flex-start;gap:9px;min-height:95px;background:#101523;border:1px solid #293047;border-radius:11px;padding:11px 10px;transition:transform .2s,border-color .2s,background .2s}
.featured-card:hover {transform:translateY(-2px);border-color:#8151CC;background:#14192C}
.featured-icon {display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:7px;background:#2D214A;color:#BD9AFF;font-size:17px;font-weight:800}
.feature-details {min-width:0;flex:1;display:block}
.feature-details strong {display:block;font-size:10px;line-height:1.55;color:#F4F5FB;font-weight:750;overflow-wrap:anywhere}
.feature-details>span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:8px;color:#8D98B0;line-height:1.6;margin-top:4px}
.feature-arrow {color:#BBC2D9;font-size:13px;background:#222A3C;border-radius:5px;padding:1px 3px;align-self:flex-end}
#all-tools {padding-top:75px}
.section-intro h2 {color:#F5F6FB;font-weight:800;letter-spacing:-.05em;font-size:clamp(26px,3vw,38px);margin:10px 0}
.section-intro p {color:#97A2B7;font-size:12px}
.eyebrow,.section-label {font-family:var(--mono);font-weight:650;color:#AD7BF6;letter-spacing:.09em;font-size:10px}
.count-pill {font-size:10px;color:#AFC0DF;background:#15192A;border:1px solid #30364B;border-radius:7px}
.category-block {margin:36px 0 46px}
.category-heading {border-color:#293044;padding-bottom:16px;margin-bottom:16px}
.category-heading h2 {color:#F5F6FB;font-size:20px;letter-spacing:-.055em}
.category-count {color:#777F98;font-size:11px}
.cards-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tool-card {background:#0E111C;border:1px solid #252B3F;border-radius:13px;min-height:172px;box-shadow:none;padding:21px;transition:transform .2s,border-color .2s,background .2s}
.tool-card:hover {border-color:#684AB8;background:#121729;box-shadow:0 12px 24px rgba(0,0,0,.14);transform:translateY(-3px)}
.index {color:#8A75B7;font-size:10px}
.card-arrow {color:#9F7AF2;font-size:17px}
.tool-card h3 {color:#E9ECFA;font-size:14px;font-weight:750;letter-spacing:-.055em;line-height:1.5;margin:13px 0 7px}
.tool-card p {color:#8E99AF;font-size:10px;line-height:1.75}
.no-results {color:#A7B0C3}
/* Inner calculator pages */
.crumbs {margin:28px 0 41px;font-size:10px;color:#808BA4}
.crumbs a:hover {color:#BE9DFF}.crumbs>span:last-child {color:#C5C8D9}
.tool-heading {margin-bottom:33px}
.small-tag {color:#AC91E5;font-size:10px;letter-spacing:.08em}
.small-tag .dot {background:#76E0AF}
.separator {color:#575D74}
.tool-heading h1 {font-size:clamp(31px,4vw,53px);letter-spacing:-.067em;line-height:1.15;color:#F5F6FB;font-weight:800;margin:14px 0 17px}
.tool-heading>p {color:#A6ADBE;font-size:13px;line-height:1.85}
.meta-pills {margin-top:18px;gap:8px}
.meta-pills span {background:#151A2B;border:1px solid #2A3247;border-radius:6px;font-size:10px;color:#ABC2CB;padding:5px 10px;font-weight:500}
.calculator-card,.explain-card {background:#0F1422;border:1px solid #293147;border-radius:15px;box-shadow:none}
.calculator-card {padding:29px}
.calc-top {padding-bottom:18px;border-bottom:1px solid #2B3249;margin-bottom:22px}
.calc-top h2,.explain-card h2,.below-tool h2 {color:#F1F3FB;font-weight:750;letter-spacing:-.04em}
.calc-top h2 {font-size:20px;margin:8px 0 0}
.live-indicator {color:#86DBB2;font-family:var(--mono);font-size:10px}
.live-indicator i {background:#76E0AF}
.input-grid {gap:16px;margin-bottom:24px}
.field label:not(.checkrow) {font-size:11px;line-height:1.5;color:#B8BFD2;font-weight:600;margin-bottom:8px}
.field input:not([type=checkbox]),.field select {background:#12192B;color:#F2F4FB;border:1px solid #343B52;border-radius:8px;font-size:13px;font-weight:500;min-height:48px;height:48px}
.field input::placeholder {color:#717C93}
.field input:focus,.field select:focus {outline:1px solid #8B67ED;outline-offset:1px;border-color:#8B67ED;background:#151C31}
.field select {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23AAB2CA' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.field small {color:#8791A8;font-size:10px}
.checkrow {color:#BEC5D9;font-size:11px}.checkrow input{accent-color:#9166EF}
.result-block {background:linear-gradient(135deg,#16142E,#142039 85%);border:1px solid #3C3A66;border-radius:12px;padding:25px;min-height:134px}
.result-kicker {color:#86E4B9;font-size:11px}
.result-value {color:#F9F9FE;font-size:clamp(27px,3.5vw,42px);line-height:1.35;letter-spacing:-.055em}
.result-value.negative {color:#FF939A}
.result-unit,.detail-label {color:#95A7C9}
.detail-value {color:#F5F6FB;font-size:13px}
.extra-results {border-top-color:#303F5D}
.rate-source {color:#94A6C7}
.calc-actions {margin-top:18px;gap:7px}
.button-secondary,.button-ghost {background:#171D2D;border:1px solid #343C51;color:#E9ECF6;border-radius:8px;font-size:10px;padding:10px 12px;min-height:41px}
.button-secondary:hover,.button-ghost:hover {background:#25233F;color:#F5EFFF;border-color:#6852A6}
.button-ghost {background:transparent}
.explain-card {padding:25px}
.explain-card h2 {font-size:19px;margin:11px 0 11px}
.explain-card h3 {color:#E6EBFB;font-size:13px}
.explain-card p {color:#A2AABD;font-size:11px;line-height:1.85}
.explain-divider {background:#2A3147}
.privacy-note,.notice {background:#151A2D;border:1px solid #2C3450;color:#A9B5CD;border-radius:8px;font-size:10px}
.notice {border-left:3px solid #A36DF8}
.notice strong {color:#F4F5FB}
.notice p {color:#AAB3C6}
.below-tool {gap:80px;padding:70px 0 76px}
.below-tool h2 {font-size:22px}
.information>p {color:#A5AFC4;font-size:12px}
.related-list {border-top-color:#2A3146}
.related-link {border-bottom-color:#2A3146;color:#CBD2E2;font-size:11px}
.related-link:hover,.source-ref a {color:#C48DFF}
.source-ref {color:#8A97B1}
.error-message {background:#3A2029;border-color:#85404A;color:#FFC1C7}
/* CTA */
.cta-banner {padding:30px 34px;border:1px solid #604B9A;background:linear-gradient(115deg,rgba(81,32,131,.36),rgba(25,32,70,.88) 51%,rgba(35,76,135,.48));border-radius:13px;box-shadow:0 0 0 1px rgba(147,100,228,.04) inset;gap:24px;color:#F9F8FF}
.cta-banner:before {display:none}
.cta-copy {max-width:750px}
.cta-copy h2 {font-size:clamp(17px,2vw,24px);letter-spacing:-.05em;margin:7px 0 7px;line-height:1.35}
.cta-copy p {font-size:11px;color:#B6BCD3;line-height:1.8}
.eyebrow.light {color:#C397FA;font-size:9px}
.cta-actions {gap:10px;flex:none}
.cta-button {border-radius:9px;background:var(--gradient);color:#fff;font-size:11px;padding:12px 16px;min-height:44px;max-width:230px;box-shadow:0 5px 16px rgba(106,76,218,.14);white-space:normal}
.cta-button span {font-size:15px}
.cta-button:hover {background:var(--gradient);transform:translateY(-2px)}
.cta-phone {font-size:10px;color:#BFC7DE}
.home-cta {margin-bottom:42px}
/* Footer */
.site-footer {margin-top:60px;border-top:1px solid #22273A;background:#090D18;padding:29px 0 18px;color:#A6ADBE}
.footer-main {display:flex;align-items:center;gap:25px}
.footer-brand {display:inline-flex;align-items:center;gap:7px;color:#F8F9FF;font-size:16px;letter-spacing:-.06em;font-weight:800}
.footer-brand img {object-fit:contain;width:35px;height:27px}
.footer-brand b {border-left:1px solid #47516A;padding-left:12px;margin-left:8px;color:#C38BFF;font-size:15px;font-weight:750}
.site-footer p {font-size:10px;color:#939CB4;line-height:1.7;margin:7px 0}
.footer-links {margin-left:auto;display:flex;gap:22px;font-size:10px;color:#B7C0D2}
.footer-links a:hover,.foot-bottom a:hover {color:#B77BFF}
.foot-bottom {margin-top:20px;border-top:1px solid #24283A;padding-top:14px;font-size:9px;color:#7B849B}
.foot-bottom a {color:#A58EFF}
/* Accessible effects */
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Layout at intermediate widths */
@media (max-width:1140px) {
  .top-links {gap:15px;font-size:11px}
  .head-actions {gap:12px}
  .brand-text{font-size:19px}.brand-calc{font-size:17px}
  .dev-hero .hero-inner{gap:20px}
  .ide-body{grid-template-columns:96px minmax(0,1fr) 104px}
  .ide-sidebar {font-size:8px;padding-inline:6px}
  .ide-item,.ide-active {margin-left:2px;padding-inline:6px}
  .ide-stats{padding-inline:6px}
  .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .featured-card{min-height:87px}
}
@media (max-width:900px){
  .top-links {display:none}
  .topbar{height:66px}.topbar-inner{gap:10px}
  .dev-hero .hero-inner {grid-template-columns:1fr;gap:0;min-height:unset}
  .dev-hero .hero-content {padding:54px 0 26px}
  .dev-hero h1 {font-size:clamp(35px,5.5vw,50px);max-width:680px}
  .dev-hero .hero-visual {display:block;max-width:710px;margin:0 auto 40px}
  .ide-body {grid-template-columns:115px minmax(0,1fr) 130px}
  .directory-featured {grid-template-columns:200px minmax(0,1fr)}
  .cards-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .tool-layout,.below-tool {grid-template-columns:1fr;gap:18px}
  .explain-card {position:static}
  .below-tool {gap:35px}
}
@media (max-width:680px){
  .container{padding-inline:18px}
  .head-actions .mini-cta{display:none}
  .topbar {height:62px}
  .brand-mark-img{width:40px;height:30px}
  .brand-text{font-size:19px}.brand-calc{font-size:16px}.brand-sep{margin-inline:6px}
  .dev-hero .hero-content{padding:42px 0 25px}
  .dev-hero h1 {font-size:clamp(30px,8vw,43px);line-height:1.18;margin:18px 0}
  .dev-hero p {font-size:12px;line-height:1.8}
  .hero-kicker,.dev-hero .hero-kicker{font-size:9px;gap:6px}
  .hero-actions{gap:9px}
  .dev-hero .hero-action,.hero-secondary{font-size:10px;min-height:43px;padding:9px 12px;white-space:normal}
  .hero-highlights{font-size:9px;margin-top:20px}
  .dev-hero .hero-visual{margin-bottom:26px}
  .ide-body {grid-template-columns:100px minmax(0,1fr)}
  .ide-stats {display:none}
  .ide-center {padding:14px 12px}
  .ide-sidebar {font-size:9px}
  .ide-result strong {font-size:17px}
  .directory {padding-top:4px}
  .directory-search {margin-bottom:17px}
  .directory-search .search-wrap input {height:49px;padding-right:20px;font-size:11px}
  .directory-search kbd {display:none}
  .directory-mobile-filter {display:block;margin-top:10px}
  #category-filter {width:100%;height:44px;border:1px solid #343C55;background:#151A2A;color:#E2E6F5;border-radius:8px;padding:0 12px;font-size:11px}
  .directory-featured {grid-template-columns:1fr}
  .category-sidebar{display:none}
  .featured-heading h2{font-size:17px}
  .featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #all-tools{padding-top:48px}
  .section-intro {display:block}
  .section-intro h2{font-size:27px}.count-pill{display:inline-flex;margin-top:14px}
  .category-block{margin:29px 0}
  .category-heading h2{font-size:18px}
  .cards-grid{grid-template-columns:1fr;gap:9px}
  .tool-card{min-height:125px;padding:18px}
  .tool-card h3{font-size:13px;margin:10px 0 5px}
  .tool-card p{font-size:10px}
  .crumbs {margin:20px 0 28px}
  .tool-heading h1{font-size:clamp(30px,7vw,41px)}
  .calculator-card{padding:18px}.input-grid{grid-template-columns:1fr;gap:13px}
  .field input:not([type=checkbox]),.field select{font-size:16px}
  .result-value{font-size:30px}
  .explain-card{padding:21px}.below-tool{padding:44px 0}
  .cta-banner{flex-direction:column;align-items:stretch;padding:24px}
  .cta-actions {width:100%;align-items:stretch}
  .cta-button{max-width:none;justify-content:center}
  .cta-phone{text-align:center}
  .footer-main{align-items:start;flex-direction:column;gap:13px}
  .footer-links{margin:0;flex-wrap:wrap;gap:12px}
  .site-footer{margin-top:38px}
}
@media(max-width:385px){
  .container{padding-inline:14px}
  .brand-mark-img{width:34px;height:27px}
  .brand-text{font-size:16px}.brand-calc{font-size:14px}
  .brand-sep{height:20px;margin-inline:3px}
  .lang{font-size:10px}
  .hero-secondary {width:100%;justify-content:center}
  .ide-body {grid-template-columns:1fr}
  .ide-sidebar {display:none}
  .featured-card {padding:10px 7px;gap:6px}
  .featured-icon{width:28px;height:28px;flex-basis:28px}
  .featured-card .feature-arrow{display:none}
  .feature-details strong{font-size:9px}
}
