/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fefcf9;
  --text: #2d2a26;
  --text-soft: #6b6560;
  --accent: #c27a4a;
  --accent-soft: #e8d5c4;
  --olive: #7c8c5a;
  --olive-soft: #dce4cd;
  --white: #ffffff;
  --radius: 8px;
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typografi ── */
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.6rem;
  color: #1a1815;
}

h2 {
  font-size: 1.75rem;
  color: #1a1815;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  color: #1a1815;
  margin-bottom: 0.35rem;
}

p {
  color: var(--text-soft);
}

section {
  padding: 5rem 0;
}

/* ── Hero ── */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cta:hover {
  background: #b06838;
}

/* ── Vad är rAi? ── */
.what-is {
  background: var(--white);
  border-top: 1px solid #ede8e2;
  border-bottom: 1px solid #ede8e2;
}

.what-is p {
  max-width: 600px;
}

/* ── Varför vi finns ── */
.why {
  text-align: center;
}

.why-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0 1.5rem;
}

.cap-number {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cap-unit {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-top: 0.3rem;
}

.cap-explainer {
  max-width: 500px;
  margin: 0 auto;
  font-style: italic;
}

/* ── Features ── */
.features {
  background: var(--white);
  border-top: 1px solid #ede8e2;
  border-bottom: 1px solid #ede8e2;
}

.features h2 {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--olive-soft);
  color: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.feature p {
  font-size: 0.95rem;
}

/* ── Så funkar det ── */
.how {
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 2.5rem;
  text-align: left;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.15rem;
}

.step-content p {
  font-size: 0.95rem;
}

.how-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ── Vem det är för ── */
.who {
  background: var(--white);
  border-top: 1px solid #ede8e2;
  border-bottom: 1px solid #ede8e2;
}

.who p {
  max-width: 600px;
}

/* ── Väntelista ── */
.waitlist {
  text-align: center;
}

.waitlist-sub {
  margin-bottom: 1.75rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid #d6cec4;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  min-width: 260px;
  transition: border-color 0.2s ease;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-form input[type="email"]::placeholder {
  color: #b8b0a8;
}

.waitlist-note {
  font-size: 0.85rem;
  color: #99948e;
  margin-top: 1rem;
}

.waitlist-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.waitlist-message.success {
  color: var(--olive);
}

.waitlist-message.error {
  color: #c44;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid #ede8e2;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-tagline {
  color: #b0a89c;
  font-size: 0.85rem;
}

/* ── Responsivt ── */
@media (min-width: 600px) {
  h1 { font-size: 3.2rem; }
  .hero h1 { font-size: 3.4rem; }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .waitlist-form {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .cap-number { font-size: 3.5rem; }
  .steps { gap: 1.75rem; }
  .step { gap: 1rem; }
}
