:root {
  --primary: #174550;
  --secondary: #288850;
  --accent: #FD9050;
  --dark: #404050;
  --white: #FFFFFF;
  --bg: #f7fafb;
  --line: rgba(23, 69, 80, 0.12);
  --max: 1140px;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(23,69,80,.10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Open Sans', system-ui, sans-serif; color: var(--dark); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.nav-wrap { display:flex; align-items:center; justify-content:space-between; min-height: 74px; gap: 1rem; }
.brand, h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
.brand { color: var(--primary); font-size: 1.35rem; font-weight: 800; }
.nav { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.nav a { font-weight:700; color: var(--primary); }
.btn { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:.9rem 1.2rem; background: var(--accent); color:#fff; font-weight:700; border:1px solid rgba(0,0,0,.06); }
.btn-secondary { background:#fff; color: var(--primary); border:1px solid var(--line); }
.hero { padding: 5rem 0 3.5rem; background: linear-gradient(180deg, #ffffff 0%, #eef7f4 100%); }
.hero-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:2rem; align-items:center; }
.eyebrow { color: var(--secondary); font-weight:700; text-transform: uppercase; letter-spacing:.08em; font-size:.8rem; }
h1 { font-size: clamp(2.8rem, 5vw, 4.6rem); line-height:1.02; color: var(--primary); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); color: var(--primary); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; color: var(--primary); margin: 0 0 .8rem; }
.lead, p, li { color: var(--dark); line-height: 1.7; }
.actions { display:flex; gap:1rem; flex-wrap:wrap; margin-top: 1.4rem; }
.hero-card, .card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.product-badge { display:inline-block; background: rgba(40,136,80,.12); color: var(--secondary); font-weight:700; padding:.45rem .75rem; border-radius:999px; margin-bottom:1rem; }
.section { padding: 4rem 0; }
.section-alt { background: #f2f7f7; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.card-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) {
  .hero-grid, .card-grid { grid-template-columns:1fr; }
  .nav-wrap { align-items:flex-start; padding:1rem 0; }
}


.brand-lockup { display:inline-flex; align-items:center; gap:.75rem; }
.brand-mark { width:56px; height:56px; border-radius:16px; object-fit:cover; box-shadow: var(--shadow); }
.hero-brand-card { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; }
.hero-brand-avatar { width:78px; height:78px; border-radius:22px; object-fit:cover; box-shadow: var(--shadow); }


.feature-card { position: relative; overflow: hidden; }
.feature-icon {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  display: block;
}
@media (max-width: 900px) {
  .feature-icon { height: 200px; }
}


.hero-brand-panel {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-brand-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-brand-caption { margin: .85rem 0 0; font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--primary); text-align: center; }


.hero-brand-combo {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 1rem;
}
.hero-wordmark {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  display: block;
}
.hero-mascot {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-mascot-solo { max-width: 290px; }


.brand-mark { width:56px; height:56px; border-radius:16px; object-fit:contain; background:#fff; padding:4px; box-shadow: var(--shadow); }
.nav-toggle { display:none; width:48px; height:48px; border-radius:14px; border:1px solid var(--line); background:#fff; align-items:center; justify-content:center; flex-direction:column; gap:4px; }
.nav-toggle span { width:18px; height:2px; background: var(--primary); display:block; border-radius:999px; }
.site-footer { padding: 3rem 0; background:#fff; border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns:1.4fr .8fr .8fr; gap:2rem; align-items:start; }
.footer-grid ul { list-style:none; padding:0; margin:0; }
.footer-grid li { margin:.45rem 0; }
@media (max-width: 900px) {
  .site-header { overflow: visible; }
  .nav-wrap { position: relative; flex-wrap: nowrap; align-items: center; gap: 0.5rem; }
  .brand-lockup { min-width: 0; flex: 1 1 auto; gap: 0.55rem; }
  .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
  .brand-lockup span {
    font-size: 0.98rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  .nav-toggle { display:inline-flex; flex: 0 0 auto; margin-left: auto; width: 46px; height: 46px; }
  .nav {
    display:none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(240px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background:#fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 0.45rem;
    z-index: 1200;
  }
  .nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }
  .nav a:hover {
    background: #f4f8f8;
  }
  .nav.nav-open { display:flex; }
  .footer-grid { grid-template-columns:1fr; }
}

.card, .hero-card { position: relative; z-index: 1; }

.footer-meta { padding-top: 1.5rem; border-top: 1px solid var(--line); margin-top: 1.5rem; color: var(--dark); font-size: .95rem; }


.ytv-inline-brand { margin-top: 1.5rem; }
.ytv-logo-inline { width: 100%; max-width: 240px; height: auto; display:block; }
.ytv-hero-section { background: linear-gradient(180deg, #fff 0%, #f7f2ff 100%); }
.ytv-brand-panel { display:flex; align-items:center; justify-content:center; min-height: 420px; }
.ytv-logo-main { width: 100%; max-width: 360px; height: auto; display:block; }
.ytv-avatar-card { width: 96px; height: 96px; object-fit: contain; display:block; margin-bottom: 1rem; }


.ytv-left-brand-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .ytv-left-brand-row { grid-template-columns: 1fr; }
}



.ytv-side-card {
  position: relative;
}
.ytv-side-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 0 1rem;
}


.product-feature-band {
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.5rem;
  align-items: stretch;
}
.product-feature-copy,
.product-feature-side {
  min-height: 100%;
}
.product-feature-side {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
}
.product-feature-logo {
  width: 160px;
  height: auto;
  display:block;
  margin: 0 0 1rem;
}
@media (max-width: 900px) {
  .product-feature-band { grid-template-columns: 1fr; }
}


.ytv-screen-grid {
  grid-template-columns: 1fr 1fr;
}
.ytv-screen-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.ytv-screen-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
  display: block;
}
@media (max-width: 900px) {
  .ytv-screen-grid { grid-template-columns: 1fr; }
  .ytv-screen-image { height: auto; }
}


.auth-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.auth-form { display:flex; flex-direction:column; gap: .9rem; }
.auth-form label { display:flex; flex-direction:column; gap: .35rem; font-weight:600; color: var(--primary); }
.auth-form input { border:1px solid var(--line); border-radius:14px; padding:.85rem 1rem; font: inherit; }
.legal-page .card h3 { margin-top: 1.2rem; }
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; } }


.auth-shell { max-width: 760px; margin: 0 auto; }
.auth-card { max-width: 100%; }
.auth-hidden { display: none; }
.auth-switch { text-align: center; display:flex; flex-direction:column; gap:.45rem; align-items:center; margin-top:.4rem; }
.auth-switch-tight { margin-top: .1rem; }
.auth-link-btn { background:none; border:0; padding:0; color: var(--primary); font: inherit; font-weight:700; cursor:pointer; }
.auth-link-btn:hover { color: var(--accent); }


.field-feedback { min-height: 1.1rem; margin: -.35rem 0 .2rem; font-size: .92rem; }
.field-feedback.valid { color: #1f7a3d; }
.field-feedback.invalid { color: #b42318; }
