/* Product and pricing pages: same dark survey-glass language as the home page */
body.subpage { background: var(--navy-1); color: var(--on-dark); }
.product { background-color: var(--navy-1);
  background-image: linear-gradient(rgba(127,211,219,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(127,211,219,.045) 1px, transparent 1px); background-size: 28px 28px; }
.p-hero { padding: 90px 0 60px; position: relative;
  background: radial-gradient(900px 500px at 75% 30%, rgba(47,184,194,.10), transparent 60%), radial-gradient(800px 420px at 15% 10%, rgba(142,44,110,.18), transparent 60%); }
.p-hero .kicker { color: var(--thread); }
.p-hero h1 { font: 800 clamp(40px, 5.6vw, 76px)/1 var(--head); letter-spacing: -.045em; margin: 16px 0 16px; color: #fff; max-width: 900px; }
.p-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--thread), #F0CF8A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero .punch { max-width: 640px; }
.mod-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 44px; padding: 5px; border-radius: 14px; width: fit-content; max-width: 100%;
  background: linear-gradient(180deg, #0A1119, #0E1621); box-shadow: inset 0 2px 5px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.04); }
.mod-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; text-decoration: none; font: 600 13.5px/1 var(--body); color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 60%), var(--mc); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.3); transition: transform .12s, filter .2s; }
.mod-pills a:hover { filter: brightness(1.1); transform: translateY(-1px); }
.mod-pills a:active { transform: translateY(1px); }
.mod-pills a i { width: 7px; height: 7px; border-radius: 50%; background: var(--thread); }

/* screenshots in a browser frame, tilted in 3D */
.shot { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #0E1621; border: 1px solid #2B3C53;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03), inset 0 1px 0 rgba(255,255,255,.06); transition: transform .5s var(--ease), box-shadow .4s; transform-style: preserve-3d; }
.shot img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: linear-gradient(180deg, #1B2A3D, #13213A); border-bottom: 1px solid #22324A; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A4A60; }
.shot-bar i:nth-child(1) { background: #E06B6B; } .shot-bar i:nth-child(2) { background: #E8B14A; } .shot-bar i:nth-child(3) { background: #3FB27F; }
.shot-bar span { margin-left: 8px; font: 600 11.5px/1 var(--body); color: var(--on-dark-2); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 50%), rgba(255,255,255,.14), transparent 60%); }
.shot.tilting::after { opacity: 1; }
.hero-shot { transform: perspective(1600px) rotateX(10deg); transform-origin: 50% 0; }
.hero-shot.tilting { transform: none; }

/* module sections */
.mod-sec { padding: 90px 0 30px; border-top: 1px solid #16233A; position: relative; }
.mod-sec::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: linear-gradient(90deg, transparent, var(--mc) 20%, color-mix(in srgb, var(--mc) 45%, #fff) 50%, var(--mc) 80%, transparent); opacity: .8; }
.mod-top { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.mod-top .mod-h { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.mod-top .mod-h i { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(160deg, rgba(255,255,255,.3), rgba(255,255,255,0) 55%), var(--mc); box-shadow: 0 10px 18px -8px var(--mc), inset 0 1px 0 rgba(255,255,255,.3); }
.mod-top .mod-h small { font: 500 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--on-dark-2); }
.mod-top h2 { font: 800 clamp(32px, 4vw, 52px)/1.03 var(--head); letter-spacing: -.04em; margin: 4px 0 0; color: #fff; }
.mod-top .today { margin: 0 !important; }
.apps { display: flex; flex-wrap: wrap; gap: 6px; }
.apps em { font: 600 11px/1 var(--body); font-style: normal; color: var(--on-dark-2); padding: 6px 9px; border-radius: 999px; background: rgba(169,183,201,.1); box-shadow: inset 0 0 0 1px rgba(169,183,201,.22); }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 48px; align-items: center; padding: 34px 0 54px; }
.feat.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feat.flip .feat-copy { order: 2; }
.feat-copy { min-width: 0; }
.feat-copy h3 { font: 800 clamp(24px, 2.6vw, 34px)/1.08 var(--head); letter-spacing: -.035em; margin: 0 0 12px; color: #fff; border-left: 3px solid var(--mc); padding-left: 14px; }
.feat-copy p { color: var(--on-dark-2); font-size: 16px; margin: 0 0 14px; }
.feat .shot { transform: perspective(1400px) rotateY(-7deg); }
.feat.flip .shot { transform: perspective(1400px) rotateY(7deg); }
.feat .shot.tilting { transform: none; }
.product .cta { background: transparent; }
.dark-pricing .plan { background: linear-gradient(180deg, #13213A, #0E1621); border-color: #22324A; color: var(--on-dark); }
.dark-pricing .plan .price { color: #fff; }
.dark-pricing .plan p, .dark-pricing .plan h4, .dark-pricing .plan .price small { color: var(--on-dark-2); }
.subpage .legal { color: var(--on-dark); }
.subpage .legal p, .subpage .legal li { color: var(--on-dark-2); }
@media (max-width: 960px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 22px; padding: 20px 0 40px; }
  .feat.flip .feat-copy { order: 0; }
  .feat .shot, .feat.flip .shot, .hero-shot { transform: none; }
  .mod-sec { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .shot { transition: none; } }
.subpage .legal .draft { color: #5A3B00; }
.login-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; min-height: 52vh; }
.login-card { margin: 0; max-width: none; }
.ws-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15,27,45,.06); }
.ws-field input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; min-width: 0; }
.ws-field em { font-style: normal; display: flex; align-items: center; padding: 0 12px; color: var(--mute); background: var(--panel-2); border-left: 1px solid var(--line); font-size: 14px; }
.ws-field:focus-within { outline: 2px solid color-mix(in srgb, var(--plum) 35%, transparent); outline-offset: 1px; border-color: var(--plum); }
.login-card .remember { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink-2); }
.login-card .remember input { width: auto; }
@media (max-width: 960px) { .login-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* Questions (FAQ) and 404 pages */
.subpage .legal.faq h1, .subpage .legal.notfound h1 { font: 800 clamp(36px, 4.6vw, 60px)/1.04 var(--head); letter-spacing: -.04em; }
.subpage .legal .lead-q { font-size: 18px; margin: 0 0 30px; }
.subpage .legal .qa { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.09); }
.subpage .legal .qa h2 { margin: 0 0 8px; font-size: 20px; }
.subpage .legal .qa p { margin: 0; line-height: 1.65; }
.subpage .legal .faq-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.subpage .legal .faq-cta .btn { text-decoration: none; }

/* Login: route new organisations to the instance request page */
.ws-new { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.ws-new a { font-weight: 600; color: var(--plum); text-decoration: none; }
.ws-new a:hover { text-decoration: underline; }
.btns .btn-login { padding: 13px 18px; font-size: 14.5px; }
