/* Orange Juice Applications / FaceMatch public site */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #3f3f46;
  --color-cta: #e85d04;
  --color-background: #f5f5f7;
  --color-text: #1a1a1a;
  --orange: #e85d04;
  --orange-dark: #c44900;
  --ink: var(--color-primary);
  --muted: #475569;
  --bg: var(--color-background);
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
  --max: 52rem;
  --oja-page-bg: #f5f5f7;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-nav .brand:hover { text-decoration: none; }
.site-nav .brand:hover .brand-name { color: var(--orange); }

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-name {
  line-height: 1.2;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.12);
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-card {
  background: linear-gradient(145deg, #fff7f0 0%, #ffffff 55%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 28rem;
  margin: 0 auto 2.5rem;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--orange) 0%, #f48c06 100%);
  margin: 0 auto 1rem;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.35);
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  font-weight: 800;
}

.app-icon-img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.35);
}

.store-soon {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.store-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  background: #111;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}

.store-link:hover {
  background: #333;
  color: #fff !important;
}

.company-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 1.25rem;
}

.company-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.company-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.company-links {
  margin: 0 !important;
  font-size: 0.95rem;
}

.value-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.value-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.value-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink);
}

.value-list li {
  margin-bottom: 0.5rem;
}

.value-note {
  font-size: 0.9rem;
  margin: 0 !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.error-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  text-align: center;
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--orange);
  margin: 0;
  line-height: 1;
}

.error-page h1 {
  margin: 0.5rem 0;
  font-size: 1.75rem;
}

.error-lead {
  color: var(--muted);
  margin: 0 0 2rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--orange);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff !important;
}

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.guides-promo h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.guides-promo p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.guides-promo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.guide-preview-grid {
  margin-top: 0;
}

.guide-preview-card {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-preview-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.12);
}

.guide-preview-card h3 {
  color: var(--ink);
}

.guide-preview-card p {
  color: var(--muted);
}

.guide-intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.guide-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.guide-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.guide-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
}

.guide-nav {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.guide-nav a {
  text-decoration: none;
}

.guide-nav span {
  color: var(--ink);
  font-weight: 600;
}

.guide-footer-links {
  margin-top: 2rem;
  color: var(--muted);
}

.refunds-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.refunds-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.refunds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 !important;
}

.feedback-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.feedback-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 1rem 0 0.35rem;
}

.feedback-label:first-child {
  margin-top: 0;
}

.feedback-input {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.feedback-input:focus {
  outline: 2px solid rgba(232, 93, 4, 0.35);
  border-color: var(--orange);
}

.feedback-textarea {
  resize: vertical;
  min-height: 8rem;
}

.feedback-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: #f8f8f8;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin: 0;
  color: var(--muted);
  word-break: break-word;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.feedback-error {
  margin-top: 1rem;
  color: #b42318;
  font-weight: 600;
}

.feedback-success {
  margin-top: 1rem;
  color: #067647;
  font-weight: 600;
}

.hero-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-strip {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-box p { margin: 0.35rem 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--card);
}

.site-footer p { margin: 0.35rem 0; }

.legal-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.legal-content h1 { font-size: 1.85rem; margin-top: 0; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal-content p, .legal-content li { color: #222; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.legal-content code {
  background: #f4f4f5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: #f8f8f8; }

.error-detail {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.error-help-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.error-help-links a {
  font-weight: 600;
}

.site-banner {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-banner-warning {
  background: #fff4e6;
  color: #9a4b00;
}

@media (max-width: 640px) {
  .site-nav { flex-direction: column; align-items: flex-start; }
}

/* OAuth HTTPS bridge (hidden, noindex) */
.oauth-bridge {
  max-width: 28rem;
  margin: 4rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

.oauth-panel {
  display: none;
}

.oauth-panel.is-visible {
  display: block;
}

.oauth-status {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: oauth-spin 0.9s linear infinite;
}

@keyframes oauth-spin {
  to { transform: rotate(360deg); }
}

.oauth-detail {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.oauth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* --- OJA project hub (/), /facematch/, /ycda/ --- */
.hero-hub { text-align: center; }
.hero-ycda { text-align: center; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.project-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.project-tagline {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.project-cta {
  font-weight: 700;
  color: var(--orange);
}

.project-icon {
  border-radius: 18px;
}

.project-icon-ycda {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a56a3, #61a4b8);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.project-icon-ycda-lg {
  width: 88px;
  height: 88px;
  font-size: 1.35rem;
  margin: 0 auto 0.5rem;
}

.project-card-ycda .project-cta {
  color: #2a56a3;
}

.hero-card-ycda {
  border-top: 4px solid #61a4b8;
}

.btn-ycda {
  background: #2a56a3;
  border-color: #2a56a3;
  color: #fff !important;
}

.btn-ycda:hover {
  background: #1e4280;
  color: #fff !important;
}

.ycda-config-hint {
  font-size: 0.85rem;
  margin-top: 1rem;
}

.ycda-config-hint code {
  font-size: 0.8rem;
  background: #f0f0f0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.ycda-url-note {
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
}

/* --- Interactive redesign (hub, YCDA, FaceMatch preview) --- */
:root {
  --orange-glow: rgba(232, 93, 4, 0.45);
  --ycda-blue: #2a56a3;
  --ycda-teal: #61a4b8;
  --ycda-gradient: linear-gradient(135deg, #2a56a3 0%, #61a4b8 100%);
  --max-wide: 72rem;
  --nav-height: 4.25rem;
}

body.nav-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #f48c06);
  z-index: 100;
  pointer-events: none;
}

.site-nav.is-enhanced:not(.is-floating) {
  position: sticky;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 3px auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-nav .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-nav .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-nav.is-enhanced {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-links[data-nav-panel] {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding: 0.65rem 0 0.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.09);
    margin-top: 0.65rem;
  }
  .nav-links[data-nav-panel].is-open {
    display: flex;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 30%), var(--orange-glow), transparent 42%),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232, 93, 4, 0.18), transparent),
    linear-gradient(180deg, #fff7f0 0%, var(--bg) 100%);
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.page-hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: orb-float 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 280px;
  height: 280px;
  background: var(--orange);
  top: 10%;
  left: 8%;
}
.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: #f48c06;
  bottom: 15%;
  right: 12%;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 160px;
  height: 160px;
  background: var(--ycda-teal);
  top: 40%;
  right: 25%;
  animation-delay: -7s;
  opacity: 0.35;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--orange-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.section-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem clamp(3rem, 6vw, 5rem);
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Visible without JS; animate only when .js is on <html> (see head boot script) */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.project-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 820px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 6px);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.showcase-card:hover {
  text-decoration: none;
}

.showcase-card-ycda {
  background: linear-gradient(145deg, #f0f7fc 0%, #fff 55%);
  border: 1px solid #c5d9eb;
}

.showcase-card-ycda::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 80%;
  background: var(--ycda-gradient);
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
}

.showcase-card-fm {
  background: linear-gradient(145deg, #fff7f0 0%, #fff 55%);
  border: 1px solid #ffd8a8;
}

.showcase-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.showcase-card .showcase-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.tag-live {
  background: rgba(42, 86, 163, 0.12);
  color: var(--ycda-blue);
}

.tag-dev {
  background: rgba(232, 93, 4, 0.14);
  color: var(--orange-dark);
}

.showcase-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.showcase-features li {
  padding: 0.35rem 0 0.35rem 1.35rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.showcase-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.showcase-card-ycda .showcase-features li::before {
  background: var(--ycda-blue);
}

.showcase-cta {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.showcase-cta-ycda { color: var(--ycda-blue); }
.showcase-cta-fm { color: var(--orange); }

.dev-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
  color: #fff;
  margin-bottom: 2rem;
}

.dev-banner strong {
  color: #f48c06;
}

.dev-progress-wrap {
  flex: 1;
  min-width: 12rem;
}

.dev-progress-label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.dev-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.dev-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #f48c06);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.badge-pulse {
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(232, 93, 4, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .badge-pulse { animation: none; }
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.tab-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tab-btn.is-active {
  background: var(--ycda-blue);
  border-color: var(--ycda-blue);
  color: #fff;
}

.tabs-orange .tab-btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tab-in 0.35s ease;
}

@keyframes tab-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.class-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.class-detail-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.class-meta span {
  padding: 0.2rem 0.55rem;
  background: #f0f7fc;
  border-radius: 6px;
  color: var(--ycda-blue);
  font-weight: 600;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.step-card {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ycda-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-slide blockquote {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.carousel-slide cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem 1.25rem;
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.carousel-btn:hover {
  border-color: var(--ycda-blue);
  color: var(--ycda-blue);
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--ycda-blue);
  transform: scale(1.2);
}

.accordion-list {
  max-width: 40rem;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  background: var(--card);
  overflow: hidden;
}

.accordion-item.is-open {
  border-color: var(--ycda-teal);
  box-shadow: 0 6px 20px rgba(42, 86, 163, 0.08);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 600;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.accordion-trigger::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--ycda-blue);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger::after {
  content: "−";
}

.accordion-panel {
  padding: 0 1.15rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.accordion-panel p {
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.team-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.team-card h3 {
  margin: 0 0 0.25rem;
}

.team-role {
  color: var(--ycda-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.team-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--ycda-gradient);
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  opacity: 0.95;
}

.cta-band .btn {
  margin: 0 0.35rem;
}

.btn-on-dark {
  background: #fff;
  color: var(--ycda-blue) !important;
}

.btn-on-dark:hover {
  background: #f0f7fc;
}

.btn-ghost-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-hero-ycda::before {
  background:
    radial-gradient(circle at var(--glow-x, 60%) var(--glow-y, 40%), rgba(97, 164, 184, 0.35), transparent 45%),
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(42, 86, 163, 0.15), transparent),
    linear-gradient(180deg, #f0f7fc 0%, #f8fbfd 55%, var(--bg) 100%);
}

.page-hero-ycda .hero-badge {
  background: rgba(42, 86, 163, 0.12);
  color: var(--ycda-blue);
}

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

.feature-tile {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-tile:hover {
  border-color: var(--ycda-teal);
}

.feature-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.venue-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.venue-card address {
  font-style: normal;
  flex: 1;
  min-width: 14rem;
}

.fm-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.fm-preview-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed #ffd8a8;
  background: #fffaf5;
}

.fm-preview-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.fm-preview-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.store-dev {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.store-dev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f48c06;
  animation: badge-pulse 2s ease-in-out infinite;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.anchor-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.anchor-nav a:hover {
  color: var(--orange);
}

.page-ycda .anchor-nav a:hover {
  color: var(--ycda-blue);
}
