/* ============================================================
   Floating Finder — landing page
   Single stylesheet, no build step, no external assets.
   ============================================================ */

:root {
  --orange:   #d9903c;
  --orange-d: #b9762a;
  --slate:    #6c7683;

  --bg:       #fbfaf8;
  --bg-2:     #f3f1ed;
  --surface:  #ffffff;
  --ink:      #17191d;
  --ink-2:    #575d67;
  --ink-3:    #8b929c;
  --line:     #e4e1db;
  --line-2:   #d3cfc7;

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .06), 0 3px 10px rgba(20, 22, 26, .05);
  --shadow-md: 0 2px 6px rgba(20, 22, 26, .07), 0 18px 44px rgba(20, 22, 26, .10);
  --shadow-lg: 0 3px 10px rgba(20, 22, 26, .08), 0 40px 90px rgba(20, 22, 26, .16);

  --radius:   14px;
  --maxw:     1080px;
  --pad:      clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0e0f12;
    --bg-2:     #15171b;
    --surface:  #191c21;
    --ink:      #f2f2f0;
    --ink-2:    #a8aeb8;
    --ink-3:    #767d88;
    --line:     #2a2e35;
    --line-2:   #3a3f48;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .5);
    --shadow-lg: 0 3px 10px rgba(0, 0, 0, .5), 0 40px 90px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
               "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -.022em; margin: 0; font-weight: 640; }
p { margin: 0; }
a { color: inherit; }
em { font-style: italic; }

kbd {
  font: inherit; font-size: .92em;
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 .35em; background: var(--surface);
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9em; background: var(--bg-2); padding: .1em .38em;
  border-radius: 5px; border: 1px solid var(--line);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================ nav ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 620; text-decoration: none; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important; border: 1px solid var(--line-2);
  padding: 5px 14px; border-radius: 999px; background: var(--surface);
}
.nav-cta:hover { border-color: var(--orange); }
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================ hero ============================ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) var(--pad) 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6.2vw, 64px);
  letter-spacing: -.035em;
  font-weight: 660;
  text-wrap: balance;
  max-width: 16em;
  margin-inline: auto;
}
.hero h1 em { color: var(--orange); font-style: italic; }

.lede {
  max-width: 42rem; margin: clamp(18px, 3vw, 26px) auto 0;
  font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); text-wrap: balance;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  font-size: 16px; font-weight: 560; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-wide { width: 100%; }

.fineprint { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

.hero-shot { margin: clamp(44px, 7vw, 76px) 0 0; padding: 0; }
.shot-cap {
  margin: 20px auto 0; max-width: 34rem;
  font-size: 14px; color: var(--ink-3); text-wrap: balance;
}
.cap-note { display: block; margin-top: 8px; font-size: 12.5px; opacity: .8; }

/* ==================== Finder window mockups ==================== */
.win {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
  font-size: 12.5px;
}
.win-lg { box-shadow: var(--shadow-lg); border-radius: 14px; }

.win-tb {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px;
  background: linear-gradient(var(--bg-2), color-mix(in srgb, var(--bg-2) 88%, var(--line)));
  border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ddd8d0; }
.lights i:nth-child(1) { background: #ec6a5f; }
.lights i:nth-child(2) { background: #f4bf50; }
.lights i:nth-child(3) { background: #61c554; }
.lights-off i { background: var(--line-2) !important; }
.tb-nav { color: var(--ink-3); letter-spacing: 3px; font-size: 14px; }
.tb-title { font-weight: 590; color: var(--ink-2); }
.tb-tools { margin-left: auto; display: flex; gap: 7px; }
.tb-tools b { width: 15px; height: 9px; border-radius: 3px; background: var(--line-2); }

.win-body { display: flex; min-height: 210px; }
.win-lg .win-body { min-height: 262px; }
.win-sb {
  width: 150px; flex: none; padding: 10px 8px;
  background: color-mix(in srgb, var(--bg-2) 70%, var(--surface));
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1px;
}
.sb-head { font-size: 10.5px; font-weight: 640; color: var(--ink-3); padding: 8px 8px 3px; letter-spacing: .02em; }
.sb-row { padding: 4px 9px; border-radius: 6px; color: var(--ink-2); }
.sb-row.is-on { background: color-mix(in srgb, var(--slate) 20%, transparent); color: var(--ink); }

.win-list { flex: 1; padding: 8px 10px 42px; display: flex; flex-direction: column; gap: 1px; }
.row {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 9px; border-radius: 6px; color: var(--ink-2);
}
.row em { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.row.is-sel { background: color-mix(in srgb, var(--slate) 22%, transparent); color: var(--ink); }
.row-ghost { opacity: .42; border: 1px dashed var(--line-2); }
.ic { width: 13px; height: 12px; border-radius: 2.5px; flex: none; background: var(--slate); opacity: .75; }
.ic-dir { border-radius: 2px 4px 4px 4px; background: var(--orange); opacity: .85; }
.ic-doc { background: var(--line-2); opacity: 1; border: 1px solid var(--line-2); }
.ic-img { background: linear-gradient(140deg, var(--slate), var(--orange)); opacity: .8; }

/* ---------- the path bar itself ----------
   Shape follows the app: a bar the full width of the window, flush with its
   bottom edge, separated from the window by a single accent-coloured top rule.
   Not a floating pill — drawing it that way misrepresents what you install. */
.pathbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 8px 0 12px;
  border-radius: 0 0 11px 11px;
  background: color-mix(in srgb, var(--orange) 12%, var(--surface));
  border-top: 2px solid color-mix(in srgb, var(--orange) 85%, transparent);
}
.crumbs { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.crumb {
  font-weight: 520; font-size: 12.5px; color: var(--ink-2);
  padding: 3px 5px; border-radius: 4px; white-space: nowrap;
}
.crumb.is-now { color: var(--orange-d); font-weight: 620; }
@media (prefers-color-scheme: dark) { .crumb.is-now { color: var(--orange); } }
.sep { color: color-mix(in srgb, var(--orange) 70%, var(--ink-3)); font-style: normal; font-size: 12px; }
.pb-actions { margin-left: auto; display: flex; gap: 2px; }
.pb-btn {
  display: grid; place-items: center;
  width: 22px; height: 20px; border-radius: 4px;
  font-size: 11px; font-weight: 620; color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.pathbar-sm { height: 26px; padding-left: 8px; }
.pathbar-sm .crumb { font-size: 11.5px; padding: 2px 4px; }

/* the inactive pane: no accent tint, a thin neutral rule — as the app draws it */
.pathbar-off {
  background: var(--surface);
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.pathbar-off .crumb.is-now { color: var(--ink-2); }

/* ============================ features ============================ */
.features { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(64px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}
.features .feat:first-child { border-top: 0; }
.feat-flip .feat-text { order: 2; }

.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 660; letter-spacing: .085em; text-transform: uppercase;
  color: var(--orange-d);
}
@media (prefers-color-scheme: dark) { .kicker { color: var(--orange); } }

.feat h2 { font-size: clamp(28px, 4vw, 40px); }
.feat p { margin-top: 16px; color: var(--ink-2); }
.aside-note {
  font-size: 15px; color: var(--ink-3);
  border-left: 2px solid var(--line-2); padding-left: 14px;
}

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
}
.ticks-lg li { font-size: 16px; }

.feat-shot { margin: 0; display: grid; gap: 16px; }

/* bookmark popover mock */
.menu-pop {
  justify-self: end; width: 200px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-md);
  padding: 6px; font-size: 12.5px;
  display: flex; flex-direction: column; gap: 1px;
}
.menu-head { font-size: 10.5px; font-weight: 660; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 5px 9px; }
.menu-row { padding: 5px 9px; border-radius: 6px; color: var(--ink-2); }
.menu-row:nth-child(3) { background: color-mix(in srgb, var(--orange) 20%, transparent); color: var(--ink); }
.menu-div { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-dim { color: var(--ink-3); }

/* detail cut-outs: same bar, lifted out of the window for a closer look */
.pathbar-solo {
  position: relative; left: auto; right: auto; bottom: auto;
  border-radius: 0 0 10px 10px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pathbar-typing {
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent);
}
.type-field {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px; color: var(--ink);
}
.caret {
  display: inline-block; width: 1.5px; height: 13px; vertical-align: -2px;
  background: var(--orange); margin-left: 1px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.type-hint { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* ---------- two-pane mock ---------- */
.pair { display: flex; align-items: stretch; }
.pair .win { flex: 1; min-width: 0; border-radius: 12px; }
.pair .win-list { padding-bottom: 26px; }
.strip {
  flex: none; width: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
  z-index: 2;
}
.strip-btn {
  display: grid; place-items: center;
  width: 28px; height: 26px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 13px; box-shadow: var(--shadow-sm);
}
.strip-btn:first-child { color: #fff; background: var(--orange); border-color: var(--orange-d); }

/* ---------- sprawl diagram ---------- */
.feat-shot-sprawl {
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.sprawl { display: grid; justify-items: center; gap: 14px; }
.sprawl-lbl { font-size: 12.5px; font-weight: 620; color: var(--ink-3); letter-spacing: .02em; }
.mini-stack { position: relative; width: 100%; height: 150px; }
.mini {
  position: absolute; width: 62%; height: 72px;
  border-radius: 8px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.mini::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 13px;
  background: var(--bg-2); border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0;
}
.mini-stack .mini:nth-child(1) { left: 0;   top: 0;  }
.mini-stack .mini:nth-child(2) { left: 12%; top: 22px; }
.mini-stack .mini:nth-child(3) { left: 24%; top: 44px; }
.mini-stack .mini:nth-child(4) { left: 36%; top: 66px; border-color: var(--orange); }
.mini-pair { display: flex; gap: 6px; width: 100%; height: 150px; align-items: center; }
.mini-wide { position: relative; left: auto; top: auto; width: 50%; height: 104px; border-color: var(--orange); }
.sprawl-arrow { color: var(--ink-3); font-size: 22px; }

/* ==================== coming from Windows ==================== */
.switch {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 110px) var(--pad);
}
.switch-inner { max-width: 820px; margin: 0 auto; }
.switch h2 { font-size: clamp(26px, 3.6vw, 38px); text-wrap: balance; }
.switch-lede { margin-top: 18px; color: var(--ink-2); }
.switch-h3 { margin-top: clamp(36px, 5vw, 52px); font-size: 20px; }

.table-scroll {
  margin-top: clamp(26px, 4vw, 36px);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cmp { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 14px 20px; vertical-align: top; }
.cmp thead th {
  font-size: 12px; font-weight: 660; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cmp tbody tr + tr td { border-top: 1px solid var(--line); }
.cmp td:first-child { color: var(--ink-3); width: 44%; }
.cmp td:last-child { color: var(--ink); }
.cmp code { font-size: .88em; }

.crosses { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.crosses li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.crosses li::before {
  content: "×"; position: absolute; left: 3px; top: -.05em;
  color: var(--ink-3); font-size: 16px; line-height: 1.6;
}

/* ============================ grid ============================ */
.section-h {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  font-size: clamp(26px, 3.6vw, 38px);
  text-align: center;
}
.grid-wrap { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.grid {
  max-width: var(--maxw); margin: clamp(32px, 5vw, 52px) auto 0;
  padding: 0 var(--pad);
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 17px; letter-spacing: -.01em; }
.card p { margin-top: 9px; font-size: 15px; color: var(--ink-2); }

/* ============================ band ============================ */
.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding: clamp(64px, 9vw, 110px) var(--pad);
  text-align: center;
}
.band h2 { font-size: clamp(26px, 3.8vw, 40px); }
.band p { max-width: 46rem; margin: 20px auto 0; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }

/* ============================ pricing ============================ */
.pricing { padding: clamp(64px, 9vw, 110px) 0; }
.price-card {
  max-width: 400px; margin: clamp(30px, 5vw, 46px) auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 30px 28px;
  text-align: center;
}
.price {
  font-size: 58px; font-weight: 680; letter-spacing: -.04em; line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
}
.price span { font-size: 14px; font-weight: 520; color: var(--ink-3); letter-spacing: 0; }
.price-card .ticks { text-align: left; margin: 26px 0 26px; }
.price-card .btn + .btn { margin-top: 10px; }
.price-card .fineprint { margin-top: 16px; }

/* ============================ faq ============================ */
.faq { padding: 0 0 clamp(64px, 9vw, 110px); }
.faq details {
  max-width: 720px; margin: 0 auto;
  border-bottom: 1px solid var(--line);
  padding: 4px var(--pad);
}
.faq details:first-of-type { margin-top: clamp(26px, 4vw, 40px); border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 30px 18px 0; position: relative;
  font-weight: 570; font-size: 17px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--orange); font-size: 20px; font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 8px 20px 0; color: var(--ink-2); font-size: 15.5px; }

/* ============================ footer ============================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px var(--pad) 56px;
  display: grid; gap: 16px; justify-items: center; text-align: center;
}
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.foot-links { display: flex; gap: 22px; font-size: 15px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--orange-d); }
.foot-note { font-size: 12.5px; color: var(--ink-3); max-width: 34rem; }

/* ============================ responsive ============================ */
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; }
  .feat-flip .feat-text { order: 0; }
  .win-sb { display: none; }
  .menu-pop { justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pair { flex-direction: column; }
  .strip {
    width: 100%; height: 42px; flex-direction: row;
    box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
    border: 0;
  }
  .feat-shot-sprawl { grid-template-columns: 1fr; }
  .sprawl-arrow { transform: rotate(90deg); justify-self: center; }
  .type-hint { display: none; }
  /* narrow bars: drop a middle crumb rather than clipping the current folder */
  .hero-shot .crumbs > :nth-child(3),
  .hero-shot .crumbs > :nth-child(4) { display: none; }

  /* the comparison reads as stacked pairs instead of a sideways-scrolling table */
  .table-scroll { overflow-x: visible; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: auto; }
  .cmp { min-width: 0; }
  .cmp thead { display: none; }
  .cmp tr { padding: 15px 18px; }
  .cmp tbody tr + tr { border-top: 1px solid var(--line); }
  .cmp tbody tr + tr td { border-top: 0; }
  .cmp td { padding: 0; }
  .cmp td:first-child { width: auto; font-size: 14.5px; }
  .cmp td:last-child { margin-top: 7px; padding-left: 20px; position: relative; }
  .cmp td:last-child::before {
    content: "→"; position: absolute; left: 0; top: 0;
    color: var(--orange); font-weight: 600;
  }
}
