/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors matching Jounari app - warm, friendly palette */
  --color-text: oklch(25% 0.02 60);           /* warm ink */
  --color-text-muted: oklch(45% 0.01 60);     /* warm ink light */
  --color-bg: oklch(98% 0.005 80);            /* warm canvas */
  --color-white: oklch(99% 0.005 80);         /* warm white */
  --color-primary: oklch(70% 0.14 25);        /* coral */
  --color-primary-hover: oklch(62% 0.14 25);  /* coral darker */
  --color-border: oklch(88% 0.01 80);         /* warm border */

  /* Gradient colors */
  --color-coral: oklch(70% 0.14 25);
  --color-mint: oklch(75% 0.12 160);
  --color-lavender: oklch(70% 0.10 290);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 720px;
  --max-width-wide: 860px;
  --spacing: 1.5rem;
}

html {
  font-size: 18px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-mint), var(--color-lavender));
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Header */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.header .container {
  max-width: var(--max-width-wide);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--color-primary-hover);
}

.button-large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.button-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.button-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-text-muted);
}

.button[disabled] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

/* Hero */
.hero {
  background: var(--color-white);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text strong {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  isolation: isolate;
}

.hero-text strong::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -2px;
  bottom: -1px;
  height: 50%;
  background: oklch(70% 0.14 25 / 0.3);
  transform: rotate(-2deg) skewX(-8deg);
  border-radius: 4px 8px 2px 10px;
  z-index: -1;
}

/* Features */
.features {
  padding: 4rem 0;
}

.features .container {
  max-width: var(--max-width-wide);
}

.feature {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--color-text-muted);
}

.feature img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 1.5rem;
}

/* Info grid section */
.info-grid {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}

.info-grid .container {
  max-width: var(--max-width-wide);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* CTA */
.cta {
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.beta-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
}

.beta-form input[type="email"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
}

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

.beta-form button {
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Footer */
.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 700px) {
  .info-grid .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .features {
    padding: 2rem 0;
  }

  .feature {
    padding: 1.5rem;
  }

  .beta-form {
    flex-direction: column;
  }
}
