/* ============================================================
   ROXXI — styles.css
   Design tokens: navy family, DM Sans + Playfair Display
   ============================================================ */

/* --- TOKENS --- */
:root {
  --rx-navy:           #1B2D5E;
  --rx-navy-mid:       #253E80;
  --rx-navy-light:     #3A5499;
  --rx-white:          #FFFFFF;
  --rx-tint:           #E8ECF5;
  --rx-tint-dark:      #D0D7EC;
  --rx-muted:          #8B9CBF;
  --rx-bg:             #F5F6FA;
  --rx-text:           #1B2D5E;
  --rx-text-secondary: #4A5E8A;
  --rx-border:         rgba(27, 45, 94, 0.12);
  --rx-border-strong:  rgba(27, 45, 94, 0.22);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1160px;
  --nav-h: 64px;
  --section-pad: clamp(64px, 8vw, 112px);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--rx-text);
  background: var(--rx-bg);
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.15;
  color: var(--rx-navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 500; }

p { color: var(--rx-text-secondary); }

/* --- LOGO --- */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--rx-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--rx-border-strong);
}
.logo-inner {
  width: 32px;
  height: 32px;
  background: var(--rx-navy);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-r {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--rx-white);
  line-height: 1;
  margin-top: 1px;
}

.logo-wordmark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--rx-navy);
  letter-spacing: -0.01em;
}

/* Small logo variant */
.logo-mark--sm { width: 32px; height: 32px; border-radius: 8px; }
.logo-inner--sm { width: 26px; height: 26px; border-radius: 5px; }
.logo-r--sm { font-size: 16px; }
.logo-wordmark--sm { font-size: 1rem; }

/* --- HEADER / NAV --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rx-border);
  background: rgba(245, 246, 250, 0.98);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rx-text-secondary);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--rx-navy); }

/* --- HERO --- */
.hero {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-end;
}

.hero-text {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rx-muted);
  margin-bottom: 1rem;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
  color: var(--rx-navy);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--rx-text-secondary);
  max-width: 42ch;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.coming-soon-cta {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rx-muted);
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--rx-border-strong);
  border-radius: 100px;
  background: var(--rx-white);
  letter-spacing: 0.01em;
}

/* Phone strip */
.hero-screens {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 16px);
  padding-bottom: 0;
}

.screen-wrap {
  flex: 0 0 auto;
}

.screen-left,
.screen-right {
  width: clamp(110px, 14vw, 170px);
  transform: translateY(8px);
  opacity: 0.72;
  filter: brightness(0.97);
}

.screen-center {
  width: clamp(140px, 18vw, 210px);
  z-index: 2;
}

.app-screen {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  /* Subtle drop shadow using navy tones only */
  box-shadow:
    0 2px 4px rgba(27, 45, 94, 0.06),
    0 8px 24px rgba(27, 45, 94, 0.12),
    0 24px 48px rgba(27, 45, 94, 0.10);
}

/* --- SECTION SHARED --- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner--narrow {
  max-width: 680px;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rx-muted);
  margin-bottom: 0.875rem;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  background: var(--rx-white);
  border-top: 1px solid var(--rx-border);
  border-bottom: 1px solid var(--rx-border);
}

.how-it-works h2 {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 24ch;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rx-tint-dark);
  line-height: 1;
  user-select: none;
}

.step-body h3 {
  color: var(--rx-navy);
  margin-bottom: 0.5rem;
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--rx-text-secondary);
  line-height: 1.65;
}

/* --- METHODOLOGY SNIPPET --- */
.methodology-snippet {
  background: var(--rx-bg);
}

.methodology-snippet h2 {
  margin-bottom: 1.25rem;
}

.method-body {
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  color: var(--rx-text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 68ch;
}

.text-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rx-navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--rx-tint-dark);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.text-link:hover {
  color: var(--rx-navy-light);
  border-bottom-color: var(--rx-navy-light);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--rx-white);
  border-top: 1px solid var(--rx-border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1rem 3rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-attribution {
  font-size: 0.8125rem;
  color: var(--rx-muted);
}
.footer-attribution a {
  color: var(--rx-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-attribution a:hover { color: var(--rx-navy); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  justify-content: flex-end;
  align-self: start;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--rx-text-secondary);
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--rx-navy); }

.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--rx-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--rx-border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: hide side screens, center the result screen */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-text {
    padding-bottom: 0;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .coming-soon-cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }
  .hero-screens {
    justify-content: center;
    padding-bottom: 0;
  }
}

/* Mobile: show only result screen */
@media (max-width: 600px) {
  .screen-left,
  .screen-right {
    display: none;
  }
  .screen-center {
    width: min(260px, 70vw);
  }
  .steps-list {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    justify-content: flex-start;
  }
}
