/* Studio 88 — OLL DTT Ireland Light Theme Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Official Light Theme Colors (from m_app/lib/core/theme/app_colors.dart & app_theme.dart) */
  --yellow-primary: #FFD70E;
  --yellow-hover: #F2CA00;
  --bg-light: #EBEBEB; /* AppColors.gray200 */
  --card-white: #FFFFFF; /* AppColors.white */
  
  --black-text: #1E1E1E; /* AppColors.black */
  --gray-300: #E0E0E0;
  --gray-400: #D9D9D9;
  --gray-500: #BFBFBF;
  --text-muted: #555555;
  --text-dim: #777777;
  
  --green-pass: #76E283; /* AppColors.green */
  --red-fail: #E24B4B;  /* AppColors.red */
  
  --font-heading: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-yellow: 0 6px 20px rgba(255, 215, 14, 0.4);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--black-text);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-light);
}

a {
  color: var(--black-text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #000000;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(235, 235, 235, 0.92);
  border-bottom: 1px solid var(--gray-300);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black-text);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.brand-badge {
  background: var(--yellow-primary);
  color: var(--black-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.975rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black-text);
  font-weight: 700;
}

.btn-nav {
  padding: 10px 22px;
  background: var(--yellow-primary);
  border: 1px solid var(--yellow-primary);
  color: var(--black-text) !important;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn-nav:hover {
  background: var(--yellow-hover);
  box-shadow: var(--shadow-yellow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--black-text);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--card-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--black-text);
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-pill svg {
  color: #D9A400;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--black-text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.yellow-highlight {
  background: var(--yellow-primary);
  color: var(--black-text);
  padding: 2px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--card-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  color: var(--black-text);
  transition: var(--transition);
  min-width: 200px;
  box-shadow: var(--shadow-sm);
}

.store-btn:hover {
  background: var(--card-white);
  border-color: var(--yellow-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  color: var(--black-text);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-subtitle {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.store-btn-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Feature Mockup Card */
.mockup-container {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--card-white);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-card);
}

.mockup-screen {
  background: var(--bg-light);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 36px;
  text-align: left;
  border: 1px solid var(--gray-300);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.mockup-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  background: var(--yellow-primary);
  color: var(--black-text);
}

/* Features Grid */
.features-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 55px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--black-text);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--yellow-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--yellow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-text);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(255, 215, 14, 0.35);
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black-text);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* Page Layouts for Legal & Support */
.page-container {
  padding: 50px 0 80px;
  max-width: 860px;
}

.page-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 24px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black-text);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Legal Content Styling */
.legal-content {
  background: var(--card-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black-text);
  margin: 30px 0 14px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p, .legal-content ul {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 50px;
}

.faq-item {
  background: var(--card-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  color: var(--black-text);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  fill: var(--text-dim);
}

.faq-item.active {
  border-color: var(--yellow-primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  fill: var(--black-text);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: #F8F8F8;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* Support Form with Anti-Spam */
.support-form-container {
  background: var(--card-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black-text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-light);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--black-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: var(--card-white);
  border-color: var(--yellow-primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 14, 0.3);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Anti-Spam Elements */
.hp-field {
  display: none !important;
  visibility: hidden !important;
}

.math-challenge-box {
  background: rgba(255, 215, 14, 0.15);
  border: 1px dashed var(--yellow-primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.math-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black-text);
}

.btn-primary {
  width: 100%;
  padding: 16px 28px;
  background: var(--yellow-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--black-text);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

/* Form Status Message */
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(118, 226, 131, 0.2);
  border: 1px solid var(--green-pass);
  color: #1B6625;
}

.form-status.error {
  display: block;
  background: rgba(226, 75, 75, 0.15);
  border: 1px solid var(--red-fail);
  color: #991B1B;
}

/* Footer & Disclaimer */
footer {
  margin-top: auto;
  background: var(--card-white);
  border-top: 1px solid var(--gray-300);
  padding: 50px 0 35px;
}

.disclaimer-box {
  background: var(--bg-light);
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--yellow-primary);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin-bottom: 35px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-300);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--black-text);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--card-white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-card);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mockup-screen {
    padding: 20px;
  }
  
  .legal-content, .support-form-container {
    padding: 24px;
  }
}
