:root {
  --brand: #3157d5;
  --brand-2: #6d5ce7;
  --brand-dark: #213da8;
  --brand-soft: #eef2ff;
  --brand-softer: #f7f8ff;
  --ink: #17213b;
  --text: #3f4b63;
  --muted: #6c7890;
  --border: #e2e7f0;
  --border-strong: #d3dbea;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --surface-warm: #fffdf9;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #a15c00;
  --warning-soft: #fffaeb;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --shadow-sm: 0 10px 30px rgba(28, 39, 72, .07);
  --shadow-md: 0 20px 55px rgba(28, 39, 72, .10);
  --shadow-lg: 0 32px 90px rgba(28, 39, 72, .13);
  --radius-sm: 13px;
  --radius-md: 21px;
  --radius-lg: 29px;
  --content: 1240px;
  --reading: 900px;
  --font-body: Candara, "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --font-display: Candara, "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfdff 58%, #ffffff 100%);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, select, textarea, summary {
  font-family: var(--font-body);
}
button, input, select, textarea { font-size: 1rem; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--brand); }

.container {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}
h1, h2, h3, h4, .logo {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid rgba(226,231,240,.92);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -.055em;
}
.logo-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(49,87,213,.23);
  font-size: 1.02rem;
  font-weight: 800;
}
.logo-word > span { color: var(--brand); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  padding: 9px 13px;
  color: #4d5870;
  text-decoration: none;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 650;
  transition: .16s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
}
.menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(circle at 7% 15%, rgba(109,92,231,.14), transparent 29%),
    radial-gradient(circle at 91% 18%, rgba(49,87,213,.14), transparent 29%),
    linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
  border-bottom: 1px solid var(--border);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(49,87,213,.10);
  border-radius: 50%;
}
.hero::before { width: 310px; height: 310px; left: -170px; bottom: -180px; }
.hero::after { width: 230px; height: 230px; right: -100px; top: -125px; }

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(330px,.8fr);
  align-items: center;
  gap: 68px;
}
.hero-copy { text-align: left; }
.eyebrow {
  margin: 0 0 13px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 790px;
  margin: 0 0 22px;
  font-size: clamp(2.75rem, 6vw, 5.3rem);
  line-height: .99;
  letter-spacing: -.065em;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.23rem);
  line-height: 1.67;
}
.search-wrap {
  position: relative;
  max-width: 730px;
  margin: 34px 0 0;
}
.search-wrap input {
  width: 100%;
  min-height: 64px;
  padding: 0 60px 0 21px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  box-shadow: var(--shadow-md);
  outline: none;
}
.search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(49,87,213,.11), var(--shadow-md);
}
.search-icon {
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.25rem;
}
.hero-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges span {
  padding: 7px 11px;
  color: #536078;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 650;
}
.hero-showcase {
  padding: 26px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(211,219,234,.92);
  border-radius: 27px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(13px);
}
.hero-showcase > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.quick-tools { display: grid; gap: 11px; }
.quick-tool {
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: .17s ease;
}
.quick-tool:hover {
  transform: translateX(4px);
  border-color: rgba(49,87,213,.42);
  box-shadow: var(--shadow-sm);
}
.quick-tool-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 800;
}
.quick-tool strong { color: var(--ink); font-size: .94rem; }
.quick-tool small { display: block; color: var(--muted); font-size: .77rem; }
.quick-tool b { color: var(--brand); }

.section { padding: 94px 0; }
.soft-section {
  background:
    linear-gradient(180deg, #f8faff 0%, #f6f8fd 100%);
  border-block: 1px solid var(--border);
}
.section-heading {
  margin-bottom: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem,4vw,2.8rem);
  line-height: 1.08;
}
.section-heading > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 25px;
}
.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  padding: 29px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background:
    linear-gradient(180deg, #fff 0%, #fefeff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(28,39,72,.025);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  opacity: 0;
  background: linear-gradient(90deg,var(--brand),var(--brand-2));
  transition: opacity .2s ease;
}
.tool-card:hover {
  transform: translateY(-7px);
  border-color: rgba(49,87,213,.35);
  box-shadow: var(--shadow-md);
}
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--brand);
  background:
    linear-gradient(145deg,#f4f6ff,#e9eeff);
  border: 1px solid #dce4ff;
  border-radius: 17px;
  box-shadow: inset 0 1px 0 #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.tool-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}
.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.66;
}
.tool-card .arrow {
  margin-top: auto;
  padding-top: 22px;
  color: var(--brand);
  font-size: .91rem;
  font-weight: 750;
}
.tool-card .arrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  background: currentColor;
  transition: width .18s ease;
}
.tool-card:hover .arrow::after { width: 32px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 23px;
}
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 205px;
  padding: 30px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: .2s ease;
}
.category-card::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  right: -34px;
  bottom: -34px;
  background: var(--brand-soft);
  border-radius: 50%;
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(49,87,213,.38);
  box-shadow: var(--shadow-md);
}
.category-card h3 { margin: 0 0 11px; font-size: 1.28rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.count-pill {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 20px;
  padding: 7px 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 750;
}

.breadcrumb {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: .88rem;
}
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-separator { color: #9ca7b9; }

.page-hero {
  position: relative;
  padding: 67px 0 47px;
  text-align: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: min(680px,70%);
  height: 1px;
  margin-inline: auto;
  background: linear-gradient(90deg,transparent,var(--border-strong),transparent);
}
.page-hero h1 {
  max-width: 940px;
  margin: 0 auto 18px;
  font-size: clamp(2.45rem,5vw,4rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.page-hero > .container > p:last-child {
  max-width: 790px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.tool-layout { padding: 18px 0 104px; }
.calculator-card {
  max-width: 900px;
  margin-inline: auto;
  padding: 40px;
  background:
    linear-gradient(180deg,#fff 0%,#fefeff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.tool-intro-strip {
  max-width: 900px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 13px;
}
.tool-intro-strip div {
  min-height: 52px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #4c5870;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(28,39,72,.035);
  font-size: .88rem;
  font-weight: 650;
  text-align: center;
}
.tool-intro-strip span { color: var(--brand); font-weight: 850; }

.noscript-note {
  margin: 0 0 18px;
  padding: 13px 15px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #fecdca;
  border-radius: 12px;
}
.field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 55px;
  padding: 12px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 13px;
  outline: none;
  transition: .16s ease;
}
.field textarea { min-height: 165px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #98a3b4; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(49,87,213,.10);
}
input[type="range"] { min-height: auto; padding: 0; border: 0; accent-color: var(--brand); }
.input-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}
.split-input { display: grid; grid-template-columns: 1fr 132px; gap: 12px; }

.primary-button, .secondary-button, .ghost-button, .swap-button {
  min-height: 54px;
  border-radius: 13px;
  font-weight: 750;
  transition: .16s ease;
}
.primary-button {
  width: 100%;
  margin-top: 22px;
  color: #fff;
  background: linear-gradient(135deg,var(--brand),var(--brand-2));
  border: 0;
  box-shadow: 0 12px 28px rgba(49,87,213,.23);
}
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(49,87,213,.29);
}
.primary-button:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.secondary-button {
  padding: 11px 15px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #dbe3ff;
}
.secondary-button:hover { background: #e5eaff; }
.ghost-button {
  padding: 11px 19px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
}
.ghost-button:hover { background: var(--surface-soft); }
.compact { width: auto; margin: 0; padding-inline: 25px; }
.link-button { display: block; text-align: center; text-decoration: none; }
.swap-button {
  align-self: end;
  width: 54px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #dbe3ff;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(49,87,213,.28);
  outline-offset: 3px;
}

.tab-bar {
  margin-bottom: 30px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 15px;
}
.tab-button {
  min-height: 47px;
  padding: 9px 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  font-weight: 720;
}
.tab-button.active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 7px 18px rgba(28,39,72,.08);
}
.tool-panel { display: none; }
.tool-panel.active { display: block; }

.result-box {
  margin-top: 24px;
  padding: 27px;
  text-align: center;
  background:
    linear-gradient(145deg,#f4f6ff,#eef2ff);
  border: 1px solid #d8e1ff;
  border-radius: 17px;
}
.result-box span { display: block; color: var(--muted); font-size: .87rem; }
.result-box strong {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-size: clamp(1.75rem,5vw,2.55rem);
  font-weight: 800;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.stat-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.stat-grid > div {
  min-height: 104px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
}
.stat-grid span { display: block; color: var(--muted); font-size: .82rem; }
.stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.form-error {
  margin: 18px 0 0;
  padding: 13px 15px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #fecdca;
  border-radius: 11px;
  font-weight: 680;
}
.result-note { color: var(--muted); font-size: .9rem; }
.bar-wrap {
  height: 15px;
  margin-top: 18px;
  display: flex;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}
.bar-primary { width: 50%; background: var(--brand); }
.bar-secondary { width: 50%; background: #b8c6ff; }

.content-section {
  max-width: var(--reading);
  margin: 62px auto 0;
}
.content-section h2 {
  margin: 54px 0 15px;
  font-size: clamp(1.65rem,3vw,2.03rem);
  line-height: 1.18;
  letter-spacing: -.04em;
}
.content-section h3 {
  margin: 34px 0 10px;
  font-size: 1.23rem;
}
.content-section p, .content-section li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.78;
}
.content-section p { margin-bottom: 18px; }
.content-section li + li { margin-top: 10px; }
.content-section strong { color: var(--ink); }
.content-section a:not(.primary-button) {
  color: var(--brand);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 17px;
}
.related-card {
  padding: 22px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: .17s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.related-card strong, .related-card span { display: block; }
.related-card strong { font-size: 1rem; }
.related-card span {
  margin-top: 7px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.58;
}
.privacy-note {
  padding: 18px 20px;
  color: #166534 !important;
  background: var(--success-soft);
  border: 1px solid #abefc6;
  border-radius: 15px;
}
.formula-box, .example-box, .notice-box {
  margin: 19px 0;
  padding: 22px;
  border-radius: 16px;
}
.formula-box {
  background: linear-gradient(145deg,#f5f7ff,#eef2ff);
  border: 1px solid #dce4ff;
}
.formula-box code {
  color: var(--ink);
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: .97rem;
  font-weight: 650;
  white-space: normal;
}
.example-box {
  background: var(--warning-soft);
  border: 1px solid #fedf89;
}
.notice-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.reviewed-note {
  margin-top: 32px;
  color: var(--muted) !important;
  font-size: .84rem !important;
}
.guide-cta {
  margin-top: 30px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 21px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 17px;
}
.guide-cta p { margin: 0; }
.guide-cta a {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
}
.faq-list { display: grid; gap: 13px; }
.faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color .15s ease;
}
.faq-item[open] { border-color: rgba(49,87,213,.38); }
.faq-item summary {
  padding: 19px 21px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 720;
}
.faq-item p {
  margin: 0;
  padding: 0 21px 20px;
  color: var(--text);
}

.button-grid {
  margin-top: 19px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
.tool-actions { margin-top: 19px; display: flex; align-items: center; gap: 12px; }
.check-grid { margin-top: 17px; display: grid; gap: 10px; }
.check-grid label {
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.output-field { margin-top: 22px; }
.live-stats { grid-template-columns: repeat(3,1fr); }
.progress-track {
  height: 11px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}
.progress-fill { height: 100%; width: 0; background: var(--brand); transition: width .15s; }
.progress-fill.over-limit { background: var(--danger); }

.drop-zone {
  position: relative;
  margin-bottom: 22px;
  padding: 38px;
  text-align: center;
  background:
    linear-gradient(145deg,#fafbff,#f4f6ff);
  border: 1px dashed #adb9d0;
  border-radius: 18px;
  transition: .16s ease;
}
.drop-zone:hover {
  border-color: var(--brand);
  background: #f3f6ff;
}
.drop-zone label { display: block; cursor: pointer; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone strong { color: var(--ink); font-size: 1.05rem; }
.drop-zone span { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-list { display: grid; gap: 10px; }
.file-item {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.file-item button { color: var(--danger); background: transparent; border: 0; font-weight: 700; }
.image-preview {
  margin-top: 22px;
  padding: 15px;
  text-align: center;
  background: var(--surface-soft);
  border-radius: 16px;
}
.image-preview img { max-width: 100%; max-height: 460px; border-radius: 11px; }
.converter-row { display: grid; grid-template-columns: 1fr 1fr 54px 1fr; gap: 14px; align-items: end; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}
.guide-card {
  min-height: 215px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: .19s ease;
}
.guide-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.guide-card h2 { margin: 0 0 11px; font-size: 1.35rem; }
.guide-card p { margin: 0; color: var(--muted); line-height: 1.68; }
.guide-card span { display: block; margin-top: auto; padding-top: 22px; color: var(--brand); font-weight: 750; }

.no-results { padding: 34px; text-align: center; color: var(--muted); }

.form-section-title {
  margin: 31px 0 16px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 760;
}
.inline-check {
  margin-top: 19px;
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #3e4a62;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  font-size: .93rem;
}
.inline-check input, .compact-checks input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}
.compact-checks { grid-template-columns: repeat(3,1fr); }
.compact-checks label { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.verdict-card { margin-top: 18px; padding: 20px; border-radius: 15px; }
.verdict-card strong { display: block; color: var(--ink); font-size: 1.06rem; }
.verdict-card p { margin: 7px 0 0; color: #475467; font-size: .92rem; }
.verdict-good { background: var(--success-soft); border: 1px solid #abefc6; }
.verdict-warning { background: var(--warning-soft); border: 1px solid #fedf89; }
.verdict-bad { background: var(--danger-soft); border: 1px solid #fecdca; }
.verdict-neutral { background: var(--surface-soft); border: 1px solid var(--border); }
.tax-alert { margin: 0 0 21px; }

.site-footer {
  padding: 66px 0 25px;
  background:
    linear-gradient(180deg,#17213b 0%,#121a2f 100%);
  border-top: 1px solid #273452;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 54px;
}
.footer-grid .logo-word { color: #fff; }
.footer-grid h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: .98rem;
  letter-spacing: -.01em;
}
.footer-grid a {
  display: block;
  margin: 9px 0;
  color: #c1cada;
  text-decoration: none;
}
.footer-grid a:hover { color: #fff; }
.footer-grid p { max-width: 470px; color: #aeb9cb; }
.footer-bottom {
  margin-top: 43px;
  padding-top: 23px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: #99a6ba;
  border-top: 1px solid #2e3b59;
  font-size: .86rem;
}
.footer-bottom p { margin: 0; }

.editorial-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 10px;
  color: #dce4f2;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  font-size: .79rem;
}
.trust-panel {
  padding: 30px;
  background:
    linear-gradient(145deg,#f7f8ff,#fff);
  border: 1px solid var(--border);
  border-radius: 21px;
}
.trust-panel h2 { margin-top: 0; }
.trust-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.trust-item {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.trust-item strong { display: block; color: var(--ink); }
.trust-item span { display: block; margin-top: 6px; color: var(--muted); font-size: .87rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .hero-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-copy > p:not(.eyebrow), .search-wrap { margin-inline: auto; }
  .hero-badges { justify-content: center; }
  .hero-showcase { max-width: 670px; margin-inline: auto; width: 100%; }
  .tools-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(var(--content), calc(100% - 28px)); }
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    padding: 13px 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .hero { padding: 70px 0 61px; }
  .hero h1 { font-size: clamp(2.65rem,13vw,4rem); }
  .hero-showcase { padding: 19px; }
  .section { padding: 68px 0; }
  .section-heading, .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .tools-grid, .category-grid, .input-grid, .stat-grid,
  .related-grid, .button-grid, .live-stats, .guide-grid,
  .footer-grid, .tool-intro-strip, .trust-grid {
    grid-template-columns: 1fr;
  }
  .tool-card { min-height: 215px; padding: 25px; }
  .calculator-card { padding: 24px; }
  .tab-bar { grid-template-columns: 1fr; }
  .split-input { grid-template-columns: 1fr 112px; }
  .converter-row { grid-template-columns: 1fr; }
  .swap-button { width: 100%; min-height: 44px; }
  .tool-actions { align-items: stretch; flex-direction: column; }
  .tool-actions > * { width: 100%; }
  .guide-cta { align-items: flex-start; flex-direction: column; }
  .compact-checks { grid-template-columns: 1fr; }
  .content-section { margin-top: 48px; }
  .content-section h2 { margin-top: 43px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 470px) {
  .quick-tool { grid-template-columns: 40px 1fr; }
  .quick-tool b { display: none; }
  .hero-badges span { width: 100%; text-align: center; }
}
