/* Nyhetsbrev fra Make — landingsside.
   Farger, typografi, avstander og komponenter fra Make Basecoat UI. */

/* ── Fonter (Make sin font-CDN; installerte kopier brukes først) ── */
@font-face { font-family: "PP Neue Montreal"; font-style: normal; font-weight: 400; font-display: swap; src: local("PP Neue Montreal Regular"), local("PPNeueMontreal-Regular"), url("https://cdn.dialogapi.no/fonts/pp-neue-montreal/ppneuemontreal-regular.woff2") format("woff2"); }
@font-face { font-family: "PP Neue Montreal"; font-style: normal; font-weight: 500; font-display: swap; src: local("PP Neue Montreal Medium"), local("PPNeueMontreal-Medium"), url("https://cdn.dialogapi.no/fonts/pp-neue-montreal/ppneuemontreal-medium.woff2") format("woff2"); }
@font-face { font-family: "PP Telegraf"; font-style: normal; font-weight: 400; font-display: swap; src: local("PP Telegraf Regular"), local("PPTelegraf-Regular"), url("https://cdn.dialogapi.no/fonts/pp-telegraf/pptelegraf-regular.woff2") format("woff2"); }

/* ── Tokens ── */
:root {
  --page: #f5f5f5;
  --background: #fefefe;
  --foreground: #252525;
  --card: #fefefe;
  --muted-foreground: #6d6d6d;
  --primary: #5540bf;
  --primary-hover: #7766cc;
  --primary-active: #4d3aae;
  --primary-foreground: #ffffff;
  --accent: #f8f6ff;
  --border: #e9e9e9;
  --input: #bbbbbb;
  --ring: #5540bf;
  --ring-soft: #e2def7;
  --destructive: #c34d4d;
  --danger-ink: #7a0f20;
  --success-surface: #effedd;
  --success-ink: #22750e;
  --navy: #002e4a;
  --navy-foreground: #f5f5f5;
  --sand: #f8e2bf;
  --sand-border: #b0a088;
  --sand-ink: #685f50;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(54, 54, 54, 0.04);
  --shadow-card: 0 0 1px rgba(54, 54, 54, 0.08), 0 1px 2px rgba(54, 54, 54, 0.07), 0 4px 8px rgba(54, 54, 54, 0.04), 0 8px 16px rgba(54, 54, 54, 0.01);
  --container-max: 1170px;

  --font-display: "PP Telegraf", "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --duration: 180ms;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  background: var(--page);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
svg.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--primary-hover); }

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 64px);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ── */
.site-header { background: var(--navy); color: var(--navy-foreground); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy-foreground); }
.logo svg { display: block; width: auto; height: 26px; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease);
}
.header-link:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Hero ── */
.hero { background: var(--sand); }
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 14em;
}
.lead { max-width: 34em; font-size: 18px; line-height: 1.5; }
.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.perks li { display: flex; align-items: center; gap: 8px; }
.perks .icon { color: var(--primary); }

/* Badge (outline) */
.badge-outline {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-pill);
  color: var(--sand-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

/* ── Card ── */
.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card > header, .card > section { padding: 0 24px; min-width: 0; }
.card > header { display: grid; gap: 4px; }
.card > header > h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.card > header > p { color: var(--muted-foreground); }
.signup { flex: 1 1 360px; max-width: 440px; }

/* ── Form ── */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 500; line-height: 1.2; }
.field[data-invalid="true"] > label { color: var(--danger-ink); }
.field-error { font-size: 12px; color: var(--danger-ink); }
.field-error:empty { display: none; }

.input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  box-shadow: var(--shadow-xs);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.input::placeholder { color: var(--muted-foreground); opacity: 1; }
.input:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); }
.input[aria-invalid="true"] { border-color: var(--destructive); }

.input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.input[type="checkbox"]:checked {
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--primary);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}
.btn:hover { background: var(--primary-hover); }
.btn:active { background: var(--primary-active); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; height: 44px; font-size: 15px; }

.form-status { font-size: 14px; text-align: center; color: var(--danger-ink); }
.form-status:empty { display: none; }

/* ── Alert (success) ── */
.alert-success {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--success-surface);
  color: var(--success-ink);
  font-size: 14px;
}
.alert-success:focus { outline: none; }
.alert-success > svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; }
.alert-success > h3 { font-size: 16px; font-weight: 500; }

/* ── Features ── */
.features .container { padding-top: 72px; padding-bottom: 72px; }
.features h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}
.feature {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--primary);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; font-weight: 500; line-height: 1.3; }
.feature p { color: var(--muted-foreground); }

/* ── Footer ── */
.site-footer { background: var(--background); border-top: 1px solid var(--border); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted-foreground);
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }

/* ── Mobil ── */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .features .container { padding-top: 48px; padding-bottom: 48px; }
  .signup { max-width: none; }
  .lead { font-size: 16px; }
  .features h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}