/* Melvil site: the app's tokens (design system "Melvil"), light and dark from the system. */
:root {
  --surface: #FAFAF9; --raised: #FFFFFF; --sunken: #F2F1EF; --line: #E4E2DE; --line-strong: #8E8A83;
  --ink: #1C1B19; --muted: #5F5C56; --marigold: #F2A93B; --soft: #FCEBCF; --mink: #8A5600; --on: #1C1B19; --leaf: #2F7D47;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #161615; --raised: #1F1F1D; --sunken: #111110; --line: #2E2D2A; --line-strong: #72706A;
    --ink: #F2F1EE; --muted: #A29F98; --marigold: #F5B04A; --soft: #3A2C14; --mink: #F5B04A; --leaf: #5CC07E;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface); color: var(--ink); font: 16px/26px -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--mink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; }
.btn {
  font: inherit; font-size: 15px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn.primary { background: var(--marigold); border-color: var(--mink); color: var(--on); font-weight: 600; }
.muted { color: var(--muted); }
.hero { padding: 72px 24px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--soft); color: var(--mink); font-size: 14px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 60px); line-height: 1.08; max-width: 820px; }
.lead { margin: 0; font-size: 19px; line-height: 30px; max-width: 640px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 14px; }
.band { background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
section.block { padding: 72px 24px; }
h2 { font-size: 32px; line-height: 40px; margin: 0 0 28px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; line-height: 24px; }
.card p { margin: 0; color: var(--muted); }
.price { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.price .amount { display: flex; align-items: baseline; gap: 8px; }
.price .amount strong { font-size: 40px; line-height: 48px; }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price li { padding-left: 28px; position: relative; }
.price li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.4px solid var(--leaf); border-bottom: 2.4px solid var(--leaf); transform: rotate(-45deg); }
.center { text-align: center; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; min-height: 72px; font-size: 14px; }
footer .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.doc { max-width: 720px; padding: 56px 24px; }
.doc h1 { font-size: 36px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; line-height: 30px; margin: 32px 0 8px; }

.notice { margin: 8px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); font-size: 15px; }
/* --- Design review, November 2026 --- */
/* 1. Focus: marigold on the light surface is 1.8:1. Use the ink accent (6:1 light, 9:1 dark). */
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--mink); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { border-radius: 10px; }

/* 2. Text wrapping and tap targets */
h1, h2 { text-wrap: balance; }
.lead, .card p { text-wrap: pretty; }
nav a:not(.btn), footer a { display: inline-flex; align-items: center; min-height: 44px; }
summary { padding: 12px 0; }
details { padding: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 10; background: var(--raised); color: var(--ink); padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 8px; }
.skip:focus { top: 8px; }

/* 3. Three cards: 3 columns from 720px, else one (auto-fit left a lone card at 768 and 640-700px) */
.grid3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 4. Header: brand + language + one action on phones; the section links return at 640px */
header.top .wrap { flex-wrap: nowrap; min-height: 56px; gap: 12px; }
nav { gap: 16px; flex-wrap: nowrap; }
.brand img { width: 28px; height: 28px; }
@media (max-width: 639px) {
  nav a.sec { display: none; }
  .brand { font-size: 17px; }
}

/* 5. Hero: two columns from 960px (text + illustration); one primary action */
.hero { padding: 48px 24px 40px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; padding: 80px 24px 72px; }
}
@media (max-width: 479px) { .ctas .btn { flex: 1 1 100%; justify-content: center; } }

/* 6. Calmer vertical rhythm on phones */
@media (max-width: 639px) {
  .band { padding: 48px 0; }
  section.block { padding: 48px 24px; }
  h2 { font-size: 26px; line-height: 34px; margin-bottom: 20px; }
}
/* Hero illustration */
.demo { margin: 0; width: 100%; max-width: 480px; }
.demo-win { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 5px; background: var(--line-strong); opacity: .45; }
.demo-bar span { margin-left: auto; margin-right: auto; transform: translateX(-21px); }
.demo-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.demo-cap { margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.demo-title { margin: 0 0 12px; font-size: 20px; line-height: 26px; font-weight: 700; }
.demo-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.demo-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 12px/16px ui-monospace, "SF Mono", Menlo, monospace; }
.demo-rows .f, .demo-rows .to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-rows .to { color: var(--mink); }
.demo-rows .stay .f, .demo-rows .stay .to { color: var(--muted); }
.demo-foot { margin: 12px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.demo figcaption { margin-top: 12px; }
@media (max-width: 480px) { .demo-rows li { grid-template-columns: 1fr; gap: 0; } .demo-rows .to::before { content: "→ "; } }
nav a:not(.btn) { text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .brand img { border-radius: 7px; outline: 1px solid var(--line); } }

/* --- Design round 2 --- */
/* 1. Hero: no primary yet. The status is a quiet line, "See how it works" a text link; the proposal card is the focal point. */
h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.1; letter-spacing: -0.01em; }
.more { color: var(--mink); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.more span { margin-left: 6px; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:focus-visible { outline: 2px solid var(--mink); outline-offset: 2px; border-radius: 4px; }
.status { margin: 0; padding-left: 14px; border-left: 2px solid var(--line-strong); font-size: 15px; line-height: 24px; color: var(--muted); }
.hero .ctas { margin-top: -8px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 64px; }
  .demo { justify-self: end; }
}
.lead { max-width: 34em; }

/* 2. How it works: numbered steps, each with a small picture; Calm by design: plain columns on hairlines, no cards */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps > li:first-child { border-top: 0; padding-top: 8px; }
.step-copy h3 { margin: 0 0 6px; font-size: 20px; line-height: 28px; display: flex; align-items: center; gap: 12px; }
.step-copy h3::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--soft); color: var(--mink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.step-copy p { margin: 0; color: var(--muted); max-width: 30em; text-wrap: pretty; }
@media (min-width: 720px) {
  .steps > li { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: center; padding: 36px 0; }
  .step-copy { padding-left: 40px; }
  .step-copy h3 { margin-left: -40px; }
}
.mini { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 12px; line-height: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mini p { margin: 0; }
.mini-cap { color: var(--muted); }
.mini-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini .f, .mini-file { font: 12px/16px ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini-file { font-size: 13px; }
.new { flex: none; padding: 1px 8px; border-radius: 9px; background: var(--soft); color: var(--mink); font-weight: 600; }
.mini-foot { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 3px 10px; border-radius: 12px; background: var(--soft); color: var(--mink); font: 600 12px/16px ui-monospace, "SF Mono", Menlo, monospace; }
.chip.ask { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 400; padding: 2px 9px; }
.mini-act { display: flex; }
.mini-btn { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; line-height: 20px; color: var(--ink); background: var(--raised); }
.mini-big { font-size: 20px; line-height: 26px; font-weight: 700; }

.calm { display: grid; grid-template-columns: 1fr; gap: 28px; }
.calm > div { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.calm h3 { margin: 0 0 6px; font-size: 18px; line-height: 24px; }
.calm p { margin: 0; color: var(--muted); text-wrap: pretty; }
@media (min-width: 720px) { .calm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* 3. Questions: breathing room under the answer, our own marker (a plus that turns into a minus) */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--muted), var(--muted)) center / 12px 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.5px 12px no-repeat; }
details[open] summary::after { background: linear-gradient(var(--muted), var(--muted)) center / 12px 1.5px no-repeat; }
details p { margin: 0; padding: 0 28px 20px 0; max-width: 40em; text-wrap: pretty; }
h2 + details, h2 + p { margin-top: 0; }

/* 4. Closing block and footer */
.closer { border-top: 1px solid var(--line); background: var(--sunken); text-align: center; padding: 64px 0 56px; }
.closer .wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.closer img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 8px; }
.closer h2 { margin: 0; font-size: 26px; line-height: 34px; }
.closer p { margin: 0 0 8px; }
footer .wrap { padding-top: 8px; padding-bottom: 8px; }

/* 5. Rhythm: calmer h2, more air between sections on large screens */
h2 { font-size: 28px; line-height: 36px; letter-spacing: -0.005em; margin-bottom: 24px; }
@media (min-width: 960px) {
  .band { padding: 88px 0; }
  section.block { padding: 88px 24px; }
  h2 { font-size: 32px; line-height: 40px; margin-bottom: 32px; }
}
@media (max-width: 639px) { .closer { padding: 48px 0 40px; } .steps > li { padding: 24px 0; } }

/* Language switch: the flag of the language the link leads to. */
.lang { gap: 8px; }
.flag { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }

/* First fold: depth for the window, one calm loop (proposal, approve, moved), entrance on load. CSS only. */
.demo { position: relative; isolation: isolate; }
.demo::before { content: ""; position: absolute; z-index: -1; inset: -36px -16px 12px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--soft), transparent); opacity: .8; }
.demo-win { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 40px -12px rgba(0, 0, 0, .18); }
.demo-body { position: relative; }
.demo-cap { display: grid; }
.demo-cap span { grid-area: 1 / 1; }
.demo-cap .s2 { color: var(--leaf); font-weight: 600; opacity: 0; }
.demo-rows li { position: relative; padding-right: 22px; }
.demo-rows .ck { position: absolute; right: 2px; top: 50%; width: 11px; height: 6px; margin-top: -5px; border-left: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); opacity: 0; }
.demo-rows .stay .ck { display: none; }
.demo-act { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; margin-top: 12px; }
.demo-act .demo-foot { margin: 0; }
.demo-btns { display: grid; flex: none; }
.demo-btn { grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap; }
.demo-btn.b1 { background: var(--marigold); color: var(--on); border: 1px solid var(--mink); }
.demo-btn.b2 { background: var(--raised); color: var(--ink); border: 1px solid var(--line-strong); opacity: 0; }
.demo-cur { position: absolute; left: 96px; bottom: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--ink) 18%, transparent); opacity: 0; pointer-events: none; }
.pill::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--marigold); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .21s; }
  .hero-copy > :nth-child(5) { animation-delay: .28s; }
  .demo { animation: rise .55s cubic-bezier(.2, .7, .2, 1) .18s both; }
  .demo::before { animation: glow 7s ease-in-out infinite; }
  .pill::before { animation: pulse 2.4s ease-in-out infinite; }
  .demo-cap .s1, .demo-btn.b1 { animation: phase-a 7s ease infinite; }
  .demo-cap .s2, .demo-btn.b2 { animation: phase-b 7s ease infinite; }
  .demo-btn.b1 { animation-name: press; }
  .demo-cur { animation: cursor 7s ease infinite; }
  .demo-rows li:not(.stay) { animation: moved 7s ease infinite; }
  .demo-rows .ck { animation: phase-b 7s ease infinite; }
  .demo-rows li:nth-child(2), .demo-rows li:nth-child(2) .ck { animation-delay: .25s; }
  .demo-rows li:nth-child(3), .demo-rows li:nth-child(3) .ck { animation-delay: .5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--marigold) 60%, transparent); } 60% { box-shadow: 0 0 0 6px transparent; } }
@keyframes glow { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: .95; transform: scale(1.05); } }
@keyframes phase-a { 0%, 50% { opacity: 1; } 54%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes phase-b { 0%, 50% { opacity: 0; } 54%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes press { 0%, 44% { opacity: 1; transform: none; } 47% { opacity: 1; transform: scale(.94); } 50% { opacity: 1; transform: none; }
  54%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cursor { 0%, 30% { opacity: 0; transform: translate(150px, -70px); } 36% { opacity: 1; } 44% { opacity: 1; transform: none; }
  47% { opacity: 1; transform: scale(.8); } 50% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; transform: none; } }
@keyframes moved { 0%, 50% { background: transparent; } 54% { background: var(--soft); } 62%, 100% { background: transparent; } }

/* How it works: each picture plays its step in a loop (files arriving, a suggestion accepted, a plan applied). */
.mini-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--leaf); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .mini-rows li { animation: arrive 5s ease infinite; }
  .mini-rows li:nth-child(2) { animation-delay: .35s; }
  .mini-rows li:nth-child(3) { animation-delay: .7s; }
  .mini-rows .new { animation: pop 5s ease infinite; animation-delay: inherit; }
  .chip.ask { animation: accept 4s ease infinite; }
  .chips + .mini-act .mini-btn { animation: tap 4s ease infinite; }
  .mini-bar i { animation: fill 5s ease infinite; }
  .mini-bar ~ * { animation: after-fill 5s ease infinite; }
}
@keyframes arrive { 0%, 6% { opacity: 0; transform: translateY(-8px); } 12%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes pop { 0%, 12% { transform: scale(.6); } 18% { transform: scale(1.12); } 22%, 100% { transform: none; } }
@keyframes tap { 0%, 38% { transform: none; background: var(--raised); } 42% { transform: scale(.93); background: var(--soft); } 47%, 100% { transform: none; background: var(--raised); } }
@keyframes accept { 0%, 44% { background: transparent; border-color: var(--line-strong); color: var(--muted); }
  50%, 92% { background: var(--soft); border-color: var(--soft); color: var(--mink); } 100% { background: transparent; border-color: var(--line-strong); color: var(--muted); } }
@keyframes fill { 0%, 8% { transform: scaleX(0); } 40%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes after-fill { 0%, 38% { opacity: 0; transform: translateY(4px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* How it works, wide windows: the real app instead of the small picture, three screens taking turns. */
.shot { display: none; margin: 0; }
.shot .demo-win { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 40px -16px rgba(0, 0, 0, .18); }
.shot-frames { position: relative; aspect-ratio: 2080 / 1320; background: var(--surface); }
.shot-frames picture { position: absolute; inset: 0; }
.shot-frames img { display: block; width: 100%; height: 100%; }
.shot figcaption { margin-top: 12px; }
@media (min-width: 960px) {
  .steps > li { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .steps > li > .mini { display: none; }
  .shot { display: block; }
  .step-copy p { max-width: 44em; }
}
@media (prefers-reduced-motion: no-preference) {
  .shot-frames.n2 picture:nth-child(2) { animation: turn-2 5s ease infinite; }
  .shot-frames.n3 picture:nth-child(2) { animation: turn-3a 7.5s ease infinite; }
  .shot-frames.n3 picture:nth-child(3) { animation: turn-3b 7.5s ease infinite; }
}
@keyframes turn-2 { 0%, 46% { opacity: 0; } 52%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes turn-3a { 0%, 30% { opacity: 0; } 35%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes turn-3b { 0%, 63% { opacity: 0; } 68%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* Header: quiet buttons instead of underlined links; stays on top while the page scrolls. */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
#how, #faq { scroll-margin-top: 72px; }
nav { gap: 4px; }
nav a:not(.btn) { min-height: 36px; padding: 0 12px; border-radius: 9px; color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s; }
nav a:not(.btn):hover { background: var(--sunken); }
nav a:not(.btn):active { background: var(--line); }
nav a.lang { margin-left: 8px; padding: 0 12px 0 10px; border: 1px solid var(--line); background: var(--raised); }
nav a.lang:hover { border-color: var(--line-strong); background: var(--raised); }
.btn, .more { transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); }
.more span { display: inline-block; transition: transform .15s; }
.more:hover span { transform: translateY(2px); }

/* First fold: files get their tags in Downloads, then fly to the folders the plan gives them. */
.stage { position: relative; height: 292px; margin: 10px 0 2px; }
.stage-h { position: absolute; top: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.stage-h.h1 { left: 0; } .stage-h.h2 { left: 52%; }
.drop { position: absolute; left: 52%; width: 48%; height: 26%; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 10px;
  font: 11px/14px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl { position: absolute; left: 0; width: 44%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised);
  display: flex; flex-direction: column; gap: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.fl-n { font: 600 11px/14px ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-t { display: flex; gap: 4px; height: 18px; overflow: hidden; }
.fl-t i { flex: none; font: normal 600 10px/18px ui-monospace, "SF Mono", Menlo, monospace; padding: 0 7px; border-radius: 9px;
  background: var(--soft); color: var(--mink); transform-origin: left center; }
.d1 { top: 9%; } .d2 { top: 40%; } .d3 { top: 71%; }
.f1 { top: 16.5%; --d: 0s; } .f2 { top: 47.5%; --d: .14s; } .f3 { top: 78.5%; --d: .28s; }
@media (max-width: 480px) { .fl-t i + i { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .fl { animation: fly 7s cubic-bezier(.5, 0, .2, 1) infinite; animation-delay: var(--d); }
  .fl-t i { animation: tag 7s cubic-bezier(.3, 1.6, .5, 1) infinite; animation-delay: calc(var(--d) + .1s); }
  .fl-t i + i { animation-delay: calc(var(--d) + .28s); }
  .drop { animation: land 7s ease infinite; }
  .d2 { animation-delay: .14s; } .d3 { animation-delay: .28s; }
}
@keyframes fly {
  0% { left: 0; opacity: 0; transform: translateY(-14px) scale(.96); }
  5%, 46% { left: 0; opacity: 1; transform: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
  52% { left: 26%; opacity: 1; transform: translateY(-16px) rotate(-3deg) scale(1.05); box-shadow: 0 14px 24px -8px rgba(0, 0, 0, .28); }
  58%, 93% { left: 54%; opacity: 1; transform: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
  100% { left: 54%; opacity: 0; transform: scale(.96); }
}
@keyframes tag { 0%, 12% { transform: scale(0); opacity: 0; } 17% { transform: scale(1.18); opacity: 1; } 21%, 100% { transform: none; opacity: 1; } }
@keyframes land { 0%, 54% { background: transparent; border-color: var(--line-strong); border-style: dashed; }
  59% { background: var(--soft); border-color: var(--mink); border-style: solid; }
  68%, 93% { background: transparent; border-color: var(--line-strong); border-style: solid; } 100% { border-style: dashed; } }

/* --- How it works, round 3: copy and picture side by side, alternating; room to breathe --- */
#how .wrap { max-width: 1200px; }
.steps > li { grid-template-areas: "copy" "media"; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 48px 0; }
.steps > li:first-child { padding-top: 16px; }
.steps > li > .step-copy { grid-area: copy; padding-left: 0; align-self: center; }
.steps > li > .mini, .steps > li > .shot { grid-area: media; min-width: 0; }
.step-copy h3 { margin: 0 0 12px; margin-left: 0; font-size: 24px; line-height: 32px; letter-spacing: -0.005em; }
.step-copy p { max-width: 32em; }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 24px; }
.facts li { position: relative; padding-left: 20px; color: var(--ink); text-wrap: pretty; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 3px; background: var(--mink); }
@media (min-width: 720px) {
  /* small pictures (720-959px): text | picture, then picture | text */
  .steps > li { grid-template-areas: "copy media"; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: center; padding: 56px 0; }
  .steps > li:nth-child(even) { grid-template-areas: "media copy"; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  /* real screens: the picture takes the larger column */
  .steps > li { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 72px; padding: 88px 0; }
  .steps > li:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
  .steps > li:first-child { padding-top: 24px; }
  .steps > li:last-child { padding-bottom: 32px; }
  .step-copy p { max-width: 32em; }
}
@media (max-width: 639px) { .steps > li { padding: 36px 0; } .step-copy h3 { font-size: 22px; line-height: 30px; } }
/* Motion only where it is welcome and supported: the picture rises into place as it scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps > li > .shot, .steps > li > .mini { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .steps > li > .step-copy { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
