/* Deep Tools · deeptools.app */

/* self-hosted fonts (no requests to Google) */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/fira-sans-latin-300-normal.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; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-latin-400-normal.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; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-sans-latin-500-normal.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; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fira-sans-latin-600-normal.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; }
/* latin-ext (Polish ą ę ł ż …): only downloaded on pages that use these letters */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/fira-sans-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fira-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-mono-latin-400-normal.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; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-mono-latin-500-normal.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; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #51affb;          /* app icon */
  --blue-600: #2a8fe6;
  --blue-700: #1c74c4;
  --ink: #10273d;
  --muted: #566b80;
  --line: #dbe7f2;
  --tint: #f0f7fe;
  --slate: #2e3944;         /* app screens */
  --slate-900: #1f2831;
  --mono: "Fira Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-700); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- generic phone bezel ---------- */
.phone {
  position: relative;
  padding: 3.4%;
  background: linear-gradient(145deg, #2b333b, #0d1115 40%, #0d1115 70%, #2b333b);
  border-radius: 13% / 6.2%;
  box-shadow:
    inset 0 0 0 1.5px #4a545e,
    inset 0 0 0 4px #0d1115,
    0 28px 46px -18px rgba(16, 39, 61, .45),
    0 8px 16px -8px rgba(16, 39, 61, .3);
}
.phone img { width: 100%; height: auto; border-radius: 10.4% / 4.8%; background: var(--slate); }
.phone::after { /* camera */
  content: ""; position: absolute; left: 50%; top: 4.2%;
  width: 4.6%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #05080a; box-shadow: inset 0 0 0 1.5px #1b232b;
}

/* ---------- store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badges a { display: block; border-radius: 8px; transition: transform .15s; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 46px; width: auto; }
.badges--center { justify-content: center; }
.badges--small { margin-top: 0; }
.badges--small img { height: 38px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 8px; }
.brand--light { color: #fff; }
.topbar__nav { display: flex; gap: 24px; margin-left: auto; }
.topbar__nav a { color: #424245; text-decoration: none; font-size: 14px; transition: color .2s; }
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta { margin-left: auto; background: var(--blue); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 7px 16px; border-radius: 999px; }
.topbar__nav + .topbar__cta { margin-left: 0; }
.topbar__cta:hover { background: var(--blue-600); }
@media (max-width: 860px) { .topbar__nav { display: none; } .topbar__cta, .topbar__nav + .topbar__cta { margin-left: auto; } }

/* language menu (globe) */
.lang { position: relative; margin-left: auto; }
.topbar__nav + .lang { margin-left: 0; }
.lang + .topbar__cta, .topbar__nav + .lang + .topbar__cta { margin-left: -12px; }
.lang summary {
  display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px; border-radius: 999px;
  color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .02em; cursor: pointer;
  list-style: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 20px; height: 20px; flex: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--tint); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 168px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 36px -14px rgba(16, 39, 61, .35);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--tint); }
.lang li a[aria-current] { color: var(--blue-700); font-weight: 500; }
@media (max-width: 860px) { .topbar__nav + .lang { margin-left: auto; } }
@media (max-width: 400px) {
  .topbar__inner { gap: 16px; }
  .lang summary span { display: none; }
  .lang + .topbar__cta, .topbar__nav + .lang + .topbar__cta { margin-left: -8px; }
}

/* ---------- hero ----------
 * Apple-style: centred headline on the app-icon blue, phones below it,
 * cropped by the section edge. site.js sets --hp (0…1, how far the hero has
 * scrolled away) and --py on the phones for the parallax. */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(70% 50% at 30% 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(160deg, #5c9fd8 0%, #4387c4 45%, #2f6699 100%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: clamp(56px, 9vw, 120px); }
.hero__copy {
  display: flex; flex-direction: column; align-items: center;
  transform: translate3d(0, calc(var(--hp, 0) * 90px), 0);
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) backwards;
}
.title { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.title__icon { width: clamp(72px, 8vw, 96px); height: auto; border-radius: 22.5%; box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 18px 36px -12px rgba(8, 50, 90, .5); }
.title span { font-size: clamp(48px, 8.6vw, 108px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
.hero__lead { margin-top: 26px; font-size: clamp(17px, 1.9vw, 21px); font-weight: 300; line-height: 1.5; max-width: 58ch; color: rgba(255,255,255,.94); }
.hero .badges { justify-content: center; margin-top: 34px; }
.hero__devices { margin-top: 16px; font-size: 14px; letter-spacing: .04em; color: rgba(255,255,255,.85); }
/* two phones, the back one a little behind and turned left, the front one turned right */
.hero__phones {
  --w: clamp(190px, 26vw, 290px);
  position: relative; width: min(820px, 100%); height: calc(var(--w) * 2.42); margin: clamp(48px, 7vw, 80px) 0 clamp(48px, 6vw, 88px);
}
.hero__phones::before {          /* soft glow behind the phones */
  content: ""; position: absolute; left: 50%; top: 18%; width: 90%; aspect-ratio: 1.4; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150, 215, 255, .5), rgba(150, 215, 255, 0));
  transform: translateX(-50%);
}
.hero__phones .phone { position: absolute; left: 50%; top: 0; width: var(--w); padding: calc(var(--w) * .034); }
.hero__phones .phone--front { z-index: 2; top: calc(var(--w) * .06); transform: translateX(-16%) rotate(5deg); }
.hero__phones .phone--back  { z-index: 1; top: calc(var(--w) * .22); transform: translateX(-86%) rotate(-7deg); }
@keyframes rise { from { transform: translate3d(0, 40px, 0); } }
@media (max-width: 600px) {
  .hero__phones { --w: calc((100vw - 32px) * .42); }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section--tint { background: #f5f5f7; }
.section h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.section__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section__head p, .feature__copy > p { margin-top: 18px; color: #6e6e73; font-size: clamp(19px, 2vw, 24px); font-weight: 400; line-height: 1.4; letter-spacing: -.01em; }

/* tool list */
.tools-layout { display: grid; grid-template-columns: 1fr 280px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tools-layout__phone { position: sticky; top: 96px; }
@media (max-width: 860px) {
  .tools-layout { grid-template-columns: 1fr; }
  .tools-layout__phone { display: none; }
}
.toollist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool {
  position: relative; display: block; height: 100%;
  padding: 20px 46px 20px 22px; border-radius: 20px;
  background: #f5f5f7; border: 1px solid transparent;
  text-decoration: none; color: var(--ink);
  transition: background .25s, box-shadow .25s, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.tool:hover { background: #fff; border-color: var(--line); box-shadow: 0 18px 40px -22px rgba(16, 39, 61, .45); transform: translateY(-3px) scale(1.01); }
.tool__name { display: block; font-weight: 600; font-size: 19px; letter-spacing: -.01em; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.tool__desc { display: block; margin-top: 4px; color: #6e6e73; font-size: 14.5px; line-height: 1.45; }
.chev { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--blue-600); transition: transform .25s; }
.tool:hover .chev { transform: translate(3px, -50%); }
.tool[aria-current="page"] { background: #fff; border-color: var(--blue); }
@media (max-width: 600px) {
  .toollist { grid-template-columns: 1fr; gap: 10px; }
  .tool { padding: 16px 42px 16px 18px; border-radius: 18px; }
}
.toollist--compact { grid-template-columns: repeat(3, 1fr); }
.toollist--compact .tool__desc { display: none; }
.toollist--compact .tool { padding: 14px 40px 14px 18px; }
.toollist--compact .tool__name { font-size: 17px; }
@media (max-width: 760px) { .toollist--compact { grid-template-columns: 1fr 1fr; } }

/* feature sections: heading, phones, then the list as a grid (all centred) */
.feature { display: grid; justify-items: center; text-align: center; }
.feature__copy { display: contents; }
.feature h2 { order: 1; max-width: 16ch; }
.feature__copy > p { order: 2; max-width: 40ch; }
.feature .trio { order: 3; }
.feature .checks { order: 4; }
.tag { display: inline-block; vertical-align: middle; position: relative; top: -.12em; margin-left: 10px; padding: 5px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: clamp(14px, 1.4vw, 17px); font-weight: 500; letter-spacing: 0; }
.checks {
  margin-top: clamp(48px, 7vw, 88px); width: 100%; max-width: 1000px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; text-align: left;
}
.checks li {     /* tick and text side by side */
  display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
  padding-top: 18px; border-top: 1px solid rgba(16, 39, 61, .12); color: var(--ink); font-size: 17px; line-height: 1.45;
}
.checks li::before {
  content: ""; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.trio {
  margin-top: clamp(48px, 7vw, 80px); width: 100%; max-width: 900px;
  display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: clamp(12px, 3vw, 36px); align-items: center;
}
.trio .phone { transform: translate3d(0, var(--py, 0px), 0); }
.trio__mid { z-index: 1; }
@media (max-width: 860px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; gap: 18px; }
  .trio { gap: 8px; }
}

/* download */
.download {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background:
    radial-gradient(70% 80% at 30% 0%, rgba(255, 255, 255, .18), transparent 65%),
    linear-gradient(160deg, #5c9fd8 0%, #4387c4 50%, #336c9f 100%);
  padding: clamp(96px, 13vw, 170px) 0;
}
.download__inner { display: flex; flex-direction: column; align-items: center; }
.download img[width="80"] { width: clamp(80px, 9vw, 112px); height: auto; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 24px 48px -16px rgba(8,50,90,.55); margin-bottom: 30px; }
.download h2 { font-size: clamp(44px, 7vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
.download p { margin-top: 14px; font-size: clamp(19px, 2vw, 24px); opacity: .85; }
.download .badges { margin-top: 36px; }

/* footer */
.footer { background: #f5f5f7; color: #6e6e73; padding: 40px 0 44px; font-size: 13px; border-top: 1px solid #e3e3e6; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #e3e3e6; margin-bottom: 20px; }
.footer__note { max-width: 86ch; line-height: 1.55; }
.footer__meta { margin-top: 10px; font-size: 12px; opacity: .85; }

/* scroll reveal: site.js adds .rv to content below the fold, then .in when it scrolls into view */
.rv { opacity: 0; transform: translate3d(0, 48px, 0); transition: opacity 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- tool subpages ---------- */
.toolpage { padding: 36px 0 80px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.toolpage__grid { display: grid; grid-template-columns: 1fr 280px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toolpage__side { position: sticky; top: 90px; }
.toolpage h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; }
.toolpage h1 small { display: block; margin-top: 8px; font-size: 17px; font-weight: 300; color: var(--muted); letter-spacing: 0; }
.toolpage__desc { margin-top: 18px; font-size: 17px; color: var(--ink); max-width: 62ch; }
.toolpage__main > p:not(.toolpage__desc):not(.formula) { margin-top: 12px; color: var(--muted); font-size: 17px; font-weight: 300; max-width: 62ch; }
.toolpage__main h2, .toolpage__main .u-metric > h2:first-child, .toolpage__main .u-imperial > h2:first-child { margin-top: 44px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.formula {
  margin-top: 14px; padding: 16px 18px; border-radius: 12px;
  background: var(--slate); color: #fff;
  font-family: var(--mono); font-size: clamp(14px, 1.6vw, 16px); line-height: 1.5;
  overflow-x: auto;
}
.where { margin-top: 14px; display: grid; gap: 8px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.where b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.example { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 560px; }
.example div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.example div:first-child { border-top: 0; }
.example div:last-child { background: var(--tint); }
.example dt { color: var(--muted); font-size: 14.5px; }
.example dd { font-family: var(--mono); font-size: 14.5px; }
.example div:last-child dd { font-weight: 500; color: #1866ab; }
.online { margin-top: 44px; padding: 24px; border-radius: 16px; background: var(--tint); border: 1px dashed var(--blue); }
.online h2 { margin-top: 0 !important; }
.online p { margin-top: 8px; color: var(--muted); font-size: 17px; font-weight: 300; }
.online .badges { margin-top: 18px; }
.more { margin-top: 72px; }
.more h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 28px; }
@media (max-width: 860px) {
  .toolpage__grid { grid-template-columns: 1fr; }
  .toolpage__side { position: static; order: 2; width: min(260px, 70%); margin: 0 auto; }
}
@media (max-width: 480px) { .example div { grid-template-columns: 1fr; gap: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool, .badges a, .chev { transition: none; }
  .hero__copy { animation: none; }
}

/* ================= online calculators (app look) ================= */
.calc {
  --panel: #2e3944; --bar: #38444f; --text: #f9f9f9; --light: #a8b1ba;
  background: var(--panel); color: var(--text);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(16, 39, 61, .55);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  max-width: 430px; width: 100%; margin: 0 auto;
  user-select: none; -webkit-user-select: none;
}
.calc__bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 6px; height: 62px; padding: 0 12px 0 8px; background: var(--bar); }
.calc__back { display: grid; place-items: center; width: 40px; height: 40px; color: var(--text); border-radius: 10px; }
.calc__back svg { width: 24px; height: 24px; }
.calc__title { margin: 0; font-size: 20px; font-weight: 300; text-align: center; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.units { display: flex; border: 1px solid #536779; border-radius: 10px; overflow: hidden; }
.units button { appearance: none; border: 0; background: transparent; color: var(--light); font: 500 16px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 9px 13px; min-width: 42px; cursor: pointer; }
.units button[aria-pressed="true"] { background: #536779; color: var(--text); }
.calc__body { padding: 22px 18px 34px; min-height: 620px; }

/* toggle */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 6% 10px; font-size: 19px; font-weight: 300; color: #d4dbe1; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { position: relative; flex: none; width: 52px; height: 30px; border-radius: 15px; background: #3c4a57; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #e3ebf2; transition: transform .2s; }
.toggle input:checked + i { background: #70cfe2; }
.toggle input:checked + i::after { transform: translateX(22px); }
.toggle input:focus-visible + i { outline: 2px solid #70cfe2; outline-offset: 3px; }

/* gauges */
.gauges { display: flex; justify-content: center; gap: 4%; margin: 6px 0 16px; }
.gauge { position: relative; width: min(220px, 62%); }
.gauges--two .gauge { width: 46%; }
.gauge svg { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
.gauge svg:focus-visible { outline: 2px solid #70cfe2; outline-offset: 2px; border-radius: 50%; }
.gauge__label { font: 700 35px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.gauge__sub { font-size: 22px; }
.gauge__value {
  position: absolute; left: 50%; bottom: calc(14% - .2em - 5px); transform: translateX(-50%);
  appearance: none; border: 0; background: none; cursor: text;
  color: #f2f4f6; font: 700 clamp(26px, 7.5vw, 30px)/1 "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 4px 6px; border-radius: 6px;
}
.gauges--two .gauge__value { font-size: clamp(21px, 5.95vw, 26px); }
.gauge__input { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); width: 76px; text-align: center; font: 700 22px "Helvetica Neue", Helvetica, Arial, sans-serif; color: #2e3944; border: 0; border-radius: 8px; padding: 4px; }

/* pickers */
.pickers { display: grid; gap: 4px; margin-top: 4px; }
.picker {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 144px; margin: 0 4%;
}
.picker::before, .picker::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--line); pointer-events: none; }
.picker::before { top: 47px; } .picker::after { top: 95px; }
.picker__label { color: var(--c); font-size: 22px; font-weight: 300; text-align: center; padding-right: 8px; }
.picker__unit { color: var(--c); font-size: 22px; font-weight: 300; padding-left: 10px; }
.picker__wheels { display: flex; align-items: center; height: 144px; }
.picker__dot { width: 10px; text-align: center; font: 700 31px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); }
.wheel {
  height: 144px; width: 36px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none;
  padding: 48px 0; box-sizing: border-box; outline: none; cursor: ns-resize; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.wheel::-webkit-scrollbar { display: none; }
.wheel.is-drag { scroll-snap-type: none; }
.picker__wheels--list .wheel { width: 84px; }
.wheel__item { height: 48px; display: grid; place-items: center; scroll-snap-align: center; font: 700 21px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--light); opacity: .55; transition: color .12s, font-size .12s; }
.wheel__item.is-sel { color: var(--text); opacity: 1; font-size: 31px; }
.wheel.is-blank .wheel__item.is-sel { color: transparent; }
.wheel:focus-visible { background: rgba(255,255,255,.05); border-radius: 8px; }

/* results */
.results { display: grid; gap: 30px; margin-top: 34px; min-height: 110px; transition: opacity .15s; }
.results.is-busy { opacity: .75; }
.result { display: flex; flex-direction: column; align-items: center; text-align: center; }
.result__box { border: 2px solid; padding: 12px 24px; font: 700 clamp(23px, 6.6vw, 28px)/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #e6eaee; }
.result__cap { margin-top: 12px; font-size: 18px; font-weight: 300; color: #e9e9e9; line-height: 1.35; }
.result__cap b { font-weight: 700; }
.result__note { margin-top: 18px; font-size: 20px; font-weight: 300; }
.result__err { color: #ef9d54; font-size: 15px; text-align: center; }
.pill { display: flex; align-items: center; }
.pill span { display: inline-block; min-width: 150px; border: 2px solid; border-radius: 999px; padding: 9px 26px; font: 700 27px/1.1 "Helvetica Neue", Helvetica, Arial, sans-serif; color: #f2f4f6; }
.pill svg { width: 30px; height: 34px; margin-left: -3px; }

@media (max-width: 600px) {
  .calc { border-radius: 0; margin: 0 -16px; width: calc(100% + 32px); max-width: none; box-shadow: none; }
  .calc__body { min-height: 0; }
  .picker__label, .picker__unit { font-size: 19px; }
}

/* tool page layout */
.toolpage__grid--calc { grid-template-columns: minmax(320px, 430px) 1fr; align-items: start; }
.toolpage__calc { position: sticky; top: 84px; }
@media (max-width: 860px) {
  .toolpage__grid--calc { grid-template-columns: 1fr; }
  .toolpage__calc { position: static; }
}

/* explanation follows the unit switch */
html[data-units="imperial"] .u-metric, html:not([data-units="imperial"]) .u-imperial { display: none; }
@media (max-width: 600px) { .toolpage { padding-top: 0; } .units button { padding: 9px 11px; min-width: 38px; } }

/* footer links */
.footer__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; }
.footer__links a { color: #424245; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
/* 404 */
.notfound { padding: clamp(64px, 12vw, 140px) 0; text-align: center; }
.notfound h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; }
.notfound p { margin-top: 12px; color: var(--muted); font-size: 17px; font-weight: 300; }
.notfound .badges { justify-content: center; }

/* reserve the calculator's space before tools.js builds it (no layout shift) */
[data-tool] { min-height: var(--h-d, 680px); }
[data-tool]:not(.calc) { background: #2e3944; border-radius: 28px; max-width: 430px; margin: 0 auto; }
@media (max-width: 600px) {
  [data-tool] { min-height: var(--h-m, 640px); }
  [data-tool]:not(.calc) { border-radius: 0; margin: 0 -16px; }
}
