/* Little Days additions on top of the theme. Theme tokens and components live in styles.css. */

html { scroll-padding-top: 90px; }

/* ---- brand: app icon + wordmark in the theme's heading font ---- */
.ld-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; max-width: none; color: var(--color-base-neutral-dark-100); }
.ld-mark { width: 40px; height: 40px; flex: none; margin-top: -6px; }
.ld-word { font-family: var(--typography-font-heading-sans); font-weight: 700; font-size: 1.300rem; letter-spacing: -.030em; line-height: 1; white-space: nowrap; }
.ld-brand-footer .ld-mark { width: 64px; height: 64px; margin-top: -10px; }
.ld-brand-footer .ld-word { font-size: 2.400rem; }

/* ---- feature icons are cut-paper pieces instead of line icons ---- */
.icon-feature-card.ld-icon { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(56, 29, 15, .12)); }

/* ---- the chalk drawing card pinned over the portrait ---- */
.ld-card-shadow { border-radius: 6px; box-shadow: 0 18px 40px rgba(56, 29, 15, .22); }

/* ---- "Things Bobbin says" label above the quote slider ---- */
.ld-lines-head { display: flex; justify-content: center; margin-bottom: var(--spacing--32); }

/* ---- adventure cards: give the clip more room than the theme's narrow photo column ---- */
.program-card-large.ld-adv { grid-template-columns: 1.150fr 1fr; height: 480px; }
.ld-adv .image-wrap-program-card-large { background: #000; }
.ld-adv video.image-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-adv .label-master { white-space: normal; }

/* ---- App Store button (swap for Apple's official badge at launch) ---- */
.ld-store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 24px 9px 18px;
  background: #0d0f14; color: #fff; text-decoration: none; border-radius: 16px; line-height: 1.1;
  transition: transform .2s ease;
}
.ld-store svg { width: 28px; height: 28px; flex: none; }
.ld-store-text { display: flex; flex-direction: column; text-align: left; }
.ld-store-text span { font-size: .750rem; font-weight: 500; }
.ld-store-text b { font-size: 1.375rem; font-weight: 600; letter-spacing: -.020em; white-space: nowrap; }
.ld-store:hover { transform: translateY(-2px); color: #fff; }
.button-wrap-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-legal-column .footer-legal-link { cursor: default; }

@media screen and (max-width: 991px) {
  .program-card-large.ld-adv { grid-template-columns: 1fr; height: auto; }
  .ld-adv .image-wrap-program-card-large { aspect-ratio: 4 / 3; height: auto; }
}
@media screen and (max-width: 479px) {
  .ld-word { font-size: 1.150rem; }
  .ld-brand-footer .ld-word { font-size: 1.900rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- hero: keep Bobbin's face above the headline, and darken the foot of the clip for the text ---- */
.video-hero-home video { object-position: 50% 100%; }
.video-hero-home .overlay-hero-home { height: 62%; background-image: linear-gradient(0deg, rgba(40, 20, 10, .78), rgba(40, 20, 10, .42) 45%, rgba(40, 20, 10, 0)); }
.content-hero-home h1 { text-shadow: 0 2px 18px rgba(40, 20, 10, .35); }
@media screen and (max-width: 767px) { .video-hero-home video { object-position: 30% 100%; } }
.content-cta h2 { text-shadow: 0 2px 16px rgba(40, 20, 10, .45); }

/* ---- three fanned cards (the middle one plays a clip) ---- */
.ld-fan { position: relative; display: flex; justify-content: center; align-items: center; padding: 56px 0 88px; }
.ld-fan-card { position: relative; flex: none; width: min(28vw, 330px); aspect-ratio: 4 / 5; border: 8px solid #fff; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(56, 29, 15, .22); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ld-fan-card img, .ld-fan-card video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 22px; }
.ld-fan-l { transform: rotate(-9deg) translate(16%, 7%); }
.ld-fan-r { transform: rotate(9deg) translate(-16%, 7%); }
.ld-fan-c { z-index: 2; width: min(33vw, 390px); }
.ld-fan:hover .ld-fan-l { transform: rotate(-13deg) translate(4%, 8%); }
.ld-fan:hover .ld-fan-r { transform: rotate(13deg) translate(-4%, 8%); }
.ld-fan-tag { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--color-base-neutral-dark-100); font-size: .800rem; font-weight: 600; line-height: 1.2; }
.ld-fan-r .ld-fan-tag { left: auto; right: 14px; }

/* ---- learning section heading over the night clip ---- */
.ld-learn-head { display: flex; flex-direction: column; gap: var(--spacing--16); max-width: 720px; margin: 0 auto var(--spacing--32); align-items: center; text-align: center; }
.ld-learn-lede { font-size: 1.125rem; line-height: 1.5; opacity: .88; }
.stat-item b { font-weight: 700; }
@media screen and (max-width: 479px) {
  .ld-fan { padding: 32px 0 56px; }
  .ld-fan-card { border-width: 5px; border-radius: 20px; }
  .ld-fan-card img, .ld-fan-card video { border-radius: 15px; }
  .ld-fan-l .ld-fan-tag, .ld-fan-r .ld-fan-tag { display: none; }
  .ld-fan-tag { left: 8px; bottom: 8px; padding: 4px 9px; font-size: .625rem; }
}

/* ---- the chalk clip pinned over Bobbin's portrait ---- */
.ld-video-card { background: #fff; padding: 8px; border-radius: 12px; }
.ld-video-card video { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6px; }

/* ---- feedback ---- */
.ld-feedback-section { padding-top: var(--section-padding--small); padding-bottom: var(--section-padding--small); }
.ld-feedback { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; background: var(--color-base-color-yellow-light-100, #fae6b9); border-radius: 32px; padding: 56px; }
.ld-feedback-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.ld-feedback-lede { font-size: 1.125rem; line-height: 1.5; }
.ld-feedback-art { width: 150px; margin-top: 8px; filter: drop-shadow(0 6px 0 rgba(56, 29, 15, .12)); }
.ld-form { display: flex; flex-direction: column; gap: 18px; background: #fff; border-radius: 24px; padding: 28px; min-width: 0; color: var(--color-base-neutral-dark-100); }
.ld-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ld-form legend, .ld-field > span { font-weight: 600; font-size: .938rem; margin-bottom: 8px; padding: 0; display: block; }
.ld-form-kind label { cursor: pointer; margin: 0; }
.ld-form-kind input { position: absolute; opacity: 0; }
.ld-form-kind span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #f6f3f0; font-weight: 600; font-size: .938rem; border: 2px solid transparent; }
.ld-form-kind input:checked + span { background: #381d0f; color: #fff; }
.ld-form-kind input:focus-visible + span { border-color: #e8b239; }
.ld-field { display: block; margin: 0; }
.ld-field textarea, .ld-field input { width: 100%; font: inherit; color: inherit; background: #f6f3f0; border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; resize: vertical; }
.ld-field textarea:focus, .ld-field input:focus { outline: none; border-color: #381d0f; background: #fff; }
.ld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ld-form-send { align-self: flex-start; font: inherit; font-weight: 600; color: #fff; background: #381d0f; border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; transition: transform .2s ease; }
.ld-form-send:hover { transform: translateY(-2px); }
.ld-form-send:disabled { opacity: .6; cursor: default; transform: none; }
.ld-form-note { margin: 0; font-weight: 600; min-height: 1.4em; }
.ld-form-note.is-ok { color: #2f6b3a; }
.ld-form-note.is-bad { color: #a8321f; }
.ld-form-small { margin: 0; font-size: .813rem; opacity: .7; }
@media screen and (max-width: 991px) { .ld-feedback { grid-template-columns: 1fr; padding: 32px; gap: 28px; } .ld-feedback-art { display: none; } }
@media screen and (max-width: 479px) { .ld-feedback { padding: 20px; border-radius: 24px; } .ld-form { padding: 20px; } .ld-store { padding: 8px 18px 9px 14px; } .ld-store-text b { font-size: 1.125rem; } }

/* ---- learning section: lift the night clip so the cottage sits above the numbers ---- */
.video-stats { background-color: var(--color-base-neutral-dark-100); }
.video-stats > video { transform: translateY(-20%); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

/* ---- endless carousels (the learning cards and the adventure cards) ---- */
.testimonial-home-section, .blog-carousel-section { overflow-x: clip; }
.ld-loop { position: relative; width: 100%; }
.ld-loop-track { display: flex; align-items: stretch; gap: 24px; width: max-content; will-change: transform; }
.ld-loop-item { flex: none; transition: opacity .5s ease; }
.ld-loop-learn .ld-loop-item { width: min(460px, 78vw); opacity: .4; }
.ld-loop-learn .ld-loop-item.is-on { opacity: 1; }
.ld-loop-learn .card-testimonial { height: 100%; justify-content: space-between; }
.ld-loop-adv .ld-loop-item { width: min(1040px, 86vw); }
.ld-loop-nav { display: flex; justify-content: center; gap: 12px; margin-top: var(--spacing--32); }
.ld-loop-btn { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--color-tokens-border-subtle, rgba(56, 29, 15, .16)); background: var(--color-tokens-button-secondary-default-background, transparent); color: var(--color-tokens-tone-strong, #381d0f); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.ld-loop-btn:hover { transform: scale(1.08); }
.ld-loop-btn svg { display: block; width: 100%; height: 100%; }
.ld-loop-prev svg { transform: scaleX(-1); }
@media screen and (max-width: 991px) { .ld-loop-track { gap: 16px; } .ld-loop-adv .ld-loop-item { width: min(520px, 86vw); } }
@media (prefers-reduced-motion: reduce) { .ld-loop-item { transition: none; } }

/* ---- videos page: a grid of vertical reels and a full-screen swipe player ---- */
.ld-vid-page { padding-top: 148px; padding-bottom: 96px; }
.ld-vid-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
.ld-vid-head h1 { max-width: 760px; }
.ld-vid-lede { margin: 0; font-size: 1.125rem; line-height: 1.55; max-width: 34em; }
.ld-vid-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-vid-chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(56, 29, 15, .2); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.ld-vid-chip[aria-pressed="true"] { background: var(--color-tokens-tone-strong, #381d0f); border-color: transparent; color: #fff; }
.ld-vid-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.ld-vid-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 16; background: #f0dfc0; color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 10px 26px rgba(56, 29, 15, .16); transition: transform .25s ease, box-shadow .25s ease; }
.ld-vid-card:hover, .ld-vid-card:focus-visible { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 40px rgba(56, 29, 15, .24); }
.ld-vid-card:focus-visible { outline: 3px solid #381d0f; outline-offset: 3px; }
.ld-vid-card img, .ld-vid-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-vid-card video { opacity: 0; transition: opacity .3s ease; }
.ld-vid-card.is-previewing video { opacity: 1; }
.ld-vid-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(40, 20, 10, .82), rgba(40, 20, 10, 0)); pointer-events: none; }
.ld-vid-play { position: absolute; z-index: 1; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #381d0f; display: grid; place-items: center; }
.ld-vid-play svg { width: 16px; height: 16px; margin-left: 2px; }
.ld-vid-meta { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.ld-vid-topic { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.ld-vid-title { font-family: var(--typography-font-heading-sans); font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.ld-vid-len { font-size: .8125rem; font-variant-numeric: tabular-nums; opacity: .9; }
.ld-vid-empty { margin: 32px 0 0; }

.ld-reels { position: fixed; inset: 0; z-index: 2000; background: #17100c; color: #fff; }
.ld-reels-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ld-reels-feed::-webkit-scrollbar { display: none; }
.ld-reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.ld-reel-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; background: #000; overflow: hidden; }
.ld-reel-frame video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.ld-reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px calc(22px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); pointer-events: none; display: flex; flex-direction: column; gap: 4px; }
.ld-reel-cap b { font-family: var(--typography-font-heading-sans); font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.ld-reel-cap span { font-size: .8125rem; opacity: .85; }
.ld-reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.ld-reel-bar i { display: block; height: 100%; width: 0; background: #f5b83d; }
.ld-reel-paused { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.ld-reel-paused svg { width: 30px; height: 30px; margin-left: 4px; }
.ld-reel.is-paused .ld-reel-paused { opacity: 1; }
.ld-reels-ui { position: absolute; z-index: 2; width: 48px; height: 48px; padding: 13px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s ease; }
.ld-reels-ui:hover { background: rgba(255, 255, 255, .3); }
.ld-reels-ui:focus-visible { outline: 3px solid #f5b83d; outline-offset: 2px; }
.ld-reels-ui svg { display: block; width: 100%; height: 100%; }
.ld-reels-close { top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px; }
.ld-reels-sound { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; padding: 11px; }
.ld-reels-sound .off, .ld-reels-sound[aria-pressed="true"] .on { display: none; }
.ld-reels-sound[aria-pressed="true"] .off { display: block; }
.ld-reels-nav { position: absolute; z-index: 2; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.ld-reels-nav .ld-reels-ui { position: static; }
.ld-reels-nav .ld-reels-ui:disabled { opacity: .3; cursor: default; }
html.ld-reels-open, html.ld-reels-open body { overflow: hidden; }

@media screen and (min-width: 768px) {
  .ld-reel { padding: 24px 0; }
  .ld-reel-frame { border-radius: 24px; }
}
@media screen and (max-width: 767px) {
  .ld-vid-page { padding-top: 116px; padding-bottom: 64px; }
  .ld-vid-head { margin-bottom: 32px; }
  .ld-vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ld-vid-card { border-radius: 18px; }
  .ld-vid-title { font-size: 1.0625rem; }
  .ld-vid-meta { left: 12px; right: 12px; bottom: 12px; }
  .ld-vid-play { width: 36px; height: 36px; top: 10px; right: 10px; }
  .ld-reels-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-vid-card, .ld-vid-card video { transition: none; }
  .ld-vid-card:hover, .ld-vid-card:focus-visible { transform: none; }
}
