:root {
  --ink: #151515;
  --muted: #5d625f;
  --paper: #fbfaf5;
  --line: #dedbd0;
  --teal: #008b8b;
  --coral: #f04f3e;
  --lime: #cde84c;
  --violet: #7256d7;
  --amber: #f0a83a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(21, 21, 21, 0.18);
}

* {
  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;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 245, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  list-style: none;
  color: var(--muted);
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  display: none;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.nav-dropdown[open] .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--ink);
  background: #f6f5ed;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-dropdown summary:hover,
.nav-dropdown summary:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: min(760px, calc(88svh - 72px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(34px, 5vw, 52px) clamp(20px, 5vw, 72px) clamp(34px, 4vw, 46px);
  background:
    radial-gradient(circle at 78% 28%, rgba(205, 232, 76, 0.52), transparent 28%),
    linear-gradient(135deg, #fffef7 0%, #f8f1df 44%, #e9fbf8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: auto -10% -26% -10%;
  height: 52%;
  background: linear-gradient(90deg, rgba(0, 139, 139, 0.18), rgba(240, 79, 62, 0.18), rgba(114, 86, 215, 0.16));
  transform: skewY(-5deg);
}

.screen {
  position: absolute;
  color: var(--white);
  background: #202221;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

.screen-main {
  right: clamp(-120px, 5vw, 70px);
  top: clamp(96px, 17vw, 172px);
  width: min(560px, 50vw);
  min-width: 410px;
  min-height: 380px;
  padding: 22px;
  border-radius: 18px;
  transform: rotate(-3deg);
}

.screen-side {
  right: clamp(16px, 6vw, 90px);
  bottom: 80px;
  width: min(250px, 34vw);
  padding: 22px;
  border-radius: 16px;
  background: var(--teal);
  transform: rotate(5deg);
}

.screen-side p,
.screen-side strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
}

.screen-side p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 700;
}

.screen-side strong {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.pulse {
  position: absolute;
  inset: 14px 16px auto auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 10px rgba(205, 232, 76, 0.2);
}

.screen-top {
  display: flex;
  gap: 8px;
  padding-bottom: 20px;
}

.screen-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.screen-top span:nth-child(2) {
  background: var(--amber);
}

.screen-top span:nth-child(3) {
  background: var(--lime);
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.signal {
  min-height: 118px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.signal span,
.signal strong {
  display: block;
}

.signal span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

.signal strong {
  margin-top: 18px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1;
}

.signal-hot {
  border-top: 6px solid var(--coral);
}

.signal-cool {
  border-top: 6px solid var(--teal);
}

.signal-bright {
  border-top: 6px solid var(--lime);
}

.chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 146px;
  margin-top: 34px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.chart i {
  display: block;
  flex: 1;
  min-width: 18px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--lime), var(--teal));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 11.4ch;
  font-size: clamp(3rem, 5.4vw, 4.35rem);
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(2.35rem, 6vw, 5rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-copy {
  max-width: 530px;
  margin: 22px 0 0;
  color: #3d403e;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.44);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: 880px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head p:not(.eyebrow),
.workflow-copy p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.calculator-section {
  background: #fffdf8;
}

.trending-section {
  background:
    linear-gradient(135deg, rgba(0, 139, 139, 0.08), rgba(240, 168, 58, 0.08)),
    #fffdf8;
  border-block: 1px solid var(--line);
}

.ai-section {
  background:
    linear-gradient(135deg, rgba(114, 86, 215, 0.1), rgba(0, 139, 139, 0.08)),
    #fffdf8;
}

.trends-hero h1 {
  max-width: 9ch;
}

.ai-hero h1 {
  max-width: 11ch;
}

.trending-preview-grid,
.trending-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trending-dashboard {
  align-items: start;
}

.trend-panel {
  display: grid;
  gap: 18px;
  min-height: 330px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 21, 21, 0.06);
}

.trend-panel-feature {
  background:
    linear-gradient(135deg, rgba(205, 232, 76, 0.26), rgba(255, 255, 255, 0) 46%),
    var(--white);
}

.trend-panel-head {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.trend-panel-head span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trend-panel-head strong {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.05;
}

.trend-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: trends;
}

.trend-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
}

.trend-list li:last-child {
  border-bottom: 0;
}

.trend-list li::before {
  counter-increment: trends;
  content: counter(trends);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 900;
}

.trend-list span {
  min-width: 0;
  font-weight: 900;
  line-height: 1.12;
}

.trend-list b {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 8px;
  color: #35514b;
  background: #e9f7f3;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
}

.trend-list li.has-trend-tip {
  grid-template-columns: 34px minmax(0, 1fr) auto 34px;
}

.trend-info-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(0, 139, 139, 0.22);
  border-radius: 999px;
  color: var(--teal);
  background: #f2fbf8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.trend-info-button:hover,
.trend-info-button:focus-visible,
.trend-info-button[aria-expanded="true"] {
  color: var(--white);
  background: var(--teal);
}

.trend-tip {
  grid-column: 2 / -1;
  margin: -2px 0 4px;
  padding: 12px 14px;
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  color: #3f4845;
  background: #f7fae7;
  font-size: 0.9rem;
}

.trend-list-long li {
  min-height: 58px;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -18px 0 34px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #38413e;
  font-weight: 900;
}

.category-band {
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.category-band:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.category-band h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.category-band-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-band-header h2 {
  margin-bottom: 0;
}

.text-link {
  color: var(--teal);
  font-weight: 900;
}

.blog-slide-wrap {
  position: relative;
  display: grid;
  gap: 14px;
  margin: -18px 0 34px;
}

.slide-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.slide-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.blog-slide-menu {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.blog-slide-menu a {
  display: grid;
  gap: 6px;
  flex: 0 0 min(260px, 78vw);
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 21, 21, 0.05);
}

.blog-slide-menu span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-slide-menu strong {
  line-height: 1.05;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 21, 21, 0.06);
}

.blog-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card strong {
  font-size: clamp(1.18rem, 2.4vw, 1.7rem);
  line-height: 1.08;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

.calculator-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -18px 0 32px;
}

.calculator-index a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #38413e;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calculator-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
  min-height: 390px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 21, 21, 0.06);
  scroll-margin-top: 92px;
}

.calculator-link-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 21, 21, 0.06);
}

.calculator-link-card:hover,
.calculator-link-card:focus-visible {
  transform: translateY(-2px);
}

.calculator-link-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-link-card strong {
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  line-height: 1.05;
}

.calculator-link-card p {
  margin: 0;
  color: var(--muted);
}

.compact-calculator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-actions {
  margin-top: 24px;
}

.calculator-page-hero {
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 24%, rgba(205, 232, 76, 0.42), transparent 28%),
    linear-gradient(135deg, #fffef7 0%, #f8f1df 54%, #e9fbf8 100%);
  border-bottom: 1px solid var(--line);
}

.calculator-page-hero h1 {
  max-width: 12ch;
}

.calculator-page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 520px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.calculator-note {
  display: grid;
  gap: 16px;
}

.calculator-note p,
.calculator-note li {
  color: var(--muted);
}

.calculator-note ul {
  margin: 0;
  padding-left: 20px;
}

.related-calculators {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related-calculators h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.monetization-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(205, 232, 76, 0.22), rgba(255, 255, 255, 0) 46%),
    var(--white);
  box-shadow: 0 12px 34px rgba(21, 21, 21, 0.06);
}

.monetization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.tool-card span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card strong {
  line-height: 1.05;
}

.tool-card p,
.disclosure {
  margin: 0;
  color: var(--muted);
}

.disclosure {
  font-size: 0.9rem;
}

.featured-calculator {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(205, 232, 76, 0.25), rgba(255, 255, 255, 0) 42%),
    var(--white);
}

.calc-label {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-copy p {
  color: var(--muted);
}

.formula {
  margin-top: 22px;
  padding: 14px;
  border-left: 4px solid var(--lime);
  background: #f7fae7;
  font-size: 0.92rem;
  font-weight: 800;
}

.calculator-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 8px;
  background: #f6f5ed;
}

.calc-result {
  display: block;
  min-height: 78px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
}

.calculator-faq {
  max-width: 920px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.calculator-faq h3 {
  margin-bottom: 18px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.metric,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 21, 21, 0.06);
}

.service-card {
  min-height: 260px;
  padding: 28px;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--coral);
  font-weight: 900;
}

.service-card p,
.timeline p,
.metric p {
  color: var(--muted);
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  background: #eef8f5;
  border-block: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.timeline li {
  position: relative;
  min-height: 140px;
  padding: 24px 24px 24px 86px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.timeline li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 24px;
  top: 24px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-weight: 900;
}

.timeline p {
  margin: 0;
}

.insight-section {
  background: var(--ink);
  color: var(--white);
}

.insight-section .eyebrow {
  color: var(--lime);
}

.insight-section .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.insight-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.metric {
  min-height: 230px;
  padding: 28px;
  color: var(--ink);
}

.metric-large {
  background: var(--lime);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 14px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 560px);
  gap: clamp(34px, 8vw, 110px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 139, 139, 0.22);
  border-color: var(--teal);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--white);
  font-weight: 900;
}

.site-footer .footer-disclosure {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
}

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

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    width: 100%;
    justify-content: space-between;
    padding: 16px;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .site-nav a {
    padding: 16px;
  }

  .dropdown-menu a {
    padding: 12px 16px;
  }

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

  .hero-content {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
  }

  .screen-main {
    right: -210px;
    top: 120px;
    opacity: 0.38;
  }

  .screen-side {
    display: none;
  }

  .service-grid,
  .calculator-grid,
  .blog-grid,
  .monetization-grid,
  .trending-preview-grid,
  .trending-dashboard,
  .workflow-section,
  .insight-board,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .compact-calculator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-card,
  .featured-calculator {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .category-band-header {
    align-items: start;
    flex-direction: column;
  }

  .service-card {
    min-height: 220px;
  }

  .card-icon {
    margin-bottom: 34px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
  }

  .calculator-page-hero {
    padding-top: 92px;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 3.2rem);
  }

  h2 {
    font-size: clamp(2.15rem, 12vw, 3.3rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .calculator-index a {
    width: 100%;
  }

  .category-nav a {
    width: 100%;
  }

  .slide-controls {
    justify-content: start;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .trend-list li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .trend-list li.has-trend-tip {
    grid-template-columns: 30px minmax(0, 1fr) 34px;
  }

  .trend-list b {
    justify-self: start;
    grid-column: 2;
  }

  .trend-info-button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .trend-tip {
    grid-column: 2 / -1;
  }

  .compact-calculator-grid {
    grid-template-columns: 1fr;
  }

  .calculator-form {
    padding: 14px;
  }

  .timeline li {
    padding: 76px 20px 22px;
  }

  .timeline li::before {
    left: 20px;
    top: 20px;
  }

  .screen-main {
    right: -300px;
    opacity: 0.16;
  }
}
