/* Satoshi (Indian Type Foundry, ITF Free Font License: fonts/Satoshi-FFL.txt), self-hosted. */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-variable.woff2") format("woff2-variations"), url("../fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Alvin v2 mockups: shared system. Category standard at ClickUp's craft level, set in Satoshi. */
:root {
  --bg: #ffffff;
  --panel: #f8f9fa;
  --panel-2: #f1f2f4;
  --line: #e8e8e8;
  --line-2: #d9d9de;
  --ink: #202020;
  --ink-2: #4a4a52;
  --ink-3: #6b6b74;
  --purple: #1f55e6; --purple-bg: #e8efff; /* brand blue (var name kept) */
  --blue: #0369a1;   --blue-bg: #e0f2fe;
  --orange: #a8441a; --orange-bg: #fdede7;
  --green: #05702f;  --green-bg: #e2f8ec;
  --pink: #0891b2;   --pink-bg: #e0f7fb;
  --red: #d42a20;    --red-bg: #fbdddd;
  --grad: linear-gradient(120deg, #38bdf8 0%, #1f55e6 55%, #0b2a7a 100%);
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 4px 12px -6px rgba(16, 18, 24, .16);
  --shadow-lg: 0 2px 4px rgba(16, 18, 24, .06), 0 14px 22px -12px rgba(16, 18, 24, .26);
  --font: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
::selection { background: var(--purple-bg); color: var(--ink); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: -.03em; text-decoration: none; }
/* The A mark stands on its own (no app-icon tile): brand blue, white on navy. */
.mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--purple); }
.mark svg { width: 28px; height: 28px; }
.nav.dark .mark, .close .mark, .deep .mark { color: #fff; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(0, 0, 0, .05); color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }
/* Mobile menu: <details class="mmenu"> after .nav-cta; hidden on desktop */
.mmenu { display: none; position: relative; }
.mmenu summary { list-style: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; cursor: pointer; background: #fff; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary svg { width: 20px; height: 20px; stroke: var(--ink); }
.mmenu .x { display: none; }
.mmenu[open] .x { display: block; } .mmenu[open] .bars { display: none; }
.mmenu-panel { position: fixed; left: 12px; right: 12px; top: 76px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px; display: grid; gap: 2px; }
.mmenu-panel a { text-decoration: none; font-weight: 700; font-size: 17px; padding: 13px 14px; border-radius: 10px; color: var(--ink); }
.mmenu-panel a[aria-current="page"] { background: var(--purple-bg); color: var(--purple); }
.mmenu-panel .btn { margin-top: 8px; justify-content: center; }
.nav.dark .mmenu summary { background: transparent; border-color: rgba(255, 255, 255, .3); }
.nav.dark .mmenu summary svg { stroke: #fff; }
.nav.dark .mmenu-panel .btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav .wrap { justify-content: space-between; gap: 12px; }
  .nav-cta { margin-left: auto; }
  .mmenu { display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: 700 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3a3a; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--panel); }
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 12.5px; line-height: 1.4; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-done { background: var(--green-bg); color: var(--green); }
.b-work { background: var(--blue-bg); color: var(--blue); }
.b-wait { background: var(--orange-bg); color: var(--orange); }
.b-appr { background: var(--purple-bg); color: var(--purple); }
.example { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Type ---------- */
.display { font-weight: 900; font-size: clamp(42px, 6.4vw, 80px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.h2 { font-weight: 900; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.h3 { font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--ink-3); }
.h2 + .lede { margin-top: 16px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section.tint { background: var(--panel); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- App frame (product UI) ---------- */
.app { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--ink-3); }
.app-bar .dots { display: flex; gap: 6px; } .app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-bar .co { margin-left: 8px; font-weight: 700; color: var(--ink); }
.app-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 340px; min-height: 420px; }
.app-side { padding: 14px 10px; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; background: #fcfcfd; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.app-side a svg { width: 17px; height: 17px; stroke: currentColor; }
.app-side a.on { background: var(--purple-bg); color: var(--purple); font-weight: 700; }
.app-side .count { margin-left: auto; background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.app-main { padding: 18px 22px; min-width: 0; }
.app-main h4 { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.task { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.task .t { font-weight: 700; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-d { background: #3b3b45; } .av-m { background: var(--purple); } .av-l { background: var(--blue); } .av-a { background: var(--green); } .av-t { background: var(--orange); }
.app-panel { border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.app-panel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
.amt { font-weight: 900; font-size: 36px; letter-spacing: -.035em; line-height: 1; }
.lines { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines div span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.stepper { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; position: relative; padding-bottom: 12px; font-size: 14px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.step .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--line); }
.step .dot svg { width: 13px; height: 13px; }
.step.done .dot { background: var(--green-bg); color: var(--green); border-color: transparent; }
.step.now .dot { background: var(--purple); color: #fff; border-color: transparent; box-shadow: 0 0 0 4px var(--purple-bg); }
.step b { display: block; font-weight: 700; }
.step small { color: var(--ink-3); font-size: 12.5px; }
.panel-actions { display: flex; gap: 8px; margin-top: auto; }
.panel-actions .btn { flex: 1; justify-content: center; min-height: 40px; }
@media (max-width: 1040px) { .app-body { grid-template-columns: minmax(0, 1fr) 320px; } .app-side { display: none; } }
@media (max-width: 760px) { .app-body { grid-template-columns: minmax(0, 1fr); } .app-panel { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Proof placeholders (no real proof yet) ---------- */
.ph { position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(31, 85, 230, .04) 10px 20px); color: var(--ink-3); }
.ph-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: var(--purple); background: var(--purple-bg); border-radius: 6px; padding: 3px 8px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot h5 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.foot ul { display: grid; gap: 8px; }
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-base { flex-direction: column; } }

/* ---------- Closing band ---------- */
.close { position: relative; overflow: hidden; border-radius: 24px; background: #121216; color: #fff; padding: clamp(40px, 6vw, 72px); }
.close::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: var(--grad); filter: blur(80px); opacity: .45; }
.close > * { position: relative; }
.close .h2 { color: #fff; max-width: 18ch; }
.close p { color: #c9c9d3; margin-top: 14px; max-width: 52ch; }
.close .btn-dark { background: #fff; color: var(--ink); }
.close .btn-dark:hover { background: #ececf0; }
.close .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.close .btn-outline:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
}

/* =====================================================================
   Pitch-style layer (structure modeled on pitch.com, Alvin's tokens)
   ===================================================================== */
:root {
  --deep: #050f2c;      /* hero night navy */
  --deep-2: #0c2a7a;
  --deep-ink: #f1f6ff;
  --deep-ink-2: #b9cdf5;
  --lav: #eff5ff;       /* ice-blue tint fields */
  --lav-2: #dce8ff;
  --lav-line: #c6d8ff;
}
/* Nav over the dark hero */
.nav.dark { background: rgba(5, 15, 44, .72); }
.nav.dark .brand, .nav.dark .nav-links a { color: var(--deep-ink); }
.nav.dark .nav-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav.dark .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.nav.dark .btn-outline:hover { background: rgba(255, 255, 255, .08); }
.nav.dark .btn-dark { background: #fff; color: var(--ink); }
.nav.dark .btn-dark:hover { background: #e6efff; }
.nav.dark.scrolled { border-bottom-color: rgba(255, 255, 255, .08); }

/* Lavender media frame with a dashed selection outline (Pitch's product frames) */
.frame { position: relative; border-radius: 24px; padding: clamp(20px, 3vw, 36px); background: radial-gradient(120% 90% at 0% 0%, #fff 0%, var(--lav-2) 45%, #6f9bff 120%); overflow: hidden; }
.frame.deep { background: radial-gradient(120% 90% at 0% 0%, #1b46b8 0%, var(--deep-2) 40%, var(--deep) 100%); }
.frame .sel { position: relative; border: 1.5px dashed rgba(31, 85, 230, .45); border-radius: 16px; padding: 12px; }
.frame.deep .sel { border-color: rgba(255, 255, 255, .25); }
.float-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px; }
.float-chip .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }

/* Receipt card (shared) */
.rc { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-size: 14px; box-shadow: var(--shadow); }
.rc header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc header b { font-size: 14.5px; }
.rc .meta { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.diff { margin-top: 12px; display: grid; gap: 4px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.diff .was { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; }
.diff .now { color: var(--green); font-weight: 700; }
.shot { margin-top: 12px; height: 74px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.shot i { background: #fff; border-radius: 4px; }
.shot i:nth-child(2) { background: var(--green-bg); }
.rc footer { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.rc footer .av { width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; display: grid; place-items: center; }

/* ---------- Mega menus (Product, Trades) ---------- */
.nav-links .dd { position: relative; }
.nav-links .dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.nav-links .dd > summary::-webkit-details-marker { display: none; }
.nav-links .dd > summary .chev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav-links .dd[open] > summary .chev { transform: rotate(180deg); }
.nav-links .dd > summary:hover, .nav-links .dd[open] > summary, .nav-links .dd[data-current] > summary { background: rgba(0, 0, 0, .05); color: var(--ink); }
.dd-panel { position: absolute; left: -12px; top: calc(100% + 10px); width: 560px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(16, 18, 24, .06), 0 24px 48px -20px rgba(16, 18, 24, .28); z-index: 30; }
.dd-panel.trades { width: 480px; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
@media (prefers-reduced-motion: no-preference) { .dd[open] .dd-panel { animation: dd-in .22s var(--ease); } @keyframes dd-in { from { opacity: 0; translate: 0 -6px; } } }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .15s; }
.dd-item:hover, .dd-item:focus-visible { background: var(--panel); }
.dd-item[aria-current="page"] b { color: var(--purple); }
.dd-item b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.dd-item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.dd-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--purple-bg); color: var(--purple); }
.dd-ic .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dd-item.plain { padding: 10px 12px; }
.dd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 0; padding: 10px 12px 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.dd-foot a { font-weight: 700; color: var(--purple); text-decoration: none; white-space: nowrap; }
.dd-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav.dark .nav-links .dd > summary { color: var(--deep-ink); }
.nav.dark .dd-panel .dd-item, .nav.dark .dd-panel .dd-item:hover { color: var(--ink); background-color: transparent; }
.nav.dark .dd-panel .dd-item:hover { background: var(--panel); }
.nav.dark .dd-panel .dd-foot a { color: var(--purple); background: none; padding: 0; }
.nav.dark .nav-links .dd > summary:hover, .nav.dark .nav-links .dd[open] > summary { background: rgba(255, 255, 255, .1); color: #fff; }

/* Log in: a quiet text button before the CTAs */
.nav-login { background: transparent; color: var(--ink-2); padding-inline: 12px; }
.nav-login:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.nav.dark .nav-login { color: var(--deep-ink); }
.nav.dark .nav-login:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 900px) { .nav-cta .nav-login { display: none; } }
.mmenu-panel .btn-outline + .btn-outline { margin-top: 8px; }

/* Phone menu sections */
.mmenu-panel { max-height: calc(100dvh - 92px); overflow-y: auto; }
.mmenu-panel .mn-label { margin: 6px 14px 2px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.mmenu-panel .mn-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mmenu-panel .mn-grid a { font-size: 15.5px; padding: 10px 14px; }
.mmenu-panel .mn-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
.mmenu-panel .mn-row a { font-size: 15.5px; }
.mmenu-panel .btn-dark { margin-top: 8px; justify-content: center; color: #fff; }
.nav.dark .mmenu-panel .btn-dark { background: var(--ink); color: #fff; }
