/* Window Organizer — landing page
 *
 * Plain CSS, no build step, no framework. The whole site is four static files plus
 * images, so it drops onto any static host (Cloudflare Pages, Netlify, GitHub Pages, S3)
 * and onto a custom domain with nothing running behind it.
 *
 * The accent is sampled from the app's own selection highlight, so the site and the
 * product are visibly the same thing.
 */

:root {
  --accent:        #0d81ff;
  --accent-ink:    #0a5fc4;
  --accent-wash:   #eef5ff;

  --ink:           #0a0e17;
  --body:          #4b5462;
  --muted:         #6d7683;

  --bg:            #ffffff;
  --band:          #f5f8fc;
  --line:          #e3e8f0;

  --radius:        14px;
  --radius-lg:     22px;

  --shadow-sm:     0 1px 2px rgba(10, 14, 23, .06), 0 2px 8px rgba(10, 14, 23, .04);
  --shadow-md:     0 4px 12px rgba(10, 14, 23, .07), 0 18px 40px rgba(10, 14, 23, .09);
  --shadow-lg:     0 8px 24px rgba(10, 14, 23, .08), 0 32px 80px rgba(10, 14, 23, .14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 680; }
h3 { font-size: 1.075rem; font-weight: 640; letter-spacing: -.012em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--accent-ink); }

kbd {
  font-family: var(--font);
  font-size: .86em;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .12em .45em;
  white-space: nowrap;
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - 48px)); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: inherit; font-weight: 590; letter-spacing: -.011em;
  color: #fff;
  background: var(--accent);
  border: 0; border-radius: 980px;
  padding: 13px 26px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(13, 129, 255, .28), 0 6px 18px rgba(13, 129, 255, .26);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover  { background: #0a72e6; transform: translateY(-1px);
              box-shadow: 0 2px 4px rgba(13,129,255,.3), 0 10px 26px rgba(13,129,255,.32); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(13,129,255,.3); }
.btn:focus-visible { outline: 3px solid rgba(13,129,255,.45); outline-offset: 3px; }

.btn-sm    { padding: 8px 17px; font-size: .92rem; }
.btn-lg    { padding: 16px 34px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* Set by checkout.js when Paddle has not been configured, so a dead button is never
   presented as a live one. */
.btn[disabled] {
  background: #c6ccd6; color: #fff; cursor: not-allowed;
  box-shadow: none; transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

/* ── Nav ─────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(227, 232, 240, .8);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 640; color: var(--ink); text-decoration: none; letter-spacing: -.018em;
}
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; }
.nav-links a { color: var(--body); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

@media (max-width: 780px) { .nav-links { display: none; } .nav-inner .buy { margin-left: auto; } }

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 92px);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(13, 129, 255, .13), transparent 62%),
    radial-gradient(760px 460px at 6% 8%, rgba(13, 129, 255, .07), transparent 60%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.eyebrow {
  font-size: .82rem; font-weight: 620; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.1em;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--body); max-width: 34em; }
.lede-sub { color: var(--muted); max-width: 34em; }

.cta { margin: 30px 0 22px; }
.cta-note { font-size: .93rem; color: var(--muted); margin: 14px 0 0; }

.trust { list-style: none; padding: 0; margin: 0; font-size: .93rem; color: var(--muted); }
.trust li { position: relative; padding-left: 24px; margin-bottom: 5px; }
.trust li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55;
}

/* ── Hero demo ───────────────────────────────────────────────────────────────── */

.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.screen {
  width: 100%; max-width: 560px;
  border-radius: var(--radius-lg);
  background: #11151d;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}
.screen-bar { display: flex; gap: 6px; padding: 4px 6px 9px; }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #333a47; }

.screen-body {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 8%, #2c4d7a 0%, transparent 55%),
    linear-gradient(158deg, #16324f 0%, #1d4a6d 44%, #2b7f96 100%);
}

.win {
  position: absolute;
  border-radius: 8px;
  background: rgba(252, 253, 255, .96);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .34);
  overflow: hidden;
}
.win-bar {
  display: block; height: 15px;
  background: linear-gradient(#f4f6f9, #e9edf3);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.win-lines { display: block; padding: 11px 12px; }
.win-lines i {
  display: block; height: 5px; border-radius: 3px; background: #dfe4ec; margin-bottom: 7px;
}
.win-lines i:nth-child(1) { width: 62%; background: #cdd5e0; }
.win-lines i:nth-child(3) { width: 78%; }
.win-lines i:nth-child(4) { width: 45%; }

.win-b { left: 5%; top: 12%; width: 42%; height: 52%; opacity: .55; }
.win-a { left: 8%; top: 22%; width: 50%; height: 58%; }

.ring {
  position: absolute; left: 50%; top: 50%;
  width: 46%; height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .3));
}
.cursor {
  position: absolute; left: 33%; top: 51%;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(0, 0, 0, .35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%);
}

.demo-caption { font-size: .88rem; color: var(--muted); margin: 0; }

/* One 9-second loop of the real gesture: drag, menu opens, move right, release, snap. */
.win-a  { animation: wo-window 9s cubic-bezier(.32, .72, .22, 1) infinite; }
.ring   { animation: wo-ring   9s ease infinite; }
.cursor { animation: wo-cursor 9s cubic-bezier(.32, .72, .22, 1) infinite; }

@keyframes wo-window {
  0%, 6%    { left: 8%;  top: 22%; width: 50%; height: 58%; }
  16%       { left: 20%; top: 30%; width: 50%; height: 58%; }  /* dragged */
  62%       { left: 20%; top: 30%; width: 50%; height: 58%; }  /* held, menu open */
  74%, 94%  { left: 50%; top: 0;   width: 50%; height: 100%; } /* snapped: right half */
  100%      { left: 8%;  top: 22%; width: 50%; height: 58%; }
}
@keyframes wo-ring {
  0%, 12%   { opacity: 0; transform: translate(-50%, -50%) scale(.86); }
  20%, 66%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  74%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.03); }
}
@keyframes wo-cursor {
  0%, 6%    { left: 33%; top: 51%; opacity: 1; }
  16%, 30%  { left: 45%; top: 59%; opacity: 1; }
  44%, 70%  { left: 63%; top: 59%; opacity: 1; }  /* inside the right-hand segment */
  76%, 100% { left: 63%; top: 59%; opacity: 0; }
}

/* A static, already-snapped frame for anyone who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  .win-a, .ring, .cursor { animation: none; }
  .win-a  { left: 50%; top: 0; width: 50%; height: 100%; }
  .ring   { opacity: 1; }
  .cursor { left: 63%; top: 59%; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-demo { order: 2; }
}

/* ── Sections ────────────────────────────────────────────────────────────────── */

.section { padding: clamp(58px, 7.5vw, 104px) 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.section-lede { font-size: 1.1rem; max-width: 46em; margin-bottom: 2.4em; }

/* ── Comparison strip ────────────────────────────────────────────────────────── */

.compare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.compare-card { margin: 0; background: #fff; border: 1px solid var(--line);
                border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.mini { position: relative; aspect-ratio: 16/10; border-radius: 8px;
        background: #eef1f6; overflow: hidden; margin-bottom: 13px; }
.mini span { position: absolute; top: 0; height: 100%; background: #dbe1ea;
             border: 2px solid #fff; border-radius: 6px; }
.mini span.on { background: var(--accent); }
.mini.muted span { background: #dbe1ea; }
.compare-card figcaption { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.compare-card figcaption strong { display: block; color: var(--ink); font-weight: 620;
                                  font-size: .97rem; margin-bottom: 2px; }

@media (max-width: 860px) { .compare { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .compare { grid-template-columns: 1fr; } }

/* ── Steps ───────────────────────────────────────────────────────────────────── */

.steps { list-style: none; counter-reset: none; display: grid;
         grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0; margin: 0 0 2.4em; }
.steps li { margin: 0; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-ink);
  font-weight: 660; font-size: .95rem; margin-bottom: 14px;
}
.steps p { color: var(--body); margin: 0; }
.aside { color: var(--muted); font-size: .96rem; margin: 0; }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

/* ── Split (copy + screenshot) ───────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
         gap: clamp(32px, 5vw, 68px); align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h2 { margin-bottom: .55em; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius);
            box-shadow: var(--shadow-md); background: #fff; }
.shot.plain { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shot.plain img { width: min(340px, 78%); box-shadow: none; background: none; }
.shot figcaption { font-size: .88rem; color: var(--muted); text-align: center; }

/* The settings figure sits under the cards in the same band, so it needs its own top
   spacing and a slightly quieter heading than a full section would use. */
.settings-split { margin-top: clamp(38px, 5vw, 62px); align-items: center; }
.settings-split .shot img { max-width: 520px; margin-inline: auto; }
h3.sub { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 660; letter-spacing: -.018em; }

.pull { color: var(--ink); font-weight: 560; border-left: 3px solid var(--accent);
        padding-left: 16px; margin-top: 1.6em; }

.ticks { list-style: none; padding: 0; margin: 1.5em 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .42em;
  width: 15px; height: 9px; border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.ticks.big li { margin-bottom: 13px; color: var(--ink); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
}

/* ── Cards ───────────────────────────────────────────────────────────────────── */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        padding: 24px 22px; box-shadow: var(--shadow-sm); }
.card p { margin: 0; font-size: .96rem; }

@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }

/* ── Pricing ─────────────────────────────────────────────────────────────────── */

.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px); box-shadow: var(--shadow-md); text-align: center;
  margin-bottom: 26px;
}
.price-tag { font-size: clamp(3rem, 7vw, 4.1rem); font-weight: 700; color: var(--ink);
             letter-spacing: -.035em; line-height: 1; margin: 0 0 .18em; }
.price-sub { color: var(--muted); font-size: .98rem; margin-bottom: 1.9em; }
.price-card .ticks { text-align: left; max-width: 21em; margin: 0 auto 2.1em; }
.price-fine { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }
.muted-note { color: var(--muted); font-size: .95rem; max-width: 40em; margin-inline: auto; }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */

.faq { margin: 2.4em 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 19px 40px 19px 2px;
  font-weight: 590; color: var(--ink); position: relative; letter-spacing: -.011em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary:focus-visible { outline: 3px solid rgba(13,129,255,.4); outline-offset: 2px;
                             border-radius: 6px; }
.faq p { margin: 0 0 20px; padding-right: 40px; color: var(--body); }

@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ── Closing + footer ────────────────────────────────────────────────────────── */

.closing .lede { margin-inline: auto; margin-bottom: 1.9em; }
.closing .cta-note { margin-top: 16px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0; background: var(--band); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
                justify-content: space-between; font-size: .9rem; color: var(--muted); }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
