/* ApplyPocket — root landing page
 *
 * Plain CSS, zero build step. Design language mirrors the product app
 * in /app: slate + indigo palette, system font stack, calm whitespace,
 * no startup-hype aesthetics.
 *
 * Colors align with the Tailwind palette the app uses (indigo-600,
 * slate-50/100/200/500/700/900) so both surfaces feel like one product.
 */

:root {
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --indigo-50:  #eef2ff;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --amber-50:   #fffbeb;
  --amber-700:  #b45309;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  --max-width: 72rem;
  --text-max:  42rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--slate-700);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------------------------------
 * Layout primitives
 * ----------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 5rem 0;
  border-top: 1px solid var(--slate-200);
}

section:first-of-type {
  border-top: none;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--indigo-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--slate-600);
  max-width: var(--text-max);
  margin: 0 0 2rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--indigo-600);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.wordmark:hover {
  color: var(--indigo-500);
}

.wordmark img {
  height: 1.25rem;
  width: auto;
  display: block;
}

.header-cta {
  font-size: 0.9375rem;
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 500;
}

.header-cta:hover {
  color: var(--slate-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -----------------------------------------------------------------
 * Buttons
 * ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease,
              color 120ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--indigo-600);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--indigo-500);
}

.btn-secondary {
  background: #ffffff;
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

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

.hero {
  padding: 4.5rem 0 5rem;
  border-top: none;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 6.5rem;
  }
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  margin: 0 0 1.25rem;
  max-width: 44rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero p.lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 40rem;
  margin: 0 0 2rem;
  line-height: 1.55;
}

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* -----------------------------------------------------------------
 * Positioning bar
 * ----------------------------------------------------------------- */

.positioning {
  background: var(--slate-50);
  padding: 2.5rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.positioning-lead {
  color: var(--slate-700);
  font-weight: 500;
  margin: 0 0 1rem;
  max-width: var(--text-max);
}

.positioning-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* auto-fit handles any item count cleanly across breakpoints; the 5-item
     list collapses to 2 or 1 columns on narrower screens without awkward
     last-row gaps. */
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.5rem 2rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
}

.positioning-list li,
.value-list li {
  position: relative;
  padding-left: 1.25rem;
}

.positioning-list li::before,
.value-list li::before {
  content: '·';
  position: absolute;
  left: 0.25rem;
  top: -0.25rem;
  color: var(--indigo-600);
  font-size: 1.25rem;
  line-height: 1;
}

/* Used by the "Why ApplyPocket exists" section. Same indigo-dot treatment
   as the positioning bar but two-column at most, sitting on white. */
.value-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
  color: var(--slate-700);
  font-size: 1rem;
  max-width: var(--text-max);
}

@media (min-width: 640px) {
  .value-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Problem section narrative. Short staccato lines on a contained width so
   the rhythm reads. */
.narrative {
  max-width: var(--text-max);
  margin-top: 1.25rem;
}

.narrative p {
  margin: 0 0 0.875rem;
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.narrative .narrative-punch {
  color: var(--slate-900);
  font-weight: 500;
}

.narrative .narrative-closer {
  color: var(--slate-900);
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

/* -----------------------------------------------------------------
 * Steps (how-it-works)
 * ----------------------------------------------------------------- */

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

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step {
  border: 1px solid var(--slate-200);
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-900);
}

.step p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.9375rem;
}

/* -----------------------------------------------------------------
 * Differentiation grid
 * ----------------------------------------------------------------- */

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

@media (min-width: 640px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.diff-row {
  border: 1px solid var(--slate-100);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
}

.diff-row h4 {
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.diff-row p {
  margin: 0;
  color: var(--slate-700);
  font-size: 0.9375rem;
}

/* -----------------------------------------------------------------
 * Features list
 * ----------------------------------------------------------------- */

.features {
  background: var(--slate-50);
}

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

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  border: 1px solid var(--slate-100);
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.feature h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
}

.feature p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.9375rem;
}

/* -----------------------------------------------------------------
 * Product screenshot
 * ----------------------------------------------------------------- */

.screenshot {
  margin: 2.5rem auto 0;
  max-width: 60rem;
  padding: 0;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08);
}

/* -----------------------------------------------------------------
 * Pricing
 * ----------------------------------------------------------------- */

/* No background tint — the features section above already uses slate-50,
   and stacking two tinted bands without a visual break flattens the
   rhythm. The pricing card's own border is the visual anchor here. */
.pricing-eyebrow,
.pricing-title {
  text-align: center;
}

.pricing-card {
  max-width: 28rem;
  margin: 2rem auto 0;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}

.pricing-amount .term {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-left: 0.25rem;
}

.pricing-support {
  color: var(--slate-700);
  font-weight: 500;
  margin: 0.25rem 0 1rem;
  font-size: 0.9375rem;
}

.pricing-sub {
  color: var(--slate-600);
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.pricing-cta {
  width: 100%;
}

/* -----------------------------------------------------------------
 * FAQ
 * ----------------------------------------------------------------- */

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

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

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
}

.faq-item p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.9375rem;
  max-width: 52rem;
}

/* -----------------------------------------------------------------
 * Final CTA
 * ----------------------------------------------------------------- */

.final-cta {
  text-align: center;
  padding: 5rem 0;
}

.final-cta h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .final-cta h2 {
    font-size: 2.25rem;
  }
}

.final-cta .cta-row {
  justify-content: center;
}

.final-cta-body {
  color: var(--slate-600);
  font-size: 1.0625rem;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}

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

.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 2rem 0;
  color: var(--slate-400);
  font-size: 0.8125rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--slate-500);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--slate-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -----------------------------------------------------------------
 * Focus rings — keyboard accessibility mirrors the app's treatment.
 * ----------------------------------------------------------------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
