/* Summary: Refined minimalist design for Readie landing page following the Readie Design System. */
:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --text-main: #000000;
  --text-muted: #71717a;
  --accent: #2563eb; /* Electric Blue */
  --border: #e4e4e7;
  --surface: #f4f4f5;
  
  /* Spacing tokens */
  --space-2xl: 24px;
  --space-4xl: 40px;
  --space-6xl: 60px;
  --space-7xl: 80px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

/* Header & Nav */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-7xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -2.0px; /* tightest token from skill */
  text-transform: lowercase;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  text-align: center;
  margin-top: var(--space-7xl);
  margin-bottom: var(--space-7xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0;
  text-transform: lowercase;
}

.subhead {
  font-family: "Newsreader", serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-muted);
  width: 100%;
  margin: 0 auto var(--space-4xl);
  line-height: 1.5;
}

/* CTA */
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn.primary {
  background-color: var(--text-main);
  color: var(--bg);
}

.btn.primary:hover {
  opacity: 0.85;
}

/* CTA Note */
.cta-note {
  font-family: "Newsreader", serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
  text-align: center;
}

/* CTA Details */
.cta-details {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.cta-details summary {
  list-style: none;
  outline: none;
}

.cta-details summary::-webkit-details-marker {
  display: none;
}

.cta-content {
  margin-top: var(--space-2xl);
  padding: 1rem 1.4rem;
  background-color: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: "Newsreader", serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content p {
  margin: 0;
}

.cta-content a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.cta-content a:hover {
  opacity: 0.7;
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn.ghost:hover {
  background-color: var(--surface);
}

/* Feature Showcase */
.showcase {
  margin-top: calc(var(--space-7xl) * 2);
  display: flex;
  flex-direction: column;
  gap: var(--space-7xl);
}

.feature-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4xl);
}

.feature-item:nth-child(even) {
  direction: rtl;
}

.feature-item:nth-child(even) .feature-text {
  direction: ltr;
}

.feature-text {
  max-width: 440px;
}

.feature-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1.0px;
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.feature-text p {
  font-family: "Newsreader", serif;
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.feature-text p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.feature-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-image {
  width: 320px;
  height: auto;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-item {
    flex-direction: column-reverse;
    text-align: center;
  }

  .feature-item:nth-child(even) {
    flex-direction: column-reverse;
  }

  .feature-text {
    margin: 0 auto;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .top-nav {
    margin-bottom: var(--space-4xl);
  }
}

/* Footer */
footer {
  margin-top: var(--space-7xl);
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}
