/* Landing page for anleggsvarsel.no. Colors mirror constants/theme.ts in the app. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
}

:root {
  --primary: #0f3d5e;
  --primary-dark: #0a2c45;
  --accent: #e8710a;
  --accent-hover: #f08424;
  --text: #111827;
  --text-secondary: #4b5563;
  --on-primary-muted: #d6e2ec;
  --background: #f5f6f8;
  --surface: #ffffff;
  --border: #e2e5ea;
  --ok: #1a7f37;
  --pad-x: clamp(16px, 4vw, 40px);
  --pad-y: clamp(56px, 8vw, 112px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-dark);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 8px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.dark {
  background: var(--primary);
  color: #fff;
}
.white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Type */
.logo {
  font-weight: 800;
  font-stretch: 80%;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
}
.logo:hover {
  color: #fff;
}
.logo span {
  color: var(--accent);
}
.h2 {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.98;
  text-wrap: balance;
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}
.h3.small {
  font-size: 20px;
  line-height: 1.3;
}
.body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-primary-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border-radius: 6px;
}
.btn-accent,
.btn-accent:hover {
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover {
  background: var(--accent-hover);
}
.btn-primary,
.btn-primary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-block {
  display: flex;
  min-height: 52px;
  font-size: 17px;
  margin-top: auto;
}

/* Header */
.site-header {
  background: var(--primary);
}
.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
}
.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  overflow: hidden;
}
.hero .container {
  padding-top: clamp(32px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: flex-end;
}
.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  padding-bottom: clamp(24px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tag {
  align-self: flex-start;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.hero h1 {
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--on-primary-muted);
  max-width: 34em;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.hero-cta .note {
  font-size: 15px;
  line-height: 1.4;
  color: var(--on-primary-muted);
}
.hero-visual {
  flex: 0 1 auto;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.stripe {
  height: 10px;
  background: var(--accent);
}

/* Phone mockup of the app's Oversikt screen */
.phone {
  zoom: 0.78;
  margin-bottom: -180px;
  width: 410px;
  height: 864px;
  border: 10px solid #14181f;
  border-radius: 54px;
  overflow: hidden;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.phone-status {
  height: 47px;
  flex: none;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
}
.phone-title {
  height: 44px;
  flex: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d8dadf;
  font-size: 17px;
  font-weight: 600;
}
.phone-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone-body > * {
  flex-shrink: 0;
}
.phone-company {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
}
.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kpi {
  flex: 1 1 140px;
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label {
  font-size: 14px;
  line-height: 20px;
  color: #4b5563;
}
.kpi-value {
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kpi-hint {
  font-size: 13px;
  line-height: 18px;
  color: #6b7280;
}
.kpi.expired {
  background: #fdecec;
  border-color: #fdecec;
}
.kpi.expired .kpi-value {
  color: #b42318;
}
.kpi.soon {
  background: #fff4e0;
  border-color: #fff4e0;
}
.kpi.soon .kpi-value {
  color: #9a5b00;
}
.phone-heading {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-top: 8px;
}
.rows {
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  min-height: 56px;
}
.row + .row {
  border-top: 1px solid #e2e5ea;
}
.row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.row-sub {
  font-size: 13px;
  line-height: 18px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabs {
  flex: none;
  background: #fff;
  border-top: 1px solid #d8dadf;
  padding: 6px 0 30px;
  display: flex;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
}
.tab.active {
  color: #0f3d5e;
}
.tab svg {
  width: 24px;
  height: 24px;
}

/* Status badges (same colors as StatusColors in the app) */
.badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.phone .badge {
  align-self: center;
  font-size: 13px;
  line-height: 18px;
}
.badge.expired {
  background: #fdecec;
  color: #b42318;
}
.badge.soon {
  background: #fff4e0;
  color: #9a5b00;
}
.badge.upcoming {
  background: #eef2f7;
  color: #334155;
}
.badge.none {
  background: #eef0f3;
  color: #4b5563;
}

/* Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.problems {
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
}
.card {
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-section {
  gap: 40px;
}
.problem-section .h2 {
  max-width: 14em;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px 48px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid var(--primary);
  padding-top: 20px;
}
.step-number {
  font-weight: 800;
  font-stretch: 70%;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}
.features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 36px 48px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pricing */
.pricing-section {
  gap: 40px;
}
.pricing-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plans {
  gap: 16px;
}
.plan {
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan-name {
  font-size: 18px;
  font-weight: 700;
}
.plan-limit {
  font-size: 15px;
  color: var(--text-secondary);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price strong {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 56px;
  line-height: 1;
}
.plan-price span {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Trust */
.trust-section {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px 64px;
}
.trust-section .h2 {
  flex: 1 1 300px;
}
.trust {
  flex: 2 1 480px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px 40px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 4px solid var(--ok);
  padding-left: 16px;
}

/* FAQ */
.faq-section {
  max-width: 860px;
  gap: 32px;
}
.faq {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--text);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin-bottom: 20px;
}

/* Closing call to action */
.closing {
  background: var(--accent);
}
.closing .container {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.closing h2 {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1;
  color: var(--text);
  max-width: 16em;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: var(--on-primary-muted);
}
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-footer .logo {
  font-size: 20px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 15px;
}
.site-footer a {
  color: var(--on-primary-muted);
}
.site-footer a:hover {
  color: #fff;
}
.copyright {
  font-size: 14px;
}

/* 404 */
.notfound {
  min-height: 70vh;
  justify-content: center;
  gap: 24px;
}
