/* Ocean Basket Boardroom Quick Guide v3 — task-based, Live Sales look */
:root {
  --ocean-950: #001a20;
  --ocean-900: #002933;
  --ocean-800: #003b46;
  --ocean-700: #004d57;
  --gold: #ffce09;
  --gold-soft: #ffe566;
  --coral: #e61e4d;
  --ink: #f7fcfd;
  --muted: rgba(247, 252, 253, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 14px;
  --font: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ocean-950);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ocean-950);
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.ocean-shell {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  overflow-x: clip;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(26, 138, 150, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(255, 206, 9, 0.08), transparent 50%),
    linear-gradient(165deg, #001a20 0%, #003b46 42%, #004d57 78%, #002933 100%);
}

.wrap {
  width: min(760px, calc(100% - 1.5rem));
  margin-inline: auto;
  padding-left: max(0, env(safe-area-inset-left));
  padding-right: max(0, env(safe-area-inset-right));
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-left: clamp(0.85rem, 3vw, 2rem);
  padding-right: clamp(0.85rem, 3vw, 2rem);
  background: rgba(0, 26, 32, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  height: 28px;
  width: auto;
  max-width: min(150px, 38vw);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(247, 252, 253, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: none;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 252, 253, 0.7);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 206, 9, 0.35);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  background: rgba(0, 26, 32, 0.96);
  border-bottom: 1px solid var(--line);
  max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  color: rgba(247, 252, 253, 0.88);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 980px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.open {
    display: none !important;
  }
}

/* Hero */
.dash-hero {
  padding: 1.5rem 0 0.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.dash-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 206, 9, 0.9);
}

.dash-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.gold-text {
  color: var(--gold);
}

.dash-sub {
  margin: 0.55rem 0 0;
  max-width: 40ch;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Task rail */
.task-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.5rem 0 1.25rem;
}

@media (min-width: 640px) {
  .task-rail {
    grid-template-columns: repeat(6, 1fr);
  }
}

.task-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 252, 253, 0.88);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.task-chip span {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.task-chip:hover,
.task-chip.active {
  transform: translateY(-1px);
  border-color: rgba(255, 206, 9, 0.45);
  background: rgba(255, 206, 9, 0.08);
}

/* Task cards */
.task-card {
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--nav-h) + 0.85rem);
}

.task-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.95rem;
}

.task-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ocean-950);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.task-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.task-head p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.task-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: step;
}

.task-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(247, 252, 253, 0.92);
  counter-increment: step;
}

.task-steps li::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 206, 9, 0.14);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.task-steps strong {
  color: #fff;
  font-weight: 800;
}

/* Help */
.help-stack {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.trouble-item {
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.trouble-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.trouble-btn svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.trouble-item.open .trouble-btn svg {
  transform: rotate(180deg);
}

.trouble-panel {
  display: none;
  padding: 0 1rem 0.95rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.trouble-item.open .trouble-panel {
  display: block;
}

.leave-card {
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255, 206, 9, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 206, 9, 0.35);
}

.leave-card h3 {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leave-card ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: rgba(247, 252, 253, 0.88);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 0.35rem;
}

.footer-inner p,
.footer-meta {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(247, 252, 253, 0.5);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  :root {
    --nav-h: 60px;
  }

  .brand-divider,
  .brand-sub {
    display: none;
  }

  .task-card {
    padding: 1rem;
  }

  .task-steps li {
    font-size: 0.88rem;
    padding: 0.65rem 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .site-nav,
  .menu-toggle,
  .task-rail {
    display: none !important;
  }

  body,
  .ocean-shell {
    background: #fff;
    color: #000;
  }
}
