/* Staffynex — shared styles */
:root {
  --black: #000000;
  --white: #ffffff;
  --mist: #eef0f5;
  --line: #d9dde6;
  --slate: #566072;
  --ink: #0d0f14;
  --blue: #1f4fe0;
  --blue-deep: #1638b0;
  --teal: #17a9b6;
  --radius-ui: 14px;
  --radius-btn: 10px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--slate); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 600 17px/1 var(--font); text-decoration: none;
  border-radius: var(--radius-btn); border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--black); }

/* Header */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 16px; color: rgba(255,255,255,.82); }
.nav a:hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.menu-toggle svg { display: block; }
@media (max-width: 860px) {
  .site-header .wrap { height: 60px; }
  .logo img { height: 22px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 8px var(--gutter) 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: 18px; min-height: 52px; border-bottom: 0; }
}

/* Sections */
section { padding: clamp(72px, 10vw, 136px) 0; }
.on-dark { background: var(--black); color: var(--white); }
.on-mist { background: var(--mist); }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.72); padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 22px; width: auto; margin-bottom: 16px; }
.site-footer a { text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .legal a { display: inline; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
/* Product UI components (shared) */
/* Product window */
.app {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-ui);
  box-shadow: 0 30px 60px -30px rgba(13, 15, 20, .35), 0 2px 6px rgba(13, 15, 20, .06);
  overflow: hidden; font-size: 15px;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.app-bar span { font-size: 13px; color: var(--slate); font-weight: 500; }
.app-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 430px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 12px; line-height: 1.45; }
.msg .who { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.msg-user .who { color: rgba(255,255,255,.62); }
.msg-ai { align-self: flex-start; background: var(--mist); border-bottom-left-radius: 4px; }
.record { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin-top: 10px; font-size: 14px; }
.record dt { color: var(--slate); }
.record dd { margin: 0; font-weight: 600; }
.prepared { border: 1.5px solid var(--blue); border-radius: 12px; padding: 14px 15px; align-self: stretch; }
.prepared strong { display: block; font-size: 14.5px; }
.prepared p { font-size: 14px; color: var(--slate); margin-top: 4px; }
.prepared .row { display: flex; gap: 8px; margin-top: 12px; }
.chip { font: 600 13.5px/1 var(--font); padding: 9px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--white); }
.chip-go { background: var(--blue); border-color: var(--blue); color: var(--white); }
.app-foot { font-size: 12.5px; color: var(--slate); padding: 0 20px 18px; }

.item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.flag { width: 10px; height: 10px; border-radius: 50%; }
.flag.wait { background: #e3a008; } .flag.block { background: #d6453d; } .flag.due { background: var(--teal); }
.item b { display: block; font-size: 15px; }
.item small { color: var(--slate); font-size: 13.5px; }
.item .tag { font-size: 12.5px; font-weight: 600; color: var(--slate); white-space: nowrap; }


.nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cta-band { padding: clamp(64px, 8vw, 104px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--slate); margin-top: 16px; max-width: 30em; }
.on-dark .cta-band p, .cta-band.on-dark p { color: rgba(255,255,255,.72); }
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; }

/* Product examples in motion (assets/play.js) */
[data-play] { position: relative; }
[data-play] .app-body { position: relative; }
.pl-t { transition: opacity .4s ease, transform .4s ease; }
.pl-off { opacity: 0; transform: translateY(8px); }
.pl-caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: plBlink .9s steps(1) infinite; }
@keyframes plBlink { 50% { opacity: 0; } }
.pl-composer { display: flex; align-items: center; gap: 10px; margin: 0 20px 14px; padding: 8px 8px 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); min-height: 46px; }
.pl-field { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-field:empty::before { content: attr(data-placeholder); color: #9aa2b1; }
.pl-field.pl-caret:empty::before { content: none; }
.pl-send { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--white); display: grid; place-items: center; flex: none; transition: transform .15s ease, background .15s ease; }
.pl-dots { position: absolute; left: 20px; display: flex; gap: 5px; padding: 14px 16px; background: var(--mist); border-radius: 12px; border-bottom-left-radius: 4px; }
.pl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); opacity: .4; display: block; animation: plDot 1s infinite; }
.pl-dots i:nth-child(2) { animation-delay: .15s; } .pl-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes plDot { 50% { opacity: 1; transform: translateY(-2px); } }
.pl-cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: transform .8s cubic-bezier(.3,.7,.2,1), opacity .3s ease; filter: drop-shadow(0 2px 3px rgba(13,15,20,.25)); }
.pl-cursor.on { opacity: 1; }
.pl-press { transform: scale(.94) !important; filter: brightness(.9); transition: transform .12s ease, filter .12s ease; }
.pl-ok { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #0d6d76; animation: plIn .35s ease; }
.pl-ok::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: #17a9b6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5'/%3E%3C/svg%3E") center no-repeat; }
.prepared.pl-done { border-color: #17a9b6; transition: border-color .3s ease; }
@keyframes plIn { from { opacity: 0; transform: translateY(4px); } }
.flag.ok { background: #17a9b6; }
.pl-oktag { color: #0d6d76 !important; }
.pl-q { font-weight: 400; }
.pl-pop { animation: plPop .35s ease; }
@keyframes plPop { 0% { transform: scale(.8); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: none; opacity: 1; } }
.box { transition: background .2s ease, box-shadow .2s ease; }
.box svg { transition: opacity .2s ease; }
.box.pl-unchecked { background: var(--white) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.box.pl-unchecked svg { opacity: 0; }
.entry.pl-new .dot { box-shadow: 0 0 0 0 rgba(23,169,182,.5); animation: plRing 1.4s ease-out infinite; }
@keyframes plRing { to { box-shadow: 0 0 0 8px rgba(23,169,182,0); } }
.tcard { transition: border-color .3s ease, background .3s ease; }
.tcard.pl-pulse { animation: plHold 1s ease-in-out infinite; }
@keyframes plHold { 50% { box-shadow: 0 0 0 4px rgba(227,160,8,.18); } }
html.js-pl:not(.pl-ready) .hero [data-play] .app-body > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .pl-cursor, .pl-dots { display: none; } }