/* ============================================================================
   MARKETING RHYTHM v95 — public pages only (.home-screen / .auth-screen).
   Scoped so it cannot reach the signed-in app.

   The product imagery already exists as real HTML app frames (dashboardArt,
   focusArt, phoneArt) — the pages did not need pictures, they needed room and
   rhythm. Sections ran at app density, which is why they read as thin: a
   marketing page earns attention with space, a scale that steps hard between
   levels, and a measure short enough to actually read.
   ========================================================================== */

.home-screen{
  --mk-max:1140px;        /* content column                                  */
  --mk-sec:clamp(64px,9vw,116px);  /* between sections — the big beat        */
  --mk-blk:clamp(28px,4vw,48px);   /* between blocks inside a section        */
  --mk-gap:clamp(20px,2.4vw,32px); /* between cards in a grid                */
}

/* ── SECTIONS ─────────────────────────────────────────────────────────────
   One rule sets the page's whole vertical rhythm. Every section is the same
   distance apart, which is what stops a long page feeling arbitrary. */
.home-screen .land-sec,.home-screen .mk-band-sec,.home-screen .land-cta{
  max-width:var(--mk-max);margin-inline:auto;
  padding-block:var(--mk-sec);padding-inline:clamp(20px,5vw,32px)}
.home-screen .land-sec+.land-sec{padding-top:0}
.home-screen .land-sec>*+*{margin-top:var(--mk-blk)}

/* ── HERO ─────────────────────────────────────────────────────────────────
   The largest step on the page. A headline that shares a scale with a section
   heading is the single biggest reason a landing page looks unfinished. */
.home-screen .mk-hero{
  max-width:var(--mk-max);margin-inline:auto;text-align:center;
  padding:clamp(48px,7vw,92px) clamp(20px,5vw,32px) clamp(36px,5vw,64px)}
.home-screen .home-eyebrow{
  font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);margin:0 0 18px}
.home-screen .home-h1{
  font-size:clamp(34px,5.4vw,60px);line-height:1.05;font-weight:760;
  letter-spacing:-.032em;margin:0 auto;max-width:19ch;color:var(--fg);
  text-wrap:balance}
.home-screen .home-sub{
  font-size:clamp(15px,1.5vw,19px);line-height:1.6;font-weight:430;
  color:var(--muted);margin:20px auto 0;max-width:62ch;text-wrap:pretty}
.home-screen .mk-hero .btn,.home-screen .land-cta .btn{
  height:46px;padding:0 22px;font-size:15px;border-radius:10px}
.home-screen .mk-hero-acts{
  display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:28px}

/* ── SECTION HEADINGS ─────────────────────────────────────────────────────
   Clearly below the hero, clearly above a card title, and given a measure so
   the supporting line does not run the full width of the page. */
.home-screen .land-h{
  font-size:clamp(24px,3vw,36px);line-height:1.15;font-weight:700;
  letter-spacing:-.022em;margin:0;color:var(--fg);max-width:22ch;text-wrap:balance}
.home-screen .land-p{
  font-size:clamp(14px,1.3vw,16.5px);line-height:1.6;font-weight:430;
  color:var(--muted);margin:14px 0 0;max-width:64ch}
.home-screen .land-sec>.land-h+.land-p{margin-top:14px}
.home-screen .land-h+*:not(.land-p){margin-top:var(--mk-blk)}

/* ── FEATURE ROWS: copy beside a real app frame ───────────────────────────
   Two columns, wide gutter, vertically centred, alternating. The frame is the
   product itself, so it gets the larger share of the row. */
.home-screen .feat-row{
  display:grid;grid-template-columns:minmax(0,0.92fr) minmax(0,1.08fr);
  gap:clamp(32px,5vw,72px);align-items:center;
  padding-block:clamp(32px,4.5vw,60px)}
.home-screen .feat-row+.feat-row{border-top:1px solid var(--line-1)}
.home-screen .feat-row.flip>.feat-copy{order:2}
.home-screen .feat-row.flip>.feat-visual{order:1}
.home-screen .feat-copy>*+*{margin-top:16px}
.home-screen .feat-copy h3{
  font-size:clamp(20px,2.3vw,28px);line-height:1.2;font-weight:700;
  letter-spacing:-.02em;margin:0;color:var(--fg);max-width:20ch}
.home-screen .feat-copy>p{
  font-size:15.5px;line-height:1.62;color:var(--muted);margin:0;max-width:52ch}
.home-screen .feat-copy .land-ic{
  display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;
  border-radius:11px;background:var(--hover);border:1px solid var(--line-1);margin:0}
.home-screen .plan-feats{display:grid;gap:11px;margin:0;padding:0;list-style:none}
.home-screen .plan-feats li{
  display:flex;align-items:flex-start;gap:10px;
  font-size:14.5px;line-height:1.5;color:var(--fg)}
.home-screen .plan-feats li svg{
  flex:0 0 17px;width:17px;height:17px;margin-top:2px;color:var(--ok)}
.home-screen .mk-more{
  display:inline-flex;align-items:center;gap:7px;background:none;border:0;
  padding:0;font-size:14.5px;font-weight:620;color:var(--accent);cursor:pointer}
.home-screen .mk-more:hover{gap:11px}

/* the app frame itself: give it presence instead of letting it float */
.home-screen .demo-shell,.home-screen .dash-art,.home-screen .focus-art{
  border:1px solid var(--line-2);border-radius:14px;overflow:hidden;
  box-shadow:0 22px 50px -28px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.06);
  background:var(--panel)}
.home-screen .feat-visual{min-width:0}
.home-screen .feat-visual>*{width:100%}

/* ── CARD GRIDS ───────────────────────────────────────────────────────────
   Equal columns, equal heights, one padding value. Ragged card heights are most
   of what made these sections look unfinished. */
.home-screen .land-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));
  gap:var(--mk-gap);align-items:stretch}
.home-screen .land-card{
  display:flex;flex-direction:column;align-items:flex-start;gap:12px;
  height:100%;text-align:left;padding:26px 24px;
  border:1px solid var(--line-2);border-radius:14px;background:var(--panel);
  cursor:pointer;transition:border-color .14s,transform .14s}
@media (hover:hover){
  .home-screen .land-card:hover{border-color:var(--accent);transform:translateY(-2px)}
}
.home-screen .land-card h3,.home-screen .land-card b{
  font-size:17px;line-height:1.3;font-weight:660;letter-spacing:-.012em;margin:0;color:var(--fg)}
.home-screen .land-card p,.home-screen .land-card span{
  font-size:14px;line-height:1.58;color:var(--muted);margin:0}
.home-screen .land-card .land-ic{
  width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:11px;background:var(--hover);border:1px solid var(--line-1)}

/* small pill tiles ("and the rest of the toolbox") */
.home-screen .mk-mini{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:13px 15px;border:1px solid var(--line-1);border-radius:11px;
  background:var(--panel);font-size:14px;font-weight:520;color:var(--fg);
  text-align:left;cursor:pointer}
@media (hover:hover){.home-screen .mk-mini:hover{border-color:var(--line-3);background:var(--hover)}}
.home-screen .mk-mini svg{flex:0 0 17px;width:17px;height:17px;color:var(--muted)}

/* ── STAT BAND ────────────────────────────────────────────────────────────
   Numbers are the loudest thing in the band; their labels must not compete. */
.home-screen .stat-band{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:var(--mk-gap);padding:clamp(26px,3vw,38px) clamp(22px,3vw,34px);
  border:1px solid var(--line-2);border-radius:16px;background:var(--panel)}
.home-screen .stat-band b,.home-screen .stat-band-v{
  display:block;font-size:clamp(26px,3.2vw,38px);line-height:1.05;font-weight:740;
  letter-spacing:-.028em;color:var(--fg)}
.home-screen .stat-band span,.home-screen .stat-band-l{
  display:block;font-size:13.5px;line-height:1.45;color:var(--muted);margin-top:8px}

/* ── CLOSING CTA ──────────────────────────────────────────────────────────*/
.home-screen .land-cta{text-align:center}
.home-screen .land-cta h2{
  font-size:clamp(26px,3.4vw,40px);line-height:1.12;font-weight:740;
  letter-spacing:-.026em;margin:0 auto;max-width:18ch;text-wrap:balance;color:var(--fg)}
.home-screen .land-cta p{
  font-size:15.5px;line-height:1.6;color:var(--muted);margin:16px auto 26px;max-width:56ch}

/* ── FAQ + FOOTER ─────────────────────────────────────────────────────────*/
.home-screen .faq-q{font-size:16px;font-weight:600;line-height:1.4;color:var(--fg)}
.home-screen .faq-a{font-size:14.5px;line-height:1.65;color:var(--muted);max-width:70ch}
.home-screen .mk-foot,.home-screen footer{
  max-width:var(--mk-max);margin-inline:auto;
  padding:clamp(40px,5vw,64px) clamp(20px,5vw,32px);
  border-top:1px solid var(--line-1)}

/* ── PHONE ────────────────────────────────────────────────────────────────*/
@media (max-width:860px){
  .home-screen .feat-row{grid-template-columns:1fr;gap:26px;padding-block:34px}
  .home-screen .feat-row.flip>.feat-copy,.home-screen .feat-row.flip>.feat-visual{order:0}
  .home-screen .mk-hero{text-align:left}
  .home-screen .home-h1,.home-screen .home-sub{margin-inline:0}
  .home-screen .mk-hero-acts{justify-content:flex-start}
  .home-screen .land-cta{text-align:center}
}

/* ── SEEN ON SCREEN, FIXED ────────────────────────────────────────────────
   Two things only a screenshot showed. */

/* 1. The hero already pads its own bottom, and the first .land-sec then adds a
      full section beat on top — roughly 150px of nothing between the sub-headline
      and the stat band. A hero and the block under it are one composition. */
.home-screen .mk-hero+.land-sec,
.home-screen .mk-hero+.mk-band-sec{padding-top:0}

/* 2. The stat band has SIX items. At minmax(150px,1fr) the sixth wrapped alone
      onto a second row, which looks like a mistake rather than a layout. Six
      across on a wide page, three-by-two when there isn't room — never five
      and a stray. */
.home-screen .stat-band{grid-template-columns:repeat(6,minmax(0,1fr))}
.home-screen .stat-band-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.home-screen .stat-band b,.home-screen .stat-band-v{font-size:clamp(20px,2.3vw,30px)}
.home-screen .stat-band span,.home-screen .stat-band-l{font-size:12.5px;margin-top:6px}
.home-screen .stat-band>*{text-align:center;min-width:0}
@media (max-width:900px){
  .home-screen .stat-band,.home-screen .stat-band-6{grid-template-columns:repeat(3,minmax(0,1fr));
    row-gap:26px}
}
@media (max-width:520px){
  .home-screen .stat-band,.home-screen .stat-band-6{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 3. Keep the feature-row eyebrow icon consistent — every row gets one or none,
      never a mix, which reads as a missing asset. */
.home-screen .feat-copy .land-ic{margin-bottom:2px}
.home-screen .feat-copy>.land-ic+h3{margin-top:14px}
/* ── MOBILE NAV: THE LINKS WERE BEING CLIPPED ─────────────────────────────
   Measured at 375px: .mk-links is 326px wide inside a 355px nav, but its own
   children sit at x -83 and x 381-459 — outside the box, clipped mid-word. That
   is the "olutions | Integrations | Pricing | Resource" strip in the screenshot.
   The nav wraps brand / links / auth onto rows but the LINK row has more content
   than fits and no way to reach it.
   Fix: the link row scrolls horizontally on purpose, edge to edge, with the
   scrollbar hidden and padding so the first and last link are never half-cut. */
@media (max-width:860px){
  .home-screen .mk-nav,.home-screen .site-nav{
    flex-wrap:wrap;row-gap:10px;padding:10px 14px;align-items:center}
  .home-screen .mk-nav .brand{order:1;flex:1 1 auto;min-width:0}
  .home-screen .mk-nav .site-nav-links{order:2;flex:0 0 auto;margin-left:auto}
  .home-screen .mk-nav .mk-links{
    order:3;flex:1 0 100%;
    display:flex;flex-wrap:nowrap;gap:6px;
    overflow-x:auto;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;-ms-overflow-style:none;
    margin:0 -14px;padding:2px 14px 4px;scroll-padding-inline:14px}
  .home-screen .mk-nav .mk-links::-webkit-scrollbar{display:none}
  .home-screen .mk-nav .mk-links>*{flex:0 0 auto;white-space:nowrap}
  .home-screen .mk-plain{padding:7px 10px;font-size:14px;border-radius:8px}
  .home-screen .mk-nav .btn{height:38px;padding:0 14px;font-size:14px}
}

/* ── MOBILE: THE APP FRAME MUST NOT BE SQUEEZED TO NOTHING ────────────────
   A dashboard shrunk to 327px is unreadable. Let it keep a usable width and pan
   sideways inside its own frame, the way a real screenshot would. */
@media (max-width:860px){
  .home-screen .dash-art,.home-screen .demo-shell,.home-screen .focus-art{
    overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .home-screen .dash-art .da-body{min-width:660px}
  .home-screen .demo-shell .fa-grid{min-width:520px}
  .home-screen .dash-art::-webkit-scrollbar,
  .home-screen .demo-shell::-webkit-scrollbar{height:6px}
  .home-screen .dash-art::-webkit-scrollbar-thumb,
  .home-screen .demo-shell::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:99px}
  /* the art tag wraps to two lines in a narrow bar and pushes the title around */
  .home-screen .art-tag{font-size:9.5px;letter-spacing:.05em;white-space:nowrap}
  .home-screen .demo-title{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* The link strip inherited justify-content:center from the desktop nav. When
   centred flex content overflows its box it spills EQUALLY both ways, and the
   left overflow cannot be scrolled to — measured: scrollLeft 0 with "Features"
   sitting at x -58, permanently unreachable. A scrolling strip must start at its
   start. (margin-inline auto on the children causes the same thing.) */
@media (max-width:860px){
  .home-screen .mk-nav .mk-links{justify-content:flex-start!important}
  .home-screen .mk-nav .mk-links>*{margin-inline:0!important}
}
/* ── MEGA-MENU ────────────────────────────────────────────────────────────
   Both reference sites expose product depth in the nav instead of hiding it one
   click deep. Desktop: a panel of grouped columns under the trigger. Mobile:
   the same data as a stacked accordion — no hover, no fly-outs, thumb-reachable. */
.home-screen .mk-navwrap{position:sticky;top:0;z-index:40}
.home-screen .mk-top{
  display:inline-flex;align-items:center;gap:5px;
  padding:8px 11px;border:0;background:none;border-radius:9px;cursor:pointer;
  font-size:14.5px;font-weight:520;color:var(--fg);white-space:nowrap}
.home-screen .mk-top .mk-caret{display:flex;width:14px;height:14px;opacity:.5;transition:transform .15s}
.home-screen .mk-top.open .mk-caret{transform:rotate(180deg)}
@media (hover:hover){.home-screen .mk-top:hover{background:var(--hover)}}
.home-screen .mk-top.open{background:var(--hover)}
.home-screen .mk-top.on{font-weight:640}

.home-screen .mk-mega-host{display:none}
.home-screen .mk-mega-host.on{display:block}
.home-screen .mk-mega{
  max-width:var(--mk-max);margin:6px auto 0;
  background:var(--panel);border:1px solid var(--line-2);border-radius:14px;
  box-shadow:0 24px 54px -26px rgba(0,0,0,.42);
  padding:22px 24px 16px}
.home-screen .mk-mega-cols{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
  gap:8px 30px}
.home-screen .mk-mega-h{
  font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--muted);margin:0 0 10px;padding:0 10px}
.home-screen .mk-mega-item{
  display:block;padding:9px 10px;border-radius:9px;text-decoration:none}
.home-screen .mk-mega-item b{
  display:block;font-size:14.5px;font-weight:600;line-height:1.35;color:var(--fg)}
.home-screen .mk-mega-item span{
  display:block;font-size:12.5px;line-height:1.45;color:var(--muted);margin-top:2px}
@media (hover:hover){
  .home-screen .mk-mega-item:hover{background:var(--hover)}
  .home-screen .mk-mega-item:hover b{color:var(--accent)}
}
.home-screen .mk-mega-foot{
  margin-top:14px;padding-top:13px;border-top:1px solid var(--line-1)}
.home-screen .mk-mega-all{
  font-size:13.5px;font-weight:620;color:var(--accent);text-decoration:none}

/* MOBILE: one stacked column, scrolls with the page, no hover anywhere */
@media (max-width:860px){
  .home-screen .mk-navwrap{position:relative}
  .home-screen .mk-top{padding:7px 10px;font-size:14px}
  .home-screen .mk-mega{
    margin:8px 0 0;border-radius:12px;padding:16px 14px 12px;
    max-height:min(66vh,520px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .home-screen .mk-mega-cols{grid-template-columns:1fr;gap:6px}
  .home-screen .mk-mega-col+.mk-mega-col{
    margin-top:14px;padding-top:14px;border-top:1px solid var(--line-1)}
  .home-screen .mk-mega-item{padding:11px 10px}
  .home-screen .mk-mega-item span{display:none}   /* the label is enough on a phone */
}
/* ── NAV MUST FIT AT MID WIDTHS ───────────────────────────────────────────
   At 982px the brand + six nav items + Login + CTA overflowed, and because the
   link row can scroll the first item ("Features") was clipped to "atures" — the
   same unreachable-left-overflow problem as on mobile, just at desktop size.
   Between the mobile breakpoint and 1150px everything tightens so it fits, and
   the row is explicitly told not to scroll. */
@media (min-width:861px){
  .home-screen .mk-nav .mk-links{
    overflow:visible!important;flex-wrap:nowrap;justify-content:flex-start;
    gap:2px;min-width:0}
  .home-screen .mk-nav{gap:10px;flex-wrap:nowrap}
  .home-screen .mk-nav .brand{flex:0 0 auto}
  .home-screen .mk-nav .site-nav-links{flex:0 0 auto;margin-left:auto}
}
@media (min-width:861px) and (max-width:1150px){
  .home-screen .mk-top,.home-screen .mk-plain{padding:8px 7px;font-size:13.5px}
  .home-screen .mk-top .mk-caret{width:12px;height:12px}
  .home-screen .mk-nav .brand-name{font-size:15px}
  .home-screen .mk-nav .btn{height:36px;padding:0 13px;font-size:13.5px}
  .home-screen .nav-login{font-size:13.5px}
  .home-screen .mk-nav{padding-inline:14px}
}