/* ============================================================
   Cmux Pro — landing page
   Full-screen snap slides, light canvas, Apple-style bento.
   Activity colours are the app's real values from
   WorkspaceActivityTracker.swift.
   ============================================================ */

:root{
  --paper:     #F4F5F7;
  --card:      #FFFFFF;
  --sunk:      #ECEEF1;
  --edge:      #E3E6EA;
  --edge-lit:  #D2D7DE;

  /* the dark objects */
  --term:      #0E1319;
  --term-2:    #161C25;
  --term-edge: #262F3B;

  /* brand */
  --lime:      #A9E82B;
  --teal:      #1BC4B6;
  --lime-ink:  #4E8C05;
  --teal-ink:  #0B8C82;

  /* activity — the app's real values */
  --active:    #0ABF67;
  --idle:      #E8A016;
  --stale:     #E0453A;

  --ink:       #10151B;
  --dim:       #5A6472;
  --faint:     #8B95A3;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --nav: 0px;
  --r:   20px;

  --shadow:    0 1px 2px rgba(16,21,27,.05), 0 8px 24px -14px rgba(16,21,27,.18);
  --shadow-up: 0 2px 4px rgba(16,21,27,.06), 0 18px 40px -20px rgba(16,21,27,.26);
}

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

/* ── snap scrolling ────────────────────────────────── */
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-snap-type:y mandatory;
}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* wide container — the grid breaks out of the text column,
   but leaves room in the margin for the slide rail */
.bleed{ width:100%; max-width:min(1460px, 100% - 116px); margin-inline:auto; }

.slide{
  min-height:100svh;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex; flex-direction:column; justify-content:center;
  padding:calc(var(--nav) + 28px) 0 40px;
  position:relative;
}
#s1{ overflow:hidden; }
/* brand wash, first slide only */
#s1::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(169,232,43,.24), transparent 66%),
    radial-gradient(820px 460px at 92% 8%, rgba(27,196,182,.20), transparent 68%);
  pointer-events:none;
}
#s1 > *{ position:relative; z-index:1; }

a{ color:inherit; }
.mono{ font-family:var(--mono); }

.skip{
  position:absolute; left:-9999px; top:0;
  background:var(--ink); color:#fff; padding:10px 16px; border-radius:0 0 10px 0;
  font-weight:600; z-index:100;
}
.skip:focus{ left:0; }
:focus-visible{ outline:2px solid var(--teal-ink); outline-offset:3px; border-radius:6px; }

/* lucide icons */
.i{
  width:16px; height:16px; flex:none;
  fill:none; stroke:currentColor; stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round;
}
.i-lg{ width:30px; height:30px; stroke-width:1.7; }

/* ── brand lockup ──────────────────────────────────── */
.lockup{
  font-family:var(--mono); font-size:clamp(15px,1.5vw,18px); font-weight:600;
  letter-spacing:-.01em; color:var(--ink);
  display:inline-flex; align-items:baseline; gap:7px; margin:0 0 22px;
}
.brace{ color:var(--lime-ink); font-weight:400; }
.pro{
  background:linear-gradient(92deg,var(--lime-ink),var(--teal-ink));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lockup-sm{ font-size:14px; margin:0; }

/* ── slide rail ────────────────────────────────────── */
.rail{
  position:fixed; right:20px; top:50%; transform:translateY(-50%); z-index:60;
  display:flex; flex-direction:column; gap:12px;
}
.rail a{ display:block; padding:5px; position:relative; }
.rail span{
  display:block; width:7px; height:7px; border-radius:50%;
  background:var(--edge-lit); transition:background .25s ease, transform .25s ease;
}
.rail a:hover span{ background:var(--faint); }
.rail a.on span{ background:var(--ink); transform:scale(1.45); }
.rail a::after{
  content:attr(data-t);
  position:absolute; right:22px; top:50%; transform:translateY(-50%);
  font-size:11.5px; font-weight:600; color:var(--dim);
  background:var(--card); border:1px solid var(--edge); border-radius:6px;
  padding:3px 8px; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.rail a:hover::after{ opacity:1; }

/* ── buttons ───────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--sans); font-weight:600; text-decoration:none; white-space:nowrap;
  border:1px solid transparent; border-radius:12px; cursor:pointer;
  background:var(--ink); color:#fff;
  box-shadow:0 1px 2px rgba(16,21,27,.12);
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 10px 26px -12px rgba(16,21,27,.55); }
.btn:active{ transform:translateY(0); }
.btn-sm{ font-size:14px; padding:8px 15px; border-radius:10px; }
.btn-lg{ font-size:16px; padding:14px 24px; }
.btn-ghost{ background:var(--card); color:var(--ink); border-color:var(--edge-lit); box-shadow:none; }
.btn-ghost:hover{ border-color:var(--faint); box-shadow:var(--shadow); }

/* ── type ──────────────────────────────────────────── */
.eyebrow{
  font-family:var(--mono); font-size:12.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--faint); margin:0 0 14px; display:flex; align-items:center; gap:8px;
}
.h1{
  font-size:clamp(2.4rem,5.4vw,4rem); line-height:1.04; letter-spacing:-.037em;
  font-weight:700; margin:0 0 20px;
}
.grad{
  background:linear-gradient(94deg,var(--lime-ink) 4%,var(--teal-ink) 70%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.h2{
  font-size:clamp(1.7rem,3vw,2.4rem); line-height:1.12; letter-spacing:-.03em;
  font-weight:700; margin:0;
}
.lede{ font-size:clamp(1rem,1.4vw,1.13rem); color:var(--dim); margin:0 0 28px; max-width:46ch; }
.sub{ color:var(--dim); margin:12px 0 0; max-width:56ch; font-size:15.5px; }
.meta{ font-size:12.5px; color:var(--faint); margin:20px 0 0; }

.slide-head{ margin-bottom:26px; flex:none; }

/* ── hero ──────────────────────────────────────────── */
.hero-in{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,4.5vw,60px); align-items:center; }
.cta-row{ display:flex; flex-wrap:wrap; gap:12px; }

.dot{ width:9px; height:9px; border-radius:50%; display:inline-block; flex:none; background:var(--faint); }
.dot-live{ background:var(--active); box-shadow:0 0 0 3px rgba(10,191,103,.18); }
.dot-a{ background:var(--active); }
.dot-i{ background:var(--idle); }
.dot-s{ background:var(--stale); }
.dot-off{ background:#3B4553; }

.hero-demo{ min-width:0; }
.win{
  background:linear-gradient(180deg,var(--term-2),var(--term));
  border:1px solid var(--term-edge); border-radius:16px; overflow:hidden;
  box-shadow:0 34px 76px -30px rgba(16,21,27,.6), 0 4px 12px rgba(16,21,27,.14);
}
.win-bar{
  display:flex; align-items:center; gap:7px; padding:11px 14px;
  border-bottom:1px solid var(--term-edge); background:rgba(255,255,255,.03);
}
.tl{ width:11px; height:11px; border-radius:50%; }
.tl-r{ background:#F0564B; } .tl-y{ background:#F5BE3F; } .tl-g{ background:#3FCB53; }
.win-title{ font-size:12px; color:#7A8798; margin-left:8px; }
.win-body{ padding:14px 12px 18px; }

.grp{
  font-family:var(--mono); font-size:11px; letter-spacing:.07em; text-transform:uppercase;
  color:#7A8798; margin:14px 8px 8px; display:flex; align-items:center; gap:7px;
}
.grp:first-child{ margin-top:2px; }
.grp-live{ color:#12D97A; }
/* the count sits on a wash of its own group's colour, not a grey chip */
.grp-n{
  font-size:10px; font-weight:600; color:currentColor;
  background:color-mix(in srgb, currentColor 20%, transparent);
  padding:0 5px; border-radius:5px; line-height:1.5;
}
.ws{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:3px; }
.w{
  display:flex; align-items:center; gap:10px; padding:8px 12px 8px 16px; border-radius:8px;
  font-size:13.5px; color:#9AA8BA; position:relative; overflow:hidden;
}
/* group colour rail down the left edge */
.w::before{
  content:""; position:absolute; left:7px; top:6px; bottom:6px; width:3px;
  border-radius:3px; background:var(--rail,transparent); z-index:2;
}
.w::after{
  content:""; position:absolute; inset:0; border-radius:8px; pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--tint,transparent));
  opacity:var(--tintA,0); transition:opacity .9s ease, background .9s ease;
}
.w > *{ position:relative; z-index:1; }
.wn{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; }
.w .dot{ margin-left:auto; transition:background .9s ease, box-shadow .9s ease; }

/* ── bento ─────────────────────────────────────────── */
.bento{
  flex:1; min-height:0;
  display:grid; grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(3,1fr);
  gap:13px; max-height:720px;
}
.tile{
  background:var(--card); border:1px solid var(--edge); border-radius:var(--r);
  padding:18px 20px 19px; overflow:hidden; min-height:0;
  display:flex; flex-direction:column;
  box-shadow:var(--shadow);
  transition:box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.tile:hover{ box-shadow:var(--shadow-up); transform:translateY(-2px); border-color:var(--edge-lit); }
.tile-wide{ grid-column:span 2; }
.tile-tint{ background:linear-gradient(150deg,#FBFCFD,#EFF3F7); }

/* the UI element sits on top, then title + text */
.viz{
  flex:1; min-height:0; width:100%; margin-bottom:14px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
}
.tile-h{
  font-size:14.6px; font-weight:650; letter-spacing:-.016em; line-height:1.3;
  color:var(--ink); margin:0 0 5px;
}
.tile-p{
  font-size:12.9px; color:var(--dim); line-height:1.48; margin:0;
}
.tile-wide .tile-p{ max-width:64ch; }

/* dark mini sidebar */
.mock{
  width:100%; max-width:224px;
  background:var(--term); border:1px solid var(--term-edge);
  border-radius:11px; padding:9px 7px; display:flex; flex-direction:column; gap:3px;
}
.mk-grp{
  font-family:var(--mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase;
  color:#7A8798; margin:2px 6px 5px; display:flex; align-items:center; gap:6px;
}
.mk-live{ color:#12D97A; }
.mk-n{ font-size:9px; background:rgba(255,255,255,.1); padding:0 5px; border-radius:20px; color:#9AA8BA; }
.mk-row{
  display:flex; align-items:center; gap:8px; font-size:11.5px; color:#C4CEDA;
  padding:6px 8px 6px 13px; border-radius:7px; position:relative; overflow:hidden;
}
.mk-row::before{
  content:""; position:absolute; left:5px; top:5px; bottom:5px; width:2.5px;
  border-radius:3px; background:var(--rail,transparent); z-index:2;
}
.mk-row::after{
  content:""; position:absolute; inset:0; border-radius:7px; pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--t,transparent)); opacity:.26;
}
.mk-row > *{ position:relative; z-index:1; }
.mk-row .dot{ width:7px; height:7px; margin-left:auto; }
.mk-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mk-badge{
  margin-left:auto; font-family:var(--mono); font-size:9.5px; font-weight:600;
  background:var(--stale); color:#fff; min-width:17px; height:17px;
  display:inline-flex; align-items:center; justify-content:center; border-radius:20px; padding:0 5px;
}
.mk-fade{ opacity:.3; text-decoration:line-through; }
.mk-in{ box-shadow:0 0 0 1px rgba(255,255,255,.09) inset; }

/* decay bar */
.decay{ width:100%; max-width:200px; }
.decay-track{ display:flex; gap:5px; }
.decay-step{ flex:1; height:10px; border-radius:20px; background:var(--c,#C6CCD4); position:relative; }
.decay-step::after{
  content:""; position:absolute; inset:0; border-radius:20px;
  background:var(--c); filter:blur(10px); opacity:.45;
}
.decay-gone{ background:#C9CFD7; }
.decay-gone::after{ display:none; }
.decay-labels{ display:flex; gap:5px; margin-top:9px; font-size:10px; color:var(--faint); }
.decay-labels span{ flex:1; }

/* session restore — same layout, before and after */
.restore{ display:flex; align-items:center; justify-content:center; gap:16px; width:100%; }
.panes{
  display:flex; gap:4px; width:132px; height:82px;
  background:var(--term); border:1px solid var(--term-edge); border-radius:9px; padding:5px;
}
/* Panes carry a workspace rail and a few lines of content, so the pair reads as
   "your actual layout came back" rather than two grey boxes. */
.p{
  flex:1; border-radius:4px; background:rgba(255,255,255,.07); display:flex;
  flex-direction:column; gap:3px; padding:6px 7px; overflow:hidden;
}
.p-col{ flex:1; display:flex; flex-direction:column; gap:4px; }
.p-col .p{ flex:1; }
.p i{
  display:block; height:2px; border-radius:1px;
  background:var(--ln, rgba(255,255,255,.22));
}
.restore .arrow{ width:19px; height:19px; color:var(--faint); flex:none; }

/* the editor in a pane: a file tree beside real-looking code, so the card reads
   as "your project is open here" rather than "a window is open here" */
.editor{
  width:100%; max-width:330px; display:flex;
  background:var(--term); border:1px solid var(--term-edge); border-radius:10px;
  overflow:hidden; box-shadow:0 10px 26px -16px rgba(16,21,27,.7);
}
.ed-side{
  width:96px; flex:none; padding:9px 0 10px;
  display:flex; flex-direction:column; gap:1px;
  background:rgba(255,255,255,.03); border-right:1px solid var(--term-edge);
}
.ed-f{
  font-family:var(--mono); font-size:9.5px; color:#8593A5;
  padding:3px 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ed-dir{ color:#5D6B7D; }
.ed-f.is-on{ background:rgba(255,255,255,.07); color:#DCE5F0; }

.ed-main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.ed-tab{
  font-size:9.5px; color:#C4CEDA; padding:6px 11px;
  border-bottom:1px solid var(--term-edge); background:rgba(255,255,255,.04);
}
.ed-code{ padding:10px 11px; display:flex; flex-direction:column; gap:6px; }
.cl{ display:flex; align-items:center; gap:6px; }
.cl-in{ padding-left:12px; }
.tk{ display:block; height:3px; border-radius:2px; background:rgba(255,255,255,.20); }
.tk.kw{ background:#B588FF; }
.tk.fn{ background:var(--teal); }
.tk.st{ background:var(--active); }
.tk.cm{ background:rgba(255,255,255,.11); }

/* grouped workspaces */
.grouped{
  display:flex; gap:7px; width:100%; max-width:470px;
  background:var(--term); border:1px solid var(--term-edge);
  border-radius:11px; padding:9px;
}
.g-col{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
/* group header takes the group's own colour, with a count badge */
.g-head{
  font-family:var(--sans); font-size:9px; font-weight:700;
  letter-spacing:.07em; text-transform:uppercase;
  color:var(--s); margin:0 0 5px; padding:0 4px;
  display:flex; align-items:center; gap:6px;
}
.g-n{
  font-size:8.5px; font-weight:700; color:var(--s);
  background:color-mix(in srgb, var(--s) 20%, transparent);
  padding:1px 5px; border-radius:5px;
}
.g-row{
  display:flex; align-items:center; gap:7px;
  font-size:10.5px; color:#C4CEDA; padding:5px 7px 5px 11px; border-radius:6px;
  position:relative; overflow:hidden;
}
/* the same colour rail, per row */
.g-row::before{
  content:""; position:absolute; left:4px; top:4px; bottom:4px; width:2.5px;
  border-radius:3px; background:var(--s); z-index:2;
}
/* a workspace with activity carries the tint as well as the dot */
.g-row::after{
  content:""; position:absolute; inset:0; border-radius:6px; pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--t,transparent)); opacity:.26;
}
.g-row > *{ position:relative; z-index:1; }
.g-row span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; }
.g-row .dot{ width:6px; height:6px; margin-left:auto; flex:none; }

/* context menu */

/* a settings row, so the control isn't floating without context */

/* tab-bar tools */
/* the bundled mini-apps — each carries the accent its own icon uses,
   so the site and the tab bar read as the same set of things */
.apps{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; width:100%; }
.app{
  display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  background:var(--card); border:1px solid var(--edge);
  padding:12px 13px 13px; border-radius:12px; box-shadow:0 1px 2px rgba(16,21,27,.05);
}
.app-i{
  display:flex; align-items:center; justify-content:center;
  width:26px; height:26px; margin-bottom:5px; border-radius:7px;
  color:var(--a); background:color-mix(in srgb, var(--a) 12%, transparent);
}
.app-i .i{ width:15px; height:15px; }
.app b{ font-size:12.5px; font-weight:650; color:var(--ink); letter-spacing:-.01em; }
.app em{ font-size:11px; font-style:normal; color:var(--faint); line-height:1.3; }

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


/* ── how to use: the real window ───────────────────── */
/* Drawn against a screenshot of the app rather than from memory: dividers
   between groups, the activity gradient on live rows, group colour on the
   header, chevrons, and the mini-app launchers where they actually sit. */
/* window on the left, the three notes reading down the right */
.system{
  /* The window keeps its width; the steps take a fixed column rather than a
     share, so a wider viewport grows the app, not the text. */
  display:grid; grid-template-columns:minmax(0,1fr) clamp(300px,27%,400px);
  gap:clamp(24px,2.6vw,40px); align-items:center;
}
.appwin{
  background:linear-gradient(180deg,var(--term-2),var(--term));
  border:1px solid var(--term-edge); border-radius:16px; overflow:hidden;
  box-shadow:0 38px 84px -34px rgba(16,21,27,.62), 0 4px 12px rgba(16,21,27,.14);
  min-width:0;
}
.app-bar{
  display:flex; align-items:center; gap:7px; padding:11px 14px 10px;
  background:rgba(255,255,255,.02);
}
.app-ws{
  font-size:12.5px; color:#DCE5F0; margin-left:14px;
  display:inline-flex; align-items:center; gap:7px;
}
.app-fold{ width:13px; height:13px; fill:none; stroke:#3BAFFF;
           stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* open tabs, then the launcher buttons pinned right */
.app-tabs{
  display:flex; align-items:center; gap:2px; padding:0 10px;
  border-bottom:1px solid var(--term-edge);
}
.atab{
  font-size:11.5px; color:#7A8798; padding:5px 11px;
  display:flex; align-items:center; gap:6px; white-space:nowrap;
}
/* the active tab is a plain block, not a rounded pill */
.atab.is-on{ background:rgba(255,255,255,.06); color:#DCE5F0; border-radius:0; }
.ad{ width:6px; height:6px; border-radius:50%; flex:none; }
/* the tab favicon is the plugin's own mark, same as its launcher button */
.af{
  width:15px; height:15px; border-radius:4px; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--a);
}
.af svg{
  width:10px; height:10px; fill:none; stroke:#fff;
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
}
.app-tools{ margin-left:auto; display:flex; gap:4px; padding-left:14px; }
/* Same mark, same treatment as the tab favicon: a solid plugin-coloured square
   with a white glyph. The button and the tab are the one icon. */
.tool{
  width:15px; height:15px; border-radius:4px; display:flex;
  align-items:center; justify-content:center; background:var(--a);
}
.tool svg{ width:10px; height:10px; fill:none; stroke:#fff;
           stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }

.app-body{ display:grid; grid-template-columns:224px minmax(0,1fr); }
.app-side{ padding:6px 0 16px; border-right:1px solid var(--term-edge); }

/* the divider that separates one group from the next */
.app-side .grp{
  margin:0; padding:12px 12px 7px; border-top:1px solid var(--term-edge);
  display:flex; align-items:center; gap:7px;
  font-weight:700;                    /* group names are bold in the app */
}
.app-side .grp:first-child{ border-top:0; padding-top:4px; }
.app-side .ws{ padding:0 8px 10px; }
/* the chevron is chrome, not identity: neutral grey whatever the group's colour */
.chev{ width:12px; height:12px; margin-left:auto; fill:none; stroke:#7A8798;
       stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }

/* a live workspace carries its activity colour as a left-to-right wash */
.app-side .w{ margin-bottom:1px; }
.w-live .wn{ color:#E6ECF3; }
/* the selected workspace: a neutral grey fill, no activity wash */
.w-sel{ background:rgba(255,255,255,.085); }
.w-sel .wn{ color:#E6ECF3; }

.app-main{ display:flex; flex-direction:column; min-width:0; }
.app-term{
  padding:14px 16px 0; font-size:11.8px; line-height:1.62;
  display:flex; flex-direction:column; min-height:0; flex:1;
}
/* the composer sits at the bottom of the pane, not under the last message */
.cc-foot{ margin-top:auto; }
.app-term p{ margin:0; color:#C4CEDA; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* a tool call: coloured bullet, bold name, arguments after it */
.cc-t{ margin-top:11px !important; color:#DCE5F0; }
.cc-t b{ font-weight:700; color:#fff; }
.cb{
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background:#C4CEDA; margin-right:8px; vertical-align:1px;
}
.cb-ok{ background:var(--active); }
/* its result, hung under it on the connector */
.cc-s{ color:#6B7889; padding-left:4px; }
/* assistant prose, and its wrapped continuation */
.cc-m{ margin-top:11px !important; color:#DCE5F0; }
.cc-c{ color:#8A97A8; padding-left:15px; }
/* what you typed, banded the way the real one bands it */
.cc-u{
  margin:11px -16px !important; padding:2px 16px;
  background:rgba(255,255,255,.055); color:#C4CEDA;
}
.cc-w{ margin-top:11px !important; color:#E8845C; }

/* ruled above and below, the way the real composer is boxed */
.cc-in{
  margin-top:12px; padding:5px 0;
  border-top:1px solid var(--term-edge);
  border-bottom:1px solid var(--term-edge);
}
.tp{ color:#7A8798; }
.tcur{ display:inline-block; width:7px; height:13px; vertical-align:-2px;
       background:#C4CEDA; opacity:.85; }
.cc-bar{ margin-top:9px !important; font-size:11px; color:#6B7889; }
.cc-bar2{ margin:2px 0 12px !important; color:#8B6BFF; }
.cc-sep{ color:#3B4553; }
.cc-b1{ color:#3BAFFF; }
.cc-b2{ color:#0ABF67; }
.cc-b3{ color:#B588FF; }
.tf{ color:#3BAFFF; }

.sys-notes{
  display:flex; flex-direction:column; gap:13px;
  min-width:0; margin:0; padding:0; list-style:none;
}
.sys-note{
  display:flex; gap:12px; align-items:flex-start;
  font-size:13.1px; color:var(--dim); margin:0; line-height:1.5;
}
.sys-n{
  font-size:11px; font-weight:600; color:var(--lime-ink);
  letter-spacing:.07em; flex:none; margin-top:2px;
}
.sys-note b{ color:var(--ink); font-weight:650; display:block; margin-bottom:1px; }

@media (max-width:1100px){
  .system{ grid-template-columns:1fr; gap:26px; }
  .sys-notes{ display:grid; grid-template-columns:repeat(3,1fr); }
}
@media (max-width:900px){
  .app-body{ grid-template-columns:1fr; }
  .app-side{ display:none; }
  .sys-notes{ grid-template-columns:1fr; gap:14px; }
}

/* ── install ───────────────────────────────────────── */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.step{
  background:var(--card); border:1px solid var(--edge); border-radius:var(--r);
  padding:26px 24px; display:flex; flex-direction:column; box-shadow:var(--shadow);
}
.step-n{ font-size:12.5px; color:var(--lime-ink); margin:0 0 12px; letter-spacing:.08em; font-weight:600; }

/* Each step gets a picture of the thing it is asking for, the same way the
   bento cards do. Reading three paragraphs to install an app is the chore. */
.step-viz{
  height:92px; margin:0 0 16px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:var(--sunk); border-radius:12px;
}

/* 01 - the drag */
.drag{ display:flex; align-items:center; gap:12px; }
.dz{
  width:44px; height:44px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:var(--term); border:1px solid var(--term-edge);
  box-shadow:0 4px 12px -6px rgba(16,21,27,.5);
}
/* the app's own icon file, so this can never drift from the real mark */
.dz-icon{ width:44px; height:44px; display:block; border-radius:10px; box-shadow:0 4px 12px -6px rgba(16,21,27,.5); }
.dz-dir{ background:var(--card); border-color:var(--edge-lit); color:var(--faint); }
.dz-dir .i{ width:20px; height:20px; }
.sv-arrow{ width:17px; height:17px; color:var(--faint); }

/* 02 - the Privacy & Security panel, which is where this actually happens */
.privacy{
  width:calc(100% - 28px); max-width:236px; padding:9px 11px 10px;
  background:var(--card); border:1px solid var(--edge-lit); border-radius:9px;
  box-shadow:0 8px 22px -12px rgba(16,21,27,.5);
}
.pv-head{
  font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--faint); margin:0 0 6px;
}
.pv-msg{ font-size:10.5px; color:var(--dim); margin:0 0 9px; line-height:1.4; }
.pv-btn{
  display:inline-block; font-size:10.5px; font-weight:600; color:#fff;
  background:#2F6BFF; border-radius:6px; padding:4px 10px;
}

/* 03 - reuses the sidebar mock at step scale */
.mock-sm{ max-width:186px; padding:7px 6px; }
.step-h{ font-size:1.06rem; font-weight:650; letter-spacing:-.018em; margin:0 0 9px; }
.step-p{ font-size:14.4px; color:var(--dim); margin:0 0 15px; line-height:1.55; }
.step-p strong{ color:var(--ink); font-weight:600; }
.step-alt{ margin-top:auto; margin-bottom:0; font-size:13.4px; color:var(--faint); line-height:1.5; }
.step .btn{ align-self:flex-start; margin-top:auto; }
.step-meta{ font-size:11.5px; color:var(--faint); margin:10px 0 0; }

/* ── footer ────────────────────────────────────────── */
.foot{
  margin-top:34px; padding-top:22px; border-top:1px solid var(--edge);
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.brand-sm{ font-size:14px; }
.foot-note{ font-size:12.5px; color:var(--faint); margin:0; }
.foot-note a{ color:var(--dim); text-decoration:underline; text-underline-offset:2px; }
.foot-note a:hover{ color:var(--teal-ink); }

/* ── reveal on slide entry ─────────────────────────── */
.slide .tile, .slide .step, .slide .hero-copy, .slide .hero-demo{
  opacity:0; transform:translateY(14px);
  transition:opacity .55s cubic-bezier(.22,.8,.28,1), transform .55s cubic-bezier(.22,.8,.28,1);
}
.slide.seen .tile, .slide.seen .step, .slide.seen .hero-copy, .slide.seen .hero-demo{
  opacity:1; transform:none;
}
.slide.seen .tile:nth-child(2){ transition-delay:.05s; }
.slide.seen .tile:nth-child(3){ transition-delay:.1s; }
.slide.seen .tile:nth-child(4){ transition-delay:.15s; }
.slide.seen .tile:nth-child(5){ transition-delay:.2s; }
.slide.seen .tile:nth-child(6){ transition-delay:.25s; }
.slide.seen .step:nth-child(2){ transition-delay:.08s; }
.slide.seen .step:nth-child(3){ transition-delay:.16s; }
.slide.seen .hero-demo{ transition-delay:.12s; }

/* ── responsive / safety valves ────────────────────── */
@media (max-width:1180px){
  .hero-in{ grid-template-columns:1fr; gap:34px; }
  .hero-demo{ max-width:500px; }
  .bento{ grid-template-rows:none; grid-auto-rows:minmax(215px,auto); max-height:none; }
}

/* below this, snapping fights the content — turn it off */
@media (max-width:900px), (max-height:700px){
  html{ scroll-snap-type:none; }
  .slide{ min-height:auto; padding:56px 0; scroll-snap-align:none; }
  .rail{ display:none; }
  .bento{ grid-template-columns:repeat(2,1fr); }
  .tile-wide{ grid-column:span 2; }
  .steps{ grid-template-columns:1fr; }
}
@media (max-width:600px){
  .bleed{ max-width:calc(100% - 32px); }
  body{ font-size:16px; }
  .bento{ grid-template-columns:1fr; }
  .tile,.tile-wide{ grid-column:span 1; }
  .cta-row .btn{ flex:1 1 100%; }
  .foot{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .slide .tile,.slide .step,.slide .hero-copy,.slide .hero-demo{ opacity:1; transform:none; }
  .btn:hover,.tile:hover{ transform:none; }
}
