/* Deedalis marketing site — the sales-page layer: video hero + film dialog,
   the scroll-driven "How it works" story, proof cards, pricing, feature
   spotlights and the multi-column footer. Tokens come from landing.css. */

/* ---- hero: full-screen background video ---- */
.hero-full { position: relative; overflow: hidden; min-height: calc(100svh - 66px); display: flex; align-items: center; background: var(--band-bg); color: #fff; isolation: isolate; }
.hero-bgvideo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(34, 18, 22, 0.92) 0%, rgba(34, 18, 22, 0.78) 38%, rgba(34, 18, 22, 0.25) 75%, rgba(34, 18, 22, 0.15) 100%),
  linear-gradient(0deg, rgba(34, 18, 22, 0.55) 0%, transparent 35%); }
.hero-full-inner { padding-block: clamp(4rem, 10vh, 7rem); }
.hero-copy { max-width: 640px; }
.hero-full h1.hero-title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero-full h1.hero-title .hl { color: var(--accent); }
.hero-full .hero-sub { color: rgba(255,255,255,0.86); max-width: 46ch; }
.hero-full .hero-note { color: rgba(255,255,255,0.7); }
.hero-full .btn-outline-white svg { margin-left: -2px; }
.tag-dark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.9); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-scroll { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,0.35); animation: nudge 2.4s ease-in-out infinite; }
.hero-scroll:hover { background: rgba(255,255,255,0.12); }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(0deg, rgba(34, 18, 22, 0.94) 0%, rgba(34, 18, 22, 0.8) 55%, rgba(34, 18, 22, 0.5) 100%); }
  .hero-full { align-items: flex-end; }
  .hero-scroll { display: none; }
}

/* ---- film dialog ---- */
dialog.film { padding: 0; border: 0; background: transparent; width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: visible; }
dialog.film::backdrop { background: rgba(28, 15, 18, 0.86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.film-box { position: relative; border-radius: var(--r-md); overflow: hidden; background: #000; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6); }
.film-video { display: block; width: 100%; aspect-ratio: 848 / 480; max-height: calc(100vh - 32px); background: #000; }
.film-close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.film-close:hover { background: var(--brand); }

/* ---- How it works: scroll story ---- */
.story { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.4rem, 4vw, 3.4rem); align-items: start; }
.story > * { min-width: 0; }
.story-rail { position: sticky; top: 96px; }
.story-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; position: relative; }
.story-line { position: absolute; left: 27px; top: 22px; bottom: 22px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.story-line span { display: block; width: 100%; height: 0; background: var(--brand); transition: height 0.45s ease; }
.story-step { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0.75rem; border-radius: 12px; border: 1px solid transparent; color: var(--body); transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
.story-step:hover { background: var(--surface); }
.story-step .n { position: relative; z-index: 1; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); font-size: 0.78rem; font-weight: 700; color: var(--muted); transition: all 0.25s ease; }
.story-step .t { font-size: 0.93rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.story-step .s { display: block; font-size: 0.76rem; font-weight: 400; color: var(--muted); }
.story-step.done .n { background: color-mix(in srgb, var(--brand) 15%, var(--surface)); border-color: transparent; color: var(--brand); }
.story-step.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.story-step.on .n { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-tint-2); }
.story-panels { display: flex; flex-direction: column; gap: clamp(1.4rem, 5vh, 3rem); }
.story-panel { scroll-margin-top: 96px; transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease; }
.story-panel .pn { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 0.55rem; border-radius: 50%; background: var(--brand-tint-2); color: var(--brand); font-size: 0.72rem; }
.story-panel .panel-body > p { font-size: 0.97rem; margin-bottom: 0.3rem; }
.story-js .story-panel { opacity: 0.45; transform: scale(0.985); box-shadow: var(--shadow-sm); }
.story-js .story-panel.on { opacity: 1; transform: none; box-shadow: var(--shadow-lg); }
.story-js .story-panel .ev { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.story-js .story-panel.seen .ev { opacity: 1; transform: none; }
.story-js .story-panel.seen .ev:nth-of-type(2) { transition-delay: 0.12s; }
.story-js .story-panel.seen .ev:nth-of-type(3) { transition-delay: 0.24s; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-rail { top: 66px; z-index: 5; margin-inline: -16px; padding: 0.5rem 16px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .story-rail ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .story-rail ol::-webkit-scrollbar { display: none; }
  .story-line, .story-step .s { display: none; }
  .story-step { flex: none; padding: 0.4rem 0.6rem; }
  .story-step .t { font-size: 0.85rem; white-space: nowrap; }
  .story-panel { scroll-margin-top: 140px; }
}

/* ---- Why it's different: proof cards ---- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
@media (max-width: 960px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .proof { grid-template-columns: 1fr; } }
.proof-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.proof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.proof-card .pic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 0.85rem; }
.proof-card h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.proof-card p { font-size: 0.87rem; }
.proof-more { margin-top: 1.4rem; text-align: center; }
.proof-more a { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--brand); font-weight: 600; font-size: 0.93rem; }
.proof-more a:hover { color: var(--brand-ink); }

/* ---- pricing (single free plan) ---- */
.free { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; max-width: 900px; margin-inline: auto; background: var(--surface); border: 1px solid var(--brand); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 4px var(--brand-tint); overflow: hidden; }
@media (max-width: 760px) { .free { grid-template-columns: 1fr; } }
.free-main { position: relative; padding: 2.2rem 2rem; display: flex; flex-direction: column; }
.free-list { padding: 2.2rem 2rem; background: var(--surface-2); border-left: 1px solid var(--line); }
@media (max-width: 760px) { .free-list { border-left: 0; border-top: 1px solid var(--line); } }
.free-list h4 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan-badge { align-self: flex-start; background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0.8em; border-radius: 999px; margin-bottom: 1rem; }
.free h3 { font-size: 1.4rem; }
.plan-blurb { font-size: 0.93rem; margin-top: 0.3rem; }
.price { margin-top: 1.1rem; }
.price .amt { font-size: 3.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.price .per { margin-left: 0.3rem; color: var(--muted); font-size: 0.95rem; }
.free-promises { list-style: none; padding: 0; margin: 1.1rem 0 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--brand-ink); font-weight: 600; }
.free-promises li { display: flex; gap: 0.55rem; align-items: center; }
.plan-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.93rem; }
.plan-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan-list svg { color: var(--ok); margin-top: 3px; }
.plan-cta { margin-top: auto; justify-content: center; }
.plans-note { text-align: center; font-size: 0.87rem; color: var(--muted); margin-top: 1.4rem; }
.join { margin-top: clamp(3rem, 6vw, 4.5rem); }
.join > h3 { text-align: center; font-size: 1.15rem; margin-bottom: 1.4rem; }

/* ---- feature spotlights ---- */
.spots .wrap { display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 6rem); }
.spot-h { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.7rem 0 0.9rem; }
@media (min-width: 861px) { .spot.rev > :first-child { order: 0; } }

/* ---- footer columns ---- */
.foot { align-items: flex-start; padding-block: 3rem 2rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem 3rem; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, 1fr); width: 100%; } }
.foot-col { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.88rem; }
.foot-col h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.foot-col a:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .proof-card:hover { transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .story-js .story-panel, .story-js .story-panel .ev { opacity: 1; transform: none; transition: none; }
  .story-line span { transition: none; }
}
