@import url("./assets/brand/tuki-ruki-brand-tokens.css");

:root {
  font-family: ui-rounded, "Arial Rounded MT Bold", "Avenir Next", system-ui, sans-serif;
  color: var(--tr-ink);
  background: var(--tr-white);
  font-synthesis: none;
  --page-gutter: clamp(22px, 6vw, 72px);
  --content-width: 1120px;
  --soft-pink: color-mix(in srgb, var(--tr-brand-soft) 52%, white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--tr-white); }
button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 4px solid rgb(230 0 126 / 24%); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 28px);
  max-width: 1120px;
  min-height: 78px;
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgb(38 18 33 / 7%);
  border-radius: 25px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 10px 30px rgb(38 18 33 / 8%);
  backdrop-filter: blur(16px);
}
.brand-link { display: block; line-height: 0; }
.brand-logo { display: block; width: 150px; height: 52px; object-fit: contain; object-position: left center; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.language-switch { display: flex; align-items: center; gap: 2px; color: var(--tr-brand-action); font-size: 13px; font-weight: 900; }
.language-switch__button { border: 0; padding: 8px 4px; color: var(--tr-text-secondary); background: transparent; cursor: pointer; }
.language-switch__button.is-active { color: var(--tr-brand-action); }
.menu-button {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--tr-white);
  box-shadow: 0 5px 18px rgb(38 18 33 / 10%);
  cursor: pointer;
}
.menu-button span { width: 24px; height: 4px; border-radius: 10px; background: var(--tr-brand); transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.site-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--tr-border);
  border-radius: 18px;
  background: var(--tr-white);
  box-shadow: 0 16px 38px rgb(38 18 33 / 14%);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-menu.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
.site-menu a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.site-menu a:hover { background: var(--soft-pink); }

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100svh - 92px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(42px, 8vh, 84px) var(--page-gutter) 56px;
  overflow: hidden;
}
.hero h1 { margin: 0; font-size: clamp(39px, 10.8vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero__accent { margin-top: 8px; color: var(--tr-brand); }
.hero-process { max-width: 520px; margin: 22px 0 0; color: var(--tr-text-secondary); font-size: clamp(17px, 4.4vw, 21px); font-weight: 800; line-height: 1.42; }
.hero-actions { display: grid; gap: 11px; margin-top: 22px; }
.hero-actions .primary-button { min-height: 58px; margin-top: 0; font-size: clamp(17px, 4.5vw, 20px); }
.hero-actions .secondary-button { min-height: 56px; font-size: clamp(16px, 4.2vw, 19px); }
.hero-actions a { letter-spacing: .045em; text-transform: uppercase; }
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 66px;
  margin-top: 34px;
  padding: 14px 22px;
  border-radius: 999px;
  color: var(--tr-white);
  background: var(--tr-brand);
  box-shadow: 0 8px 0 var(--tr-brand-action);
  text-align: center;
  text-decoration: none;
  font-size: clamp(20px, 5.4vw, 25px);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button svg { flex: 0 0 auto; width: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--tr-brand-action); }
.primary-button:hover svg { transform: translateX(4px); }
.primary-button:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--tr-brand-action); }
.secondary-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 62px;
  padding: 13px 20px;
  border: 3px solid var(--tr-voice);
  border-radius: 999px;
  color: var(--tr-ink);
  background: var(--tr-voice);
  box-shadow: 0 7px 0 #ff9933;
  text-align: center;
  text-decoration: none;
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 900;
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.secondary-button:hover { border-color: #ffc20a; background: #ffdc45; box-shadow: 0 9px 0 #ff9933; transform: translateY(-2px); }
.secondary-button:active { box-shadow: 0 3px 0 #ff9933; transform: translateY(4px); }

.hero-scene { position: relative; min-height: 365px; margin-top: 28px; }
.hero-scene picture:first-of-type {
  position: absolute;
  z-index: 2;
  left: -9%;
  bottom: 0;
  width: min(66vw, 310px);
}
.dillo-welcome {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 12px rgb(38 18 33 / 9%));
  animation: dillo-bob 4s ease-in-out infinite;
}
.hero-scene picture:nth-of-type(2) {
  position: absolute;
  z-index: 3;
  top: auto;
  right: 4%;
  bottom: 0;
  width: min(47vw, 225px);
}
.family-constellation {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgb(38 18 33 / 10%));
  animation: constellation-float 5s ease-in-out infinite;
}
.voice-path { position: absolute; right: -6%; bottom: 14px; width: min(58vw, 260px); overflow: visible; }
.voice-path__line { fill: none; stroke: var(--tr-brand); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 13; }
.voice-token circle { fill: var(--tr-voice); }
.voice-token path { fill: none; stroke: var(--tr-white); stroke-width: 3; stroke-linecap: round; animation: voice-pulse 1.4s ease-in-out infinite alternate; }
.family-avatar { position: absolute; z-index: 3; width: 72px; aspect-ratio: 1; filter: drop-shadow(0 5px 9px rgb(38 18 33 / 12%)); }
.family-avatar svg { width: 100%; overflow: visible; }
.family-avatar svg > circle:first-child { fill: var(--soft-pink); stroke: var(--tr-white); stroke-width: 4; }
.family-avatar svg path:first-of-type { fill: var(--tr-ink); stroke: none; }
.family-avatar svg circle:nth-of-type(2) { fill: #f2b988; stroke: none; }
.family-avatar svg circle:nth-of-type(n+3) { fill: var(--tr-ink); stroke: none; }
.family-avatar svg path:not(:first-of-type) { fill: none; stroke: var(--tr-ink); stroke-width: 2; stroke-linecap: round; }
.family-avatar--child { top: 2%; right: 15%; }
.family-avatar--adult { top: 34%; right: -2%; }
.family-avatar--grandparent { right: 18%; bottom: 1%; }
.family-avatar--grandparent svg path:first-of-type { fill: #f0f0f3; }
.scroll-cue { display: grid; place-items: center; width: 52px; height: 38px; margin: 4px auto 0; color: var(--tr-brand); }
.scroll-cue svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: scroll-bounce 1.8s ease-in-out infinite; }

.section { padding: clamp(72px, 12vw, 130px) var(--page-gutter); }
.section--pink { background: var(--soft-pink); }
.section__inner { width: min(100%, var(--content-width)); margin: 0 auto; }
.section__inner--narrow { max-width: 760px; }
.product-definition { text-align: center; }
.product-definition .eyebrow { margin-right: auto; margin-left: auto; }
.product-definition > .section__inner > h2 { max-width: 940px; margin-right: auto; margin-left: auto; font-size: clamp(40px, 7vw, 62px); }
.product-definition .definition-intro { max-width: 760px; margin: 22px auto 0 !important; text-align: center; }
.definition-story { display: grid; gap: 16px; margin-top: 38px; text-align: left; }
.definition-card { display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 20px; min-height: 190px; padding: 26px 22px; border: 1px solid rgb(38 18 33 / 7%); border-radius: 28px; background: var(--tr-white); box-shadow: 0 14px 36px rgb(38 18 33 / 7%); text-align: center; }
.definition-card > picture { display: grid; place-items: center; width: 100%; }
.definition-card--challenge { background: var(--soft-pink); }
.definition-card--solution { display: grid; grid-template-columns: 1fr; background: color-mix(in srgb, var(--tr-voice) 10%, white); }
.definition-card h3 { margin: 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.1; }
.definition-card p { margin: 10px 0 0 !important; font-size: clamp(17px, 4vw, 20px) !important; line-height: 1.45 !important; }
.definition-art { display: block; width: min(100%, 290px); max-height: 230px; object-fit: contain; filter: drop-shadow(0 12px 18px rgb(38 18 33 / 10%)); }
.definition-art--learning { width: min(100%, 520px); max-height: 280px; }
.family-question {
  display: grid;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 28px 24px;
  border: 1px solid rgb(38 18 33 / 7%);
  border-radius: 30px;
  background: color-mix(in srgb, var(--tr-voice) 12%, white);
  box-shadow: 0 14px 36px rgb(38 18 33 / 7%);
  text-align: left;
}
.family-question .eyebrow { margin-left: 0; }
.family-question h3 { max-width: 650px; margin: 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.1; }
.family-question p:not(.eyebrow) { margin: 16px 0 0 !important; font-size: clamp(18px, 4.2vw, 21px) !important; line-height: 1.45 !important; }
.family-question .family-question__steps { padding-top: 14px; border-top: 2px solid color-mix(in srgb, var(--tr-brand) 18%, transparent); color: var(--tr-ink) !important; font-size: clamp(16px, 3.8vw, 19px) !important; font-weight: 900; }
.family-question__art { display: block; width: min(100%, 590px); max-height: 350px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgb(38 18 33 / 10%)); }
.family-question > picture { display: grid; place-items: center; width: 100%; }
.eyebrow { margin: 0 0 14px; color: var(--tr-brand); font-size: 14px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(38px, 10vw, 66px); line-height: 1.04; letter-spacing: -.045em; }
.section p:not(.eyebrow):not(.section-note) { max-width: 750px; margin: 24px 0 0; color: var(--tr-text-secondary); font-size: clamp(18px, 4.6vw, 22px); line-height: 1.55; }
.text-link { display: inline-block; margin-top: 22px; color: var(--tr-brand-action); font-size: 18px; font-weight: 900; text-underline-offset: 5px; }

.story { overflow: hidden; }
.story__layout { display: grid; gap: 38px; align-items: center; }
.story__copy { position: relative; z-index: 1; }
.story__portrait { position: relative; display: grid; place-items: center; min-height: 330px; margin: 0; }
.story__portrait > picture { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; }
.story__portrait::before { position: absolute; width: min(82vw, 430px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 92%) 0 52%, rgb(255 255 255 / 0%) 72%); content: ""; }
.story__portrait img { position: relative; z-index: 1; display: block; width: auto; max-width: 100%; height: min(68vh, 500px); object-fit: contain; filter: drop-shadow(0 18px 25px rgb(38 18 33 / 12%)); }
.story__voice { position: absolute; z-index: 2; right: 2%; bottom: 18%; width: min(58%, 300px); aspect-ratio: 2.5; pointer-events: none; }
.story__voice-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.story__voice-path path { fill: none; stroke: var(--tr-brand); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 18; animation: voice-drift 5s linear infinite; }
.story__voice-token { position: absolute; top: 37%; left: 56%; display: grid; place-items: center; width: clamp(46px, 12vw, 64px); aspect-ratio: 1; border: 4px solid white; border-radius: 50%; color: white; background: var(--tr-voice); box-shadow: 0 9px 20px rgb(38 18 33 / 13%); transform: translate(-50%, -50%); }
.story__voice-token svg { width: 76%; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }

@keyframes voice-drift { to { stroke-dashoffset: -38; } }

.steps { display: grid; gap: 18px; margin-top: 42px; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(112px, 36%) 1fr; align-items: center; gap: 18px; min-width: 0; padding: 18px; border: 1px solid rgb(38 18 33 / 7%); border-radius: 26px; background: var(--tr-white); box-shadow: 0 12px 32px rgb(38 18 33 / 7%); }
.step__visual { position: relative; display: grid; place-items: center; min-width: 0; min-height: 118px; border-radius: 20px; background: var(--soft-pink); overflow: hidden; }
.step__visual picture { display: grid; place-items: center; width: 100%; height: 100%; }
.step:nth-child(2) .step__visual { background: color-mix(in srgb, var(--tr-voice) 15%, white); }
.step__visual img { display: block; width: 112%; max-height: 155px; object-fit: contain; }
.step__visual--family img { width: 82%; }
.step__number { position: absolute; z-index: 2; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 50%; color: white; background: var(--tr-brand); font-size: 16px; font-weight: 950; box-shadow: 0 5px 12px rgb(38 18 33 / 14%); }
.step__copy { min-width: 0; }
.step h3 { margin: 0; font-size: clamp(22px, 6vw, 29px); line-height: 1.08; }
.step p { width: 100%; margin: 10px 0 0 !important; font-size: 16px !important; line-height: 1.42 !important; }

.circles { overflow: hidden; }
.closing-cta { display: grid; align-items: center; gap: 30px; }
.closing-cta__copy { position: relative; z-index: 2; text-align: center; }
.closing-cta__copy .eyebrow, .closing-cta__copy h2, .closing-cta__copy p { margin-right: auto !important; margin-left: auto !important; }
.closing-cta__copy .primary-button { max-width: 620px; margin-right: auto; margin-left: auto; letter-spacing: .04em; text-transform: uppercase; }
.closing-cta__copy .closing-cta__trust { margin-top: 22px !important; font-size: clamp(15px, 3.8vw, 18px) !important; font-weight: 900; }
.closing-cta__art { position: relative; display: grid; place-items: center; min-height: 250px; }
.closing-cta__art picture { display: grid; place-items: center; width: 100%; }
.closing-cta__art::before { position: absolute; width: min(76vw, 330px); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 58%); content: ""; }
.closing-cta__art img { position: relative; z-index: 1; display: block; width: min(72vw, 300px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 24px rgb(38 18 33 / 12%)); animation: dillo-bob 3.2s ease-in-out infinite; }
.closing-cta__voice { position: absolute; z-index: 2; top: 18%; right: 9%; display: flex; align-items: center; gap: 4px; width: 58px; height: 58px; padding: 0 11px; border: 4px solid white; border-radius: 50%; background: var(--tr-voice); box-shadow: 0 8px 18px rgb(38 18 33 / 12%); }
.closing-cta__voice i { width: 4px; height: 13px; border-radius: 5px; background: white; animation: voice-pulse .75s ease-in-out infinite alternate; }
.closing-cta__voice i:nth-child(2), .closing-cta__voice i:nth-child(4) { height: 25px; animation-delay: -.2s; }
.closing-cta__voice i:nth-child(3) { height: 34px; animation-delay: -.35s; }

.site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px 34px; padding: 30px var(--page-gutter) 42px; }
.site-footer img { width: 50px; height: 50px; object-fit: contain; }
.site-footer a, .site-footer button { border: 0; color: var(--tr-text-secondary); background: transparent; text-decoration: none; font-weight: 800; cursor: pointer; }
.site-footer a:hover, .site-footer button:hover { color: var(--tr-brand-action); }

@media (min-width: 720px) {
  .site-header { top: 22px; margin-top: 22px; padding-right: 20px; padding-left: 24px; }
  .brand-logo { width: 210px; }
  .language-switch { display: flex; }
  .hero { grid-template-columns: minmax(430px, .95fr) minmax(0, 1.05fr); align-items: center; min-height: calc(100svh - 104px); gap: 48px; }
  .hero h1 { font-size: clamp(46px, 4.2vw, 60px); }
  .hero-process { max-width: 440px; font-size: clamp(17px, 1.45vw, 20px); }
  .hero-scene { min-height: 560px; margin-top: 0; }
  .hero-scene picture:first-of-type { left: 0; width: min(31vw, 350px); }
  .hero-scene picture:nth-of-type(2) { top: auto; right: 0; bottom: 3%; width: min(17vw, 190px); }
  .voice-path { right: -8%; bottom: 40px; width: min(33vw, 350px); }
  .family-avatar { width: 94px; }
  .scroll-cue { position: absolute; bottom: 18px; left: 50%; }
  .definition-story { grid-template-columns: 1fr; gap: 22px; }
  .definition-card { grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); justify-items: stretch; gap: 34px; padding: 34px; text-align: left; }
  .definition-card--family,
  .definition-card--challenge {
    grid-template-areas:
      "art title"
      "body body";
    grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
    column-gap: 34px;
    row-gap: 10px;
  }
  .definition-card--family > picture,
  .definition-card--challenge > picture { grid-area: art; }
  .definition-card--family > div,
  .definition-card--challenge > div { display: contents; }
  .definition-card--family h3,
  .definition-card--challenge h3 { grid-area: title; align-self: end; }
  .definition-card--family p,
  .definition-card--challenge p { grid-area: body; width: 100%; max-width: none !important; margin-top: 0 !important; }
  .definition-card--solution { grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); gap: 34px; }
  .definition-art { width: 100%; max-height: 210px; }
  .definition-art--learning { max-height: 300px; }
  .family-question { padding: 38px 42px; }
  .family-question__art { max-height: 360px; }
  .story__layout { grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: clamp(34px, 6vw, 78px); }
  .story__portrait { min-height: 470px; }
  .story__portrait img { width: auto; height: min(72vh, 610px); }
  .story__voice { right: -3%; bottom: 19%; width: min(62%, 330px); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .step { grid-template-columns: 1fr; grid-template-rows: 230px auto; align-items: start; padding: 20px; text-align: left; }
  .step__visual { width: 100%; height: 230px; }
  .step__visual img { width: 112%; max-height: 220px; }
  .step__visual--family img { width: 72%; }
  .closing-cta { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 48px; }
  .closing-cta__copy { text-align: left; }
  .closing-cta__copy .eyebrow, .closing-cta__copy h2, .closing-cta__copy p { margin-left: 0 !important; }
  .closing-cta__copy .primary-button { margin-left: 0; }
  .closing-cta__art { min-height: 440px; }
  .closing-cta__art img { width: min(31vw, 390px); }
}

@media (min-width: 960px) {
  .family-question { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 38px; }
  .family-question__art { max-height: 390px; }
}

@media (min-width: 1100px) {
  .definition-story { grid-template-columns: 1fr 1fr; }
  .definition-card--family,
  .definition-card--challenge { grid-template-columns: minmax(190px, .75fr) minmax(0, 1fr); column-gap: 28px; }
  .definition-card--family h3,
  .definition-card--challenge h3 { align-self: center; }
  .definition-card--family p { margin-top: -52px !important; }
  .definition-card--challenge p { margin-top: -36px !important; }
  .definition-card--solution { grid-column: 1 / -1; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 42px; }
}

@media (min-width: 1280px) {
  .definition-card--challenge p { margin-top: -52px !important; }
}

@media (max-width: 359px) {
  .definition-card { grid-template-columns: 1fr; justify-items: center; padding: 24px 20px; text-align: center; }
  .definition-card p { text-align: left; }
}

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

@keyframes dillo-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-.5deg); } }
@keyframes constellation-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes voice-pulse { from { transform: scaleY(.74); transform-origin: center; } to { transform: scaleY(1.08); transform-origin: center; } }
@keyframes scroll-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
