@import "./fonts.css";
@import "./tokens.css";
@import "../vendor/ids/layout.css";

@import "./programs.css";
:root{--ids__density:1.5;--ids__spacer-s:1rem;--ids__spacer-m:2rem;--ids__spacer-l:4rem;--ids__spacer-xl:6rem;--ids__gap-m:1.5rem;--ids__gap-l:2rem;--radius-button:999px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:2rem}body{margin:0;background:var(--color-background);color:var(--color-text);font:400 var(--font-size-body)/var(--line-height-body) var(--font-body);font-synthesis:none}img{display:block;max-width:100%;height:auto}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--color-link);text-underline-offset:.2em}a:hover{color:var(--color-link-hover)}button{font:inherit}h1,h2,h3,p,figure,blockquote{margin:0}h1,h2{font-family:var(--font-accent);font-weight:var(--font-weight-accent);color:var(--color-heading);line-height:1.08}h1{font-size:clamp(2.25rem,4.1vw,3.5rem);max-width:760px}h2{font-size:clamp(2rem,3.5vw,3rem)}h3{font-size:1.25rem;line-height:1.3;font-weight:600}p+p{margin-top:1rem}.ids__wrapper.L{max-width:1260px;width:88%}.ids__text-width{max-width:760px}.eyebrow{font-size:.78rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--color-link)}.eyebrow+h1,.eyebrow+h2{margin-top:1rem}.section-heading{margin-bottom:2.5rem}.section-heading p:last-child{max-width:740px;margin-top:1.2rem}.section{padding:5rem 0}.section-soft{background:var(--color-surface-soft)}.section-warm{background:var(--color-surface-warm)}.button{display:inline-flex;justify-content:center;align-items:center;gap:.75rem;min-height:48px;padding:.85rem 1.5rem;border:1px solid transparent;border-radius:var(--radius-button);font-weight:600;text-decoration:none;background:var(--color-primary);color:var(--color-on-primary);cursor:pointer;transition:background .15s,transform .15s}.button:hover{background:var(--color-primary-hover);color:var(--color-on-primary)}.button:active{background:var(--color-primary-active);transform:translateY(1px)}.button:disabled,.button[aria-disabled=true]{background:var(--color-disabled-background);color:var(--color-disabled-text);cursor:default}.button-secondary{background:transparent;color:var(--color-link);border-color:var(--color-link)}.button-secondary:hover{background:var(--color-surface-soft);color:var(--color-link)}:focus-visible{outline:2px solid var(--color-focus-ring);outline-offset:3px;box-shadow:0 0 0 3px var(--color-focus-gap)}.skip{position:absolute;top:-100px;left:1rem;z-index:10}.skip:focus{top:1rem}
.site-header{padding:1.25rem 0}.header-inner{display:flex;align-items:center;gap:2.5rem}.brand{display:flex;align-items:center;gap:1rem;text-decoration:none;color:var(--color-text)}.brand img{width:78px;height:78px;object-fit:contain}.brand span{font-size:.85rem;line-height:1.4;max-width:150px;font-weight:600}.header-inner nav{display:flex;gap:1.75rem;margin-left:auto}.header-inner nav a{font-size:.9rem;text-decoration:none;color:var(--color-text)}.header-inner nav a:hover{text-decoration:underline}.header-inner>.button{font-size:.9rem;padding:.75rem 1.2rem}.hero{padding:4rem 0 3rem}.hero-grid{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:2rem}.hero-copy>p:not(.eyebrow){margin:1.4rem 0 1.8rem;max-width:560px}.hero-image{width:100%;aspect-ratio:1;object-fit:contain;border-radius:1.5rem}.hero-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:1.25rem 2rem;margin-top:3rem;font-size:.9rem}.hero-bottom span{display:flex;align-items:center;gap:.65rem}.hero-bottom b{font-weight:600}.hero-bottom i{font-style:normal;color:var(--color-link);width:1.2rem;flex-shrink:0;text-align:center}
.characters .character{display:grid;grid-template-columns:105px 1fr;gap:1rem}.character img{width:105px;aspect-ratio:1;object-fit:cover;border-radius:50%}.character h3{margin-bottom:.7rem}.character p{font-size:.94rem}.character blockquote{font-size:.9rem;margin-top:1rem;color:var(--color-link)}.character-card{padding:1rem 0}.program{padding:2.5rem;border-radius:1.5rem;background:var(--color-surface-soft);height:100%}.program-alt{background:var(--color-surface-warm)}.program-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.8rem}.program h3{font:400 2.5rem/1.1 var(--font-accent)}.age{padding:.35rem .75rem;border:1px solid var(--color-text);border-radius:999px;font-size:.8rem}.program ul{padding-left:1.2rem;line-height:1.9;margin:1rem 0 1.5rem}.program .button{margin-top:1rem}.principles{display:grid;grid-template-columns:1fr 1fr;column-gap:4rem;row-gap:2.5rem}.principle{display:grid;grid-template-columns:2rem 1fr;gap:1rem}.principle-number{font:400 2.1rem/1 var(--font-accent);color:var(--color-link)}.principle h3{margin-bottom:.8rem}.principle p{font-size:1rem}
.teacher-intro{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:5rem}.teacher-photo{width:100%;aspect-ratio:1;object-fit:cover;border-radius:1.5rem;object-position:center top}.teacher-name{font-size:1.35rem;font-weight:600;margin-top:1.5rem}.teacher-role{margin-top:.5rem;font-size:1rem}.teacher-quote{font:400 2rem/1.2 var(--font-accent);margin:1.5rem 0}.story{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start;margin-top:4rem}.story-copy h3{margin-bottom:1rem}.story-copy p{font-size:1rem}.story-media{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.story-media img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:1rem}.story-media figcaption{font-size:.8rem;margin-top:.7rem}.history-photo{display:grid;grid-template-columns:150px 1fr;gap:1.5rem;align-items:center;margin-top:2rem}.history-photo img{border-radius:1rem;aspect-ratio:1;object-fit:cover}.history-photo figcaption{font-size:.85rem}.credentials{margin-top:2rem;border-top:1px solid var(--color-border)}details{border-bottom:1px solid var(--color-border);padding:1rem 0}summary{cursor:pointer;font-size:.95rem;font-weight:600;min-height:44px;align-content:center}details img{max-height:520px;object-fit:contain;margin:1rem auto}details p{font-size:.9rem;margin:1rem 0}
.lesson-layout{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}.lesson-layout video{width:100%;border-radius:1.2rem;background:var(--color-surface-soft)}.lesson-images{display:flex;gap:1rem;margin-top:1rem}.lesson-images a{width:50%}.lesson-images img{border-radius:.75rem}.steps{margin:0;padding-left:1.5rem}.steps li{padding:0 0 .9rem .5rem;font-size:1rem}.steps li::marker{color:var(--color-link);font-weight:600}.lesson-caption{font-size:.8rem;margin-top:.7rem}.review{padding:2rem;border-radius:1.2rem;background:var(--color-background);height:100%}.review:before{content:"“";font:400 3rem/.8 var(--font-accent);color:var(--color-link);display:block;margin-bottom:.75rem}.review p{font-size:1rem}.filters{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}.filter{border:1px solid var(--color-link);background:transparent;color:var(--color-link);border-radius:999px;padding:.6rem 1.3rem;min-height:44px;cursor:pointer;font-weight:600}.filter[aria-pressed=true]{background:var(--color-primary);color:var(--color-on-primary)}.filter:hover{background:var(--color-surface-soft);color:var(--color-link)}.filter:active{transform:translateY(1px)}.game-status{font-size:.85rem;margin-bottom:1.5rem}.game{background:var(--color-surface-soft);border-radius:1.1rem;overflow:hidden;display:flex;flex-direction:column;height:100%}.game-image{width:100%;aspect-ratio:1.65;object-fit:cover}.game-copy{padding:1.5rem;display:flex;flex-direction:column;flex:1;align-items:start}.game h3{margin-bottom:.65rem}.game p{font-size:.9rem;margin-bottom:1.5rem}.game .button{margin-top:auto;font-size:.9rem}.game-age{font-size:.75rem;margin-bottom:.75rem;color:var(--color-link);font-weight:600}.diagnostic{padding:2rem;height:100%;display:flex;flex-direction:column;align-items:start}.diagnostic p{margin:1rem 0 1.5rem;font-size:.95rem}.diagnostic a{margin-top:auto;font-size:.9rem}.closing{text-align:center;padding:3rem 1.5rem;border-radius:1.5rem;background:var(--color-surface-warm)}.closing p{margin:1rem auto 1.5rem;max-width:620px}.site-footer{padding:2rem 0}.footer-inner{display:flex;justify-content:space-between;gap:1.5rem;font-size:.8rem}.footer-inner a{align-self:center}[hidden]{display:none!important}
@media(min-width:1600px){.hero-image{max-width:550px;justify-self:end}}@media(max-width:1100px){.brand span{display:block}.header-inner{gap:1.5rem;flex-wrap:wrap}.header-inner nav{order:3;flex-basis:100%;justify-content:center}.header-inner nav{gap:1rem}.hero-grid{grid-template-columns:1fr 1fr}.hero h1{font-size:2.75rem}.characters .ids__sequence-item{--columns:1}.character-card{max-width:800px}.teacher-intro{gap:2rem}.story,.lesson-layout{gap:2rem}}
@media(max-width:767px){.ids__wrapper.L{width:100%;padding-left:1.25rem;padding-right:1.25rem}.section{padding:3rem 0}.site-header{padding:.75rem 0}.header-inner{flex-wrap:wrap;justify-content:space-between;gap:.75rem}.brand img{width:60px;height:60px}.brand span{display:block;font-size:.72rem;max-width:125px}.brand{gap:.65rem}.brand img{width:52px;height:52px}.header-inner nav{order:3;width:100%;justify-content:space-between;gap:.5rem;padding-top:1rem;margin-top:.25rem}.header-inner nav a{font-size:.8rem}.header-inner>.button{font-size:.75rem;min-height:44px;padding:.6rem .9rem}.hero{padding:2.5rem 0 2rem}.hero-grid{grid-template-columns:1fr;gap:2rem}.hero h1{font-size:2.25rem}.hero-image{aspect-ratio:1;max-height:none}.hero-copy>p:not(.eyebrow){font-size:1rem}.hero-bottom{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:2rem;gap:1rem;font-size:.8rem}.hero-bottom span{align-items:flex-start}.program{padding:1.5rem}.principles,.teacher-intro,.story,.lesson-layout{grid-template-columns:1fr;gap:2rem}.teacher-photo{max-width:400px;margin:auto}.teacher-intro>figure{order:2}.teacher-quote{font-size:1.8rem}.story{margin-top:2.5rem}.story-media{gap:.75rem}.characters .ids__sequence-item,.games .ids__sequence-item,.diagnostics .ids__sequence-item{--columns:1}.section-heading{margin-bottom:1.8rem}.footer-inner{flex-direction:column}.footer-inner a{align-self:start}.review{padding:1.5rem}.program-top{gap:1rem}.program h3{font-size:2rem}.age{white-space:nowrap}.history-photo{grid-template-columns:100px 1fr}.character img{width:85px}.characters .character{grid-template-columns:85px 1fr}.eyebrow{font-size:.7rem}.closing{padding:2rem 1.2rem}}
@media(max-width:359px){.brand{gap:.5rem}.brand img{width:44px;height:44px}.brand span{max-width:105px}.hero-bottom{grid-template-columns:1fr}.header-inner>.button{max-width:110px}.hero h1{font-size:2rem}.program-top{flex-wrap:wrap}.character img{width:65px}.characters .character{grid-template-columns:65px 1fr}}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.ids__sequence-item{min-width:0}
@media(max-width:1100px){.characters .ids__sequence.L .ids__sequence-item{--columns:1}}
@media(max-width:767px){.games.ids__sequence.L .ids__sequence-item,.diagnostics.ids__sequence.L .ids__sequence-item{--columns:1}.diagnostic .button{max-width:100%;white-space:normal}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* Hero: copy first in the document; visual and benefits on the right. */
.hero{padding-top:3rem}
.hero-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:center}
.hero-visual{min-width:0}
.hero-visual .hero-image{width:100%;max-width:560px;margin-inline:auto;justify-self:auto}
.hero-visual .hero-bottom{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.5rem;margin:1.5rem 0 0;font-size:.85rem}
.hero .hero-copy{min-width:0;text-align:left}
.hero .hero-copy h1{font-size:clamp(3rem,5.8vw,5.5rem);max-width:none;line-height:.94}
.hero .hero-copy>p{max-width:580px;margin:1.5rem 0 2rem}
@media(max-width:1100px){.hero-layout{gap:2rem}.hero .hero-copy h1{font-size:clamp(3rem,5.8vw,4rem)}}
@media(max-width:767px){.hero{padding-top:2rem}.hero-layout{grid-template-columns:1fr;gap:2.5rem}.hero-visual .hero-image,.hero .hero-copy>p{width:100%;max-width:none;margin-inline:0}.hero .hero-copy h1{font-size:clamp(2.75rem,8vw,3.5rem)}.hero .hero-copy>p{margin-top:1.25rem}.hero-visual .hero-bottom{font-size:.8rem}}
@media(max-width:359px){.hero-visual .hero-bottom{grid-template-columns:1fr}}
/* Desktop benefits sit above the headline; mobile keeps them below the image. */
@media(min-width:768px){
  .hero-layout{row-gap:2rem;align-items:start}
  .hero-visual{display:contents}
  .hero .hero-copy{grid-column:1;grid-row:2;align-self:start}
  .hero-visual .hero-image{grid-column:2;grid-row:1 / span 2;align-self:center}
  .hero-visual .hero-bottom{grid-column:1;grid-row:1;margin:0;align-self:end}
}

@media(min-width:768px){
  .hero .hero-copy h1{font-size:clamp(3.1rem,7.1vw,6.75rem)}
  .hero .hero-copy h1>span{display:block;white-space:nowrap}
}

/* Author photographs and always-visible credentials. */
@media(min-width:768px){.teacher-intro>figure{grid-column:1;grid-row:1}.teacher-intro>div{grid-column:2;grid-row:1}}
.story-biography .history-photo{display:block;margin:0}
.story-biography .history-photo img{width:100%;aspect-ratio:auto;object-fit:contain}
.story-biography .history-photo figcaption{margin-top:1rem}
.credentials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem;margin-top:3rem;border:0}
.credential{min-width:0}.credential p{font-size:.9rem;margin:1rem 0 1.5rem}
.credential img{width:100%;height:auto;max-height:460px;object-fit:contain;object-position:top left;border-radius:.5rem}
@media(max-width:767px){.credentials{grid-template-columns:1fr;gap:2rem}.credential img{max-height:none}}

/* Keep the introduction continuous and align it with the portrait's top edge. */
.teacher-intro{align-items:start}
.teacher-intro sup{font-size:.7em;margin-left:.2em;letter-spacing:normal}
.teacher-intro sup a{display:inline-block;min-width:1em;text-align:center}
.story-biography .credentials{display:flex;flex-direction:column;gap:1.5rem;margin:0}
.story-biography .credential{display:grid;grid-template-columns:84px minmax(0,1fr);column-gap:1rem;align-items:start}
.story-biography .credential h3{grid-column:2;grid-row:1;font-size:.9rem}
.story-biography .credential p{grid-column:2;grid-row:2;font-size:.8rem;margin:.5rem 0 0}
.story-biography .credential>a{grid-column:1;grid-row:1 / span 2}
.story-biography .credential img{width:84px;height:auto;max-height:120px;object-fit:contain}
@media(max-width:767px){.story-biography .credential{grid-template-columns:72px minmax(0,1fr)}.story-biography .credential img{width:72px}}
/* Keep the archive caption directly beneath its photograph on desktop. */
@media(min-width:768px){
  .story-biography{align-items:stretch;row-gap:1.5rem}
  .story-biography .history-photo{display:contents}
  .story-biography .history-photo img{grid-column:1;grid-row:1;align-self:start}
  .story-biography .credentials{grid-column:2;grid-row:1}
  .story-biography .history-photo figcaption{grid-column:1;grid-row:2;align-self:start;margin:0}
}

.teacher-intro>figure>figcaption{font-size:.85rem;line-height:1.5;margin-top:.8rem}
@media(max-width:767px){.teacher-intro>figure{width:100%;min-width:0}.teacher-intro .teacher-photo{width:100%;max-width:none;margin-inline:0}}

/* Matching caption typography and line widths for both Natalia photographs. */
.teacher-intro>figure>figcaption,.story-biography .history-photo figcaption{font-size:.85rem;line-height:1.5;font-weight:400;width:100%;max-width:none}
.story-biography{column-gap:5rem}
@media(max-width:1100px){.story-biography{column-gap:2rem}}
@media(max-width:767px){.story-biography .history-photo figcaption{margin-top:.8rem}}

/* The friends together, followed by each dog's real and game portraits. */
.origin-gallery{display:grid;gap:2rem;min-width:0}
.origin-gallery figure{min-width:0}
.friends-photo img{width:100%;height:auto;border-radius:1rem}
.origin-gallery figcaption{font-size:.85rem;line-height:1.5;margin-top:.8rem}
.origin-pair{align-items:start}
.origin-pair img{width:100%;aspect-ratio:2 / 3;object-fit:contain;object-position:center;background:var(--color-surface-soft)}
@media(max-width:767px){.origin-gallery{gap:1.5rem}.origin-pair{gap:.75rem}}

.family-section{padding-top:1rem}
.family-story{margin-top:0}
.family-story h2{margin-bottom:1.5rem}
.family-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.family-media figure{min-width:0}
.family-media img{width:100%;height:auto;border-radius:1rem}
.family-media figcaption{font-size:.85rem;line-height:1.5;margin-top:.8rem}
@media(max-width:767px){.family-media{grid-template-columns:1fr;gap:1.5rem}}

.origin-pair .game-portrait img{aspect-ratio:1;border-radius:50%;object-fit:cover}

.origin-pair .game-portrait figcaption{text-align:center}

/* Show real and game portraits together on desktop. */
@media(min-width:1024px){
  #origin-story{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem}
  #origin-story>.story-copy{grid-column:1 / span 2;grid-row:1;max-width:none}
  #origin-story>.origin-gallery{display:contents}
  .origin-gallery .friends-photo{grid-column:3 / span 2;grid-row:1;max-width:none}
  .origin-gallery .origin-pair{display:contents}
}
h1,h2,h3{text-wrap:balance}
p,figcaption{text-wrap:pretty}

/* Monthly course access, ready for a future checkout integration. */
.tariff-card{display:flex;flex-direction:column;height:100%;padding:2.5rem;border-radius:1.5rem;background:var(--color-surface-soft);min-width:0}
.tariff-guided{background:var(--color-surface-warm)}
.tariff-card h3{font:var(--font-weight-accent) clamp(2rem,3vw,2.7rem)/1.12 var(--font-accent);margin:1rem 0}
.tariff-intro{font-size:1rem;max-width:480px}
.tariff-features{list-style:none;display:grid;gap:1rem;margin:1.75rem 0 2rem;padding:0;font-size:.95rem}
.tariff-features li{position:relative;padding-left:1.6rem}
.tariff-features li:before{content:'✓';position:absolute;left:0;color:var(--color-link)}
.tariff-purchase{margin-top:auto}
.tariff-card .tariff-price{font:var(--font-weight-accent) 2.8rem/1.15 var(--font-accent);white-space:nowrap;margin:0 0 1.5rem}
.tariff-price span{display:inline-block;font:400 .85rem/1.5 var(--font-body);white-space:normal}
.tariff-card .button{min-width:150px}
.payment-note{max-width:780px;font-size:.85rem;margin-top:1.5rem}
.tariff-trial{display:inline-flex;align-items:center;min-height:44px;font-size:.85rem;margin-top:.25rem}
@media(max-width:767px){.tariff-grid>.ids__sequence-item{--columns:1}.tariff-card{padding:1.5rem}.tariff-card h3{font-size:2rem}.tariff-card .tariff-price{font-size:2.5rem}.tariff-price span{display:block;margin-top:.4rem}.tariff-card .button{width:100%}}

.tariff-card .purchase-status{font-size:.85rem;margin-top:1rem;max-width:400px}

.footer-inner nav{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem}.footer-inner nav a{display:inline-flex;align-items:center;min-height:44px}

.tariff-grid>.ids__sequence-item{--columns:1;max-width:680px}
