@import url("/yoga/media/type/fonts.css");

:root {
  color-scheme: light;
  --paper: #faf6ed;
  --ink: #262922;
  --muted: #55594d;
  --olive: #444f33;
  --rule: #dcd6c7;
  --serif: Fraunces, Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7b4b32; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 4; background: white; padding: .65rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.masthead { border-bottom: 1px solid var(--rule); }
.nav-shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 4.8rem; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: .68rem; text-decoration: none; }
.wordmark img { border-radius: 27%; }
.wordmark span { font: 600 1.55rem/1 var(--serif); letter-spacing: -.045em; }
.nav-links, .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.2rem, 3.1vw, 3.2rem); }
.nav-links a, .footer-links a, .locale { text-decoration: none; font-size: .9rem; font-weight: 650; text-underline-offset: .27em; }
.nav-links a:hover, .nav-links [aria-current], .footer-links a:hover { text-decoration: underline; }
.locale { justify-self: end; padding: .4rem .7rem; border: 1px solid #c5c5af; border-radius: .35rem; }
.locale:hover { background: #ececdb; }

.hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(2rem, 5.4vw, 5.5rem); padding-block: clamp(3.25rem, 6.3vw, 6.1rem) 4.4rem; }
.eyebrow { font-size: .88rem; color: var(--olive); letter-spacing: .11em; text-transform: uppercase; font-weight: 750; }
.hero h1, h2, .doc-header h1 { font-family: var(--serif); font-weight: 520; font-optical-sizing: auto; letter-spacing: -.069em; }
.hero h1 { font-size: clamp(4.2rem, 7.9vw, 7.6rem); line-height: .91; margin-top: 1.2rem; font-weight: 530; letter-spacing: -.047em; word-spacing: .045em; }
.hero h1 em { color: var(--olive); font-weight: 470; }
.hero-description { max-width: 28rem; color: var(--muted); margin-top: 1.7rem; font-size: clamp(1.07rem, 1.6vw, 1.3rem); line-height: 1.52; }
.hero-actions { margin-top: 2rem; display: grid; justify-items: start; gap: .7rem; }
.hero-actions small { font-size: .85rem; color: var(--muted); }
.store-button { display: inline-flex; justify-content: center; align-items: center; text-align: center; background: #293327; color: #fffdf4; padding: .96rem 1.4rem; min-height: 3.2rem; border-radius: .32rem; text-decoration: none; font-weight: 690; transition: background .2s, transform .25s var(--ease); }
.store-button:hover { background: #4a563c; transform: translateY(-3px); }
.hero-visual { position: relative; isolation: isolate; min-width: 0; }
.hero-photo { aspect-ratio: 1.07; overflow: hidden; border-radius: .65rem; background: #d3c4ab; animation: photo-in .9s var(--ease) both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.phone { background: #262921; border: clamp(4px, .45vw, 7px) solid #282b23; border-radius: 15% / 7.5%; overflow: hidden; box-shadow: 0 18px 36px #231e143d, 0 3px 7px #231e1445; }
.phone img { width: 100%; height: auto; aspect-ratio: 603 / 1311; object-fit: cover; background: #f8f5ec; }
.hero-phone { position: absolute; z-index: 1; width: 27%; bottom: -4%; right: -3%; transform: rotate(6deg); animation: phone-in .95s .16s var(--ease) both; }
.hero-caption { position: absolute; left: 1.1rem; bottom: 1.1rem; background: #fff9eced; padding: .65rem .9rem; display: grid; z-index: 1; border-radius: .25rem; line-height: 1.35; }
.hero-caption strong { font-size: .88rem; font-weight: 730; }
.hero-caption span { font-size: .8rem; color: #505246; }
.hero-copy { animation: rise .72s var(--ease) both; }
@keyframes photo-in { from { opacity: 0; clip-path: inset(0 0 0 16% round .65rem); } to { opacity: 1; clip-path: inset(0 0 0 0 round .65rem); } }
@keyframes phone-in { from { opacity: 0; transform: translate(10%, 8%) rotate(11deg); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); padding-block: 1.4rem 1.75rem; }
.stats > div { padding: .4rem 1.4rem; display: flex; flex-direction: row-reverse; justify-content: center; align-items: center; gap: .9rem; }
.stats > div + div { border-left: 1px solid var(--rule); }
.stats dt { color: var(--muted); }
.stats dd { color: var(--olive); font: 490 clamp(1.75rem, 3.2vw, 2.8rem)/1 var(--serif); letter-spacing: -.065em; }

.pose-section { background: #edecdf; }
.section-grid { display: grid; grid-template-columns: .92fr 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); padding-block: clamp(4rem, 8vw, 8rem); }
h2 { font-size: clamp(2.9rem, 5.1vw, 5.2rem); line-height: .98; }
.section-grid h2 { max-width: 12ch; margin-top: .85rem; }
.section-intro { color: var(--muted); margin-top: 1.1rem; max-width: 37ch; font-size: 1.07rem; }
.pose-options { display: grid; gap: .6rem; margin-top: 1.7rem; max-width: 26rem; }
.pose-option { cursor: pointer; display: grid; grid-template-columns: 3.15rem 1fr 1.35rem; align-items: center; text-align: left; gap: .9rem; border: 1px solid #d1d0be; background: transparent; padding: .5rem .8rem .5rem .5rem; width: 100%; border-radius: .45rem; transition: background .2s, border-color .2s; }
.pose-option:hover { background: #f7f6ed; }
.pose-option[aria-pressed="true"] { background: #fbf9f0; border-color: #75805d; }
.pose-option img { width: 3.15rem; height: 3.15rem; object-fit: cover; border-radius: .28rem; }
.pose-option span { display: grid; line-height: 1.35; }
.pose-option small { color: var(--muted); }
.option-indicator { width: .8rem; height: .8rem; border: 1px solid #8f907a; border-radius: 50%; justify-self: center; }
.pose-option[aria-pressed="true"] .option-indicator { background: var(--olive); box-shadow: inset 0 0 0 2px #fbf9f0; border-color: var(--olive); }
.demo-stage { aspect-ratio: 1 / 1.03; position: relative; isolation: isolate; background: #9d927a; overflow: hidden; border-radius: .75rem; }
.demo-backdrop { width: 100%; height: 100%; object-fit: cover; filter: blur(29px) brightness(.79) saturate(.75); transform: scale(1.17); }
.demo-view { position: absolute; height: 100%; inset: 0; display: grid; place-items: center; }
.demo-view video { height: 100%; aspect-ratio: 9 / 16; max-width: 100%; object-fit: cover; background: #c8b9a3; }
.demo-overlay { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 2.9rem 1rem .9rem; background: linear-gradient(transparent, #171d16b8); color: #fffdf6; }
.demo-caption { font: 500 clamp(1.28rem, 2.2vw, 1.85rem)/1 var(--serif); }
.play { display: grid; place-items: center; width: 3rem; height: 3rem; background: #fff9e8; color: #263428; border-radius: 50%; border: 0; cursor: pointer; }
.play span { width: 0; height: 0; border-left: .7rem solid currentColor; border-top: .47rem solid transparent; border-bottom: .47rem solid transparent; margin-left: .15rem; }
.play.is-playing span { width: .65rem; height: .86rem; border: 0; border-inline: .19rem solid currentColor; margin-left: 0; }
.play:hover { background: #e5e8cd; }

.app-section { grid-template-columns: 1fr .94fr; }
.app-visual { display: grid; place-items: center; min-height: 33rem; padding: 2.2rem; border-radius: .7rem; overflow: hidden; background: radial-gradient(ellipse at 33% 22%, #f3e9d6, #e3ceb5 77%); }
.app-phone { width: min(100%, 13.7rem); transform: rotate(-5deg); transition: transform .45s var(--ease); }
.app-visual:has(.app-phone:hover) .app-phone { transform: rotate(0); }
#app-screen.yk-swipe-preview { touch-action: pan-y pinch-zoom; }
.screen-options { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.screen-option { cursor: pointer; border: 1px solid #c7c5b5; border-radius: .3rem; padding: .48rem .8rem; min-height: 2.75rem; background: transparent; font-weight: 650; font-size: .9rem; }
.screen-option[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: white; }
.screen-option:hover:not([aria-pressed="true"]) { background: #eae9dc; }
.screen-caption { border-top: 1px solid var(--rule); margin-top: 1.4rem; padding-top: .95rem; max-width: 29rem; }
.screen-caption h3 { font: 570 1.5rem/1.2 var(--serif); letter-spacing: -.038em; }
.screen-caption p { color: var(--muted); margin-top: .42rem; min-height: 3.3em; }

.closing { background: #343e2f; color: #fff8e9; }
.closing-grid { display: flex; gap: 2.5rem; align-items: center; justify-content: space-between; padding-block: clamp(3.5rem, 6.5vw, 6.2rem); }
.closing h2 { font-size: clamp(2.65rem, 5vw, 4.9rem); }
.closing p { max-width: 56ch; margin-top: 1rem; color: #eeeddf; }
.closing .store-button { color: #293327; background: #f1ecd9; flex: none; }
.closing .store-button:hover { background: white; }
footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.5rem; }
.footer-brand p, footer small { font-size: .82rem; color: var(--muted); }
.footer-brand p { margin-top: .35rem; }
.footer-links { gap: 1.5rem; }

.motion [data-reveal] { opacity: 0; transform: translateY(1.3rem); transition: opacity .55s var(--ease), transform .75s var(--ease); }
.motion [data-reveal].visible { opacity: 1; transform: none; }
.motion [data-reveal]:focus-within { opacity: 1; transform: none; }
.media-enter { animation: media-in .36s var(--ease) both; }
@keyframes media-in { from { opacity: .36; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }

.document { max-width: 54rem; padding-block: clamp(3rem, 7vw, 6.5rem); }
.doc-header { margin-bottom: 2.3rem; }
.doc-header h1 { font-size: clamp(3rem, 7.7vw, 6rem); line-height: 1; margin: .6rem 0 1.25rem; }
.doc-intro { font-size: 1.16rem; color: var(--muted); max-width: 66ch; }
.doc-content { max-width: 75ch; margin-top: 2.5rem; }
.doc-content section { border-top: 1px solid var(--rule); padding: 1.45rem 0; }
.doc-content h2 { font-size: clamp(1.68rem, 3.7vw, 2.45rem); margin-bottom: .85rem; letter-spacing: -.05em; line-height: 1.12; }
.doc-content p + p { margin-top: 1rem; }
.doc-content a, .doc-intro a { color: #485637; text-underline-offset: .2em; overflow-wrap: anywhere; }
.reference { display: inline-block; font-size: .9rem; padding-top: .28rem; }
details { border-block-start: 1px solid var(--rule); }
details:last-of-type { border-block-end: 1px solid var(--rule); }
details p { padding: 0 2rem 1rem 0; }
details p:last-child { padding-bottom: 1.5rem; }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; font: 550 clamp(1.35rem, 3.3vw, 1.85rem)/1.2 var(--serif); letter-spacing: -.043em; }
summary::after { content: "+"; font: 500 1.4rem/1 var(--sans); margin: .1rem .4rem 0 0; }
details[open] summary::after { content: "−"; }
summary::-webkit-details-marker { display: none; }
.doc-end { margin-top: 1.3rem; color: var(--muted); }

@media (max-width: 1050px) {
  .wrap { width: min(100% - 4rem, 76rem); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(3.5rem, 8.2vw, 6.65rem); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.6rem); }
  .nav-shell { gap: .75rem; min-height: 4.15rem; }
  .nav-links { gap: .72rem; }
  .nav-links a { font-size: .83rem; }
  .nav-links a[href*="#"] { display: none; }
  .nav-shell { grid-template-columns: 1fr auto auto; }
  .hero { grid-template-columns: 1fr; gap: 2.15rem; padding-block: 2.8rem 2.85rem; }
  .hero h1 { font-size: clamp(3.85rem, 13vw, 6.5rem); }
  .hero-description { margin-top: 1.28rem; }
  .hero-actions { margin-top: 1.4rem; }
  .hero-phone { right: -1.5%; width: 29%; }
  .hero-caption { bottom: .7rem; left: .7rem; }
  .stats { padding-block: .9rem 1.1rem; }
  .stats > div { flex-direction: column-reverse; text-align: center; gap: .28rem; padding-inline: .35rem; }
  .stats dt { font-size: .81rem; line-height: 1.25; }
  .section-grid { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; padding-block: 3.65rem; }
  .section-grid h2 { max-width: 15ch; }
  .pose-options { max-width: none; }
  .demo-stage { max-height: 29rem; }
  .app-copy { order: -1; }
  .app-visual { min-height: 0; padding-block: 1.9rem; }
  .app-phone { width: min(66%, 12rem); }
  .closing-grid { display: grid; justify-items: start; gap: 1.5rem; }
  .footer-inner { align-items: flex-start; }
  .footer-brand { flex-basis: 100%; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .motion [data-reveal] { opacity: 1; transform: none; }
}

.locales { display: flex; gap: .4rem; justify-self: end; align-items: center; }
