:root {
  --toddle-section-space: clamp(3.5rem, 7vw, 6rem);
}

html { scroll-behavior: smooth; }

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--wp--preset--color--brand);
  outline-offset: 3px;
}

.toddle-site-header {
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 86%, transparent);
  position: relative;
  z-index: 20;
}

.toddle-site-header .wp-block-navigation-item__content {
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.toddle-site-header .wp-block-navigation-item__content:hover { text-decoration: underline; }

.toddle-logo {
  line-height: 0;
  margin: 0;
}

.toddle-logo img {
  display: block;
  height: auto;
}

.toddle-fingerprint-stage {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.toddle-fingerprint-stage::before,
.toddle-fingerprint-stage::after {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand) 28%, transparent);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.toddle-fingerprint-stage::before {
  height: 15rem;
  right: -7.5rem;
  top: -5rem;
  width: 15rem;
}

.toddle-fingerprint-stage::after {
  bottom: -5rem;
  height: 12rem;
  left: -5rem;
  width: 12rem;
}

.toddle-fingerprint {
  margin: 0;
  position: relative;
  z-index: 1;
}

.toddle-section {
  padding-bottom: var(--toddle-section-space);
  padding-top: var(--toddle-section-space);
}

.toddle-eyebrow {
  color: var(--wp--preset--color--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toddle-hero-title {
  font-size: var(--wp--preset--font-size--display);
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 14ch;
}

.toddle-lead {
  color: var(--wp--preset--color--ink-soft);
  font-size: var(--wp--preset--font-size--large);
  max-width: 39rem;
}

.toddle-page-hero {
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(3.25rem, 6vw, 5.25rem);
  padding-top: clamp(3.5rem, 7vw, 5.75rem);
  position: relative;
}

.toddle-page-hero::after {
  aspect-ratio: 1;
  background: url("../images/toddle-fingerprint.png") center / contain no-repeat;
  content: "";
  opacity: 0.055;
  pointer-events: none;
  position: absolute;
  right: max(2rem, calc((100vw - 76rem) / 2));
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  width: clamp(14rem, 26vw, 24rem);
  z-index: -1;
}

.toddle-page-title {
  font-size: clamp(2.5rem, 4.5vw, 4.75rem);
  hyphens: none;
  letter-spacing: -0.05em;
  line-height: 1;
  max-width: 18ch;
  overflow-wrap: break-word;
}

.toddle-prose-section {
  padding-bottom: clamp(3.25rem, 6vw, 5rem);
  padding-top: clamp(3.25rem, 6vw, 5rem);
}

.toddle-feature-grid > .wp-block-column,
.toddle-step-grid > .wp-block-column {
  border-top: 2px solid var(--wp--preset--color--brand);
  padding-top: var(--wp--preset--spacing--40);
}

.toddle-check-list {
  padding-left: 1.25rem;
}

.toddle-check-list li {
  margin-bottom: 0.65rem;
}

.toddle-faq details {
  border-top: 1px solid var(--wp--preset--color--line);
  padding: 1.25rem 0;
}

.toddle-faq details:last-child {
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.toddle-faq summary {
  cursor: pointer;
  font-weight: 750;
}

.toddle-note {
  border-left: 4px solid var(--wp--preset--color--aqua);
  padding-left: var(--wp--preset--spacing--50);
}

.toddle-product-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 1rem;
  height: 100%;
  min-height: 20rem;
  overflow: hidden;
  position: relative;
}

.toddle-product-card--plazos {
  background: linear-gradient(145deg, var(--wp--preset--color--surface), var(--wp--preset--color--brand-light));
}

.toddle-product-card--sii {
  background: linear-gradient(145deg, var(--wp--preset--color--surface), var(--wp--preset--color--aqua-light));
}

.toddle-resource-card {
  border: 1px solid var(--wp--preset--color--line);
  border-top: 4px solid var(--wp--preset--color--brand);
  border-radius: 1rem;
  height: 100%;
  min-height: 19rem;
  padding: var(--wp--preset--spacing--50);
}

.toddle-resource-card .wp-block-post-title {
  margin-top: 0.35rem;
}

.toddle-resource-card .wp-block-post-date {
  color: var(--wp--preset--color--ink-soft);
  font-size: var(--wp--preset--font-size--small);
}

.toddle-topic-strip > .wp-block-column {
  border-left: 1px solid var(--wp--preset--color--line);
  padding-left: var(--wp--preset--spacing--50);
}

.toddle-dark-section :where(h1, h2, h3, h4) { color: var(--wp--preset--color--surface); }
.toddle-dark-section p { color: #c9d6dc; }
.toddle-footer a { color: #dce7ec; }
.toddle-footer a:hover { color: #ffffff; }

.toddle-footer li + li { margin-top: 0.25rem; }

.toddle-footer li a {
  align-items: center;
  display: inline-flex;
  min-height: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 700px) {
  .toddle-logo--header img { width: 118px !important; }
  .toddle-page-hero::after {
    opacity: 0.035;
    right: -6rem;
    width: 18rem;
  }
  .toddle-resource-card { min-height: 0; }
}
