/* ===== AllRound Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2D6A4F;
  --primary-light: #52B788;
  --primary-dark: #1B4332;
  --primary-glow: #95D5B2;
  --accent: #40916C;
  --bg: #F0F7F4;
  --bg-alt: #E8F3ED;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --muted: #5F6B7A;
  --line: #D1E0D8;
  --line-light: #E5EFE9;
  --danger: #DC2626;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(27,67,50,0.06);
  --shadow-md: 0 8px 30px rgba(27,67,50,0.08);
  --shadow-lg: 0 20px 60px rgba(27,67,50,0.12);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== Layout ===== */
.container { width: min(1140px, 90%); margin: 0 auto; }
.narrow { width: min(820px, 90%); margin: 0 auto; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,247,244,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--primary-dark);
}
.brand-icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav-list { display: flex; gap: 24px; }
.nav-list a {
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 4px 0;
}
.nav-list a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0;
  height: 2px; background: var(--primary); border-radius: 2px;
  transition: width var(--transition);
}
.nav-list a:hover, .nav-list a.active { color: var(--primary); }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* ===== Mobile Menu ===== */
.menu-toggle {
  display: none; width: 36px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; border: 1px solid transparent;
  transition: all var(--transition); gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 4px 14px rgba(45,106,79,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 6px 20px rgba(45,106,79,0.4); transform: translateY(-1px);
  color: #fff;
}
.btn-secondary {
  background: var(--surface); border-color: var(--line); color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--primary); color: var(--primary); background: var(--bg-alt);
}

/* ===== Hero ===== */
.hero {
  text-align: center; padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(149,213,178,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block; border: 1px solid var(--primary-glow);
  border-radius: 999px; padding: 6px 16px; color: var(--primary);
  font-size: 0.85rem; font-weight: 600; background: rgba(149,213,178,0.15);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.15; font-weight: 800; margin-bottom: 8px;
  color: var(--primary-dark);
}
.hero .key-sentence {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--primary); font-weight: 600; font-style: italic;
  margin-bottom: 16px;
}
.hero .lead {
  font-size: 1.15rem; color: var(--muted); max-width: 600px;
  margin: 0 auto 32px;
}
.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== App Preview ===== */
.app-preview {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 60px; perspective: 1000px;
}
.app-preview-phone {
  width: 260px; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.8);
  transition: transform 0.5s ease;
}
.app-preview-phone:hover { transform: translateY(-8px) scale(1.02); }
.app-preview-phone img { width: 100%; height: auto; display: block; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700;
  margin-bottom: 12px; color: var(--primary-dark);
}
.section-header p { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ===== Problem-Solution ===== */
.problem-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.ps-card {
  padding: 36px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ps-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ps-card.problem { border-left: 4px solid #E07A5F; }
.ps-card.solution { border-left: 4px solid var(--primary); }
.ps-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.ps-card h3 .icon { margin-right: 8px; }
.ps-card p { color: var(--muted); line-height: 1.8; }

/* ===== Feature Cards ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-glow));
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,106,79,0.1), rgba(149,213,178,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ===== Social Login Section ===== */
.login-providers {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 24px;
}
.login-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 500; font-size: 0.9rem; color: var(--text);
  transition: all var(--transition);
}
.login-badge:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.login-badge .provider-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

/* ===== Trust Section ===== */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.trust-content h2 { font-size: 1.8rem; margin-bottom: 12px; color: var(--primary-dark); }
.trust-content p { color: var(--muted); margin-bottom: 16px; }
.trust-links { display: flex; flex-direction: column; gap: 10px; }
.trust-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 500; transition: gap var(--transition);
}
.trust-link:hover { gap: 12px; color: var(--primary-dark); }
.trust-terminal {
  background: var(--primary-dark); color: var(--primary-glow);
  border-radius: var(--radius-lg); padding: 28px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.85rem; line-height: 1.8;
  box-shadow: var(--shadow-lg);
}
.trust-terminal .prompt { color: var(--primary-light); }
.trust-terminal .status { color: #95D5B2; }

/* ===== Policy Pages ===== */
.page { padding: 60px 0 80px; }
.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  margin-bottom: 8px; color: var(--primary-dark);
}
.page .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; }
.page .effective-date { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.page h2 {
  font-size: 1.4rem; font-weight: 700; margin: 36px 0 12px;
  color: var(--primary-dark); padding-top: 12px;
  border-top: 1px solid var(--line-light);
}
.page h2:first-of-type { border-top: none; margin-top: 24px; }
.page p { color: var(--text); margin-bottom: 12px; }
.page ul { padding-left: 20px; margin-bottom: 16px; }
.page ul li {
  position: relative; padding-left: 16px; margin-bottom: 8px;
  color: var(--text); list-style: none;
}
.page ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light);
}
.page a { color: var(--primary); font-weight: 500; }
.page a:hover { text-decoration: underline; }

/* ===== Info Table ===== */
.info-table {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); border-collapse: separate;
  border-spacing: 0; overflow: hidden; margin: 16px 0;
}
.info-table th, .info-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--line-light);
  text-align: left;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { color: var(--muted); font-weight: 600; width: 35%; background: var(--bg-alt); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--primary);
  font-weight: 300; flex-shrink: 0; transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); margin: 0; }

/* ===== Callout ===== */
.callout {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45,106,79,0.08), rgba(149,213,178,0.12));
  border: 1px solid var(--primary-glow);
  color: var(--primary-dark); font-weight: 700; font-size: 1.05rem;
}
.callout-danger {
  background: #FEF2F2; border-color: #FECACA; color: var(--danger);
}

/* ===== Status Indicator ===== */
.status-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  text-align: center;
}
.status-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary-light); display: inline-block;
  margin-right: 8px; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== 404 ===== */
.error-page {
  text-align: center; padding: 120px 0;
}
.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem); color: var(--primary-glow);
  font-weight: 800; line-height: 1;
}
.error-page p { font-size: 1.2rem; color: var(--muted); margin: 16px 0 32px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.85);
  margin-top: 0; padding: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 24px; padding: 48px 0;
}
.footer-grid h4 {
  color: #fff; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 14px;
}
.footer-grid a {
  display: block; color: rgba(255,255,255,0.65);
  margin-bottom: 8px; font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-grid a:hover { color: var(--primary-glow); }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 10px;
}
.footer-brand .brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 8px; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center;
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-list { display: none; }
  .nav-list.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 16px 5%; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav-list.open a { padding: 10px 0; display: block; }
  .menu-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .problem-solution { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .app-preview { flex-direction: column; align-items: center; gap: 16px; }
  .app-preview-phone { width: 220px; }
  .hero { padding: 60px 0 40px; }
  .section { padding: 60px 0; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .login-providers { gap: 10px; }
  .login-badge { padding: 10px 14px; font-size: 0.85rem; }
  .ps-card { padding: 24px; }
  .feature-card { padding: 24px 20px; }
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--primary); color: #fff; padding: 8px 16px;
  border-radius: var(--radius); z-index: 999; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ===== Focus styles ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
