/* Krynoscope public site. Same look as the sample report (report-preview/report.css): a navy band
   on top, a white page, Sora for headings, Instrument Sans for text, Krynoscope blue for actions,
   links and focus. The site stays light on purpose, also in the system's dark mode. Everything sits
   in @layer site; the landing page's unlayered styles (report-preview/report.css and landing.css)
   always win, and the element rules here skip anything inside .kr. */
@layer site {
:root {
  color-scheme: light;
  --navy: #011434;
  --navy-3: #0A2A62;
  --blue: #0A4CFF;
  --blue-h: #2A63FF;
  --peri: #8AABFF;
  --peri-2: #A6B3CF;
  --ink: #011434;
  --ink-2: #2D3A57;
  --muted: #5B6884;
  --faint: #8994AE;
  --line: #D8E0ED;
  --line-strong: #C3CEE0;
  --tint: #F4F7FC;
  --paper: #FFFFFF;
  --hover: #EEF3FC;
  --blue-wash: #E8EFFF;
  --good: #137A4B;
  --good-wash: #E6F4EC;
  --mid: #945700;
  --mid-wash: #FFF3DD;
  --bad: #B42318;
  --bad-wash: #FDECEA;
  --err-on-navy: #FFB547;
  --radius: 16px;
  --radius-sm: 11px;
  --display: 'Sora', 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  --body: 'Instrument Sans', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --wrap: 1240px;
  --pad: 36px;
  --lift: clamp(80px, 12vw, 150px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(h1:not(.kr *)), :where(h2:not(.kr *)), :where(h3:not(.kr *)) { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
:where(h1:not(.kr *)) { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; }
:where(h2:not(.kr *)) { font-size: 20px; }
:where(p:not(.kr *)) { margin: 0.45rem 0; }
:where(a:not(.kr *)) { color: var(--blue); text-underline-offset: 2px; }
:where(:focus-visible:not(.kr *)) { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
:where(b:not(.kr *)), :where(strong:not(.kr *)) { font-weight: 600; }

/* ---- frame: the navy band with logo, "powered by" and the nav ---- */
.top { background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.top :focus-visible { outline-color: var(--peri); }
.top-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.top-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; min-height: 92px; padding: 24px 0; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 38px; width: auto; }
.pb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-left: 22px; border-left: 1px solid rgba(150, 180, 255, .28); font-size: 13px; color: var(--peri-2); }
.pb img { display: block; width: auto; opacity: .88; }
.pb .ll { height: 11px; } .pb .opa { height: 17px; }   /* same as the report's .kr-pb */
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; font-weight: 500; font-size: 15px; }
.nav a, .nav button.link { color: #C3CFEA; text-decoration: none; }
.nav a:hover, .nav button.link:hover { color: #fff; text-decoration: none; }
.nav form { margin: 0; }

/* page title (and lead) inside the band, on every page but the landing page */
.hero-text { padding: clamp(28px, 5vw, 56px) 0 calc(var(--lift) + 40px); }
.hero-text h1 { max-width: 22ch; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.hero-text p { margin: 18px 0 0; max-width: 62ch; font-size: clamp(15.5px, 1.4vw, 17.5px); color: var(--peri-2); overflow-wrap: anywhere; }
.hero-text .badge { margin-left: 0.3rem; vertical-align: 2px; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) calc(96px + env(safe-area-inset-bottom, 0px)); }
main > .notice { margin: 24px 0 0; }
footer {
  max-width: var(--wrap); margin: 0 auto; padding: 1.4rem var(--pad) 2.6rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; color: var(--faint); font-size: 13.5px;
}
footer::before { content: ""; flex-basis: 100%; height: 0; border-top: 1px solid var(--line); margin-bottom: 1rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---- blocks ---- */
.panel { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: 1.2rem; }
.panel > h2 { margin-bottom: 0.6rem; }
.points { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.points li { margin: 0.25rem 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.88rem; }
.notice { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--good-wash); color: var(--good); margin: 1rem 0 0; }
.notice.warn { background: var(--mid-wash); color: var(--mid); }
.notice.err { background: var(--bad-wash); color: var(--bad); }

/* a white sheet that rises out of the navy band (landing preview, order form) */
.sheet { position: relative; margin-top: calc(var(--lift) * -1); padding: clamp(22px, 4vw, 44px); border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(1, 20, 52, .45); }
.sheet > .notice:first-child { margin: 0 0 20px; }
.sheet > :first-child { margin-top: 0; }
.sheet.narrow { max-width: 720px; }
.sheet :is(div, p).actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
/* legal text: a readable column */
.sheet.legal { max-width: 860px; }
.legal h2 { margin: 2rem 0 0.6rem; font-size: 18px; scroll-margin-top: 1rem; }
.legal p { margin: 0 0 0.8rem; color: var(--ink-2); line-height: 1.65; }
.legal .meta { color: var(--muted); font-size: 0.92rem; }
.legal .table-wrap { margin: 0.4rem 0 1rem; }

/* ---- forms ---- */
form.stack { display: grid; gap: 0.9rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
:where(label:not(.kr *)) { display: grid; gap: 0.3rem; font-weight: 500; font-size: 14px; color: var(--muted); }
.field-note { font-weight: 400; color: var(--faint); font-size: 0.82rem; }
:where(input[type=text]:not(.kr *)), :where(input[type=email]:not(.kr *)), :where(input[type=password]:not(.kr *)), :where(input[type=url]:not(.kr *)), :where(select:not(.kr *)) {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.65rem 0.8rem;
}
:where(input:not(.kr *))::placeholder { color: #B7C0D3; }
:where(input:focus:not(.kr *)), :where(select:focus:not(.kr *)) { outline: none; border-color: var(--peri); box-shadow: 0 0 0 4px rgba(138, 171, 255, .45); }
:where(fieldset:not(.kr *)) { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1rem 1rem; margin: 0; display: grid; gap: 0.9rem; }
:where(legend:not(.kr *)) { font-weight: 600; padding: 0 0.3rem; }
:where(button:not(.kr *)), a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  padding: 0.65rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--blue); border: 1px solid var(--blue); color: #fff; transition: background .15s, border-color .15s;
}
:where(button:hover:not(.kr *)), a.btn:hover { background: var(--blue-h); border-color: var(--blue-h); color: #fff; }
:where(button:focus-visible:not(.kr *)), a.btn:focus-visible { outline-color: var(--navy); }
button.big, a.btn.big { padding: 0.85rem 1.6rem; font-size: 1rem; }
button.secondary, a.btn.secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
button.secondary:hover, a.btn.secondary:hover { background: var(--hover); border-color: var(--blue); color: var(--blue); }
button.danger, a.btn.danger { background: #fff; border-color: var(--line-strong); color: var(--bad); }
button.danger:hover, a.btn.danger:hover { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
button.link { background: none; border: none; padding: 0; color: var(--muted); font-weight: 500; }
button.link:hover { background: none; color: var(--ink); text-decoration: underline; }
.inline { display: inline; margin: 0; }
.row { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; }
.row > label { flex: 1 1 16rem; }
@media (prefers-reduced-motion: reduce) { :where(button:not(.kr *)), a.btn { transition: none; } }

/* ---- order page: the form on the left, the plan on the right ---- */
.order .order-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.order-main { display: grid; gap: 18px; min-width: 0; }
.order-main .field { display: grid; gap: 8px; }
.order-main .field label { font-size: 14px; color: var(--ink-2); }
.order-main .field input { height: 60px; padding: 0 20px; border-radius: 14px; font-size: 18px; font-weight: 500; }
.order-main .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); font-weight: 400; cursor: pointer; }
.order-main .consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.order-main > button { justify-self: start; height: 60px; padding: 0 32px; border-radius: 14px; font-size: 17px; }
.order-note { margin: 0; color: var(--muted); font-size: 14px; }
.order-note strong { color: var(--ink-2); font-weight: 600; }
.plan { padding: 26px 26px 28px; border-radius: 20px; background: var(--tint); border: 1px solid var(--line); }
.plan-kicker { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.plan-name { margin: 10px 0 0; font-size: 20px; line-height: 1.25; }
/* the amount, and "/ month excl. VAT" on its own line under it (the box is too narrow for both on one) */
.plan-price { margin: 18px 0 0; font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.plan-amount { white-space: nowrap; }
.plan-per { display: block; margin-top: 6px; white-space: nowrap; font-family: var(--body); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-term { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.plan-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.plan-points { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan-points li { position: relative; padding-left: 26px; }
.plan-points li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
/* the AI HR Report add-on: an optional line under the subscription */
.addon { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; margin: 18px 0 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer; font-size: 15px; color: var(--ink); }
.addon:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-wash); }
.addon input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.addon-name { font-weight: 600; }
.addon-price { grid-column: 2; font-weight: 600; }
.addon-note { grid-column: 2; color: var(--muted); font-size: 13.5px; }
.addon-line { display: block; font-size: 13.5px; color: var(--muted); }
.addon:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.addon-added { grid-column: 2; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.plan-breakdown { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
/* the big price follows the add-on checkbox through :has(): ticked, it is the monthly total with the
   breakdown under it; a browser without :has() shows only the subscription's own price and no total
   (never a wrong one) */
.plan-price--addon, .plan-breakdown, .addon-added { display: none; }
@supports selector(:has(*)) {
  .plan:has(.addon input:checked) .plan-price--base { display: none; }
  .plan:has(.addon input:checked) .plan-price--addon,
  .plan:has(.addon input:checked) .plan-breakdown,
  .plan:has(.addon input:checked) .addon-added { display: block; }
}
/* dates never break at their hyphens */
.nowrap { white-space: nowrap; }
/* several products (when more than one is offered): radio cards above the website field */
.order .picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.picks legend { font-size: 14px; color: var(--ink-2); font-weight: 500; padding: 0; margin-bottom: 8px; }
.order .pick { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer; font-size: 15px; color: var(--ink); }
.order .pick:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-wash); }
.order .pick input { accent-color: var(--blue); }
.pick-name { font-weight: 600; }
.pick-price { grid-column: 2; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pick-term { grid-column: 2; font-size: 14px; font-weight: 600; }
.pick-note { grid-column: 2; color: var(--muted); font-size: 13.5px; }
/* voucher: a small "Add a voucher" button under the product that opens the code field */
.voucher { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.voucher > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--blue); border-radius: 6px; }
.voucher > summary::-webkit-details-marker { display: none; }
.voucher > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 14px; line-height: 1; }
.voucher[open] > summary::before { content: "−"; }
.voucher > summary:hover { color: var(--blue-h); text-decoration: underline; text-underline-offset: 2px; }
.voucher-field { display: grid; gap: 6px; margin-top: 12px; }
.voucher-field label { font-size: 13.5px; color: var(--ink-2); }
.voucher-field input { height: 46px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.voucher-note { margin: 0; font-size: 13px; color: var(--muted); }
.big-email { font-size: 1.3rem; font-weight: 600; margin: 0.3rem 0 0.8rem; overflow-wrap: anywhere; }

/* ---- tables and badges ---- */
.table-wrap { overflow-x: auto; }
:where(table:not(.kr *)) { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
:where(th:not(.kr *)), :where(td:not(.kr *)) { text-align: left; padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
:where(th:not(.kr *)) { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
tr:last-child :where(td:not(.kr *)) { border-bottom: none; }
td.actions { white-space: nowrap; }
td.actions > * + * { margin-left: 0.4rem; }
.badge { display: inline-block; padding: 0.05rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--muted); background: #fff; }
.badge--ok { color: var(--good); background: var(--good-wash); border-color: transparent; }
.badge--warn { color: var(--mid); background: var(--mid-wash); border-color: transparent; }
.badge--err { color: var(--bad); background: var(--bad-wash); border-color: transparent; }
.badge--accent { color: var(--blue); background: var(--blue-wash); border-color: transparent; }

@media (max-width: 860px) {
  :root { --pad: 16px; }
  .top-bar { min-height: 0; padding: 18px 0; gap: 10px 16px; }
  .brand img { height: 32px; }
  .pb { order: 3; width: 100%; padding-left: 0; border-left: 0; }
  .order .order-form { grid-template-columns: 1fr; }
  .order .plan { order: -1; }
  .order-main > button { justify-self: stretch; }
  .sheet { border-radius: 18px; }
}
@media (max-width: 640px) {
  /* account tables: each row becomes a small card (label above value), nothing to scroll sideways */
  table.stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm td { display: block; width: 100%; }
  .stack-sm thead { display: none; }
  .stack-sm tr { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .stack-sm tr:last-child { border-bottom: none; }
  .stack-sm td { border: none; padding: 0.15rem 0; overflow-wrap: anywhere; }
  .stack-sm td[data-label]::before { content: attr(data-label); display: block; font-size: 0.68rem; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--faint); }
  .stack-sm td.actions { padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .stack-sm td.actions:empty { display: none; }
  .stack-sm td.actions > * + * { margin-left: 0; }
  .stack-sm td.addr { font-weight: 500; }
  .stack-sm td .faint { display: block; }
  .grid2 { grid-template-columns: 1fr; }
  .nav { gap: 0.9rem; font-size: 14px; }
  .panel { padding: 1rem; }
}
}
