html { scrollbar-gutter: auto; }
.toba-product :is(.toba-header, .toba-footer) {
  --pad: max(clamp(1.25rem, 4vw, 2.5rem), calc((100% - 70rem) / 2));
}
.toba-product .toba-header { border-block-end: 0; }

.toba-product .toba-home {
  --home-gutter: clamp(1.25rem, 4vw, 2.5rem);
  padding: 0;
}

.toba-home-inner {
  inline-size: min(70rem, calc(100% - 2 * var(--home-gutter)));
  margin-inline: auto;
}

.toba-home-section { padding-block: 7rem 7.5rem; }
.toba-home-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.toba-product .toba-home h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.toba-home :is(.toba-hero, .toba-home-close) {
  --ink: var(--toba-on-dark);
  --muted: var(--toba-on-dark-muted);
  --focus: var(--toba-orange-300);
  --soft: var(--toba-lake-800);
  --control-line: var(--toba-on-dark-soft);
  background: var(--toba-lake-900);
  color: var(--ink);
  text-align: center;
}

.toba-home .toba-wave-edge {
  display: block;
  block-size: 2.25rem;
  background: var(--toba-surface);
  fill: currentColor;
}

.toba-home-close > .toba-wave-edge { transform: rotate(180deg); }

.toba-hero__inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding-block: 4rem 4.5rem;
}

.toba-hero__stage {
  --fish-size: 10.25rem;
  position: relative;
  display: grid;
  place-items: start center;
  inline-size: calc(var(--fish-size) + 2.5rem);
  block-size: calc(var(--fish-size) + 1.25rem);
}

.toba-hero__fish {
  position: relative;
  z-index: 1;
  inline-size: var(--fish-size);
}

.toba-hero__fish img { display: block; inline-size: 100%; block-size: auto; }

.toba-hero__ripple {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 50%;
  inline-size: 90%;
  block-size: 25%;
  translate: -50% 0;
  border: 1px solid var(--toba-orange-300);
  border-radius: 50%;
  opacity: 0;
}

.toba-hero__ripple + .toba-hero__ripple { border-color: var(--toba-lake-500); }
.toba-hero__greeting { color: var(--toba-orange-300); font-size: 1.25rem; font-weight: 500; }
.toba-product .toba-hero__title { font-size: clamp(5rem, 11vw, 7.5rem); line-height: 1; }
.toba-product .toba-hero__lead {
  max-inline-size: 47.5rem;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}
.toba-hero__lead span { color: var(--ink); }
.toba-hero__credit { font-size: .875rem; color: var(--toba-on-dark-soft); }

.toba-home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.toba-home-actions .toba-action {
  min-block-size: 3.25rem;
  padding-inline: 1.7rem;
  border-radius: var(--toba-radius-sm);
  font-size: 1rem;
}
.toba-home-actions .toba-action:not(.toba-action--solid) { background: transparent; }
.toba-hero__reveal:has(.toba-home-actions) { margin-block: 1rem .4rem; }

#nama { scroll-margin-block-start: 1rem; }
#nama .toba-home-grid { align-items: start; }
.toba-product .toba-home-eyebrow { margin-block-end: 1.15rem; color: var(--muted); font-size: .9375rem; }
.toba-product .toba-home h2.toba-home-acronym { font-size: clamp(2.45rem, 5vw, 3.375rem); text-wrap: initial; }
.toba-home-acronym span { display: block; }
.toba-home-acronym b { color: var(--toba-orange-700); font-weight: inherit; }
.toba-home-name-copy { display: grid; gap: 2.2rem; padding-block-start: 2.6rem; }
.toba-home-name-copy > p { font-size: 1.1875rem; line-height: 1.7; }

.toba-token-example {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
}
.toba-token-example > div {
  display: grid;
  grid-template-columns: minmax(5rem, 6rem) minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
}
.toba-token-example dt { font-size: .875rem; color: var(--muted); }
.toba-token-example dd { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem; font-size: 1.4rem; font-weight: 600; }
.toba-token-example dd span {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: var(--toba-radius-sm);
  background: var(--toba-lake-100);
}
.toba-token-example > div:last-child span {
  border: 1px solid color-mix(in srgb, var(--toba-orange-700) 48%, var(--toba-orange-50));
  background: var(--toba-orange-50);
  color: var(--toba-orange-700);
}

.toba-product .toba-home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 2rem);
  margin-block-start: 3.75rem;
}
.toba-home-metrics > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: .72rem; }
.toba-home-metrics dt { color: var(--muted); }
.toba-home-metrics dd { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.02em; font-weight: 600; }
.toba-product .toba-home-metrics--token {
  margin-block-start: 5rem;
  padding-block-start: 2.5rem;
  border-block-start: 1px solid var(--line);
}
.toba-home-metrics--token dd { font-size: clamp(3rem, 5.7vw, 4rem); }
.toba-home-metrics--token > div:first-child dd { color: var(--toba-orange-700); }
.toba-home-metrics--token > div:nth-child(2) dd { color: #6B7588; }
.toba-product .toba-home-note { margin-block-start: 1.8rem; color: var(--muted); font-size: .9375rem; }

.toba-home-uses { background: var(--paper); border-block: 1px solid var(--line); }
.toba-product .toba-home-uses h2 { max-inline-size: 11.3em; text-wrap: wrap; }
.toba-product .toba-home-uses .toba-engram-description {
  margin-block-start: 1rem;
  max-inline-size: 43ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.toba-product .toba-home-uses .toba-home-text-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-block-start: .6rem;
  font-weight: 600;
}
.toba-engram-flow {
  padding: clamp(.8rem, 2.45vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--paper);
  min-inline-size: 0;
}

.toba-engram-input {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .35rem .7rem;
  font-size: .82rem;
  font-weight: 600;
}
.toba-engram-tokens { display: inline-flex; gap: .25rem; }
.toba-engram-tokens span { min-inline-size: 1.7rem; padding: .15rem .32rem; border-radius: .25rem; background: var(--result); text-align: center; }
.toba-engram-branch { position: relative; block-size: 1.1rem; color: var(--toba-lake-500); }
.toba-engram-branch::before { content: ""; position: absolute; inset: 50% 25% auto; border-block-start: 1px solid currentColor; }
.toba-engram-branch span { position: absolute; inset: 50% auto 0 25%; border-inline-start: 1px solid currentColor; }
.toba-engram-branch span:nth-child(2) { inset-inline-start: 75%; }
.toba-engram-branch span:nth-child(3) { inset: 0 auto 50% 50%; }
.toba-engram-merge { transform: scaleY(-1); }
.toba-engram-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.toba-engram-node { padding: .56rem .66rem; border-radius: .55rem; background: var(--soft); font-size: .82rem; line-height: 1.43; }
.toba-engram-memory { background: var(--toba-orange-50); }
.toba-engram-node span { display: block; margin-block-start: .18rem; color: var(--muted); }
.toba-engram-output { background: var(--result); text-align: center; }
.toba-engram-flow figcaption { margin-block-start: .7rem; text-align: center; }

.toba-home-proof { text-align: center; }
.toba-product .toba-home-proof-lead { margin: 1rem auto 0; max-inline-size: 33rem; font-size: 1.125rem; color: var(--muted); }
.toba-product .toba-home-proof .toba-home-metrics { max-inline-size: 54rem; margin-inline: auto; }
.toba-product .toba-home-proof-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin: 2.75rem auto 0; }
.toba-product .toba-home-proof .toba-home-note { margin: 4.25rem auto 0; max-inline-size: 35rem; }

.toba-home-close .toba-home-inner { padding-block: 5.5rem 6rem; }
.toba-product .toba-home-close h2 { font-size: clamp(2rem, 5vw, 3rem); }
.toba-home-close .toba-home-actions { margin-block: 2.1rem 2.35rem; }
.toba-product .toba-home-close p { margin-inline: auto; color: var(--muted); }
.toba-product .toba-home-close p a { color: var(--toba-orange-300); }
.toba-product .toba-home-close p a:hover { color: var(--toba-on-dark); }

@media (max-width: 730px) {
  .toba-home-grid { grid-template-columns: minmax(0, 1fr); }
  .toba-home-section { padding-block: 5rem 5.5rem; }
  .toba-home-name-copy { padding: 0; }
}

@media (max-width: 550px) {
  .toba-home-section, .toba-home-close .toba-home-inner { padding-block: 4rem 4.5rem; }
  .toba-hero__inner { padding-block: 2.25rem 3rem; gap: .85rem; }
  .toba-hero__stage { --fish-size: 8.125rem; block-size: 9rem; }
  .toba-hero__greeting { font-size: 1.125rem; }
  .toba-product .toba-hero__lead { font-size: 1.125rem; }
  .toba-home-actions { flex-direction: column; gap: .6rem; }
  .toba-hero__reveal:has(.toba-home-actions) { inline-size: 100%; margin-block: .55rem .5rem; }
  .toba-home-name-copy > p, .toba-product .toba-home-proof-lead { font-size: 1.0625rem; }
  .toba-product .toba-home-metrics--token { grid-template-columns: 1fr; margin-block-start: 3rem; padding-block-start: 1.8rem; gap: 1.4rem; }
  .toba-token-example > div { grid-template-columns: minmax(4.75rem, 5.4rem) minmax(0, 1fr); }
  .toba-token-example dd { font-size: 1.2rem; }
  .toba-token-example dd span { padding-inline: .52rem; }
  .toba-home-proof .toba-home-metrics dt { font-size: .875rem; }
  .toba-product .toba-home-proof .toba-home-note { margin-block-start: 2.75rem; }
}

@keyframes toba-home-leap {
  from { opacity: 0; transform: translateY(1.75rem) rotate(-5deg); }
  to { opacity: 1; transform: none; }
}
@keyframes toba-home-swim {
  45% { transform: translate(.5rem, -.55rem) rotate(3deg); }
}
@keyframes toba-home-ripple {
  0% { opacity: 0; scale: .56; }
  23% { opacity: .5; }
  100% { opacity: 0; scale: 1.2; }
}
@keyframes toba-home-rise {
  from { opacity: 0; translate: 0 .7rem; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes toba-home-token {
  from { opacity: .4; translate: 0 .5rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-toba-hero-intro] .toba-hero__fish { animation: toba-home-leap .9s var(--toba-ease-out) both; }
  [data-toba-hero-intro] .toba-hero__fish img { animation: toba-home-swim 3s var(--toba-ease-out) .9s; }
  [data-toba-hero-intro] .toba-hero__ripple { animation: toba-home-ripple 2.4s var(--toba-ease-out) .6s both; }
  [data-toba-hero-intro] .toba-hero__ripple + .toba-hero__ripple { animation-delay: 1.6s; }
  [data-toba-hero-intro] .toba-hero__reveal { animation: toba-home-rise .6s var(--toba-ease-out) var(--reveal-delay) both; }
  .toba-hero__greeting { --reveal-delay: .2s; }
  .toba-hero__title { --reveal-delay: .35s; }
  .toba-hero__lead { --reveal-delay: .6s; }
  .toba-hero__reveal:has(.toba-home-actions) { --reveal-delay: .85s; }
  .toba-hero__credit { --reveal-delay: 1s; }
  [data-token-motion] > div { animation: toba-home-token .6s var(--toba-ease-out) .3s both; }
  [data-token-motion] > div:nth-child(2) { animation-delay: .9s; }
  [data-token-motion] > div:nth-child(3) { animation-delay: 1.5s; }
}
