/* The hooks (hooks.js): the hero's names changing, a section for each kind of person, the
   folder check, and papers from everywhere. Cream, ink and one gold, as the rest of the site. */

/* ---------- The hero ---------- */
.hero { padding-top: 88px; }
.hero-title { text-wrap: balance; }
.hero-title em { white-space: nowrap; }
/* One phrase a line: "Files that name" over "and sort themselves." */
.hero-title .nw, .hero-title em { display: block; white-space: nowrap; }
/* Sized so the longer line, "and sort themselves.", fits a 375 pt phone on one line. */
@media (max-width: 699px) { .hero .hero-title { font-size: clamp(30px, 8.8vw, 60px); } }
/* The app's icon in a badge above the headline; its petals open on every load. */
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; color: var(--ink);
  background: rgba(251, 249, 244, .88); box-shadow: inset 0 0 0 1px var(--border), 0 8px 24px rgba(70, 52, 25, .08); transition: transform .3s var(--ease), box-shadow .3s; }
.hero-badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(169, 105, 46, .55), 0 12px 30px rgba(70, 52, 25, .12); }
.hero-badge .hero-mark { width: 36px; height: 36px; margin: 0; vertical-align: middle; filter: drop-shadow(0 2px 5px rgba(70, 52, 25, .18)); }
.hero-badge b { font: 800 16.5px "Shippori Mincho", serif; letter-spacing: -.01em; }
.hero-badge span { font-size: 14px; color: var(--muted); }
.hero .hero-title { margin-top: 28px; }
.hero .hero-lede { max-width: 600px; margin: 26px auto 0; }
.hero-buttons { margin-top: 30px; }
.hero .demo-note { margin-top: 14px; }
.hero .trust { margin-top: 22px; }

/* The card: a file's name before, and the one File Florist gives it. */
.hm { margin: 40px auto 0; max-width: 660px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hm-card { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: center; width: 100%; min-height: 150px; padding: 24px 28px; border-radius: 26px; text-align: left;
  background: linear-gradient(180deg, #FDFBF7, #F7F1E6); box-shadow: inset 0 0 0 1px var(--border), inset 0 1px 0 #fff, 0 26px 60px rgba(70, 52, 25, .12); }
.hm-tile { align-self: start; padding-top: 4px; }
.hm-texts { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hm-line { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 10px; min-width: 0; }
.hm-label { font: 600 10.5px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #a49b8c; }
.hm-before { font: 500 14px/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-before.struck, .pp-old.struck { text-decoration: line-through; text-decoration-color: rgba(169, 105, 46, .7); color: #9c958a; }
.hm-after { font: 650 clamp(17px, 2.1vw, 21px)/1.3 Inter, -apple-system, system-ui, sans-serif; color: var(--ink); min-height: 1.3em; overflow-wrap: anywhere; }
.hm-foot { display: flex; align-items: center; gap: 10px; min-height: 24px; margin-left: 62px; }
.hm-seal { position: absolute; top: 18px; right: 20px; }
.hm-dots { display: flex; gap: 6px; }
.hm-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(169, 105, 46, .22); transition: width .35s var(--ease), background .35s; }
.hm-dots i.on { width: 20px; background: var(--accent); }
@media (max-width: 600px) {
  .hm-card { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .hm-line { grid-template-columns: 1fr; gap: 2px; }
  .hm-foot { margin-left: 0; }
  .hm-before { font-size: 12.5px; }
  .hm-seal { top: 12px; right: 12px; }
}

.who { display: flex; gap: 8px 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.who a { padding: 5px 12px; border-radius: 999px; background: rgba(251, 249, 244, .7); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink-2); }
.who a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-text); }
.demo-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- How messy is your Mac? ---------- */
.mc { max-width: 920px; margin: 44px auto 0; }
.mc-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 24px; border-radius: 26px; text-align: center;
  background: var(--card); border: 2px dashed rgba(169, 105, 46, .45); transition: border-color .25s, background .25s, transform .25s; }
.mc-zone.over { border-color: var(--accent); background: #FFF8EC; transform: scale(1.01); }
.mc-zone.done { padding: 22px 24px; }
.mc-zone .icon { width: 64px; height: 52px; position: relative; }
.mc-zone .icon i { position: absolute; inset: 8px 0 0; border-radius: 8px; background: linear-gradient(#E9C887, #C59036); box-shadow: 0 6px 16px rgba(70, 52, 25, .18); }
.mc-zone .icon i::before { content: ""; position: absolute; left: 0; top: -8px; width: 26px; height: 12px; border-radius: 6px 6px 0 0; background: #D4A452; }
.mc-zone.over .icon { animation: mc-bob .7s ease-in-out infinite alternate; }
@keyframes mc-bob { to { transform: translateY(-6px); } }
.mc-zone b { font: 800 22px "Shippori Mincho", serif; color: var(--ink); }
.mc-zone p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 520px; }
.mc-zone.done .icon, .mc-zone.done p.hint { display: none; }
.mc-status { font-size: 13.5px; color: var(--accent-text); min-height: 1.3em; }
.mc-private { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.mc-private::before { content: "🔒"; font-size: 11px; }
.mc-touch { display: none; }
@media (hover: none) { .mc-touch { display: block; } .mc-drag { display: none; } }
.mc-result { margin-top: 18px; padding: 28px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border), 0 18px 44px rgba(70, 52, 25, .08); text-align: left; }
.mc-big { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); line-height: 1.4; }
.mc-big b { display: block; font: 800 clamp(48px, 7vw, 72px)/1 "Shippori Mincho", serif; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.mc-pct { margin-top: 8px; color: var(--muted); }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 22px; }
.mc-cell { padding: 14px 16px; border-radius: 16px; background: var(--canvas-top); box-shadow: inset 0 0 0 1px var(--border); }
.mc-cell b { display: block; font: 800 28px/1 "Shippori Mincho", serif; color: var(--ink); }
.mc-cell span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.mc-cell em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--muted); }
.mc-samples { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.mc-sample { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: var(--canvas-top); }
.mc-sample .nm { font: 500 13.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; }
.mc-sample .to { font-size: 12.5px; color: var(--accent-text); }
.mc-after { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 24px; }
.mc-again { background: none; border: 0; font: inherit; font-size: 14px; color: var(--accent-text); cursor: pointer; padding: 6px; }

/* ---------- For each kind of person ---------- */
.pp { margin-top: 44px; }
.pp-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pp-tab { appearance: none; border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; font: 600 14px Inter, -apple-system, sans-serif; color: var(--ink-2);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--border); transition: background .25s, color .25s, box-shadow .25s; }
.pp-tab:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.pp-tab.on { background: var(--ink); color: var(--canvas-top); box-shadow: none; }
.pp-panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; margin-top: 30px; text-align: left; }
@media (max-width: 860px) { .pp-panel { grid-template-columns: 1fr; gap: 22px; } }
.pp-title { font: 800 clamp(24px, 3vw, 32px)/1.2 "Shippori Mincho", serif; color: var(--ink); margin: 0; }
.pp-points { list-style: none; padding: 0; margin: 18px 0 0; }
.pp-points li { position: relative; padding: 7px 0 7px 26px; color: var(--ink-2); font-size: 15.5px; }
.pp-points li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pp-board { padding: 18px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border), 0 18px 44px rgba(70, 52, 25, .08); display: flex; flex-direction: column; gap: 8px; }
.pp-bhead { padding: 2px 4px 6px; }
.pp-bhead .ff-caps { font-size: 10.5px; }
.pp-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; background: var(--canvas-top); }
.pp-tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pp-old { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-new { font-size: 14px; font-weight: 600; color: var(--ink); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-new.note { font-weight: 500; color: var(--accent-text); }
.pp-end { display: flex; }
@media (max-width: 600px) { .pp-row { grid-template-columns: 34px 1fr; } .pp-end { grid-column: 2; } .pp-new { white-space: normal; } }

/* ---------- How it decides: three readers, one answer ---------- */


/* ---------- One scale for the whole page ---------- */
/* The gap above every section, and between a section's heading and what it shows (index.html sets
   --space-section and --space-head). */
.mc, .pp, .dc, .fd, .st, .wk, .rs, .fx, .yf, .yc { margin-top: var(--space-head); }
.mc-mirror { margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: #FFF8EC; box-shadow: inset 0 0 0 1px rgba(169, 105, 46, .25); color: var(--ink-2); font-size: 15px; }

/* ---------- Does your Downloads look like this? ---------- */
.yf { max-width: 980px; margin-left: auto; margin-right: auto; }
.yf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .yf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .yf-grid { grid-template-columns: 1fr; } }
.yf-name { appearance: none; border: 0; cursor: pointer; position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 10px; align-items: center; padding: 12px 12px 12px 12px;
  border-radius: 16px; text-align: left; background: var(--card); box-shadow: inset 0 0 0 1px var(--border), 0 6px 16px rgba(70, 52, 25, .05); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.yf-name:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--accent), 0 10px 22px rgba(70, 52, 25, .1); }
.yf-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yf-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--slot); color: var(--accent-text); }
.yf-ic .sym, .yf-tick .sym { background: currentColor; }
.yf-nm { font: 500 13px/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); overflow-wrap: anywhere; }
.yf-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: transparent; box-shadow: inset 0 0 0 1.5px var(--border); transition: background .2s, color .2s, box-shadow .2s; }
.yf-name.on { background: #FFF6E6; box-shadow: inset 0 0 0 1.5px var(--accent), 0 8px 20px rgba(169, 105, 46, .14); }
.yf-name.on .yf-tick { background: var(--accent); color: #fff; box-shadow: none; }
.yf-line { margin: 16px auto 0; max-width: 720px; text-align: center; font-size: 16px; color: var(--ink-2); min-height: 1.5em; }

/* ---------- Two quick questions ---------- */
.ye { max-width: 980px; margin: 28px auto 0; padding: 24px; border-radius: 24px; background: linear-gradient(180deg, #FDFBF7, #F6EFE3); box-shadow: inset 0 0 0 1px var(--border), 0 18px 44px rgba(70, 52, 25, .08); }
.ye-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px 0; }
.ye-row + .ye-row { border-top: 1px solid var(--border); }
.ye-q { font: 700 17px "Shippori Mincho", serif; color: var(--ink); }
.ye-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ye-pill { appearance: none; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 600 13.5px Inter, sans-serif; color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--border); transition: background .2s, color .2s, box-shadow .2s; }
.ye-pill:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.ye-pill.on { background: var(--ink); color: var(--canvas-top); box-shadow: none; }
.ye-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ye-out:not(:empty) { margin-top: 12px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(169, 105, 46, .3); }
.ye-big { margin: 0; font: 700 clamp(20px, 2.4vw, 26px)/1.3 "Shippori Mincho", serif; color: var(--ink); }
.ye-big b { color: var(--accent); font-weight: 800; }
.ye-how { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.mc-intro { margin-top: 40px; }
.mc-intro h3 { font-size: 24px; }
.mc-intro p { margin: 8px auto 0; color: var(--muted); max-width: 560px; }
.mc-intro + .mc { margin-top: 18px; }
@media (hover: none) { .mc-intro p { display: none; } }

/* ---------- A dropped folder: their own names, drifting by ---------- */
.mc-wall { position: relative; height: 190px; margin-top: 18px; overflow: hidden; border-radius: 16px; background: var(--canvas-top);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.mc-track { columns: 3 220px; column-gap: 24px; padding: 0 18px; animation: mc-drift linear infinite; }
.mc-track span { display: block; padding: 3px 0; font: 500 12.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; break-inside: avoid; }
@keyframes mc-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.mc-since { margin-top: 16px; font: 700 clamp(19px, 2.2vw, 23px)/1.35 "Shippori Mincho", serif; color: var(--ink); }
.mc-pdfs { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .mc-track { animation: none; } }

/* ---------- The close: their own numbers, above the price ---------- */
.yc { max-width: 620px; margin-left: auto; margin-right: auto; padding: 22px 26px; border-radius: 22px; text-align: center; background: #FFF8EC; box-shadow: inset 0 0 0 1px rgba(169, 105, 46, .35); }
.yc .ff-caps { font-size: 11px; color: var(--accent-text); }
.yc-main { margin: 10px 0 0; font: 800 clamp(22px, 2.8vw, 30px)/1.25 "Shippori Mincho", serif; color: var(--ink); }
.yc-more { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }
.yc-fix { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.yc + .pricebox { margin-top: 26px; }
.yc-share { margin-top: 14px; display: flex; justify-content: center; }
.share-mine { gap: 8px; min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.share-mine .sym { background: currentColor; }

/* ---------- Find it in ten seconds ---------- */
.fd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; max-width: 1040px; margin-left: auto; margin-right: auto; text-align: left; }
@media (max-width: 860px) { .fd { grid-template-columns: 1fr; } .fd-side { order: -1; } }
.fd-win { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 25, .12), 0 26px 60px rgba(70, 52, 25, .14); }
.fd-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: linear-gradient(180deg, #F8F4ED, #F0EADF); border-bottom: 1px solid var(--border); }
.fd-lights { display: flex; gap: 7px; }
.fd-lights i { width: 11px; height: 11px; border-radius: 50%; background: #DDD4C4; }
.fd-title { display: inline-flex; align-items: center; gap: 6px; font: 600 13px Inter, sans-serif; color: var(--ink); }
.fd-title .sym { background: var(--accent-text); }
.fd-count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fd-count.live { color: var(--accent-text); font-weight: 700; }
.fd-head { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; padding: 7px 16px 7px 50px; border-bottom: 1px solid #ECE6DA; font: 600 11px Inter, sans-serif; color: #a49b8c; }
.fd-list { height: 392px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.fd-row { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) 120px; gap: 12px; align-items: center; width: 100%; padding: 6px 16px; cursor: default; }
.fd-row:nth-child(odd) { background: rgba(240, 234, 223, .45); }
.running .fd-row { cursor: pointer; }
.running .fd-row:hover { background: rgba(214, 161, 94, .16); }
.fd-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fd-nm { font: 500 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-kind { font-size: 12px; color: var(--muted); }
.fd-row.tried .fd-nm { text-decoration: line-through; text-decoration-color: rgba(42, 39, 35, .4); color: #9c958a; }
.fd-peek { grid-column: 2 / -1; font-size: 12.5px; color: var(--accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-row.answer { background: #FFF4DE !important; box-shadow: inset 3px 0 0 var(--accent); }
.fd-row.answer .fd-nm { color: var(--ink); font-weight: 700; }
@media (max-width: 600px) { .fd-head { grid-template-columns: 1fr; } .fd-head .fd-kind, .fd-row > .fd-kind { display: none; } .fd-row { grid-template-columns: 22px minmax(0, 1fr); } .fd-list { height: 300px; } }
.fd-side { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: linear-gradient(180deg, #FDFBF7, #F6EFE3);
  box-shadow: inset 0 0 0 1px var(--border), 0 18px 44px rgba(70, 52, 25, .1); min-height: 440px; }
.fd-top { display: flex; align-items: center; justify-content: space-between; }
.fd-dots { display: flex; gap: 6px; }
.fd-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--slot); }
.fd-dots i.now { width: 22px; border-radius: 5px; background: rgba(169, 105, 46, .4); }
.fd-dots i.done { background: var(--accent); }
.fd-task { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.fd-ask { margin: 0; font: 800 clamp(22px, 2.6vw, 28px)/1.2 "Shippori Mincho", serif; color: var(--ink); }
.fd-clock { position: relative; width: 112px; height: 112px; margin: 10px 0 4px; display: grid; place-items: center; align-content: center; }
.fd-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.fd-ring circle { fill: none; stroke-width: 6; }
.fd-ring .track { stroke: var(--slot); }
.fd-ring .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.fd-clock b { font: 800 40px/1 "Shippori Mincho", serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.fd-unit { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fd-clock.late b { color: var(--accent-text); }
.fd-status { margin: 0; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
.fd-status.won { color: var(--accent-text); font-weight: 700; }
.fd-status.lost { color: var(--ink); font-weight: 700; }
.fd-go, .fd-next { align-self: flex-start; margin-top: 4px; }
.fd-ff { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.fd-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--canvas-top); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; color: var(--ink); }
.fd-search .sym { background: var(--muted); }
.fd-typed::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: fd-caret 1s steps(1) infinite; }
@keyframes fd-caret { 50% { opacity: 0; } }
.fd-hit { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.fd-hit-tx { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fd-hit-tx b { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.fd-hit-tx .ff-folderchip { align-self: flex-start; }
.fd-why { font-size: 12.5px; color: var(--muted); }
.fd-end { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fd-score { font: 800 64px/1 "Shippori Mincho", serif; color: var(--accent); }
.fd-say { margin: 0; font: 700 21px/1.35 "Shippori Mincho", serif; color: var(--ink); }
.fd-punch { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.fd-again { margin-top: 8px; }
.fd-mine { font-size: 15px; }
.fd-seal { position: absolute; top: 0; right: 0; }

/* ---------- Three steps ---------- */
.st { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin-left: auto; margin-right: auto; text-align: left; counter-reset: none; }
@media (max-width: 860px) { .st { grid-template-columns: 1fr; } }
.st li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 24px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border), 0 14px 34px rgba(70, 52, 25, .07); }
.st-n { position: absolute; top: 20px; right: 22px; font: 800 44px/1 "Shippori Mincho", serif; color: rgba(169, 105, 46, .22); }
.st-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(180deg, #E9C887, #C59036); color: #fff; box-shadow: 0 8px 18px rgba(169, 105, 46, .28); }
.st-ic .sym { background: currentColor; }
.st li b { margin-top: 8px; font: 800 22px "Shippori Mincho", serif; color: var(--ink); }
.st li > span:last-child { color: var(--ink-2); font-size: 15.5px; }
.st-undo { margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 15px; }

/* Steps and a progress bar, shared by Auto-sort and the race. */
.story-text h2 { margin-top: 14px; font-size: clamp(34px, 4.2vw, 52px); }
.story-steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 4px; }
.story-steps li { position: relative; padding: 9px 0 9px 22px; color: #a49b8c; font-size: 16.5px; transition: color .35s; }
.story-steps li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--slot); transition: background .35s, transform .35s; }
.story-steps li.on { color: var(--ink); font-weight: 600; }
.story-steps li.on::before { background: var(--accent); transform: scale(1.3); }
.story-bar { margin-top: 18px; height: 3px; border-radius: 2px; background: var(--slot); overflow: hidden; }
.story-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .story-text h2 { font-size: 30px; }
  .story-steps { margin-top: 12px; }
  .story-steps li { display: none; padding: 4px 0 4px 20px; font-size: 15.5px; }
  .story-steps li.on { display: block; }
  .story-steps li::before { top: 12px; }
}
.sticky-buy.away { transform: translateY(160%) !important; }

/* ---------- The race: one minute, by hand or not ---------- */
.race { height: 300vh; padding-top: var(--space-section); }
.race-pin { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; }
.race-inner { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.race-head h2 { font-size: clamp(32px, 4vw, 50px); }
.race-steps { max-width: 560px; margin: 14px auto 0 !important; }
.race-steps li { display: none; text-align: center; padding-left: 0 !important; font-size: 16.5px; }
.race-steps li::before { display: none; }
.race-steps li.on { display: block; }
.race-head .story-bar { max-width: 360px; margin: 12px auto 0; }
.race-stage { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rc-panel { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(70, 52, 25, .12), 0 22px 50px rgba(70, 52, 25, .12); }
.rc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(180deg, #F8F4ED, #F0EADF); border-bottom: 1px solid var(--border); }
.rc-head b { font: 800 17px "Shippori Mincho", serif; color: var(--ink); }
.rc-clock { margin-left: auto; font: 700 15px Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rc-count { min-width: 74px; text-align: right; font: 800 15px Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.rc-panel.ff .rc-head { background: linear-gradient(180deg, #FFF6E6, #F6E7CB); }
.rc-body { position: relative; height: 330px; overflow: hidden; }
.rc-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.rc-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; transition: opacity .3s, background .3s; }
.rc-row.now { background: rgba(214, 161, 94, .18); box-shadow: inset 0 0 0 1px rgba(169, 105, 46, .35); }
.rc-row.gone { opacity: .45; }
.rc-row.gone .rc-nm { font-family: Inter, sans-serif; font-weight: 600; color: var(--ink); }
.rc-nm { font: 500 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-look { position: absolute; left: 50%; bottom: 52px; width: 260px; margin-left: -130px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px rgba(70, 52, 25, .12), 0 16px 40px rgba(70, 52, 25, .18); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .25s, transform .25s; }
.rc-look.open, .rc-look.read, .rc-look.type, .rc-look.drag { opacity: 1; transform: none; }
.rc-look.drag { transform: translate(90px, 30px) scale(.6); opacity: .6; transition: transform .6s, opacity .6s; }
.rc-look-name { max-width: 100%; font: 600 13px Inter, sans-serif; color: var(--ink); text-align: center; overflow-wrap: anywhere; min-height: 1.3em; }
.rc-look.type .rc-look-name::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: fd-caret 1s steps(1) infinite; }
.rc-look.read .rc-look-tile { box-shadow: 0 0 0 3px rgba(214, 161, 94, .8); border-radius: 12px; }
.rc-doing { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.rc-target { position: absolute; right: 16px; bottom: 14px; font: 700 13px Inter, sans-serif; color: var(--accent-text); }
.rc-feed { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.rc-fr { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; background: #FBF8F1; }
.rc-fr.fresh { background: #FFF4DE; box-shadow: inset 0 0 0 1px rgba(169, 105, 46, .35); animation: rc-in .35s var(--ease); }
@keyframes rc-in { from { opacity: 0; transform: translateY(-8px); } }
.rc-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rc-old { font: 500 11px ui-monospace, "SF Mono", Menlo, monospace; color: #9c958a; text-decoration: line-through; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-new { font: 600 13px Inter, sans-serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-fr .ff-folderchip { height: 20px; font-size: 10.5px; padding: 0 7px; gap: 4px; }
.race-note { max-width: 680px; margin: 0; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .race { height: 280vh; }
  .race-pin { top: 56px; height: calc(100vh - 56px); }
  .race-inner { gap: 10px; }
  .race-head h2 { font-size: 28px; }
  .race-stage { grid-template-columns: 1fr; gap: 10px; }
  .rc-body { height: 206px; }
  .rc-look { bottom: 34px; width: 210px; margin-left: -105px; padding: 10px; gap: 6px; }
  .rc-look-tile .tile { width: 56px !important; height: 56px !important; }
  .rc-doing { bottom: 8px; font-size: 12.5px; }
  .rc-target { display: none; }
  .race-note { font-size: 12px; }
}

/* ---------- It keeps working: new files, the notch ---------- */
@keyframes as-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .race { height: auto; } .race-pin { position: static; height: auto; } }

/* ---------- The whole demo folder, counted ---------- */
.rs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .rs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rs-cell:last-child { grid-column: 1 / -1; } }
.rs-cell { padding: 22px 16px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border), 0 12px 30px rgba(70, 52, 25, .06); text-align: center; }
.rs-cell b { display: block; font: 800 clamp(34px, 4vw, 46px)/1 "Shippori Mincho", serif; color: var(--accent); font-variant-numeric: tabular-nums; }
.rs-cell span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- A week with File Florist ---------- */
.wk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1180px; margin-left: auto; margin-right: auto; text-align: left; }
@media (max-width: 1080px) { .wk { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .wk { grid-template-columns: 1fr; } }
.wk-day.cell { display: flex; flex-direction: column; padding: 18px; border-radius: 22px; }
.wk-when { order: -2; font: 600 11px Inter, sans-serif; font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.wk-day.cell > b { order: -1; margin-top: 6px; font: 700 17px/1.3 "Shippori Mincho", serif; }
.wk-day.cell > b::before { display: none; }
.wk-day.cell > span { margin-top: 6px; }
.wk-day .mini { order: 2; margin-top: 14px; }

/* ---------- What you get: seven tabs ---------- */
.fx { max-width: 1180px; margin-left: auto; margin-right: auto; }
.fx-tabs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -4px; }
.fx-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .fx-tabs { justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }
.fx-tab { appearance: none; border: 0; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font: 600 14.5px Inter, -apple-system, sans-serif; color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); transition: background .25s, color .25s, box-shadow .25s; }
.fx-tab:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.fx-tab.on { background: var(--ink); color: var(--canvas-top); box-shadow: 0 8px 20px rgba(42, 39, 35, .18); }
.fx-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fx-ic { display: inline-flex; color: var(--accent-text); }
.fx-tab.on .fx-ic { color: #E2B872; }
.fx-ic .sym { background: currentColor; }
.fx-panels { margin-top: 26px; padding: clamp(22px, 3.4vw, 44px); border-radius: 32px; background: linear-gradient(180deg, #FDFBF7, #F6EFE3); box-shadow: inset 0 0 0 1px var(--border), 0 30px 70px rgba(70, 52, 25, .1); }
@media (max-width: 600px) { .fx-panels { border-radius: 24px; padding: 18px 14px; } }
.fx-intro { text-align: center; max-width: 720px; margin: 0 auto; }
.fx-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; }
.fx-intro p { margin: 14px auto 0; color: var(--muted); font-size: 17px; }
.fx-pills { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.fx-pill { appearance: none; border: 0; cursor: pointer; padding: 7px 14px; border-radius: 999px; font: 600 13px Inter, sans-serif; color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.fx-pill.on { color: var(--accent-text); background: rgba(214, 161, 94, .16); box-shadow: inset 0 0 0 1px rgba(169, 105, 46, .45); }
.fx-panel .feature { padding-top: 34px; }
.fx-panel .grid { margin-top: 36px; }
.fx-world { padding-top: 30px; }
.fx-world-lede { max-width: 720px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 16.5px; }
.fx-world .wd { margin-top: 26px; }
.fx-all { margin-top: 22px; border: 0; padding: 0; }
.fx-all summary { list-style: none; display: flex; justify-content: center; cursor: pointer; }
.fx-all summary::-webkit-details-marker { display: none; }
.fx-all summary span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; color: var(--accent-text); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.fx-all summary span::after { content: "↓"; transition: transform .25s; }
.fx-all[open] summary span::after { transform: rotate(180deg); }
.fx-all-lede { text-align: center; color: var(--muted); margin: 18px 0 0; }
.fx-all .everything { margin-top: 24px; }

/* ---------- Papers from everywhere ---------- */
.wd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; margin-top: 44px; text-align: left; }
@media (max-width: 860px) { .wd { grid-template-columns: 1fr; gap: 26px; } }
.wd-card { min-height: 200px; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border), 0 18px 44px rgba(70, 52, 25, .1); }
.wd-top { display: flex; align-items: center; gap: 10px; }
.wd-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--slot); font: 700 17px Inter, sans-serif; color: var(--accent-text); }
.wd-row { display: flex; gap: 14px; align-items: center; }
.wd-tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wd-new { font-size: 16.5px; font-weight: 600; color: var(--ink); min-height: 1.3em; overflow-wrap: anywhere; }
.wd-card .ff-folderchip { align-self: flex-start; }
.wd-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .wd-kinds { grid-template-columns: 1fr; } }
.wd-kind { padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.wd-kind b { display: block; font: 600 16px "Shippori Mincho", serif; color: var(--ink); }
.wd-kind span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- The comparison, five columns ---------- */
.compare.wide .row { grid-template-columns: 1.05fr 1fr 1fr 1fr 1.15fr; gap: 14px; font-size: 14px; }
.compare.wide .row > span:nth-child(n+2) { color: var(--muted); font-weight: 400; }
.compare.wide .row > span:last-child { color: var(--accent-text); font-weight: 600; }
.compare.wide .head > span:last-child { color: var(--accent-text); }
@media (max-width: 760px) {
  .compare.wide .row { grid-template-columns: 1fr; gap: 3px; }
  .compare.wide .row > span[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 500; }
  /* File Florist's answer: its label, not the gold dot it has on a wide screen (home.css), whose 6 px box squeezed the
     label over the answer. */
  .compare.wide .row > span[data-l]:last-child::before { display: inline; width: auto; height: auto; margin: 0; border-radius: 0;
    background: none; vertical-align: baseline; }
  .compare.wide .row > span:first-child { font-weight: 700; margin-bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) { .mc-zone.over .icon { animation: none; } }
