/* The homepage (apps/web/src/marketing/pages/home.tsx): the hero, the video picks, how it works and the extras.
   Uses landing.css's tokens, so light and dark both follow the header switch. Hero motion is in home.js. */

/* ---------- hero: the quiet split ---------- */
/* One idea box on the left, one real video on the right with the idea it came from written under it. No glow, no
   floating notes: calm and roomy. */
.hp-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center;
  width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 64px 0 80px;
}

.hp-rise { opacity: 0; transform: translateY(14px); animation: hp-rise .6s var(--ease) forwards; }
.hp-copy > .hp-rise:nth-child(1) { animation-delay: .05s; }
.hp-copy > .hp-rise:nth-child(2) { animation-delay: .14s; }
.hp-copy > .hp-rise:nth-child(3) { animation-delay: .24s; }
.hp-copy > .hp-rise:nth-child(n+4) { animation-delay: .36s; }
@keyframes hp-rise { to { opacity: 1; transform: none; } }

.hp-hero h1 { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: -.04em; line-height: 1.04; }
.hp-hero h1 .hand { color: var(--accent); letter-spacing: -.02em; font-size: 1.04em; }
.hp-hero .hero-sub { max-width: 30em; margin-top: 22px; font-size: 18px; line-height: 1.6; }

.hp-make {
  display: flex; align-items: center; gap: 12px; margin-top: 34px; max-width: 560px; padding: 8px 8px 8px 24px;
  border-radius: 999px; background: var(--sheet); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}
.hp-make:focus-within { border-color: var(--orange); }
.hp-idea {
  flex: 1 1 auto; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 17px; font-weight: 500; padding: 0;
}
.hp-idea::placeholder { color: var(--ink-3); }
.hp-go { flex: none; }
.hp-fine { margin: 14px 0 0 24px; font-size: 14px; color: var(--ink-3); }

.hp-stage { display: flex; flex-direction: column; align-items: center; margin: 0; }
.hp-phone {
  position: relative; width: min(260px, 100%); padding: 8px; border-radius: 26px; background: #f3eee8;
  box-shadow: var(--print-shadow);
}
.hp-phone video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 19px; background: var(--stone); transition: opacity .35s var(--ease); }
.hp-phone video.is-swapping { opacity: 0; }
.hp-phone .sound { right: 18px; top: 18px; }
.hp-stage figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 280px; margin-top: 18px; text-align: center; }
.hp-said { font-size: 17px; line-height: 1.35; color: var(--ink-2); transition: opacity .3s; }
.hp-said::before { content: "\201C"; }
.hp-said::after { content: "\201D"; }
.hp-became { font-size: 13px; color: var(--ink-3); }

/* the climb: one orange line across the hero, carrying real videos up to the phone. home.js draws it. */
.hp-hero { position: relative; }
.hp-copy, .hp-stage { position: relative; z-index: 2; }
.hp-line { position: absolute; left: 0; bottom: 28px; width: 100%; height: 640px; overflow: visible; pointer-events: none; }
.hp-line { transition: opacity .25s; }
.hp-line path { fill: none; stroke: var(--orange-btn); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.hp-riders { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.hp-riders li { position: absolute; z-index: 1; padding: 4px; border-radius: 16px; background: #f3eee8; box-shadow: var(--print-shadow); transition: opacity .15s linear, transform .5s cubic-bezier(.16, 1, .3, 1); }
.hp-riders img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--stone); }
.hp-riders li:nth-child(1) { width: 70px; right: 520px; bottom: 44px; }
.hp-riders li:nth-child(2) { width: 82px; right: 432px; bottom: 96px; }
.hp-riders li:nth-child(3) { width: 94px; right: 346px; bottom: 170px; }
.hp-riders li.is-off { opacity: 0; transform: translateY(20px) scale(.6); transition-duration: .2s; }
.hp-dot { position: absolute; left: 0; top: 0; z-index: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--orange-btn); border: 3px solid #fff; box-shadow: var(--chip-shadow); opacity: 0; pointer-events: none; }
.hp-phone.is-peak { animation: hp-peak .55s cubic-bezier(.16, 1, .3, 1); }
@keyframes hp-peak { 40% { transform: scale(1.035); } }
.hp-goal { position: absolute; right: calc(100% + 16px); top: 18px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; color: #1c1917; border: 1px solid #ebe7e2; box-shadow: var(--chip-shadow); }
.hp-goal small { font-size: 13px; font-weight: 600; color: #6f6962; }
.hp-goal b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #c7450c; }

/* ---------- 0 views to millions: four stages stepping up to the right ---------- */
.hp-climb h2 .hand { color: var(--accent); }
.hp-climb-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.hp-climb-steps li {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border-radius: var(--r);
  background: var(--sheet); border: 1px solid var(--line); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hp-climb-steps li:nth-child(1) { min-height: 200px; }
.hp-climb-steps li:nth-child(2) { min-height: 244px; transition-delay: .12s; }
.hp-climb-steps li:nth-child(3) { min-height: 288px; transition-delay: .24s; }
.hp-climb-steps li:nth-child(4) { min-height: 332px; transition-delay: .36s; }
.hp-climb-steps b { font-size: 17px; font-weight: 800; line-height: 1.25; }
.hp-climb-steps li > span:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.hp-climb-mark { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hp-climb-steps li:last-child .hp-climb-mark { color: var(--accent); }
.hp-climb-wait li { opacity: 0; transform: translateY(24px); }
.hp-climb-fine { margin-top: 16px; }

/* ---------- the video picks ---------- */
.hp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hp-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.hp-more .btn-ghost { background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--chip-shadow); }
.hp-more .btn-ghost:hover { border-color: var(--orange); color: var(--ink); transform: translateY(-1px); }
.hp-more .btn .ic { width: 18px; height: 18px; }

/* ---------- how it works ---------- */
.hp-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hp-how-copy h2 { font-size: clamp(32px, 4.2vw, 48px); }
.hp-how-copy h2 .hand { color: var(--accent); }
.hp-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.hp-steps li { width: auto; min-height: 0; flex-direction: row; gap: 16px; align-items: flex-start; padding: 18px 20px; --tilt: 0deg; }
.hp-steps li:nth-child(2) { --tilt: .8deg; }
.hp-steps li:nth-child(3) { --tilt: -.6deg; }
.hp-steps div { display: flex; flex-direction: column; gap: 4px; }
.hp-steps b { font-size: 18px; font-weight: 800; }
.hp-steps div span { color: var(--on-note); font-size: 15.5px; line-height: 1.5; }
.hp-step-n {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 16px;
}
.hp-steps li:last-child .hp-step-n { background: var(--orange-btn); color: #fff; }
.hp-tour { margin: 0; }

/* ---------- posting ---------- */
.week .board { margin-bottom: 28px; }

/* ---------- make it yours ---------- */
.hp-yours { padding-top: 56px; }
.hp-yours-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-yours-list a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 22px 20px; border-radius: var(--r);
  background: var(--sheet); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s var(--ease);
}
.hp-yours-list a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.hp-yours-list b { font-size: 17px; font-weight: 800; }
.hp-yours-list span { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .hp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hp-grid > li:nth-child(n+9) { display: none; }
}
@media (max-width: 1180px) {
  .hp-riders li:nth-child(1) { display: none; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .hp-riders { display: none; }
}
@media (max-width: 960px) {
  .hp-hero { grid-template-columns: 1fr; gap: 76px; padding-top: 40px; }
  .hp-phone { width: 230px; }
  .hp-stage { align-items: flex-end; }
  .hp-dot { display: none; }
  .hp-stage figcaption { width: 230px; }
  .hp-line { left: -20px; width: calc(100% + 40px); height: 400px; bottom: 96px; }
  .hp-riders li:nth-child(1) { width: 62px; left: 0; right: auto; bottom: 110px; }
  .hp-riders li:nth-child(2) { width: 76px; left: 62px; right: auto; bottom: 190px; }
  .hp-riders li:nth-child(3) { display: none; }
  .hp-goal { right: auto; left: 8px; top: auto; bottom: calc(100% + 10px); }
  .hp-climb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .hp-climb-steps li:nth-child(n) { min-height: 0; }
  .hp-how { grid-template-columns: 1fr; gap: 40px; }
  .hp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-grid > li:nth-child(n+9) { display: list-item; }
  /* Children 9 to 12 pair up a global card with a desi one (home.tsx), so 9 shown always means 10 children. */
  .hp-grid > li:nth-child(n+11) { display: none; }
  .hp-yours-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hp-hero { width: calc(100% - 32px); padding-bottom: 48px; }
  .hp-make { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 24px; }
  .hp-idea { padding: 0 14px; }
  .hp-go { justify-content: center; }
  .hp-fine { margin-left: 8px; }
  .hp-phone { width: 210px; }
  .hp-stage figcaption { width: 210px; }
  .hp-climb-steps { grid-template-columns: minmax(0, 1fr); }
  .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-grid > li:nth-child(n+9) { display: list-item; }
  .hp-grid > li:nth-child(n+11) { display: list-item; }
  .hp-yours-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-phone video, .hp-said, .hp-climb-steps li, .hp-riders li { transition: none; }
  .hp-phone.is-peak { animation: none; }
  .hp-rise { animation: none; opacity: 1; transform: none; }
}

/* every template is new this month; on the homepage the word is noise */
.hp-grid .tpl-new { display: none; }

/* ---------- FILM: The Wrong Face, a whole film from one idea ---------- */
.hp-film { display: grid; gap: 28px; }
.hp-film-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.hp-film-head h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.04; max-width: 15ch; text-wrap: balance; }
.hp-film-head h2 .hand { color: var(--accent); }
.hp-film-head p { max-width: 46ch; color: var(--ink-2); font-size: 17.5px; line-height: 1.5; }
.hp-film-stage { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.hp-film-player { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--print-shadow); }
.hp-film-player video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.hp-film-tag { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12.5px; font-weight: 700; }
.hp-film-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 12px; border: 0; border-radius: 999px; background: #fff; color: #1c1917; font: 700 16px/1 inherit;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); cursor: pointer; transition: transform .2s var(--ease);
}
.hp-film-play:hover { transform: translate(-50%, -50%) scale(1.04); }
.hp-film-play span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-btn); color: #fff; }
.hp-film-play .ic { width: 16px; height: 16px; fill: currentColor; }
.hp-film-player.playing .hp-film-play, .hp-film-player.playing .hp-film-tag { display: none; }
.hp-film-side { display: grid; gap: 18px; }
.hp-film-note { position: relative; padding: 16px 16px 18px; border-radius: 6px; background: var(--butter); color: var(--ink); box-shadow: var(--note-shadow); transform: rotate(-1.5deg); }
.hp-film-note small { font-size: 12px; color: var(--on-note); }
.hp-film-note p { margin: 6px 0 0; font-size: 18px; line-height: 1.35; }
.hp-film-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-film-facts li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: 15px; }
.hp-film-facts b { min-width: 58px; color: var(--ink); font-size: 21px; font-weight: 800; }
.hp-film-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-film-cta .btn-ghost { background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); }
.hp-film-moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp-film-moments li { display: grid; gap: 8px; min-width: 0; }
.hp-film-moment { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; cursor: pointer; }
.hp-film-moments q { font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.hp-film-moments small { font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) {
  .hp-film-stage { grid-template-columns: minmax(0, 1fr); }
  .hp-film-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-film-play { font-size: 14px; padding: 10px 16px 10px 10px; }
}

/* ---------- what you can make, and the business section (also /business) ---------- */
.hp-make-from { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0 0 28px; padding: 0; }
.hp-make-from li { padding: 7px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.hp-make-sub { margin: 32px 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.hp-tools { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.hp-tools a { display: block; padding: 7px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; }
.hp-tools a:hover { border-color: var(--line-2); }

.hp-biz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hp-biz h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.04; }
.hp-biz h2 .hand { color: var(--accent); }
.hp-biz-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 17.5px; line-height: 1.5; }
.hp-biz-copy .hero-cta { margin-top: 24px; }
.biz-ads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 860px; }
.hp-biz .biz-ads { max-width: none; }
.biz-ads-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1060px; }
.biz-ads li { display: grid; gap: 2px; min-width: 0; }
.biz-ads video { display: block; width: 100%; aspect-ratio: 9 / 16; margin-bottom: 8px; border-radius: var(--r); background: #000; object-fit: cover; box-shadow: var(--print-shadow); }
.biz-ads b { font-size: 15.5px; }
.biz-ads small { color: var(--ink-3); font-size: 13.5px; }

.biz-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 64px 0 40px; }
.biz-hero h1 { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: -.04em; line-height: 1.04; }
.biz-hero h1 .hand { color: var(--accent); letter-spacing: -.02em; font-size: 1.04em; }
.biz-hero .hero-sub { max-width: 30em; margin-top: 22px; font-size: 18px; line-height: 1.6; }
.biz-hero .hero-cta { margin-top: 28px; }
.biz-hero-video { margin: 0; justify-self: center; width: min(300px, 100%); }
.biz-hero-video video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r); background: #000; object-fit: cover; box-shadow: var(--print-shadow); }
.biz-hero-video figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.biz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.biz-angles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.biz-angles > li { display: grid; gap: 10px; align-content: start; width: auto; min-height: 0; padding: 20px 18px; }
.biz-angles b { font-size: 19px; font-weight: 800; }
.biz-angles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15.5px; color: var(--on-note); }
.biz-yours li > div { display: grid; gap: 6px; height: 100%; padding: 20px 22px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); }
.biz-yours b { font-size: 17px; font-weight: 800; }
.biz-yours span { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 960px) {
  .hp-biz, .biz-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .biz-ads, .biz-angles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .hp-biz .biz-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); } .biz-angles { grid-template-columns: minmax(0, 1fr); } }
