/* ==========================================================================
   rmtflt Landing Page — style.css
   Warm sunset palette, chunky Duolingo-inspired borders, Nunito self-hosted
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font Face — Self-hosted Nunito
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/nunito-v16-latin-regular.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Primary */
  --color-primary:          #FF6B35;
  --color-primary-dark:     #E55A2B;
  --color-primary-light:    #FFF0EB;

  /* Accent */
  --color-accent:           #FF9F1C;
  --color-accent-dark:      #E88E19;

  /* Backgrounds */
  --color-bg:               #FFFBF7;
  --color-bg-alt:           #FFF5ED;
  --color-bg-hero:          #FF6B35;

  /* Text */
  --color-text:             #2D2D2D;
  --color-text-light:       #6B6B6B;
  --color-text-on-primary:  #FFFFFF;

  /* Borders */
  --color-border:           #F0D9C8;
  --color-border-bottom:    #E8C4AF;

  /* Typography */
  --font-hero:   clamp(2.5rem, 5vw, 4rem);
  --font-title:  1.5rem;
  --font-body:   1.1rem;
  --font-small:  0.9rem;

  /* Layout */
  --max-width:   1120px;
  --gutter:      24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Skip to Content (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

.section-title {
  font-size: var(--font-title);
  font-weight: 800;
  margin-bottom: 48px;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: var(--font-body);
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2.5px solid var(--color-primary-dark);
  border-bottom: 4px solid var(--color-primary-dark);
  cursor: pointer;
  transition: transform 0.12s ease, border-bottom-width 0.12s ease,
              background-color 0.12s ease;
  text-align: center;
  min-height: 48px;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
  border-bottom-width: 3px;
}

.btn:active {
  transform: translateY(1px);
  border-bottom-width: 2.5px;
}

/* Primary — orange bg, white text */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}

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

/* Inverted — white bg, orange text (for hero) */
.btn-inverted {
  background: #FFFFFF;
  color: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.btn-inverted:hover {
  background: #FFF0EB;
  color: var(--color-primary-dark);
}

/* Secondary — outline style */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
  border-bottom-color: var(--color-border-bottom);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   Card (shared)
   -------------------------------------------------------------------------- */
.card {
  background: #FFFFFF;
  border: 2.5px solid var(--color-border);
  border-bottom: 5px solid var(--color-border-bottom);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   NAV — Sticky top bar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 700;
  font-size: var(--font-small);
  color: var(--color-text-light);
  transition: color 0.15s;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav panel */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 16px;
  border-top: 1px solid var(--color-border);
}

.nav-mobile a {
  display: block;
  padding: 12px var(--gutter);
  font-weight: 700;
  font-size: var(--font-body);
  color: var(--color-text);
}

.nav-mobile a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.nav-mobile.is-open {
  display: flex;
}

/* ==========================================================================
   HERO — Full viewport, edge-to-edge orange
   ========================================================================== */
.hero {
  position: relative;
  background: var(--color-bg-hero);
  color: var(--color-text-on-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.12;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.08;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 120px 0 80px;
}

.hero-headline {
  font-size: var(--font-hero);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 40px;
  opacity: 0.92;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-subtext {
  font-size: var(--font-small);
  font-weight: 700;
  opacity: 0.75;
}

/* Third decorative shape — small, top-left */
.hero-shape {
  position: absolute;
  top: 30%;
  right: 18%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.06;
  pointer-events: none;
}

/* ==========================================================================
   FEATURES — Timeline layout
   ========================================================================== */
.features {
  background: var(--color-bg);
  padding: 96px 0;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* Vertical center line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--color-border);
}

/* Timeline item */
.timeline-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 64px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Left-aligned item: card on left, empty space on right */
.timeline-item--left {
  flex-direction: row;
}

/* Right-aligned item: empty space on left, card on right */
.timeline-item--right {
  flex-direction: row-reverse;
}

/* The card half */
.timeline-card {
  width: calc(50% - 40px);
  background: #FFFFFF;
  border: 2.5px solid var(--color-border);
  border-bottom: 5px solid var(--color-border-bottom);
  border-radius: 16px;
  padding: 28px 32px;
  transition: transform 0.15s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
}

/* The spacer half */
.timeline-spacer {
  width: calc(50% - 40px);
}

/* Dot on the timeline center */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--color-border);
  z-index: 2;
}

/* Horizontal branch from dot to card */
.timeline-branch {
  position: absolute;
  top: 35px;
  height: 2px;
  width: 32px;
  background: var(--color-border);
}

.timeline-item--left .timeline-branch {
  right: 50%;
  margin-right: 8px;
}

.timeline-item--right .timeline-branch {
  left: 50%;
  margin-left: 8px;
}

/* Card content */
.timeline-card-label {
  font-size: var(--font-small);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-card-text {
  font-size: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.55;
}

/* ==========================================================================
   AUDIENCE — "Built for real people"
   ========================================================================== */
.audience {
  background: var(--color-bg-alt);
  padding: 96px 0;
}

.persona-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto 40px;
}

/* First persona: spans full left column */
.persona-card:nth-child(1) {
  grid-row: 1 / 3;
}

/* Second and third stack on the right */
.persona-card:nth-child(2) {
  grid-row: 1;
  grid-column: 2;
}

.persona-card:nth-child(3) {
  grid-row: 2;
  grid-column: 2;
}

.persona-card {
  background: #FFFFFF;
  border: 2.5px solid var(--color-border);
  border-bottom: 5px solid var(--color-border-bottom);
  border-radius: 16px;
  padding: 28px 28px 24px;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.persona-card:hover {
  transform: translateY(-2px);
}

.persona-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.persona-desc {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.5;
}

.audience-closer {
  text-align: center;
  font-size: var(--font-body);
  font-weight: 700;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   DOWNLOAD — Get started section
   ========================================================================== */
.download {
  background: var(--color-bg);
  padding: 96px 0;
}

.download-cards {
  display: flex;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.download-card {
  flex: 1;
  background: #FFFFFF;
  border: 2.5px solid var(--color-border);
  border-bottom: 5px solid var(--color-border-bottom);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.download-card:hover {
  transform: translateY(-2px);
}

.download-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1;
}

.download-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 6px;
}

.download-card-meta {
  font-size: var(--font-small);
  font-weight: 700;
  color: var(--color-text-light);
}

.download-guide {
  text-align: center;
}

.download-guide .btn-secondary {
  font-size: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-text);
  color: var(--color-text-on-primary);
  padding: 64px 0;
  text-align: center;
}

.footer-headline {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 28px;
  opacity: 0.95;
}

.footer-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-footer {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
}

.btn-footer:hover {
  background: var(--color-primary-dark);
}

.btn-footer-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.btn-footer-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.footer-copy {
  font-size: var(--font-small);
  font-weight: 700;
  opacity: 0.5;
}

/* ==========================================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero — centered on mobile */
  .hero {
    min-height: 90vh;
    min-height: 90dvh;
  }

  .hero-content {
    text-align: center;
    padding: 100px 0 60px;
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-subtext {
    text-align: center;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: -10%;
    right: -15%;
  }

  .hero::after {
    width: 250px;
    height: 250px;
    bottom: -15%;
    left: -10%;
  }

  .hero-shape {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 5%;
  }

  /* Features — collapse timeline */
  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item,
  .timeline-item--left,
  .timeline-item--right {
    flex-direction: row;
  }

  .timeline-spacer {
    display: none;
  }

  .timeline-card {
    width: 100%;
    margin-left: 52px;
  }

  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-branch {
    display: none;
  }

  /* Audience — single column */
  .persona-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .persona-card:nth-child(1) {
    grid-row: auto;
  }

  .persona-card:nth-child(2) {
    grid-row: auto;
    grid-column: 1;
  }

  .persona-card:nth-child(3) {
    grid-row: auto;
    grid-column: 1;
  }

  /* Download — stack */
  .download-cards {
    flex-direction: column;
  }

  /* Section padding */
  .features,
  .audience,
  .download {
    padding: 72px 0;
  }

  /* Section title center on mobile */
  .section-title {
    text-align: center;
  }

  /* Footer */
  .footer-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .btn {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-card {
    padding: 20px 20px;
    margin-left: 44px;
  }

  .persona-card {
    padding: 20px;
  }
}
