/* 
   RallyCue Landing Page Styling
   Theme: Wimbledon/Roland Garros Warm Light (Clay & Ivory Cream)
   Original, high-end, human-centric aesthetic
*/

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette (Warm Clay & Ivory Cream) */
  --bg-primary: #fbfbf9; /* Soft cream/ivory */
  --bg-secondary: #f4f3ed; /* Slightly darker cream for contrast */
  --bg-card: #ffffff; /* Pure white for clean panels */
  --border-color: rgba(27, 67, 50, 0.08); /* Subtle forest green border */
  
  --text-primary: #1c2b24; /* Very dark green-charcoal */
  --text-secondary: #4a5e55; /* Muted olive-slate */
  --text-muted: #80968c; /* Sage gray */
  
  /* Sophisticated Forest Tennis Green */
  --color-accent: #2c6e49; 
  --color-accent-hover: #1e4d32;
  --color-accent-light: rgba(44, 110, 73, 0.08);
  
  /* Terracotta Court Clay Orange */
  --color-clay: #d96b27;
  --color-clay-hover: #b8541a;
  --color-clay-bg: rgba(217, 107, 39, 0.08);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadow Systems */
  --card-shadow: 0 10px 30px -5px rgba(28, 43, 36, 0.05), 0 1px 3px rgba(28, 43, 36, 0.02);
  --hover-shadow: 0 20px 40px -10px rgba(28, 43, 36, 0.1), 0 2px 8px rgba(28, 43, 36, 0.04);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(251, 251, 249, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary {
  background-color: var(--color-clay-bg);
  border: 1px solid rgba(217, 107, 39, 0.2);
  color: var(--color-clay);
}

.header-share-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(44, 110, 73, 0.22);
  border-radius: 9999px;
  background: var(--color-accent);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.header-share-button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.header-share-button:focus-visible {
  outline: 3px solid rgba(44, 110, 73, 0.22);
  outline-offset: 2px;
}

.header-share-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  flex: 0 0 auto;
}

.header-share-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--color-accent);
  border: 1px solid rgba(44, 110, 73, 0.2);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Glassmorphic Panel (Adapted for Light Theme) */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - 80px); /* Fill screen minus header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.hero-container {
  max-width: 750px;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 800;
}

.text-gradient {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.text-gradient::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-clay);
  opacity: 0.2;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Showcase Section */
.showcase-section {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  box-sizing: border-box;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Showcase Cards */
.showcase-card-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  gap: 20px;
  text-align: center;
  transition: var(--transition-normal);
  background: var(--bg-card);
  width: 100%;
  max-width: 450px;
}

.showcase-card-new:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(44, 110, 73, 0.15);
}

.step-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--color-clay-bg);
  border: 1px solid rgba(217, 107, 39, 0.15);
  color: var(--color-clay);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.showcase-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.showcase-card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 380px;
}

/* 
   Dynamic Aspect-Ratio Phone Mockup
*/
.phone-mockup {
  width: 100%;
  max-width: 310px;
  aspect-ratio: 9 / 19.5; /* Uniform aspect ratio for all screenshots */
  border-radius: 28px;
  box-shadow: 0 15px 30px rgba(28, 43, 36, 0.12), 0 0 0 1px rgba(28, 43, 36, 0.05);
  border: 8px solid #1c2b24; /* Premium dark forest bezel */
  background-color: #000;
  overflow: hidden;
  position: relative;
  display: block; /* Normal block flow, no flex alignment issues */
}

.phone-speaker {
  width: 50px;
  height: 4px;
  background: #1c2b24;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fits perfectly, clipping only minor system status bars */
  display: block;
}

.phone-home-indicator {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Feedback Section */
.feedback-section {
  min-height: calc(100vh - 80px - 60px); /* Viewport minus header and footer */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0;
  box-sizing: border-box;
}

/* Centered Form Layout */
.centered-form {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

input, select, textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(44, 110, 73, 0.08);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

/* Success Card */
.form-success {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: bounceSuccess 1.2s infinite alternate ease-in-out;
}

@keyframes bounceSuccess {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.form-success p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-status {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
}

.success-social-share {
  width: 100%;
  max-width: 680px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-secondary);
  text-align: left;
}

.share-panel-header {
  margin-bottom: 14px;
}

.share-panel-header h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.share-panel-header p {
  font-size: 0.86rem;
  line-height: 1.45;
}

.quick-share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.quick-share-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 10px;
}

.share-whatsapp {
  background: #1f8f4d;
}

.share-facebook {
  background: #2f5fbb;
}

.share-x {
  background: #1f2933;
}

.share-email {
  background: var(--color-clay);
}

.share-template-label {
  display: block;
  margin-bottom: 6px;
}

.share-template-box {
  width: 100%;
  resize: vertical;
  min-height: 170px;
  border: 1px solid rgba(44, 110, 73, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.45;
}

.share-assets-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.asset-link {
  color: var(--color-accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.asset-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .header {
    padding: 14px 0;
  }

  .header-container {
    gap: 10px;
  }

  .logo-area {
    gap: 8px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav-badges {
    gap: 8px;
  }

  .badge-primary {
    padding: 6px 10px;
    font-size: 0;
  }

  .badge-primary::after {
    content: "Launch";
    font-size: 0.68rem;
  }

  .header-share-button {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.76rem;
  }

  .quick-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .success-social-share {
    padding: 14px;
  }

  .quick-share-link {
    width: 100%;
  }

  .share-assets-row .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .header-share-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .header-share-button {
    width: 38px;
    padding: 8px;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 18px 0;
  background: var(--bg-secondary);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Honeypot: visually hidden but present in the DOM for bots to fill. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline form error (rate-limit / validation) */
.form-error {
  color: var(--color-clay-hover);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

/* Privacy Policy section */
.privacy-section {
  padding: 30px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.privacy-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.inline-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Removed: dead admin-drawer + admin-toggle styles had no matching HTML/JS. */

/* Animations & Helper Classes */
.hidden {
  display: none !important;
}

/* Milestone Progress & Live Activity Styles */
.hero-social-proof {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.milestone-tracker {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: left;
  box-shadow: var(--card-shadow);
}

.milestone-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.milestone-label {
  color: var(--text-secondary);
}

.milestone-label strong {
  color: var(--text-primary);
}

.milestone-count {
  font-weight: 700;
  color: var(--color-clay);
}

.progress-bar-bg {
  background: var(--bg-secondary);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--color-clay) 0%, #f08b43 100%);
  height: 100%;
  border-radius: 9999px;
  width: 0%; /* Dynamically animated by JS */
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* (Live activity ticker removed — milestone tracker above is the sole social proof.) */


/* Store policy/support pages */
.legal-logo {
  color: inherit;
  text-decoration: none;
}

.legal-badge-link {
  color: var(--color-clay);
  text-decoration: none;
}

.legal-page {
  padding: 72px 0 88px;
}

.legal-container {
  max-width: 840px;
}

.legal-kicker {
  color: var(--color-clay);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.05;
  margin-bottom: 18px;
}

.legal-intro {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 36px;
}

.legal-section {
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin-left: 22px;
}

.legal-section a {
  color: var(--color-accent);
  font-weight: 700;
}

.legal-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  margin-bottom: 8px;
  padding: 24px;
}

/* Responsive queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Height-based responsiveness for laptops and short viewports */
@media (max-height: 850px) {
  .hero-section {
    min-height: calc(100vh - 80px);
    padding: 15px 0;
  }
  .hero-title {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .showcase-section {
    min-height: calc(100vh - 80px);
    padding: 15px 0;
  }
  .feedback-section {
    min-height: calc(100vh - 80px - 56px);
    padding: 15px 0;
  }
  .section-header {
    margin-bottom: 10px;
  }
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 2px;
  }
  .section-subtitle {
    font-size: 0.82rem;
  }
  .showcase-card-new {
    padding: 14px;
    gap: 8px;
  }
  .phone-mockup {
    max-width: 220px; /* Highly compact mockup for shorter screens */
    border-radius: 16px;
    border-width: 5px;
  }
  .showcase-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .showcase-card-body p {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .step-badge {
    padding: 2px 8px;
    font-size: 0.6rem;
    margin-bottom: 2px;
  }
  .centered-form {
    padding: 20px;
    border-radius: 14px;
  }
  .feedback-form {
    gap: 12px;
  }
  .quick-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .success-social-share {
    padding: 14px;
  }
  .share-assets-row .btn {
    width: 100%;
  }
  input, select, textarea {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
  label {
    font-size: 0.78rem;
  }
  .hero-social-proof {
    margin-top: 14px;
    gap: 8px;
    max-width: 440px;
  }
  .milestone-tracker {
    padding: 10px 14px;
    border-radius: 10px;
  }
  .milestone-info {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }
  .progress-bar-bg {
    height: 6px;
  }
}
