:root {
  color-scheme: light;
  --ink: #18212c;
  --muted: #5b6673;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f6f9fb;
  --mist: #eaf5f1;
  --accent: #166d5f;
  --accent-dark: #0e4c43;
  --blue: #234f87;
  --gold: #edb84d;
  --shadow: 0 14px 34px rgba(24, 33, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

.hero,
.page-intro,
.choice-section,
.content-block,
.related-tools,
.tool-section,
.ad-row,
.more-tools,
.faq {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: 64px 0 54px;
  min-height: 510px;
}

.landing-hero {
  min-height: 440px;
}

.home-hero {
  grid-template-columns: minmax(160px, 0.7fr) minmax(320px, 1.8fr) minmax(160px, 0.7fr);
  min-height: 430px;
  width: 100%;
  max-width: none;
  padding: 58px max(18px, calc((100vw - 1240px) / 2)) 34px;
  background: var(--paper);
  color: var(--ink);
}

.home-hero-copy {
  display: grid;
  align-content: center;
  max-width: 760px;
  min-height: 300px;
  margin: 0 auto;
  padding: 34px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(22, 109, 95, 0.14);
  text-align: center;
}

.home-hero .eyebrow {
  color: var(--accent-dark);
}

.home-hero h1 {
  position: relative;
  display: grid;
  gap: 4px;
  max-width: none;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 800;
  text-shadow: none;
}

.free-badge {
  display: block;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.86em;
  font-weight: inherit;
  line-height: 0.96;
  text-shadow: none;
}

.brand-title-line {
  display: block;
  white-space: nowrap;
}

.home-hero .lead {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.hero-ad {
  min-height: 300px;
  border: 2px dashed rgba(22, 109, 95, 0.5);
  background: var(--soft);
  color: var(--muted);
}

.hero-ad span {
  color: var(--accent-dark);
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: 54px 0 36px;
}

.simple-page {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
summary,
label {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.lead {
  max-width: 700px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(22, 109, 95, 0.22);
}

.button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.quick-summary {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.ad-slot,
.ad-row {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px dashed #aeb9c4;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.ad-slot span,
.ad-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot p,
.ad-row p {
  margin: 0;
}

.ad-slot-large {
  min-height: 260px;
}

.ad-row {
  margin-top: 24px;
  margin-bottom: 36px;
  min-height: 112px;
}

.choice-section {
  width: 100%;
  max-width: none;
  padding: 24px max(18px, calc((100vw - 1140px) / 2)) 54px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.choice-section .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.cta-main,
.cta-click,
.cta-word {
  display: block;
}

.cta-main {
  color: var(--gold);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.cta-word {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.cta-word:first-of-type {
  margin-top: 10px;
}

.cta-click {
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.choice-section .section-heading p {
  color: var(--muted);
}

.choice-section .eyebrow {
  color: var(--accent-dark);
}

.content-block,
.related-tools {
  padding: 34px 0;
}

.content-block {
  max-width: 920px;
}

.content-block p,
.related-tools p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy h2 {
  margin-top: 30px;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.mini-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mini-link-grid a {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.tool-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.tool-choice {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-section .tool-choice {
  border: 2px solid rgba(22, 109, 95, 0.34);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(24, 33, 44, 0.08);
}

.choice-section .tool-choice:nth-child(2) {
  border-color: rgba(35, 79, 135, 0.38);
}

.choice-section .tool-choice:nth-child(3) {
  border-color: rgba(237, 184, 77, 0.66);
}

.choice-section .tool-choice:nth-child(4) {
  border-color: rgba(22, 109, 95, 0.48);
}

.tool-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 4px;
  border: 1px solid rgba(22, 109, 95, 0.22);
  border-radius: 8px;
  background: #edf8f3;
  color: var(--accent-dark);
}

.tool-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dual-icon {
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.dual-icon svg {
  width: 24px;
  height: 24px;
}

.tool-choice:hover {
  border-color: rgba(22, 109, 95, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-choice span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tool-choice p {
  margin: 0;
  color: var(--muted);
}

.quick-summary span,
.quick-summary p {
  color: var(--muted);
}

.quick-summary strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--blue);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
}

.tool-section {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
}

.single-tool {
  border-top: 0;
  padding-top: 22px;
}

.tool-section.alt {
  width: 100%;
  max-width: none;
  padding: 56px max(18px, calc((100vw - 1140px) / 2));
  background: var(--mist);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading p {
  color: var(--muted);
}

.tool-grid,
.converter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}

input:focus,
select:focus {
  outline: 3px solid rgba(22, 109, 95, 0.2);
  border-color: var(--accent);
}

.input-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.input-suffix input {
  border: 0;
  border-radius: 0;
}

.input-suffix span {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 850;
}

.result-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.result-panel span,
.result-panel dt,
.result-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.result-panel strong {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}

dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

dt,
dd {
  margin: 0;
}

dd {
  font-weight: 850;
}

.converter-form {
  grid-template-columns: minmax(0, 1fr);
}

.converter-result {
  position: static;
  min-height: 220px;
}

.converter-result p {
  margin: 0;
}

.more-tools {
  padding: 52px 0 58px;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.tool-list article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.tool-list p {
  margin: 0;
  color: var(--muted);
}

.faq {
  padding: 12px 0 58px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 850;
}

details p {
  margin: -4px 0 18px;
  color: var(--muted);
}

footer {
  padding: 30px 18px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin: 8px 0 0;
}

.footer-links a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .home-hero,
  .page-intro,
  .content-block,
  .related-tools,
  .tool-grid,
  .converter-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .home-hero {
    padding-top: 42px;
  }

  .hero-ad {
    min-height: 120px;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 1080px) and (min-width: 641px) {
  .tool-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero,
  .page-intro,
  .choice-section,
  .content-block,
  .related-tools,
  .tool-section,
  .ad-row,
  .more-tools,
  .faq {
    width: min(100% - 28px, 1140px);
  }

  .tool-section.alt {
    padding-right: 14px;
    padding-left: 14px;
  }

  .tool-form,
  .tool-choice-grid,
  .mini-link-grid,
  .tool-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.42rem;
  }

  .home-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .quick-summary,
  .tool-form,
  .result-panel {
    padding: 20px;
  }

  dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
