/* TradeLens — one theme, every page.
 *
 * Light, warm and quiet. The rules it follows:
 *
 *   paper, not panels     the page is off-white; cards are pure white and lifted
 *                         by a shadow rather than boxed in by a border
 *   one accent            a muted sage, used for actions and almost nothing else
 *   one voice             DM Sans, for the headlines and the text. A geometric
 *                         sans with rounded terminals: modern without shouting,
 *                         and it holds up at 13px in a table of numbers.
 *   green and red mean money  profit and loss keep their colours. They are the
 *                         only other colours allowed to carry meaning.
 *
 * Fonts are self-hosted and declared in fonts.css — no third-party request on
 * page load, and nothing that stops working when a CDN has a bad day.
 */

@import url('/fonts.css');

:root{
  --paper:#FBFAF7;
  --paper-2:#F4F2ED;
  --card:#FFFFFF;
  --ink:#17181C;
  --ink-2:#54565E;
  --ink-3:#8A8B92;

  --sage:#3D7A64;
  --sage-ink:#2F6350;
  --sage-soft:#EAF1ED;
  --sage-line:#CBDDD4;

  --profit:#12805A;
  --loss:#C0453E;
  --warn:#B0740F;

  --hair:#E8E5DE;
  --line:#DEDAD1;

  --shadow-sm:0 1px 2px rgba(23,24,28,.04);
  --shadow:0 1px 2px rgba(23,24,28,.04), 0 8px 24px -12px rgba(23,24,28,.10);
  --shadow-lg:0 2px 6px rgba(23,24,28,.06), 0 30px 60px -30px rgba(23,24,28,.45);

  --r-btn:9px;
  --r-card:18px;

  --serif:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --sans:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;

  --nav-h:74px;
}

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

html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 18px)}

body{
  background:var(--paper);
  color:var(--ink);
  font:16px/1.65 var(--sans);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

::selection{background:var(--sage-soft)}

a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:2px solid var(--sage);outline-offset:3px;border-radius:6px
}

/* ---------------------------------------------------------------- type ---- */

h1,h2,h3,.serif{font-family:var(--serif);font-weight:600;letter-spacing:-.035em;line-height:1.1}
h1{font-size:clamp(2.3rem,4.6vw,3.5rem)}
h2{font-size:clamp(1.7rem,3.2vw,2.4rem)}
h3{font-size:1.1rem;line-height:1.3}
em.accent{font-style:italic;color:var(--sage-ink)}

.eyebrow{
  display:inline-flex;align-items:center;gap:.55rem;
  font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--sage-ink);background:var(--sage-soft);
  border-radius:100px;padding:.4rem .9rem;
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--sage)}

.lede{font-size:1.075rem;line-height:1.7;color:var(--ink-2)}
.muted{color:var(--ink-2)}
.dim{color:var(--ink-3)}

/* ------------------------------------------------------------- buttons ---- */

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font:600 .9rem/1 var(--sans);
  padding:.72rem 1.15rem;border-radius:var(--r-btn);
  border:1px solid transparent;cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:background .18s,border-color .18s,color .18s,transform .12s,box-shadow .18s;
}
.btn-solid{background:var(--sage);color:#fff;box-shadow:0 1px 2px rgba(61,122,100,.25)}
.btn-solid:hover{background:var(--sage-ink);transform:translateY(-1px)}
.btn-ghost{background:var(--card);color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--sage);color:var(--sage-ink)}
.btn-quiet{background:transparent;color:var(--ink-2);padding-inline:.6rem}
.btn-quiet:hover{color:var(--ink)}
.btn-lg{padding:.95rem 1.6rem;font-size:1rem}
.btn:disabled{opacity:.55;cursor:default;transform:none}

/* ----------------------------------------------------------------- nav ---- */

.nav{
  position:sticky;top:0;z-index:80;
  height:var(--nav-h);
  display:flex;align-items:center;gap:1.25rem;
  padding:0 clamp(1.25rem,4vw,3.5rem);
  background:rgba(251,250,247,.86);
  backdrop-filter:blur(14px) saturate(1.4);
  border-bottom:1px solid var(--hair);
}

.brand{
  display:flex;align-items:center;gap:.55rem;
  font-family:var(--serif);font-size:1.4rem;font-weight:600;letter-spacing:-.01em;
  text-decoration:none;color:var(--ink);flex:0 0 auto;
}
.brand img{width:26px;height:26px;display:block}
.brand b{color:var(--sage);font-weight:inherit}

.menu{display:flex;align-items:center;gap:.15rem;list-style:none;margin-left:.75rem}
.menu>li{position:relative}

.menu-link{
  display:inline-flex;align-items:center;gap:.32rem;
  font:500 .925rem/1 var(--sans);color:var(--ink-2);
  text-decoration:none;padding:.62rem .72rem;border-radius:8px;
  background:none;border:0;cursor:pointer;font-family:var(--sans);
  transition:color .16s,background .16s;
}
.menu-link:hover,.menu-link[aria-expanded="true"]{color:var(--ink);background:rgba(23,24,28,.045)}
.menu-link .chev{width:9px;height:9px;flex:0 0 auto;transition:transform .2s;opacity:.65}
.menu-link[aria-expanded="true"] .chev{transform:rotate(180deg)}

.drop{
  position:absolute;top:calc(100% + 10px);left:0;
  min-width:270px;padding:.5rem;
  background:var(--card);border:1px solid var(--hair);border-radius:14px;
  box-shadow:var(--shadow);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .16s,transform .16s,visibility .16s;
  z-index:90;
}
.drop.wide{min-width:620px;display:grid;grid-template-columns:1fr 1fr;gap:.15rem}
.menu>li:hover>.drop,.drop.open{opacity:1;visibility:visible;transform:translateY(0)}

.drop a{
  display:flex;gap:.7rem;align-items:flex-start;
  padding:.6rem .7rem;border-radius:10px;text-decoration:none;color:var(--ink);
  transition:background .14s;
}
.drop a:hover{background:var(--sage-soft)}
.drop .ic{
  flex:0 0 auto;width:30px;height:30px;border-radius:8px;
  background:var(--sage-soft);color:var(--sage-ink);
  display:grid;place-items:center;font-size:.85rem;font-weight:700;
}
/* The two spans inside each row are a title line and a description line, so they
   have to be blocks — left inline they reflow into one another and the "soon"
   badge ends up mid-sentence. */
.drop a > span:last-child{display:block;min-width:0}
.drop .t{display:block;font-size:.9rem;font-weight:600;line-height:1.35}
.drop .d{display:block;font-size:.78rem;color:var(--ink-3);line-height:1.45;margin-top:.12rem}
.drop .soon{
  font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--warn);background:rgba(176,116,15,.1);border-radius:100px;
  padding:.12rem .42rem;margin-left:.35rem;vertical-align:middle;
}

.nav-right{margin-left:auto;display:flex;align-items:center;gap:.6rem}
.nav-email{font-size:.82rem;color:var(--ink-3);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.burger{display:none;background:none;border:1px solid var(--line);border-radius:9px;padding:.5rem .6rem;cursor:pointer}
.burger span{display:block;width:17px;height:1.6px;background:var(--ink);margin:3.2px 0;border-radius:2px}

/* --------------------------------------------------------------- layout --- */

.wrap{max-width:1220px;margin:0 auto;padding-inline:clamp(1.25rem,4vw,3.5rem)}
.section{padding:clamp(3.5rem,7vw,6rem) 0}
.section-head{max-width:60ch;margin-bottom:2.75rem}
.section-head h2{margin:.6rem 0 .85rem}

.card{
  background:var(--card);border:1px solid rgba(23,24,28,.05);
  border-radius:var(--r-card);padding:1.75rem;box-shadow:var(--shadow);
}

.hair{height:1px;background:var(--hair);border:0;margin:0}

/* Screen frame: a window, not a device. A hairline bezel and a real shadow lift
   the product off the paper without a black slab fighting the page. */
.frame{
  background:var(--card);border:1px solid rgba(23,24,28,.07);
  border-radius:16px;padding:9px 9px 0;box-shadow:var(--shadow-lg);
}
.frame .bar{display:flex;gap:6px;padding:0 3px 8px}
.frame .bar i{width:9px;height:9px;border-radius:50%;background:#E3E0D8;display:block}
/* height:auto is not optional. The width and height attributes on the <img>
   become presentational CSS, so without this the picture is forced to its
   intrinsic pixel height and stretched — which is what made every screenshot on
   the page look soft and slightly wrong. */
.frame img{width:100%;height:auto;display:block;border-radius:0 0 9px 9px;border-top:1px solid rgba(23,24,28,.05)}
/* Crop by hiding the overflow, not with object-fit: `cover` scales to fill and
   eats the left and right edges, which on a dashboard means the first column of
   numbers disappears. */
.frame.crop{max-height:var(--crop,470px);overflow:hidden}
.frame.crop img{border-radius:0}

/* graph paper, faded out at the edges — a trader's notebook, barely there */
.gridpaper{position:fixed;inset:0;z-index:0;pointer-events:none}
.gridpaper::before{
  content:'';position:absolute;inset:0;
  background-image:linear-gradient(rgba(61,122,100,.05) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(61,122,100,.05) 1px,transparent 1px);
  background-size:28px 28px;
}
.gridpaper::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 90% 60% at 50% 0%,rgba(251,250,247,0) 20%,var(--paper) 75%);
}
.above{position:relative;z-index:1}

/* --------------------------------------------------------------- footer --- */

.foot{border-top:1px solid var(--hair);padding:3rem 0 2.5rem;margin-top:2rem}
.foot-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:2rem}
.foot h4{font:600 .78rem/1 var(--sans);letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);margin-bottom:1rem}
.foot ul{list-style:none;display:grid;gap:.6rem}
.foot a{font-size:.9rem;color:var(--ink-2);text-decoration:none}
.foot a:hover{color:var(--sage-ink)}
.foot .fine{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--hair);font-size:.78rem;color:var(--ink-3);line-height:1.75}

/* ------------------------------------------------------------- responsive - */

@media (max-width:1040px){
  .menu{display:none}
  .burger{display:block}
  .nav-right .btn-ghost{display:none}
}

@media (max-width:720px){
  .foot-grid{grid-template-columns:1fr 1fr;gap:1.75rem}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
