/* coachable.bbtr.no – farger og typografi fra appens src/theme.ts (Coachable, lys modus). */

@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Outfit_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Outfit_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Outfit_600SemiBold.woff2') format('woff2'); }

:root {
  --teal: #2F6872;
  --teal-deep: #1F3A3F;
  --cyan: #7CCBD3;
  --cyan-soft: #D4ECEF;
  --gold: #F7C873;
  --gold-soft: #FBE6BF;
  --gold-wash: #FFF6E2;
  --gold-ink: #8A5806;
  --bg: #F4F7F7;            /* Frost */
  --surface: #FCFDFD;
  --surface-muted: #E6EDEE;
  --white: #FDFEFE;
  --ink: #1F3A3F;
  --ink-muted: #4E6468;
  --ink-subtle: #7A8B8E;
  --on-dark: #F4F7F7;
  --on-dark-muted: rgba(244, 247, 247, 0.74);
  --on-dark-subtle: rgba(244, 247, 247, 0.6);
  --line: rgba(31, 58, 63, 0.10);
  --line-strong: rgba(31, 58, 63, 0.22);
  --teal-line: rgba(47, 104, 114, 0.35);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --wrap: 1120px; --narrow: 720px; --gutter: clamp(20px, 5vw, 40px);

  /* Bevegelse som i appen: fjær, ikke lineært */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 110ms; --t-hover: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* Lenker og fokus */
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-hover) var(--ease-spring), text-decoration-color var(--t-hover) var(--ease-spring); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--teal-deep); color: var(--on-dark); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

/* Topplinje */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; padding: 8px 0; border-radius: var(--r-sm); }
.logo img { width: 160px; height: auto; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: border-color var(--t-hover) var(--ease-spring), transform var(--t-press) var(--ease-spring);
}
.lang:hover { border-color: var(--teal-line); color: var(--ink); }
.lang:active { transform: scale(0.97); }

/* Tekstsider */
.prose { padding-top: 40px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(30px, 4.5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 20px; }
.prose h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 44px 0 12px; scroll-margin-top: 24px; }
.prose h3 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 28px 0 8px; scroll-margin-top: 24px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--teal); }

.alt-lang { margin: 0 0 24px; }
.alt-lang a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); background: var(--cyan-soft); color: var(--teal);
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background-color var(--t-hover) var(--ease-spring), transform var(--t-press) var(--ease-spring);
}
.alt-lang a:hover { background: #C6E5E9; }
.alt-lang a:active { transform: scale(0.97); }

.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface-muted); color: var(--ink); font-weight: 500; font-size: 14px; }
tbody th { color: var(--ink); font-weight: 500; }
td { color: var(--ink-muted); }

/* Forside (midlertidig) */
.holding { padding-top: clamp(48px, 9vw, 96px); padding-bottom: 80px; }
.eyebrow {
  display: inline-block; margin: 0 0 24px; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--gold-wash); border: 1px solid var(--gold-soft); color: var(--gold-ink);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.holding h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 18px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 48px; max-width: 34em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 16px 22px;
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: transform var(--t-hover) var(--ease-spring), border-color var(--t-hover) var(--ease-spring), box-shadow var(--t-hover) var(--ease-spring);
}
.card:hover { transform: translateY(-2px); border-color: var(--teal-line); box-shadow: 0 8px 24px rgba(31, 58, 63, 0.07); color: var(--ink); }
.card:active { transform: translateY(0) scale(0.99); transition-duration: var(--t-press); }
.card-text { flex: 1; display: grid; gap: 2px; }
.card-title { font-weight: 600; }
.card-sub { font-size: 15px; color: var(--ink-muted); line-height: 1.45; }
.card-arrow { font-size: 22px; color: var(--teal); transition: transform var(--t-hover) var(--ease-spring); }
.card:hover .card-arrow { transform: translateX(3px); }

/* Bunntekst */
.site-footer { background: var(--teal-deep); color: var(--on-dark); padding: 36px 0 40px; }
.footer-inner { display: grid; gap: 16px; }
.footer-logo { width: 150px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -12px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--on-dark); text-decoration: none; font-weight: 500;
  transition: background-color var(--t-hover) var(--ease-spring);
}
.footer-links a:hover { background: rgba(244, 247, 247, 0.08); color: var(--on-dark); }
.footer-company { margin: 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-subtle); }
.footer-company a { color: var(--on-dark-muted); }
.footer-company a:hover { color: var(--on-dark); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .logo img { width: 140px; }
  .prose { padding-top: 28px; }
  th, td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
