
:root { --muted:#a1a6ae; }
[data-theme="light"] { --muted:#536173; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid var(--accent-bright); outline-offset:5px; }
header { position:relative; gap:24px; }
header .logo-mark { flex-shrink:0; }
header nav { gap:16px; font-size:13px; flex-wrap:nowrap; }
.menu-toggle { display:none; background:var(--card-bg); color:var(--text); border:1px solid var(--line); border-radius:10px; min-height:44px; padding:0 14px; font:inherit; align-items:center; gap:12px; cursor:pointer; }
.hero { grid-template-columns:1.1fr 1fr; gap:64px; padding-top:50px; padding-bottom:70px; align-items:center; }
.hero h1 { font-size:clamp(2.6rem,4vw,3.5rem); line-height:1.05; letter-spacing:-.055em; max-width:18ch; margin:18px 0; }
.hero .lede { font-size:17px; line-height:1.75; max-width:46ch; }
.hero-proofline { color:var(--muted); font-size:14px; line-height:1.65; max-width:45ch; margin:18px 0 24px; }
.hero .cta-row { gap:10px; }
.hero .status { margin-top:20px; font-size:12px; line-height:1.6; }
.real-product-stage { position:relative; display:flex; flex-direction:column; align-items:center; padding:20px 0 8px; isolation:isolate; }
.real-product-stage::before { content:''; position:absolute; inset:10% -15%; z-index:-1; background:radial-gradient(ellipse, var(--accent-soft), transparent 70%); }
.product-stage-note { color:var(--muted); font-size:11px; letter-spacing:.07em; text-transform:uppercase; display:flex; align-items:center; gap:8px; margin-bottom:18px; }
.product-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); }
.hero-app-frame { width:min(100%,285px); display:block; border:1px solid var(--accent-line); padding:7px; background:#1b130e; border-radius:28px; box-shadow:0 25px 80px #0003; }
.stage-caption { position:absolute; bottom:30px; right:-12px; max-width:215px; padding:18px; border:1px solid var(--accent-line); background:var(--device-bg); border-radius:16px; box-shadow:0 12px 40px #0002; }
.stage-caption>span { display:block; color:var(--accent); font-size:9px; letter-spacing:.09em; margin-bottom:8px; }
.stage-caption strong { display:block; font-size:17px; line-height:1.3; }
.stage-caption>a { display:block; margin-top:12px; color:var(--accent); font-size:12px; }
.audience-section { padding:0 0 64px; }
.audience-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.audience-card { display:flex; flex-direction:column; align-items:flex-start; padding:30px; border:1px solid var(--line); border-radius:20px; color:var(--text); background:var(--card-bg); text-decoration:none; }
.audience-card:hover { border-color:var(--accent-line); text-decoration:none; }
.audience-card h2 { font-size:25px; line-height:1.25; margin:12px 0; max-width:22ch; }
.audience-card p { color:var(--muted); font-size:15px; line-height:1.7; margin:0 0 24px; max-width:46ch; }
.audience-link { color:var(--accent); font-weight:600; font-size:14px; margin-top:auto; }
.app-gallery--pair { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:820px; margin-inline:auto; gap:48px; }
.more-screens { border-top:1px solid var(--line); margin-top:32px; padding-top:20px; }
.more-screens summary { cursor:pointer; color:var(--accent); font-weight:600; padding:16px 0; }
.gallery-next { border-top:1px solid var(--line); margin-top:48px; padding-top:40px; }
.gallery-next p { color:var(--muted); margin:14px 0 24px; }
@media(max-width:1000px) { header { gap:12px; } header nav { gap:10px; font-size:12px; } .hero { gap:32px; } .stage-caption { right:-6px; } }
@media(max-width:880px) {
 header { flex-wrap:nowrap; padding:18px 0; min-height:76px; }
 .header-actions { width:auto; margin-left:auto; gap:10px; }
 .has-menu .menu-toggle { display:flex; }
 .hero { grid-template-columns:1fr; padding-top:32px; padding-bottom:44px; gap:24px; text-align:left; }
 .hero h1 { margin-inline:0; max-width:17ch; font-size:clamp(2.7rem,8vw,3.8rem); }
 .hero .lede,.hero-proofline { max-width:52ch; margin-left:0; }
 .hero .cta-row { justify-content:flex-start; }
 .hero-trust { justify-content:flex-start; }
 .real-product-stage { max-width:400px; width:100%; margin:8px auto 0; }
 .stage-caption { right:0; bottom:35px; }
 .audience-grid { gap:14px; }
 .audience-card { padding:22px; }
}
@media(max-width:560px) {
 .hero h1 { font-size:clamp(2.3rem,9.6vw,3rem); }
 .hero .lede { font-size:16px; }
 .hero .btn { width:100%; justify-content:center; text-align:center; }
 .hero .cta-row { width:100%; }
 .hero-app-frame { width:245px; }
 .stage-caption { max-width:180px; padding:14px; right:0; bottom:24px; }
 .stage-caption strong { font-size:15px; }
 .audience-grid { grid-template-columns:1fr; }
 .audience-section { padding-bottom:38px; }
 .app-gallery--pair { grid-template-columns:1fr; }
 .app-gallery-section h1 { font-size:clamp(2rem,8vw,2.6rem); line-height:1.1; }
}

.hero-copy { align-items:flex-start; text-align:left; }
.hero .btn { min-height:46px; display:inline-flex; align-items:center; justify-content:center; }
.hero .lede { margin-bottom:22px; }
@media(max-width:560px) { .hero-trust { justify-content:flex-start; text-align:left; } .hero .eyebrow { font-size:9px; letter-spacing:.07em; } }

/* TENSCOREE - unified mobile navigation */
@media (max-width: 880px) {
  html.has-menu header {
    position: relative;
    z-index: 1000;
  }

  html.has-menu .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  html.has-menu header nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    z-index: 1001;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #101114;
    color: var(--text, #fff);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,.55);
    box-sizing: border-box;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 1;
  }

  html.has-menu header nav.is-open {
    display: flex;
  }

  html.has-menu header nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 15px;
    color: var(--text, #fff);
    background: transparent;
    font-size: 15px;
    border-radius: 9px;
    box-sizing: border-box;
  }

  html.has-menu header nav a:hover,
  html.has-menu header nav a.is-active {
    background: var(--accent-soft);
  }
}

/* Mobile menu: maintain contrast in light mode */
@media (max-width: 880px) {
  html[data-theme="light"].has-menu header nav {
    background: #101114;
    border-color: #33363d;
  }

  html[data-theme="light"].has-menu header nav a {
    color: #ffffff !important;
  }

  html[data-theme="light"].has-menu header nav a.is-active {
    color: #ffffff !important;
    background: rgba(219, 108, 53, 0.28);
  }

  html[data-theme="light"].has-menu header nav a:hover {
    color: #ffffff !important;
    background: rgba(219, 108, 53, 0.2);
  }
}


/* TENSCOREE FINAL MOBILE NAVIGATION STACKING FIX */

/* Allow the header to stack above sections outside its wrapper. */
body > .wrap {
    z-index: auto;
}

@media (max-width: 880px) {
    html.has-menu body > .wrap > header {
        position: relative;
        z-index: 10000;
    }

    html.has-menu body > .wrap > header nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: auto;
        z-index: 10001;
        background: #101114;
        color: #fff;
        border: 1px solid #393b42;
        border-radius: 14px;
        box-shadow: 0 18px 45px rgba(0,0,0,.65);
        opacity: 1;
        visibility: visible;
    }

    html.has-menu body > .wrap > header nav:not(.is-open) {
        display: none;
    }

    html.has-menu body > .wrap > header nav.is-open {
        display: flex;
        flex-direction: column;
    }

    html.has-menu body > .wrap > header nav a {
        color: #fff !important;
        min-height: 48px;
    }

    html.has-menu body > .wrap > header nav a.is-active,
    html.has-menu body > .wrap > header nav a:hover {
        background: rgba(219,108,53,.25);
    }
}
