:root {
  color-scheme: light;
  --navy: #142c43;
  --navy-deep: #102337;
  --navy-soft: #304b62;
  --ink: #183149;
  --muted: #5f7282;
  --paper: #f5f8fa;
  --white: #ffffff;
  --line: #d7e0e6;
  --accent: #20a98e;
  --accent-dark: #087962;
  --accent-pale: #dff4ef;
  --warm: #f2b978;
  --shadow: 0 18px 50px rgb(16 35 55 / 10%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-deep);
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h3 {
  font-size: 1.3rem;
}

.container {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

#consent-banner {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 8px 24px rgb(16 35 55 / 15%);
}

#consent-banner[hidden] {
  display: none;
}

#consent-banner p {
  margin: 0;
  font-size: 16px;
}

#consent-banner button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / 56%);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

#consent-banner button:first-of-type {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--navy-deep);
  font-weight: 700;
}

#consent-banner button:hover {
  background: var(--white);
  color: var(--navy-deep);
}

#consent-preferences {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 5vw, 32px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

#consent-preferences::backdrop {
  background: rgb(16 35 55 / 65%);
}

#consent-preferences h2 {
  font-size: 1.8rem;
}

#consent-preferences fieldset {
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

#consent-preferences legend {
  font-weight: 700;
}

#consent-preferences label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

#consent-preferences input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-dark);
}

#consent-current-choice,
#consent-save-status {
  font-weight: 700;
}

#consent-reload-note {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.consent-preferences-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  background: var(--white);
  color: var(--accent-dark);
  cursor: pointer;
}

.consent-preferences-actions #consent-save {
  background: var(--accent-dark);
  color: var(--white);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-nav a {
  padding: 9px 11px;
  color: var(--navy-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.main-nav .nav-cta {
  margin-left: 4px;
  padding: 10px 15px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
}

.main-nav .nav-cta:hover {
  background: var(--accent-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  min-height: 530px;
  margin-top: 25px;
  padding: 56px 8%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 76% 48%, rgb(32 169 142 / 21%), transparent 24rem),
    linear-gradient(125deg, transparent 48%, rgb(255 255 255 / 3%) 48%, transparent 73%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(3rem, 11vw, 5.6rem);
}

.hero-intro {
  max-width: 510px;
  margin-bottom: 30px;
  color: #d4e0e9;
  font-size: 1.125rem;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow {
  color: #7de0c7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--navy-deep);
}

.button-primary:hover {
  background: #5ed0b5;
  color: var(--navy-deep);
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.button-light:hover {
  background: var(--accent-pale);
  color: var(--navy);
}

.button-small {
  min-height: 42px;
  padding: 8px 13px;
  background: var(--accent);
  color: var(--navy-deep);
}

.button-small:hover {
  background: #5ed0b5;
}

.hero-art {
  position: absolute;
  top: 50%;
  right: 8%;
  width: min(37%, 360px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.art-orbit {
  position: absolute;
  inset: 5%;
  border: 1px solid rgb(217 243 238 / 35%);
  border-radius: 50%;
  transform: rotate(-32deg) scaleY(0.58);
}

.art-orbit::before,
.art-orbit::after {
  position: absolute;
  inset: 17%;
  border: 1px solid rgb(217 243 238 / 28%);
  border-radius: 50%;
  content: "";
}

.art-orbit::after {
  inset: -12% 31%;
  transform: rotate(55deg);
}

.art-card {
  position: absolute;
  width: 76%;
  height: 48%;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 12px;
  background: linear-gradient(145deg, #2c5168, #1c3b53);
  box-shadow: 0 22px 42px rgb(0 0 0 / 19%);
}

.art-card-back {
  top: 16%;
  left: 13%;
  transform: rotate(11deg);
  opacity: 0.72;
}

.art-card-front {
  top: 29%;
  left: 4%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9%;
  transform: rotate(-8deg);
}

.art-card-label {
  color: #e9f2f5;
  font-size: clamp(0.5rem, 1vw, 0.68rem);
  font-weight: 750;
  letter-spacing: 0.13em;
}

.art-card-mark {
  width: 32px;
  height: 23px;
  border: 1px solid rgb(246 201 131 / 80%);
  border-radius: 6px;
  background: linear-gradient(90deg, transparent 47%, rgb(246 201 131 / 65%) 48%, transparent 53%);
}

.art-card-line {
  width: 68%;
  height: 3px;
  border-radius: 99px;
  background: rgb(233 242 245 / 55%);
}

.art-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 7px rgb(242 185 120 / 10%);
}

.art-spark-one {
  top: 12%;
  right: 18%;
}

.art-spark-two {
  right: 5%;
  bottom: 19%;
  width: 5px;
  height: 5px;
}

.content-section {
  padding-block: 96px 18px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

.info-card {
  position: relative;
  display: flex;
  min-height: 265px;
  flex-direction: column;
  align-items: flex-start;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 6px 20px rgb(20 44 67 / 3%);
}

.card-index {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 27px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 750;
}

.info-card h2,
.info-card h3 {
  margin-bottom: 12px;
}

.info-card p,
.topic-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link span,
.recommendation-links span {
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.text-link:hover span,
.recommendation-links a:hover span {
  transform: translateX(3px);
}

.topic-section {
  padding-top: 94px;
}

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

.topic-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 25px;
  border-radius: 10px;
  background: #e8f0f3;
}

.topic-card h3 {
  margin-bottom: 10px;
}

.topic-card p {
  margin-bottom: 16px;
}

.topic-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #bad2d8;
  border-radius: 50%;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 750;
}

.newsletter-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  align-items: center;
  margin-block: 94px 100px;
  padding: 34px;
  border-radius: 12px;
  background: var(--accent-dark);
  color: var(--white);
}

.newsletter-section .eyebrow {
  color: #c0f4e8;
}

.newsletter-section h2 {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 6vw, 2.7rem);
}

.newsletter-section form,
.input-row {
  display: flex;
  gap: 9px;
}

.newsletter-section input,
.footer-newsletter input,
.signup-form input,
.signup-form select,
.calculator-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bac9d3;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.newsletter-section input {
  border-color: rgb(255 255 255 / 65%);
}

.newsletter-section input::placeholder,
.footer-newsletter input::placeholder {
  color: #617383;
  opacity: 1;
}

.site-footer {
  background: var(--navy-deep);
  color: #d3e0e8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: 48px;
}

.footer-wordmark {
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 4px 10px;
  flex-wrap: wrap;
}

.footer-nav a {
  padding: 4px 0;
  color: #c9d7df;
  white-space: normal;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-newsletter {
  display: grid;
  gap: 10px;
  max-width: 390px;
}

.footer-newsletter label {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 650;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px 20px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  color: #b8c8d3;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
}

.page-main {
  padding-block: 58px 100px;
}

.page-intro {
  max-width: 740px;
  margin-bottom: 48px;
}

.page-intro h1,
.form-intro h1 {
  margin-bottom: 17px;
}

.page-intro > p:last-child,
.form-intro > p:last-child {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.page-main .product-grid {
  margin-bottom: 54px;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inline-cta h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.inline-cta .eyebrow {
  margin-bottom: 9px;
}

.detail-hero {
  position: relative;
  display: flex;
  min-height: 410px;
  align-items: center;
  padding: 60px 8%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy);
}

.detail-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.detail-hero h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.detail-hero p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 28px;
  color: #d4e0e9;
  font-size: 1.125rem;
}

.product-art {
  position: absolute;
  top: 50%;
  right: 8%;
  width: min(32%, 310px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.card-art {
  width: min(34%, 330px);
  height: auto;
  aspect-ratio: 1.5;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 18px;
  background: linear-gradient(145deg, #31566e, #19374f);
  box-shadow: 0 25px 60px rgb(0 0 0 / 24%);
}

.card-art .art-card-label {
  position: absolute;
  top: 12%;
  left: 11%;
  font-size: 0.7rem;
}

.card-art .art-card-mark {
  position: absolute;
  bottom: 14%;
  left: 11%;
}

.card-art .art-card-line {
  position: absolute;
  right: 11%;
  bottom: 19%;
  width: 37%;
}

.planner-art {
  border: 1px solid rgb(255 255 255 / 33%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(32 169 142 / 36%), transparent 70%);
}

.planner-ring {
  position: absolute;
  inset: 10%;
  border: 1px solid rgb(222 245 240 / 60%);
  border-radius: 50%;
}

.planner-ring-one {
  transform: scaleX(0.55) rotate(42deg);
}

.planner-ring-two {
  transform: scaleX(0.55) rotate(-42deg);
}

.planner-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 12px rgb(242 185 120 / 13%);
}

.shield-shape {
  position: absolute;
  inset: 13% 20%;
  border: 2px solid #c7eee5;
  border-radius: 48% 48% 50% 50% / 24% 24% 70% 70%;
  background: linear-gradient(145deg, rgb(32 169 142 / 28%), rgb(32 169 142 / 4%));
  clip-path: polygon(50% 0, 100% 18%, 94% 65%, 50% 100%, 6% 65%, 0 18%);
}

.shield-inner {
  position: absolute;
  inset: 32% 39%;
  border: 2px solid var(--warm);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.feature-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-block: 78px;
  border-bottom: 1px solid var(--line);
}

.feature-section h2 {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0 0 13px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-soft);
}

.feature-list li::before {
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.recommendations {
  padding-block: 74px 12px;
}

.recommendations h2 {
  margin-bottom: 24px;
}

.recommendation-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.recommendation-links a {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.recommendation-links span {
  color: var(--accent-dark);
}

.lesson-list {
  border-top: 1px solid var(--line);
}

.lesson {
  border-bottom: 1px solid var(--line);
}

.lesson h2 {
  margin: 0;
}

.lesson-toggle {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
}

.lesson-toggle::after {
  flex: 0 0 auto;
  color: var(--accent-dark);
  content: "+";
  font-size: 1.8rem;
  font-weight: 400;
}

.lesson-toggle[aria-expanded="true"]::after {
  content: "−";
}

.lesson-panel {
  max-width: 760px;
  padding: 0 42px 22px 4px;
  color: var(--muted);
}

.lesson-panel p:last-child {
  margin-bottom: 0;
}

.tool-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.tool-heading h2 {
  margin-bottom: 13px;
}

.tool-heading > p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.calculator-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.calculator-form label,
.signup-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 650;
}

.calculator-form button {
  justify-self: start;
}

.tax-result {
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--accent-pale);
  color: var(--navy);
}

.checklist-section {
  padding-block: 76px 8px;
}

.checklist-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.checklist-heading h2 {
  margin-bottom: 0;
}

.checklist-heading .text-link {
  flex: 0 0 auto;
  margin-bottom: 5px;
}

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

.checklist-item {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 13px;
  padding: 12px 5px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-soft);
  cursor: pointer;
}

.checklist-item input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--accent-dark);
}

.disclaimer,
.form-disclaimer {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-page {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 40px;
  min-height: 600px;
}

.form-intro {
  max-width: 510px;
}

.signup-form {
  display: grid;
  gap: 19px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.signup-form button {
  justify-self: start;
  min-width: 148px;
}

.signup-form .form-disclaimer {
  margin: -7px 0 0;
}

.confirmation-page {
  display: grid;
  min-height: 570px;
  place-items: center;
  padding-block: 55px;
}

.confirmation-card {
  width: min(100%, 670px);
  padding: clamp(28px, 7vw, 60px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirmation-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.confirmation-card .eyebrow {
  margin-bottom: 12px;
}

.confirmation-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.confirmation-card > p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
}

@media (min-width: 700px) {
  .container {
    width: min(100% - 64px, 1160px);
  }

  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    margin-top: 34px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .newsletter-section {
    grid-template-columns: 1fr minmax(320px, 0.8fr);
    padding: 48px;
  }

  .footer-main {
    grid-template-columns: 1fr 1.7fr;
    align-items: start;
  }

  .footer-newsletter {
    grid-column: 2;
  }

  .page-main {
    padding-top: 76px;
  }

  .feature-section {
    grid-template-columns: 0.9fr 1.1fr;
    column-gap: 9%;
    row-gap: 18px;
    align-items: start;
  }

  .feature-section .eyebrow,
  .feature-section h2 {
    grid-column: 1;
  }

  .feature-list {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

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

  .tool-panel {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8%;
    padding: 42px;
  }

  .form-page {
    grid-template-columns: 1fr 0.9fr;
    gap: 9%;
    padding-top: 95px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-block: 15px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 2px 4px;
  }

  .main-nav a,
  .main-nav .nav-cta {
    padding: 7px 8px;
    font-size: 0.8125rem;
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 570px;
    align-content: start;
    padding: 43px 27px;
  }

  .hero-art {
    top: auto;
    right: 5%;
    bottom: -4%;
    width: min(62%, 310px);
    transform: none;
    opacity: 0.82;
  }

  .hero-copy {
    max-width: 540px;
  }

  .hero h1 {
    max-width: 500px;
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .hero-intro {
    max-width: 430px;
  }

  .content-section {
    padding-top: 72px;
  }

  .topic-section {
    padding-top: 72px;
  }

  .newsletter-section {
    margin-block: 72px;
    padding: 27px 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }

  .detail-hero {
    min-height: 560px;
    align-items: flex-start;
    padding: 48px 27px;
  }

  .product-art {
    top: auto;
    right: 7%;
    bottom: 7%;
    width: min(54%, 270px);
    transform: none;
  }

  .card-art {
    width: min(69%, 300px);
    height: auto;
  }

  .feature-section {
    padding-block: 55px;
  }

  .checklist-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 540px;
    margin-top: 16px;
    padding: 36px 21px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .newsletter-section form,
  .input-row {
    flex-direction: column;
  }

  .newsletter-section .button,
  .input-row .button {
    width: 100%;
  }

  .inline-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero {
    min-height: 540px;
    padding-inline: 22px;
  }

  .detail-hero h1 {
    font-size: 2.7rem;
    overflow-wrap: anywhere;
  }

  .lesson-toggle {
    font-size: 1.1rem;
  }

  .signup-form {
    padding: 21px;
  }

  #consent-banner {
    justify-content: flex-start;
    gap: 9px;
    padding: 12px 16px;
  }

  #consent-banner p {
    width: 100%;
  }

  #consent-banner button {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
