:root {
  color-scheme: light;
  --background: #ebf0f5;
  --background-soft: #dce4eb;
  --card: #fbfdff;
  --card-soft: #e8f6e9;
  --ink: #0a172e;
  --muted: #65717f;
  --border: rgba(10, 23, 46, 0.12);
  --green: #5cff6b;
  --green-strong: #18b934;
  --blue: #174a7c;
  --red: #d53d3d;
  --yellow: #bd8b18;
  --shadow: 0 18px 50px rgba(10, 23, 46, 0.12);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 360px),
    var(--background);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(10, 23, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 23, 46, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(235, 240, 245, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: Teko, Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.brand-lockup span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: inline-flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.header-action:hover {
  color: var(--ink);
}

.header-action {
  justify-self: end;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 800;
  background: var(--green);
  border: 1px solid rgba(10, 23, 46, 0.18);
  border-radius: 8px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  min-height: calc(100svh - 68px);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  padding: clamp(28px, 6vw, 80px) clamp(16px, 5vw, 72px) 36px;
}

.hero-media {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(92, 255, 107, 0.24), transparent 42%),
    linear-gradient(315deg, rgba(23, 74, 124, 0.18), transparent 40%),
    #dfe8ef;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 28px;
  content: "";
  border: 1px solid rgba(10, 23, 46, 0.12);
  border-radius: 8px;
}

.hero-media > img {
  position: relative;
  z-index: 1;
  width: min(86%, 470px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(10, 23, 46, 0.2));
}

.app-hero-preview {
  min-height: 560px;
}

.app-hero-preview::after {
  pointer-events: none;
}

.hero-phone {
  position: relative;
  z-index: 1;
  transform: rotate(-4deg);
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: Teko, Inter, sans-serif;
  letter-spacing: 0;
  line-height: 0.92;
}

h1 {
  font-size: clamp(72px, 11vw, 148px);
  max-width: 760px;
}

h2 {
  font-size: clamp(42px, 6vw, 82px);
}

h3 {
  font-size: 38px;
}

h4 {
  font-size: 30px;
}

p {
  line-height: 1.6;
}

.hero-content > p:not(.eyebrow),
.insight-panel p,
.admin-intro p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(10, 23, 46, 0.16);
  border-radius: 8px;
  font-weight: 900;
}

.primary-link,
.primary-button {
  color: #061016;
  background: var(--green);
}

.secondary-link,
.secondary-button {
  color: var(--ink);
  background: var(--card);
}

.ghost-button {
  color: var(--ink);
  background: transparent;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(16px, 5vw, 72px) 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.summary-strip div {
  min-height: 132px;
  padding: 22px;
  background: var(--card);
}

.summary-strip strong,
.summary-strip span {
  display: block;
}

.summary-strip strong {
  margin-bottom: 8px;
  font-family: Teko, Inter, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.summary-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.content-band,
.admin-shell {
  padding: clamp(48px, 7vw, 90px) clamp(16px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.admin-section,
.auth-panel,
.config-panel,
.dashboard-panel,
.insight-panel,
.metric-preview,
.score-visual,
.pricing-grid article,
.access-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 23, 46, 0.06);
}

.feature-grid article {
  min-height: 238px;
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 46px;
  place-items: center;
  color: #061016;
  font-family: Teko, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: var(--green);
  border-radius: 8px;
}

.feature-grid p {
  color: var(--muted);
}

.app-preview-section,
.pricing-section,
.access-section {
  padding: clamp(48px, 7vw, 90px) clamp(16px, 5vw, 72px);
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(280px, 0.95fr) minmax(240px, 0.72fr);
  align-items: stretch;
  gap: 16px;
}

.phone-frame {
  position: relative;
  display: grid;
  width: min(100%, 330px);
  min-height: 610px;
  margin-inline: auto;
  padding: 14px;
  background: #0a172e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  box-shadow: 0 26px 50px rgba(10, 23, 46, 0.2);
}

.phone-frame::before {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 96px;
  height: 22px;
  content: "";
  background: #050b16;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.phone-screen {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #e8eef4 100%);
  border-radius: 24px;
}

.phone-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.phone-header-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.score-card {
  display: grid;
  min-height: 188px;
  align-content: center;
  justify-items: center;
  color: white;
  background:
    linear-gradient(160deg, rgba(92, 255, 107, 0.28), transparent 40%),
    var(--ink);
  border-radius: 8px;
}

.score-card strong {
  color: var(--green);
  font-family: Teko, Inter, sans-serif;
  font-size: 98px;
  line-height: 0.86;
}

.score-label,
.score-status {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-status {
  color: rgba(255, 255, 255, 0.78);
}

.mini-metrics,
.coach-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-metrics div,
.coach-cards article {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 4px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mini-metrics strong,
.coach-cards strong {
  font-family: Teko, Inter, sans-serif;
  font-size: 28px;
  line-height: 0.9;
}

.mini-metrics span,
.coach-cards span,
.checkin-stack span,
.roster-preview em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-list,
.checkin-stack,
.roster-preview,
.score-breakdown {
  display: grid;
  gap: 8px;
}

.signal {
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 8px;
}

.signal.green {
  color: #06250d;
  background: rgba(92, 255, 107, 0.42);
}

.signal.yellow {
  color: #261901;
  background: rgba(255, 210, 107, 0.72);
}

.checkin-stack > div {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkin-stack strong {
  font-size: 16px;
}

.meter {
  height: 8px;
  overflow: hidden;
  background: var(--background-soft);
  border-radius: 999px;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--green-strong);
  border-radius: inherit;
}

.mock-submit {
  min-height: 44px;
  color: #061016;
  font-weight: 900;
  background: var(--green);
  border: 1px solid rgba(10, 23, 46, 0.16);
  border-radius: 8px;
}

.score-visual {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: clamp(24px, 5vw, 42px);
}

.score-visual p {
  max-width: 560px;
  color: var(--muted);
}

.score-ring {
  display: grid;
  width: min(100%, 250px);
  aspect-ratio: 1;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--card) 0 57%, transparent 58%),
    conic-gradient(var(--green) 0 86%, rgba(10, 23, 46, 0.12) 86% 100%);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.score-ring span {
  color: var(--ink);
  font-family: Teko, Inter, sans-serif;
  font-size: 96px;
  font-weight: 700;
  line-height: 0.9;
}

.score-breakdown span,
.roster-preview span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.roster-preview b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(280px, 0.6fr);
  gap: 16px;
  padding: 0 clamp(16px, 5vw, 72px) clamp(48px, 7vw, 90px);
}

.insight-panel {
  padding: clamp(24px, 5vw, 48px);
}

.metric-preview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--border);
}

.metric-preview div {
  display: grid;
  align-content: center;
  min-height: 130px;
  padding: 22px;
  background: var(--ink);
}

.metric-preview span {
  color: var(--green);
  font-family: Teko, Inter, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 0.9;
}

.metric-preview small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-grid article {
  display: grid;
  min-height: 290px;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
}

.pricing-grid p {
  color: var(--muted);
}

.pricing-grid strong {
  color: var(--green-strong);
  font-family: Teko, Inter, sans-serif;
  font-size: 38px;
  line-height: 0.95;
}

.pricing-tag {
  width: max-content;
  padding: 7px 10px;
  color: #061016;
  font-size: 12px;
  font-weight: 900;
  background: var(--green);
  border-radius: 8px;
}

.featured-price {
  background:
    linear-gradient(145deg, rgba(92, 255, 107, 0.16), transparent 45%),
    var(--card) !important;
  border-color: rgba(24, 185, 52, 0.3) !important;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 0.5fr);
  align-items: center;
  gap: 24px;
  margin: 0 clamp(16px, 5vw, 72px) clamp(48px, 7vw, 90px);
}

.access-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.access-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.store-button {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  min-width: min(100%, 238px);
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: white;
  font-weight: 900;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 23, 46, 0.1);
  cursor: default;
}

.store-button small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.1;
}

.store-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #061016;
  font-family: Teko, Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
  background: var(--green);
  border-radius: 8px;
}

.coming-soon-tooltip::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(280px, 80vw);
  padding: 9px 11px;
  color: white;
  font-size: 12px;
  line-height: 1.35;
  content: attr(data-tooltip);
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.coming-soon-tooltip:hover::after,
.coming-soon-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.admin-shell {
  background: rgba(255, 255, 255, 0.34);
  border-top: 1px solid var(--border);
}

.admin-page .site-header {
  position: sticky;
}

.admin-page-main {
  min-height: calc(100svh - 68px);
}

.standalone-admin {
  min-height: calc(100svh - 68px);
  border-top: 0;
}

.standalone-admin .admin-intro {
  max-width: 900px;
}

.standalone-admin h1 {
  font-size: clamp(58px, 8vw, 112px);
}

.admin-intro {
  max-width: 760px;
  margin-bottom: 18px;
}

.auth-panel,
.config-panel,
.dashboard-panel {
  padding: clamp(18px, 3vw, 28px);
}

.config-panel {
  margin-bottom: 16px;
  border-color: rgba(213, 61, 61, 0.35);
}

.config-panel p {
  color: var(--muted);
}

pre {
  overflow-x: auto;
  padding: 14px;
  color: #f8fbff;
  background: var(--ink);
  border-radius: 8px;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.auth-form,
.inline-form,
.settings-form {
  display: grid;
  gap: 12px;
}

.auth-form {
  max-width: 460px;
}

.auth-options {
  display: grid;
  max-width: 460px;
  gap: 10px;
  margin-bottom: 16px;
}

.oauth-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 900;
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.oauth-button:hover:not(:disabled) {
  background: var(--card-soft);
}

.oauth-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.apple-oauth {
  color: white;
  background: var(--ink);
}

.apple-oauth:hover:not(:disabled) {
  background: #13213a;
}

.oauth-mark {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  padding-inline: 6px;
  color: #061016;
  font-family: Teko, Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  background: var(--green);
  border-radius: 8px;
}

.auth-divider {
  display: flex;
  max-width: 460px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--border);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-topbar,
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat-grid article {
  padding: 18px;
  background: var(--ink);
  border-radius: 8px;
}

.stat-grid span {
  display: block;
  color: var(--green);
  font-family: Teko, Inter, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 0.95;
}

.stat-grid small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 16px;
}

.admin-section {
  min-width: 0;
  padding: 18px;
}

.inline-form {
  grid-template-columns: 1.1fr 1fr 74px auto;
  margin-bottom: 14px;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.empty-state {
  padding: 16px;
  color: var(--muted);
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.list-item {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-title {
  min-width: 0;
  font-weight: 900;
}

.item-meta,
.item-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.badge.green {
  background: var(--green);
}

.badge.yellow {
  color: #261901;
  background: #ffd26b;
}

.badge.red {
  color: white;
  background: var(--red);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.small-button.danger {
  color: white;
  background: var(--red);
}

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

.settings-form .primary-button {
  grid-column: 1 / -1;
}

.toggle-line {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.toggle-line input {
  width: 18px;
  min-height: 18px;
}

.hidden {
  display: none !important;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(16px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer span:first-child {
  color: var(--ink);
  font-family: Teko, Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-section,
  .section-heading,
  .insight-section,
  .admin-grid,
  .preview-grid,
  .pricing-grid,
  .access-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-media {
    min-height: 340px;
  }

  .app-hero-preview {
    min-height: 560px;
  }

  .hero-phone {
    transform: none;
  }

  .summary-strip,
  .feature-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .access-actions {
    justify-items: start;
  }

  .inline-form,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar,
  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-lockup {
    font-size: 22px;
  }

  .header-action {
    padding-inline: 10px;
    font-size: 13px;
  }

  .hero-media {
    min-height: 270px;
  }

  .app-hero-preview {
    min-height: 520px;
  }

  .phone-frame {
    min-height: 560px;
    border-radius: 28px;
  }

  .phone-screen {
    padding: 14px;
  }

  .mini-metrics,
  .coach-cards {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .dashboard-actions,
  .access-actions {
    flex-direction: column;
  }

  .primary-link,
  .secondary-link,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .store-button {
    width: 100%;
  }

  .access-section {
    margin-inline: 16px;
  }
}
