@font-face {
  font-family: "Schibsted Grotesk Variable";
  src: url("/assets/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #04060B;
  --surface: #0A0E17;
  --field: #05080F;
  --line: #1B2436;
  --line-2: #2A3650;
  --text: #F2F5FA;
  --white: #FFFFFF;
  --text-2: #9AA6BC;
  --text-3: #7C89A3;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-400: #5B9BFF;
  --amber-400: #F5B544;
  --red-400: #FF6B6B;
  --wm-fill: rgba(37, 99, 235, .06);
  --wm-stroke: rgba(91, 155, 255, .20);
  font-family: "Schibsted Grotesk Variable", "Hanken Grotesk", system-ui, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--bg); overflow-x: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue-400); }

.shell { position: relative; display: grid; grid-template-rows: 72px minmax(0, 1fr); min-height: 100dvh; isolation: isolate; overflow: hidden; }
.wordmark { position: fixed; z-index: 0; left: 50%; bottom: 0; width: 108vw; height: auto; transform: translate(-50%, 6%); pointer-events: none; animation: wordmark-enter 900ms ease-out both; }
@keyframes wordmark-enter {
  from { opacity: 0; transform: translate(-50%, calc(6% + 12px)); }
  to { opacity: 1; transform: translate(-50%, 6%); }
}
.shell-header, .shell-main { position: relative; z-index: 1; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(24px, 5vw, 64px); }
.shell-header { height: 72px; }
.header-content { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 18px; line-height: 24px; font-weight: 600; text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 4px; border-radius: 4px; }
.brand-mark { flex: none; width: 32px; height: 32px; }
.account-slot { min-width: 0; }
.shell-main { display: flex; align-items: center; padding-bottom: 6dvh; }
.main-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 64px; }
.intro h1 { max-width: 12ch; margin: 0; color: var(--text); font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem); font-weight: 650; line-height: 1.02; letter-spacing: -.03em; }
.intro-copy { max-width: 60ch; margin: 24px 0 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.right-column { display: flex; justify-content: flex-end; min-width: 0; }

.panel { width: min(440px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.panel h2 { margin: 0; color: var(--text); font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: 0; }
.panel-helper, .panel-copy { max-width: 60ch; color: var(--text-2); font-size: 15px; line-height: 22px; }
.panel-helper { margin: 8px 0 32px; }
.panel-copy { margin: 16px 0 0; }
.field + .field { margin-top: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; line-height: 20px; font-weight: 500; }
.field-control { position: relative; }
.field input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; outline: none; color: var(--text); background: var(--field); font-size: 16px; line-height: 24px; }
.field input::placeholder { color: var(--text-3); opacity: 1; }
.field input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.field[data-invalid] input, .field input[aria-invalid="true"] { border-color: var(--red-400); }
.field-error { margin: 8px 0 0; color: var(--red-400); font-size: 14px; line-height: 20px; }
.field-control input[data-password] { padding-right: 72px; }
.reveal { position: absolute; top: 4px; right: 4px; min-width: 56px; height: 40px; padding: 0 8px; border: 0; border-radius: 8px; color: var(--text-2); background: transparent; font-size: 14px; line-height: 20px; font-weight: 500; }
.reveal:hover { color: var(--blue-400); }
.reveal:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-size: 16px; line-height: 24px; font-weight: 600; }
.button-primary { margin-top: 24px; color: var(--white); background: var(--blue-600); }
.button-primary:hover { background: var(--blue-700); }
.button-primary:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.button-primary:disabled { cursor: wait; background: var(--blue-700); }
.button-spinner { width: 18px; height: 18px; }
.button-spinner[hidden] { display: none; }
.form-message:empty { display: none; }
.form-message:not(:empty) { margin: 12px 0 0; color: var(--red-400); font-size: 14px; line-height: 20px; }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); background: transparent; font-size: 13px; line-height: 16px; font-weight: 500; }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-400); }
.panel .chip { margin-bottom: 24px; }
.panel-divider { height: 1px; margin: 24px 0; background: var(--line); }
.schedule-row { margin: 0; }
.schedule-row dt { color: var(--text-2); font-size: 14px; line-height: 20px; }
.schedule-row dd { margin: 8px 0 0; color: var(--text); font-size: 16px; line-height: 24px; }

.desktop-frame { display: flex; flex-direction: column; width: min(440px, 100%); aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.frame-bar { display: flex; align-items: center; gap: 8px; flex: none; height: 36px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 10px; height: 10px; border: 1px solid var(--line-2); border-radius: 50%; }
.frame-body { display: grid; flex: 1; place-items: center; }

@media (max-width: 900px) {
  .shell-main { align-items: center; padding-block: 48px 6dvh; }
  .main-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .right-column { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
