/* JusCloud Concierge — midnight navy, deep blue, mint, white. */
:root {
  --midnight: #0A1A2F;
  --deep: #10305A;
  --steel: #2B5C8A;
  --mint: #5FE3B4;
  --mint-ink: #157A5C;
  --amber: #F2B84B;
  --coral: #F07A6A;
  --paper: #F4F7FA;
  --white: #FFFFFF;
  --ink: #0E1B2B;
  --muted: #55667A;
  --line: #D6DFE9;
  --on-dark: #DCE6F2;
  --on-dark-muted: #9DB0C7;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; }
a { color: var(--steel); }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.small { font-size: .9rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 8px; border: 2px solid var(--mint); background: var(--mint); color: var(--midnight); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #7FEBC5; color: var(--midnight); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(10,26,47,.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); padding-top: env(safe-area-inset-top, 0px); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: var(--white); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--mint); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--white); border-radius: 6px; padding: 7px 12px; font: inherit; cursor: pointer; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% 10%, rgba(43,92,138,.55), transparent 60%), linear-gradient(180deg, var(--midnight), #0C2240); color: var(--white); padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 16ch; }
.lede { font-size: 1.2rem; color: var(--on-dark); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .92rem; color: var(--on-dark-muted); max-width: 46ch; }

/* Hero console: the one animated moment */
.console { margin: 0; background: linear-gradient(160deg, #12345E, #0D2747); border: 1px solid rgba(95,227,180,.22); border-radius: 14px; padding: 22px 22px 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.console-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--on-dark); padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.console-org { color: var(--on-dark-muted); font-weight: 500; }
.score { position: relative; width: 132px; height: 132px; margin: 20px auto 14px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 10; }
.ring-fill { fill: none; stroke: var(--mint); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 72 100; stroke-dashoffset: 0; }
.score-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-text strong { font-family: var(--display); font-size: 2.3rem; line-height: 1; }
.score-text span { font-size: .78rem; color: var(--on-dark-muted); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0 10px 22px; border-top: 1px solid rgba(255,255,255,.07); font-size: .92rem; position: relative; }
.checks li span:last-child { color: var(--on-dark-muted); text-align: right; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; border-radius: 50%; }
.checks .ok::before { background: var(--mint); }
.checks .warn::before { background: var(--amber); }
.checks .bad::before { background: var(--coral); }
.console figcaption { font-size: .78rem; color: var(--on-dark-muted); margin-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .js .ring-fill { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s cubic-bezier(.2,.7,.2,1) .3s; }
  .js .console.run .ring-fill { stroke-dasharray: 72 100; }
  .js .checks li { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
  .js .console.run .checks li { opacity: 1; transform: none; }
  .js .console.run .checks li:nth-child(1) { transition-delay: .5s; }
  .js .console.run .checks li:nth-child(2) { transition-delay: .7s; }
  .js .console.run .checks li:nth-child(3) { transition-delay: .9s; }
  .js .console.run .checks li:nth-child(4) { transition-delay: 1.1s; }
  .js .console.run .checks li:nth-child(5) { transition-delay: 1.3s; }
}

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-dark { background: var(--midnight); color: var(--white); }
.section-tint { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }

.band { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0; }
.focus h2 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); max-width: 30ch; }
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 26px; }
.focus-grid h3 { font-size: 1.05rem; padding-top: 12px; border-top: 3px solid var(--mint); }
.focus-grid p { font-size: .96rem; color: var(--muted); margin: 0; }

/* Rate sheet */
.rates { border-top: 1px solid var(--line); }
.rate { display: grid; grid-template-columns: 1fr 260px; gap: 36px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.rate-main p { color: var(--muted); max-width: 60ch; }
.rate-main ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.rate-main li { padding: 4px 0 4px 20px; position: relative; break-inside: avoid; font-size: .96rem; }
.rate-main li::before { content: ""; position: absolute; left: 0; top: 13px; width: 9px; height: 2px; background: var(--mint-ink); }
.rate-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--deep); margin: 0; line-height: 1.1; }
.rate-note { font-size: .88rem; color: var(--muted); margin: 0; }
.paylink { font-size: .9rem; }
.aside { margin-top: 28px; color: var(--muted); }
.aside-dark { color: var(--on-dark-muted); margin-bottom: 24px; }

/* Plans table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.plans { width: 100%; border-collapse: collapse; min-width: 640px; }
.plans th, .plans td { text-align: left; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.plans thead th { font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--on-dark-muted); background: rgba(255,255,255,.03); }
.plans tbody th { font-family: var(--display); font-size: 1.08rem; color: var(--white); white-space: nowrap; }
.plans td:nth-child(2) { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--mint); white-space: nowrap; }
.plans td:nth-child(3) { white-space: nowrap; color: var(--on-dark); }
.plans td:last-child { color: var(--on-dark-muted); font-size: .95rem; }
.plans tbody tr:last-child > * { border-bottom: 0; }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--deep); }
.steps li::before { content: counter(step); display: inline-grid; place-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--deep); color: var(--white); font-family: var(--display); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .96rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 16px 32px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--steel); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 12px; }

/* Request */
.request-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.request-intro p { color: var(--muted); }
.contact-card { margin-top: 28px; padding: 22px; border-left: 3px solid var(--mint); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.contact-card h3 { font-size: 1.05rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .94rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid #B9C7D6; border-radius: 8px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--steel); outline: 3px solid rgba(95,227,180,.45); outline-offset: 0; }
[aria-invalid="true"] { border-color: #C0392B; }
.err { color: #B03025; font-size: .86rem; margin: 0; min-height: 0; }
.err:empty { display: none; }
.check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.check label { font-weight: 400; flex: 1; }
.check .err { flex-basis: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { margin: 0; font-size: .95rem; }
.status.bad { color: #B03025; }
.done { grid-column: 2; padding: 32px; border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: var(--radius); background: var(--paper); }

/* Footer */
.site-foot { background: var(--midnight); color: var(--on-dark-muted); padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-row a { color: var(--on-dark); }
.foot-row .small { color: var(--on-dark-muted); grid-column: 1 / -1; margin: 0; }
.foot-row p { margin: 0; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { max-width: 72ch; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .request-grid { grid-template-columns: 1fr; }
  .done { grid-column: 1; }
  .focus-grid, .steps { grid-template-columns: 1fr 1fr; }
  .rate { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--midnight); padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .form { grid-template-columns: 1fr; }
  .rate-main ul { columns: 1; }
  .foot-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .focus-grid, .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
