/* Lunden landing page — same material language as the app: carved stone
   surfaces (asymmetric top/bottom edge, never a flat border), one accent
   color, Lora + Inter. See src/constants/colors/colors.ts and
   docs/DESIGN_PHILOSOPHY.md in the main app repo for the source of truth. */

:root {
  --museivagg: #f1f3f0;
  --kalksten: #ecefec;
  --skugga: #dfe3df;
  --ink: #1b2320;
  --body-text: #3b443f;
  --muted-text: #6b746f;
  --dis: #7a8b82;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 72px;

  --max-width: 800px;

  color-scheme: light;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/Lora-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/Lora-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/Lora-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--museivagg);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* /undersokning is one continuous form, not a set of alternating-background
   landing sections — two adjacent 72px paddings (144px total) between
   question groups read as a gap/break rather than calm spacing. Scoped to
   survey sections only; index.html's sections are unaffected. */
.survey-intro-section,
.survey-section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted-text);
  margin: 0 0 var(--space-3);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}

h2 {
  font-size: clamp(24px, 4vw, 30px);
  letter-spacing: -0.2px;
  margin-bottom: var(--space-4);
}

p {
  margin: 0 0 var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}

/* ---------- Buttons — carved, never a flat rectangle ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: #f6f7f5;
  color: var(--body-text);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-primary:hover {
  opacity: 0.92;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(241, 243, 240, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 35, 32, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
}

.brand span {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
}

.site-header .btn {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
  text-align: center;
}

.hero .mark {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: -0.5px;
}

.hero .tagline {
  margin-top: var(--space-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 3vw, 23px);
  color: var(--ink);
  opacity: 0.85;
}

.hero .sub {
  max-width: 480px;
  margin: var(--space-3) auto 0;
  font-size: 16px;
  color: var(--muted-text);
}

.hero .cta {
  margin-top: var(--space-5);
}

.hero .hypothesis-note {
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--muted-text);
  opacity: 0.75;
}

/* ---------- Recognition ---------- */

.recognition {
  text-align: center;
}

.recognition-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

.recognition-list li {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 3.4vw, 21px);
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.85;
}

.recognition-close {
  margin-top: var(--space-5);
  font-size: 15px;
  color: var(--muted-text);
}

/* ---------- Varför Lunden finns — a small, human beat between the
   recognition list and the product explanation. No eyebrow/heading on
   purpose, so it reads as a thought, not a section. ---------- */

.why {
  text-align: center;
}

.why-line {
  max-width: 440px;
  margin: 0 auto var(--space-2);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
}

.why-payoff {
  max-width: 480px;
  margin: var(--space-3) auto 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.85;
}

/* ---------- Cards — a shallow recess in the same stone, not a panel
   placed on top. Asymmetric edge on purpose: see PrimaryButton /
   ExerciseCard in the app for the source pattern. ---------- */

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card {
  padding: var(--space-4);
  border-radius: 16px;
  background: var(--kalksten);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.card-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--dis);
  margin: 0 0 6px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-text);
  margin: 0;
}

/* ---------- How it works — numbered like the grounding exercise's own
   countdown treatment (a large, quiet numeral ahead of the line). ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 560px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}

.step .num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dis);
  min-width: 34px;
  flex-shrink: 0;
}

.step p {
  margin: 0;
  font-size: 15.5px;
  color: var(--body-text);
}

.step strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- App screenshots ---------- */

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.screen .frame {
  border-radius: 20px;
  overflow: hidden;
  background: var(--kalksten);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.screen .frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screen figcaption {
  font-size: 13px;
  color: var(--muted-text);
  text-align: center;
  padding: 0 var(--space-1);
}

/* ---------- Privacy ---------- */

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.privacy-list li {
  display: flex;
  gap: var(--space-2);
  font-size: 16px;
  color: var(--body-text);
  align-items: flex-start;
}

.privacy-list .mark-dot {
  color: var(--dis);
  flex-shrink: 0;
}

/* ---------- Science ---------- */

.science p {
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body-text);
}

.disclaimer {
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--muted-text);
  max-width: 620px;
}

/* ---------- Interest form ---------- */

.interest {
  text-align: center;
}

.interest .wrap > p {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted-text);
}

.interest-form {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.interest-form input[type='email'] {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 var(--space-3);
  border-radius: 4px;
  border: none;
  background: var(--kalksten);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
}

.interest-form input[type='email']::placeholder {
  color: var(--muted-text);
}

.interest-form input[type='email']:focus,
.btn:focus-visible {
  outline: 2px solid var(--dis);
  outline-offset: 2px;
}

.option-row-beta {
  flex: 1 1 100%;
  justify-content: center;
  text-align: left;
  max-width: 340px;
  margin: 0 auto;
}

.interest-note {
  margin-top: var(--space-2);
  font-size: 12.5px;
  color: var(--muted-text);
  opacity: 0.8;
}

.interest-confirm {
  margin-top: var(--space-4);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  display: none;
}

.interest-confirm.visible {
  display: block;
}

.interest-form.hidden {
  display: none;
}

.survey-cta {
  margin-top: var(--space-4);
  text-align: center;
}

.survey-cta-link {
  font-size: 14px;
  color: var(--muted-text);
  text-decoration: underline;
}

/* ---------- Market survey — a carved panel, same material as .card,
   revealed only after the email above is successfully submitted. Every
   question is skippable: nothing in here is `required`, so "Skicka svar"
   always works even fully blank. ---------- */

.survey {
  display: none;
  margin: var(--space-5) auto 0;
  max-width: 560px;
  padding: var(--space-4);
  border-radius: 16px;
  background: var(--kalksten);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  text-align: left;
}

.survey.visible {
  display: block;
}

.survey-intro {
  text-align: center;
  margin-bottom: var(--space-4);
}

.survey-intro h3 {
  font-size: 19px;
  margin-bottom: var(--space-2);
}

.survey-intro p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-text);
  max-width: 420px;
  margin: 0 auto;
}

.survey-form.hidden,
.survey-intro.hidden {
  display: none;
}

.survey-question {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.survey-question legend {
  padding: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.survey-hint {
  margin: 0 0 var(--space-2);
  font-size: 13px;
  color: var(--muted-text);
}

.option-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 9px 4px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--body-text);
  cursor: pointer;
}

.option-row input[type='checkbox'],
.option-row input[type='radio'] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--dis);
}

.option-row-other {
  flex-wrap: wrap;
  align-items: center;
}

.option-row-other span {
  flex-shrink: 0;
}

.option-row-other input[type='text'] {
  flex: 1 1 160px;
  min-height: 38px;
  padding: 0 var(--space-2);
  border-radius: 4px;
  border: none;
  background: var(--museivagg);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
}

.option-row-other input[type='text']::placeholder {
  color: var(--muted-text);
}

.survey-price-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted-text);
  margin: 0 0 var(--space-3);
}

.survey-form .btn {
  width: 100%;
  margin-top: var(--space-2);
}

.survey-confirm {
  display: none;
  margin-top: var(--space-4);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  text-align: center;
  color: var(--ink);
}

.survey-confirm.visible {
  display: block;
}

.survey-note {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(27, 35, 32, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-text);
  opacity: 0.85;
}

/* ---------- About the project ---------- */

.about-project {
  max-width: 620px;
}

.about-project p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body-text);
}

/* ---------- Standalone market survey (/undersokning) — deliberately no
   .site-header/.brand here (see undersokning.html comment): nothing should
   read as a Lunden pitch before the concept-reveal section below. Reuses
   .survey-question / .option-row / .disclaimer / .eyebrow / .lede from the
   embedded survey and page basics above rather than duplicating them. ---------- */

.survey-intro-section .wrap {
  max-width: 620px;
}

.survey-intro-section h1 {
  font-size: clamp(26px, 4.5vw, 34px);
  letter-spacing: -0.3px;
  margin-bottom: var(--space-3);
}

.survey-section .wrap {
  max-width: 620px;
}

.survey-section:nth-of-type(even) {
  background: var(--kalksten);
}

.concept-reveal {
  text-align: center;
  background: var(--kalksten);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.concept-reveal .wrap {
  max-width: 560px;
}

.concept-reveal h2 {
  font-size: clamp(28px, 5vw, 36px);
  margin-bottom: var(--space-3);
}

.concept-reveal p {
  text-align: left;
}

.survey-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  border: none;
  background: var(--museivagg);
  border-top: 1px solid rgba(27, 35, 32, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
}

.survey-textarea::placeholder {
  color: var(--muted-text);
}

.survey-confirm-section {
  text-align: center;
}

.survey-confirm-section .wrap {
  max-width: 480px;
}

.survey-confirm-section .cta {
  margin-top: var(--space-4);
}

.survey-error {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--ink);
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(27, 35, 32, 0.08);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  text-align: center;
}

.site-footer .mark {
  width: 28px;
  height: 28px;
  margin: 0 auto var(--space-3);
  color: var(--dis);
}

.site-footer p {
  font-size: 13px;
  color: var(--muted-text);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .links {
  margin-top: var(--space-3);
  font-size: 13px;
}

.site-footer .links a {
  color: var(--muted-text);
  text-decoration: none;
  border-bottom: 1px solid var(--skugga);
}

.site-footer .crisis {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(27, 35, 32, 0.06);
  font-size: 12.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .screens {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2);
  }

  .screen figcaption {
    font-size: 11.5px;
  }
}

@media (max-width: 520px) {
  section {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .card {
    padding: var(--space-3);
  }
}

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