/* Landing page. Three parts, the way people use the app: explore, collect, share. */
/* Opening: the Today illustration, someone out on the path; words sit in the sky */
.hero { border-radius: 28px; min-height: 860px; padding: 72px 24px; margin-bottom: 24px; background: #8cc3e0 url(/assets/spring-still.webp) center 70% / cover no-repeat; display: flex; justify-content: center; align-items: flex-start; text-align: center; }
.hero .txt { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 640px; }
.hero .cta, .hero .trust { justify-content: center; }
.hero .trust { color: var(--ink); }
.hero .more { color: var(--ink); }
.hero .btn.disabled { background: rgba(255, 254, 250, .75); border-color: transparent; color: var(--ink); }
.hero h1 { font-size: clamp(40px, 5.4vw, 58px); line-height: 1.15; font-weight: 700; }
.hero .sub { font-size: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 8px; }
.cta .more { color: var(--accent-text); font-weight: 600; text-decoration: none; padding: 12px 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.btn.big { font-size: 17px; padding: 15px 28px; box-shadow: 0 6px 16px rgba(169, 95, 52, .25); }

/* A phone frame; the Today page scrolls by itself */
/* Explore opens with the Today page in a phone */
.today { display: grid; grid-template-columns: auto minmax(0, 440px); gap: 56px; align-items: center; justify-content: center; }
.today .sec-h { align-items: flex-start; text-align: left; }
.phone { width: 330px; max-width: 100%; padding: 9px; background: var(--ink); border-radius: 46px; box-shadow: 0 24px 60px rgba(34, 48, 31, .25); margin: 0 auto; }
.phone .scr { position: relative; width: 312px; height: 675px; max-width: 100%; border-radius: 38px; overflow: hidden; background: var(--bg); }
.phone .scr .roll { display: block; width: 312px; max-width: none; animation: roll 20s ease-in-out infinite; }
.phone .scr .bar { position: absolute; left: 0; bottom: 0; width: 312px; max-width: none; }
@keyframes roll { 0%, 12% { transform: translateY(0); } 22%, 32% { transform: translateY(-300px); } 42%, 52% { transform: translateY(-560px); } 64%, 78% { transform: translateY(-914px); } 92%, 100% { transform: translateY(0); } }

/* Sections */
section { padding: 56px 0 64px; display: flex; flex-direction: column; gap: 40px; }
.sec-h { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.sec-h .no { color: var(--accent-text); font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 36px); }
.sec-h p { color: var(--muted); max-width: 640px; }

/* Explore: three ways to spend the day */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.path { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.path .vis { height: 500px; display: flex; align-items: center; justify-content: center; width: 100%; }
.path .say { order: -1; align-self: stretch; max-width: none; display: flex; gap: 12px; align-items: flex-start; max-width: 320px; }
.path .say .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.path h3 { font-size: 21px; }
.path p { color: var(--muted); font-size: 15px; }
/* The last card sits in the flow (pushed down by --last), so the stack grows with its text instead of spilling over */
.fan { position: relative; width: 310px; padding-top: var(--last); }
.fan > :last-child { position: relative !important; top: 0 !important; }
.fan > * { position: absolute; margin: 0; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 26px rgba(60, 80, 40, .16); }
.fan .ev { width: 210px; }
.fan .pk { width: 230px; }
.fan img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fan .cap { padding: 10px 14px 12px; }
.fan b { font-size: 15px; display: block; line-height: 1.35; }
.fan small { display: block; font-size: 12px; color: var(--muted); }
.fan .credit { font-size: 10px; color: #7d8277; padding-top: 4px; }
.fan .ph { position: relative; }
.fan .tier { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--ink); font-weight: 600; border-radius: 999px; padding: 3px 11px; font-size: 12px; }
.near { width: 290px; background: var(--surface); border-radius: 22px; padding: 20px 20px 22px; box-shadow: 0 12px 30px rgba(60, 80, 40, .14); display: flex; flex-direction: column; gap: 4px; }
.near .where { font-size: 13px; color: var(--muted); }
.near .t { font-size: 19px; padding-bottom: 6px; }
.near .row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--sunk); }
.near .row img { width: 52px; height: 52px; object-fit: contain; }
.near .row b { font-size: 16px; display: block; }
.near .row small { font-size: 13px; color: var(--muted); }
.near .go { margin-top: 10px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 9px; text-align: center; font-size: 14px; font-weight: 600; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; }
.card figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card figcaption { font-size: 12px; color: var(--muted); text-align: center; }

/* Collect: the check-in beside the Guide */
.collect-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; }
.guide { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
.guide img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.guide .met figcaption { color: var(--ink); }
.guide .unmet img { opacity: .85; }
.garden { position: relative; background: #dfe9c9; border-radius: 16px; padding: 22px 14px 14px; display: flex; justify-content: space-around; align-items: flex-end; }
.garden img { height: 74px; width: auto; }
.garden figcaption { background: var(--animal); color: var(--accent-ink); border-radius: 6px; padding: 1px 8px; }
.garden .visitor { position: absolute; left: 22%; top: -14px; height: 54px; transform: rotate(-8deg); }
.letter-h { display: flex; gap: 14px; align-items: flex-start; }
.letter-h img { width: 64px; flex: none; }
.letter-h span { font-size: 13px; color: var(--muted); }
.pressed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pressed figure { background: var(--bg); border-radius: 12px; padding: 10px 6px; }
.pressed img { height: 70px; width: auto; }
.pressed figcaption { color: var(--ink); }
.deck { display: flex; justify-content: center; padding: 8px 0 4px 18px; }
.deck div { width: 92px; height: 124px; margin-left: -18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 16px rgba(60, 80, 40, .14); display: flex; align-items: center; justify-content: center; }
.deck img { height: 72px; width: auto; }
.stamps { display: flex; gap: 16px; align-items: center; }
.stamps .place { border: 2px solid var(--postmark); color: var(--postmark); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 15px; transform: rotate(-4deg); }
.stamps small { font-size: 14px; color: var(--muted); }

/* Share */
.diary { position: relative; background: var(--bg); border-radius: 16px; padding: 16px 18px; }
.diary .d { font-size: 13px; color: var(--muted); }
.diary b { font-size: 17px; }
.diary .l { font-size: 14px; }
.diary .l:first-of-type { padding-top: 6px; }
.diary .pm { position: absolute; right: 14px; top: 12px; width: 58px; height: 58px; border: 2px solid var(--postmark); border-radius: 50%; color: var(--postmark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; transform: rotate(-12deg); }
.sharepic { align-self: center; width: 180px; background: #1c2a24; border-radius: 14px; padding: 14px; color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; gap: 6px; transform: rotate(-3deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); text-align: center; }
.sharepic small { font-size: 10px; opacity: .8; }
.sharepic img { height: 84px; width: auto; }
.sharepic span { font-size: 12px; }
.sharepic b { font-size: 16px; color: #f2c14e; }
.sharepic .tag { align-self: flex-end; }
.hoods { display: flex; justify-content: space-between; gap: 6px; }
.hoods img { height: 96px; width: auto; }
.friends { display: flex; gap: 10px; }
.friends img { height: 64px; width: auto; }

/* Final: the Today illustration, someone out on the path */
.outro { border-radius: 28px; padding: 56px 32px; background: var(--sunk); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.outro img.icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.outro h2 { font-size: clamp(28px, 4vw, 40px); }
.outro p { max-width: 560px; color: var(--muted); }
.outro .cta { justify-content: center; }
.outro .small { font-size: 14px; }

/* The check-in, played on loop: snap, name, keep, postmark */
.ck { width: 304px; height: 624px; flex: none; }
.ck .ph { width: 380px; height: 780px; transform: scale(.8); transform-origin: top left; margin: 0 -76px -156px 0; padding: 10px; background: var(--ink); border-radius: 52px; box-shadow: 0 24px 60px rgba(34, 48, 31, .28); }
.ck .s { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); }
.ck .a { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: ease; }
.ck .full { position: absolute; inset: 0; }
.ck .sky { background: #6fb2d6 url(/assets/spring-still.webp) center 60% / cover no-repeat; }
.ck .view { animation-name: ck-view; }
.ck .hint { position: absolute; top: 58px; left: 0; right: 0; text-align: center; color: var(--accent-ink); font-size: 15px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.ck .frame { position: absolute; left: 50%; top: 42%; width: 200px; height: 200px; margin: -100px 0 0 -100px; animation-name: ck-corners; }
.ck .frame i { position: absolute; width: 34px; height: 34px; border: 0 solid var(--accent-ink); }
.ck .frame i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 8px 0 0 0; }
.ck .frame i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 8px 0 0; }
.ck .frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 8px; }
.ck .frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-radius: 0 0 8px 0; }
.ck .bird { position: absolute; left: 50%; top: 42%; height: 130px; width: auto; max-width: none; transform: translate(-50%, -50%); }
.ck .shutter { position: absolute; left: 50%; bottom: 44px; width: 76px; height: 76px; margin-left: -38px; border-radius: 50%; border: 5px solid var(--accent-ink); background: rgba(255, 254, 250, .35); animation-name: ck-shutter; }
.ck .flash { background: var(--accent-ink); opacity: 0; animation-name: ck-flash; pointer-events: none; }
.ck .think { background: var(--bg); opacity: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; animation-name: ck-thinking; }
.ck .think .pic { width: 220px; height: 220px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.ck .think .pic img { height: 120px; width: auto; }
.ck .think .who { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); }
.ck .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ck-dot 1s infinite; }
.ck .dot:nth-child(2) { animation-delay: .2s; } .ck .dot:nth-child(3) { animation-delay: .4s; }
.ck .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 28px 28px 0 0; padding: 22px 18px 36px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); transform: translateY(105%); animation-name: ck-sheet; display: flex; flex-direction: column; gap: 10px; }
.ck .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; }
.ck .q { font-size: 17px; font-weight: 700; padding: 4px 4px 2px; }
.ck .opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.ck .opt .th { width: 48px; height: 48px; border-radius: 12px; background: var(--sunk); flex: none; object-fit: contain; }
.ck .opt div { flex: 1; line-height: 1.35; }
.ck .opt b { font-size: 16px; display: block; }
.ck .opt .latin { font-size: 13px; }
.ck .opt .pct { color: var(--muted); font-size: 15px; }
.ck .opt.pick { animation-name: ck-pick; }
.ck .opt.pick b { font-weight: 700; }
.ck .opt.pick .pct { color: var(--plant); font-weight: 700; }
.ck .tap { position: absolute; left: 40%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--accent); opacity: 0; animation-name: ck-tap; }
.ck .done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; pointer-events: none; }
.ck .kept { position: relative; width: 250px; background: var(--surface); padding: 12px 12px 16px; box-shadow: 0 16px 36px rgba(60, 80, 40, .2); opacity: 0; animation-name: ck-card; line-height: 1.35; }
.ck .kept .pic { height: 230px; display: flex; align-items: center; justify-content: center; }
.ck .kept .pic img { height: 130px; width: auto; }
.ck .kept .nm { padding-top: 10px; }
.ck .kept b { font-size: 20px; display: block; }
.ck .kept .latin { font-size: 13px; display: block; }
.ck .kept small { font-size: 12px; color: var(--muted); }
.ck .post { position: absolute; right: -16px; bottom: 34px; width: 76px; height: 76px; border: 3px solid var(--postmark); border-radius: 50%; color: var(--postmark); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; line-height: 1.05; background: rgba(255, 254, 250, .55); opacity: 0; animation-name: ck-stamp; }
.ck .post small { font-size: 8px; letter-spacing: 1px; }
.ck .msg { text-align: center; opacity: 0; animation-name: ck-done; line-height: 1.4; }
.ck .msg b { font-size: 18px; display: block; }
.ck .msg span { font-size: 14px; color: var(--muted); }
@keyframes ck-view { 0%, 18% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes ck-corners { 0%, 6% { transform: scale(1.12); opacity: .4; } 12%, 18% { transform: scale(1); opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes ck-shutter { 0%, 14% { transform: scale(1); } 16% { transform: scale(.86); } 18%, 100% { transform: scale(1); } }
@keyframes ck-flash { 0%, 17% { opacity: 0; } 18% { opacity: .95; } 24%, 100% { opacity: 0; } }
@keyframes ck-thinking { 0%, 20% { opacity: 0; } 23%, 32% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes ck-sheet { 0%, 32% { transform: translateY(105%); } 38%, 52% { transform: translateY(0); } 57%, 100% { transform: translateY(105%); } }
@keyframes ck-pick { 0%, 44% { background: var(--surface); box-shadow: 0 0 0 0 rgba(169, 95, 52, 0); } 47%, 56% { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); } 100% { background: var(--surface); } }
@keyframes ck-tap { 0%, 44% { opacity: 0; transform: scale(.4); } 46% { opacity: .5; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ck-card { 0%, 55% { opacity: 0; transform: translateY(40px) scale(.9) rotate(0); } 61% { opacity: 1; transform: translateY(0) scale(1.03) rotate(-2deg); } 64%, 92% { opacity: 1; transform: translateY(0) scale(1) rotate(-2deg); } 97%, 100% { opacity: 0; transform: translateY(0) scale(1) rotate(-2deg); } }
@keyframes ck-stamp { 0%, 66% { opacity: 0; transform: scale(2.2) rotate(-30deg); } 70% { opacity: 1; transform: scale(.92) rotate(-14deg); } 73%, 92% { opacity: 1; transform: scale(1) rotate(-14deg); } 97%, 100% { opacity: 0; } }
@keyframes ck-done { 0%, 72% { opacity: 0; transform: translateY(8px); } 77%, 92% { opacity: 1; transform: translateY(0); } 97%, 100% { opacity: 0; } }
@keyframes ck-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Still versions for people who turn motion off: the Today page at the top, the kept card */
@media (prefers-reduced-motion: reduce) {
  .phone .scr .roll, .ck .a, .ck .dot { animation: none !important; }
  .ck .view, .ck .flash, .ck .think, .ck .sheet { opacity: 0 !important; }
  .ck .kept, .ck .msg { opacity: 1 !important; transform: rotate(-2deg); }
  .ck .msg { transform: none; }
  .ck .post { opacity: 1 !important; transform: rotate(-14deg); }
}

@media (max-width: 860px) {
  .hero { min-height: 760px; padding: 48px 20px; background-position: center bottom; }
  .today { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .today .sec-h { order: -1; align-items: center; text-align: center; }
  .paths { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .path .vis { height: auto; }
  .collect-top { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .outro { padding: 44px 20px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .fan { transform: scale(.9); transform-origin: top center; }
  .hoods img { height: 72px; }
  .pressed img { height: 54px; }
}
@media (max-width: 420px) { .wrap { padding: 0 16px; } }
