/* Preview 7: "stage". Dark stage for the product (Halide), bright page to read on (Flighty).
   One accent (the orange from TimeSheet Pro), no gradients on text, no stars, no glass. */
:root{
  --ink:#0c0f14;        /* text on light */
  --muted:#525a66;      /* secondary text on light */
  --page:#ffffff;       /* reading background */
  --stage:#05080f;      /* dark stage */
  --stage-2:#0a1730;    /* stage, lifted (logo navy family) */
  --on-stage:#f3f6fb;   /* text on dark */
  --on-stage-muted:#a9b4c6;
  --accent:#f97316;     /* buttons and tags only */
  --accent-ink:#a8480a; /* accent as text on white (contrast 5.6:1) */
  --line:#e4e6ea;
  --serif:ui-serif,"New York","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sans:system-ui,-apple-system,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --r-phone:13.5%/6.2%;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{font-family:var(--sans);color:var(--ink);background:var(--page);-webkit-font-smoothing:antialiased;overflow-x:hidden}
.wrap{width:min(1080px,100%);margin:0 auto;padding:0 28px}
h1,h2{font-family:var(--serif);font-weight:600;letter-spacing:-0.015em;line-height:1.06;text-wrap:balance}
p{line-height:1.6}
a{color:inherit}
img{display:block;max-width:100%}

/* dark stage: top of page and the closing block */
.stage{background:radial-gradient(90% 60% at 50% 0%,var(--stage-2),var(--stage) 70%);color:var(--on-stage);text-align:center;overflow:hidden;overflow:clip}
.topbar{display:flex;justify-content:space-between;align-items:center;padding-top:20px}
.logo{height:60px}
nav{display:flex;gap:30px}
nav a{color:var(--on-stage-muted);text-decoration:none;font-size:16px;font-weight:500}
nav a:hover{color:#fff}

.hero{padding-top:52px}
.hero h1{font-size:clamp(38px,5.2vw,72px);max-width:20ch;margin:0 auto 20px}
.lede{font-size:clamp(18px,1.6vw,21px);color:var(--on-stage-muted);max-width:560px;margin:0 auto}
.actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:30px}
.btn{display:inline-flex;align-items:center;min-height:52px;padding:0 26px;border-radius:999px;font-weight:650;font-size:16px;text-decoration:none;transition:transform .18s ease,background .18s ease}
.btn:hover{transform:translateY(-2px)}
.btn.primary{background:var(--accent);color:#1a0d02}
.btn.ghost{color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.4)}
.btn:focus-visible,.textlink:focus-visible,nav a:focus-visible{outline:3px solid #7cc4ff;outline-offset:3px}

/* the product, large and central */
.lineup{position:relative;height:clamp(380px,46vw,620px);margin-top:52px}
.phone{border-radius:var(--r-phone);overflow:hidden;background:#000;box-shadow:0 0 0 6px #10141c,0 0 0 7px #2a303b}
.lineup .phone{position:absolute;left:50%;top:0}
.lineup .centre{width:clamp(230px,26vw,340px);transform:translateX(-50%);z-index:2;box-shadow:0 0 0 6px #10141c,0 0 0 7px #2a303b,0 40px 120px rgba(0,0,0,.7)}
.lineup .side{width:clamp(190px,21vw,275px);top:13%;filter:brightness(.6)}
.lineup .left{transform:translateX(-168%) rotate(-5deg)}
.lineup .right{transform:translateX(68%) rotate(5deg)}
.glow{position:absolute;left:50%;top:6%;width:min(900px,90%);height:80%;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(249,115,22,.34),rgba(47,120,255,.16) 55%,transparent);filter:blur(20px)}

/* reading sections: white, centred, one idea each */
.act{padding:130px 0 0;text-align:center}
.act:last-child{padding-bottom:130px}
.lead{max-width:640px;margin:0 auto}
.appicon{width:76px;border-radius:23%;margin:0 auto 22px;box-shadow:0 10px 28px rgba(12,15,20,.18)}
.appicon.big{width:132px}
.tag{font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink);margin-bottom:12px}
.act h2{font-size:clamp(38px,5vw,64px);margin-bottom:12px}
.sub{font-size:22px;font-weight:600;margin-bottom:16px}
.lead p:not(.tag):not(.sub){font-size:18px;color:var(--muted)}
.lead p + p:not(.sub){margin-top:12px}
.textlink{font-weight:650;text-underline-offset:4px}
.act .btn.primary{color:#1a0d02}

.pair{display:flex;justify-content:center;gap:clamp(18px,3.4vw,44px);margin-top:64px;padding:0 10px}
.pair .phone{width:clamp(150px,27vw,300px);box-shadow:0 0 0 6px #10141c,0 0 0 7px #2a303b,0 36px 70px rgba(12,15,20,.28)}
.pair .phone:first-child{margin-top:54px}
.screen{width:100%;margin-top:64px;border-radius:16px;box-shadow:0 0 0 1px var(--line),0 40px 90px rgba(12,15,20,.25)}

/* closing block, back on the stage */
.end{padding:120px 0 50px;background:radial-gradient(90% 70% at 50% 100%,var(--stage-2),var(--stage) 70%)}
.end h2{font-size:clamp(38px,5vw,64px);margin-bottom:14px}
.small{font-size:12.5px;color:#7f8a9c;margin-top:8px}
.end .actions{margin-bottom:90px}

/* gentle arrival on scroll */
.reveal{opacity:0;transform:translateY(34px);transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
.lineup .phone{animation:rise 1.1s cubic-bezier(.2,.7,.2,1) both}
.lineup .side{animation-delay:.12s}
@keyframes rise{from{opacity:0;translate:0 60px}to{opacity:1;translate:0 0}}

@media (max-width:700px){
  .topbar{flex-direction:column;gap:10px}
  .logo{height:50px}
  .hero{padding-top:44px}
  .lineup{margin-top:48px;height:400px}
  .lineup .centre{width:200px}
  .lineup .side{width:160px}
  .act{padding-top:84px}
  .act:last-child{padding-bottom:84px}
  .pair .phone:first-child{margin-top:30px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}}

/* ?still=1: no motion, so a screenshot shows the finished page */
.still *{animation:none!important;transition:none!important}

/* hero variant: a real hand holding the phone (hand.html). Sizes are in units of the photo's own width. */
.handshot{position:relative;height:clamp(420px,54vw,800px);margin-top:36px}
.handbox{--w:clamp(820px,104vw,1500px);position:absolute;left:50%;top:calc(var(--w) * -0.125);width:var(--w);aspect-ratio:1000/667;transform:translateX(-49%)}
.handbox canvas{position:absolute;inset:0;width:100%;height:100%}
.handscreen{position:absolute;left:40.45%;top:23.35%;width:17.1%;height:52.6%;object-fit:cover;object-position:top;border-radius:9.5%/4.6%}
.handshot .glow{top:0;height:90%}

/* hero variant: a photograph of the phone in someone's hands (photo.html) */
.photohero{margin-top:10px}
.photobox{position:relative;width:min(1500px,100%);margin:0 auto;aspect-ratio:1000/667;overflow:hidden;
  -webkit-mask-image:linear-gradient(transparent,#000 22%),linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(transparent,#000 22%),linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-composite:intersect}
.photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.onscreen{position:absolute;left:0;top:0;width:276px;height:600px;max-width:none;object-fit:cover;object-position:top;border-radius:30px;transform-origin:0 0;visibility:hidden}

/* scenes (scenes.html): each app gets a full-width scene that carries on from the hero; no white gaps between them */
.scene{position:relative;background:var(--stage);color:var(--on-stage);padding:110px 0;overflow:hidden;overflow:clip}
.scene.warm{background:radial-gradient(60% 70% at 78% 50%,rgba(249,115,22,.22),transparent 70%),var(--stage)}
.scene .bg{position:absolute;inset:0;background-size:cover;background-position:center;
  -webkit-mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent)}
.bg.wing{background-image:url(photo-wing.jpg)}
.bg.passport{background-image:url(photo-passport.jpg);background-position:30% 50%}
.scene .shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,8,15,.94) 0%,rgba(5,8,15,.78) 38%,rgba(5,8,15,.18) 72%,rgba(5,8,15,.1))}
.scene.flip .shade{background:linear-gradient(270deg,rgba(5,8,15,.95) 0%,rgba(5,8,15,.82) 40%,rgba(5,8,15,.25) 75%,rgba(5,8,15,.15))}
.scene .wrap{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;min-height:520px}
.scene.flip .lead{order:2}
.scene .lead{text-align:left;margin:0;max-width:500px}
.scene .appicon{margin:0 0 22px;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.scene .tag{color:#ffb066}
.scene h2{font-size:clamp(38px,5vw,64px);margin-bottom:12px}
.scene .lead p:not(.tag):not(.sub){color:#c9d3e2}
.scene .actions{justify-content:flex-start}
.duo{position:relative;display:flex;justify-content:center;gap:22px}
.duo .phone{width:clamp(150px,19vw,240px);box-shadow:0 0 0 6px #10141c,0 0 0 7px #2a303b,0 40px 80px rgba(0,0,0,.6)}
.duo .phone:first-child{margin-top:60px;align-self:flex-start}
.scene + .act{padding-top:120px}
@media (max-width:820px){
  .scene{padding:76px 0}
  .scene .wrap{grid-template-columns:1fr;gap:44px;min-height:0}
  .scene.flip .lead{order:0}
  .scene .shade,.scene.flip .shade{background:rgba(5,8,15,.78)}
}

/* company home (home.html): what TJ Labs does, as five doors; the picture follows the door you point at */
.home .stage:first-child{background:radial-gradient(70% 40% at 50% 0%,var(--stage-2),var(--stage) 70%)}
.home .hero{padding-top:64px;text-align:left}
.home .wrap{width:min(1280px,100%)}
.home .hero h1{margin:0 0 16px;max-width:17ch;font-size:clamp(38px,5.4vw,76px)}
.home .hero .lede{margin:0;font-size:clamp(19px,1.8vw,24px)}
.home nav{gap:26px}
.index{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:start;padding-top:64px;padding-bottom:110px;text-align:left}
.row{display:grid;grid-template-columns:44px 1fr 40px;column-gap:8px;align-items:baseline;padding:22px 0;border-top:1px solid rgba(255,255,255,.14);text-decoration:none;color:var(--on-stage-muted);transition:color .25s ease,padding .25s ease}
.row:last-child{border-bottom:1px solid rgba(255,255,255,.14)}
.row .n{font-size:13px;font-weight:600;letter-spacing:.08em;color:#6f7b8f}
.row .t{font-family:var(--serif);font-weight:600;font-size:clamp(30px,3.6vw,50px);letter-spacing:-0.012em;line-height:1.1}
.row .go{font-size:26px;text-align:right;opacity:0;transform:translateX(-10px);transition:opacity .25s ease,transform .25s ease;color:var(--accent)}
.row .d{grid-column:2;font-size:16px;line-height:1.5;color:#93a0b4;max-width:420px;margin-top:6px}
.row .d:empty{display:none}
.row.on,.row:hover{color:#fff;padding-left:10px}
.row.on .go,.row:hover .go{opacity:1;transform:none}
.row.on .n{color:var(--accent)}
.viewer{position:sticky;top:24px;aspect-ratio:4/5;max-height:660px;width:100%;border-radius:22px;overflow:hidden;background:#0a101c;box-shadow:0 50px 120px rgba(0,0,0,.6)}
.pane{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}
.pane.on{opacity:1}
.pane>img{width:100%;height:100%;object-fit:cover}
.pane>img.leftfit{object-position:22% 50%}
.viewer .photobox{position:absolute;top:0;left:50%;height:100%;width:auto;aspect-ratio:1000/667;margin:0;transform:translateX(-48.7%);-webkit-mask-image:none;mask-image:none}
.pane.blank{display:grid;place-content:center;text-align:center;background:radial-gradient(70% 60% at 50% 40%,var(--stage-2),#070b14)}
.pane.blank span{font-family:var(--serif);font-size:44px;color:#3d4a61}
.pane.blank small{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#3d4a61;margin-top:8px}
@media (max-width:860px){
  .home .topbar{flex-direction:column;gap:10px}
  .home nav{flex-wrap:wrap;justify-content:center;gap:10px 18px}
  .index{grid-template-columns:1fr;gap:36px;padding-top:44px;padding-bottom:70px}
  .viewer{position:relative;top:0;max-height:none;aspect-ratio:4/3;order:-1}
}

.home .hero .about{margin-top:26px;max-width:600px;font-size:18px;color:#c9d3e2}

/* company home: a computer behind the headline (everything TJ Labs does starts at one) */
.home .stage:first-child{position:relative}
.herobg{position:absolute;top:0;right:0;width:min(1100px,78%);height:720px;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 45%),linear-gradient(transparent 12%,#000 19%,#000 60%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 45%),linear-gradient(transparent 12%,#000 19%,#000 60%,transparent);mask-composite:intersect;opacity:.9}
.home .topbar,.home .hero,.home .index{position:relative}
@media (max-width:860px){.herobg{width:100%;height:420px;opacity:.45}}

/* the laptop photo and what is shown on its screen share one box, so the screen overlay stays lined up at any width */
.herobox{position:absolute;top:78px;right:0;width:100%;min-width:960px;aspect-ratio:1000/667}
.onlaptop{position:absolute;left:0;top:0;width:640px;height:400px;overflow:hidden;background:#0b1020;transform-origin:0 0;visibility:hidden}
.onlaptop img{position:absolute;left:0;top:47%;width:100%;max-width:none}

.home .hero .about{margin-top:6px}
.home .hero .about{margin-top:24px}

/* narrow windows: no shared picture panel (it would sit above the list and change out of sight); each area carries its own picture instead */
.row .thumb{display:none}
@media (max-width:860px){
  .viewer{display:none}
  .row{grid-template-columns:34px 1fr 96px;align-items:center}
  .row .thumb{display:block;grid-column:3;grid-row:1/3;width:96px;height:96px;object-fit:cover;border-radius:14px}
  .row .d{grid-column:2}
  .row .go{display:none}
  .row.on,.row:hover{padding-left:0}
}

/* TJ's rule: a picture only while an area is hovered; nothing otherwise */
.viewer{opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.viewer.live{opacity:1;transform:none}
.pane{transition:opacity .25s ease}
/* the panel beside the chat is about 800px wide: keep list and picture side by side there too */
@media (min-width:700px) and (max-width:860px){
  .index{grid-template-columns:1.1fr .9fr;gap:28px}
  .viewer{display:block;position:sticky;top:20px;order:0;aspect-ratio:4/5;max-height:none}
  .row{grid-template-columns:34px 1fr 30px;align-items:baseline}
  .row .thumb{display:none}
  .row .go{display:block}
  .row.on,.row:hover{padding-left:8px}
}
@media (max-width:699px){.viewer{display:none}}

/* the picture sits level with the hovered row (home.js sets --y) and is never taller than the window */
.viewer,.viewer.live{position:relative;top:0;transform:translateY(var(--y,0px));max-height:min(660px,calc(100vh - 32px))}
.viewer{transition:opacity .25s ease}
@media (min-width:700px) and (max-width:860px){.viewer{position:relative;top:0;max-height:min(660px,calc(100vh - 32px))}}

/* TJ's choice: the hover picture opens beside the row being hovered and stays attached to it (it moves with the page like the text, nothing slides). */
.viewer,.viewer.live{position:relative;top:0;aspect-ratio:4/3;height:auto;max-height:none;width:100%;transform:translateY(var(--y,0px));transition:opacity .2s ease}
@media (min-width:700px) and (max-width:860px){.viewer{aspect-ratio:4/3;max-height:none}}
/* Networking: the dashboard is shown whole. The tile takes the picture's own shape (1600 x 920) instead of cropping it. */
.viewer:has(.pane.on[data-pane="lab"]){aspect-ratio:1600/920}
.pane>img.leftfit{object-fit:contain;object-position:50% 50%}
/* Wide screens: the rows start below the laptop photo (it ends 720px down), so a hover picture never sits on top of it. */
@media (min-width:861px){.home .hero{min-height:560px}.home .index{padding-top:72px}}
/* Less empty space between the last row and Get in touch (was 110px + 120px). */
.home .index{padding-bottom:48px}.home .end{padding-top:72px}

/* Inside pages (apps.html and the ones to come): same column width as the front page, and the current page marked in the menu. */
.page .wrap{width:min(1280px,100%)}
.page nav a[aria-current="page"]{color:#fff}
.page nav{gap:26px}
@media (max-width:860px){.page .topbar{flex-direction:column;gap:10px}.page nav{flex-wrap:wrap;justify-content:center;gap:10px 18px}}
/* The phone photo fades out at the bottom as well as the top and sides, so it blends into the section below. */
.page .photohero .photobox{-webkit-mask-image:linear-gradient(transparent,#000 22%,#000 70%,transparent 98%),linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(transparent,#000 22%,#000 70%,transparent 98%),linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-composite:intersect}
/* Apple's own "Download on the App Store" badge (official artwork, unaltered; Apple asks for at least 40px high with clear space around it). */
.storebadge{display:inline-block;line-height:0;border-radius:9px}
.storebadge img{height:50px;width:auto;max-width:none}
.storebadge:focus-visible{outline:3px solid #7cc4ff;outline-offset:3px}
/* Small print under an app's description (EU Tracker: the count is a guide). */
.page .scene .lead p.note{font-size:14px;color:#93a0b4;margin-top:14px}
/* Licensed photographs behind the Flight Log and EU Tracker sections (Adobe Stock 323800235 and 364210417). */
.page .bg.wing{background-image:url(photo-wing.jpg)}
.page .bg.passport{background-image:url(photo-passport.jpg)}
/* EU Tracker: the photo sits higher, so the word PASSPORT on the passport falls below the small print instead of behind it. */
.page .bg.passport{background-position:30% 12%}
/* EU Tracker: the darkening behind the text reaches the middle of the section, so the lettering on the passport never shows through the words. */
@media (min-width:821px){.page .scene.flip .shade{background:linear-gradient(270deg,rgba(5,8,15,.96) 0%,rgba(5,8,15,.94) 50%,rgba(5,8,15,.3) 72%,rgba(5,8,15,.15))}}
/* EU Tracker on narrow screens: the photo is darkened more, for the same reason. */
@media (max-width:820px){.page .scene.flip .shade{background:rgba(5,8,15,.9)}}
/* Links in the small print (TimeSheet Pro: Privacy and Support). */
.page .scene .lead p.note a{color:#c9d3e2;text-underline-offset:3px}
.page .scene .lead p.note a:hover{color:#fff}

/* Published site additions (17/11/2026) */
div.row{cursor:default}                                  /* areas that have no page of their own yet */
.row,.scene,#contact{scroll-margin-top:16px}
.end .small a{color:inherit;text-underline-offset:3px}
.end .small a:hover{color:#fff}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:10;background:#fff;color:#000;padding:8px 12px;border-radius:8px}
