/* Base styles and layout for Okosly landing page */

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;

  /* Spacing (8px scale) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body {
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0;
  font-size: 0.98rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav__links a {
  font-size: 0.95rem;
  color: #374151;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
}

.section {
  padding: var(--space-3xl) 1.25rem;
}

.section--hero {
  padding-top: 2.5rem;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 55%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.18), transparent 55%);
}

#hero {
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  #hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 3rem;
  }

  .hero__content {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-3xl) 1.5rem;
  }
}

.section--soft {
  background-color: var(--bg-secondary);
}

.section__header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__subtitle {
  margin-top: 0.75rem;
  color: var(--text-secondary);
}

.hero__content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero__illustration {
  margin-top: 2.5rem;
}

@media (min-width: 960px) {
  .hero__illustration {
    margin-top: 0;
  }
}

.hero__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  color: var(--primary-dark);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero__subtitle {
  margin-top: 1rem;
  color: #4b5563;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.35);
  background: var(--primary-dark);
}

.btn-secondary {
  background: #eff6ff;
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: #dbeafe;
}

.benefits {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.steps {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 1.25rem;
}

.steps .step + .step {
  margin-top: 1.5rem;
}

.step {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.step__content h3 {
  margin-bottom: 0.25rem;
}

.trust-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__group label,
.form__group legend {
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.form__group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form__error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

.form__microcopy {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.signup-placeholder {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.signup-placeholder p {
  margin-bottom: 1.25rem;
  color: #4b5563;
}

.coming-soon {
  margin-top: 2rem;
  text-align: left;
}

.coming-soon__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.coming-soon__items {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .coming-soon__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.coming-soon__item {
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
}

.coming-soon__label {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.coming-soon__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}

.faq-question {
  width: 100%;
  padding: 0.9rem 0;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-weight: 600;
  color: var(--text-secondary);
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  display: none;
  padding: 0 0 0.9rem 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem 1.5rem;
  background-color: var(--bg-secondary);
}

.footer__content {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__links {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: flex-start;
  }
}

.footer__column h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer__column a,
.footer__column p {
  font-size: 0.9rem;
  color: #4b5563;
}

.footer__bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
