/* Sevenopt Skills — sevenopt.com
   Every colour, radius, shadow and spacing value is a token below: tune the brand here.
   Contrast rules are shared with the agency site (docs/brand.md): no gold-family text
   on a light background — gold is for buttons (navy text), accents, and text on navy. */

:root {
  /* colour */
  --navy: #072E59;
  --navy-dark: #051F3C;
  --navy-soft: #3D5B80;        /* 7.0:1 on white, 6.6:1 on cream */
  --gold: #C8A758;             /* 5.9:1 on navy; 2.3:1 on white = never text there */
  --gold-hover: #D6B76B;
  --cream: #FFF7F0;
  --peach: #FFE0C1;
  --white: #FFFFFF;
  --line: #E7DED4;

  /* type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.3rem, 1.5rem + 3.8vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.7rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.06rem, 1rem + .4vw, 1.22rem);
  --fs-eyebrow: .78rem;

  /* shape — firm outlines, crisp hard shadows */
  --radius: 14px;
  --radius-sm: 10px;
  --border: 2px solid var(--navy);
  --shadow-hard: 5px 5px 0 var(--navy);
  --shadow-hard-sm: 3px 3px 0 var(--navy);

  /* space */
  --wrap: 1140px;
  --gutter: 20px;
  --band: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; font-weight: 750; }
p { margin: 0 0 1.05em; text-wrap: pretty; }   /* no single-word last lines */
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.band--navy :focus-visible, .footer :focus-visible { outline-color: var(--gold); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* highlighted phrase in headlines — same device as the agency site */
.hl { font-style: normal; background: linear-gradient(to top, rgba(200,167,88,.6) .22em, transparent .22em); }

.eyebrow { display: block; font-size: var(--fs-eyebrow); font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: var(--navy-soft); margin: 0 0 14px; }
.band--navy .eyebrow { color: var(--gold); }
.lead { font-size: var(--fs-lead); color: var(--navy-soft); }

/* ---------- bands ---------- */
.band { padding-block: var(--band); }
.band--cream { background: var(--cream); }
.band--navy { background: var(--navy); color: #fff; }
.band--navy h2, .band--navy h3 { color: #fff; }
.head { max-width: 44rem; margin-bottom: clamp(34px, 5vw, 54px); }
.head .lead { margin-top: 6px; }
.band--navy .lead { color: rgba(255,255,255,.8); }

/* ---------- buttons, badges, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border: var(--border); border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-hard-sm); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); }           /* 5.9:1 */
.btn--gold:hover { background: var(--gold-hover); }
.btn--plain { background: var(--white); color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-size: .8rem; font-weight: 750; letter-spacing: .02em; }
.badge--live { background: var(--navy); color: #fff; }
.badge--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200,167,88,.3); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 8px 15px; border: var(--border); border-radius: 999px; background: var(--white); font-size: .9rem; font-weight: 650; text-decoration: none; }
.chips a:hover { background: var(--peach); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup img { height: 28px; width: auto; }
.lockup span { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); padding-left: 12px; border-left: 2px solid var(--line); line-height: 1.1; }
.nav { display: none; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { font-weight: 600; font-size: .96rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.header .btn { padding: 11px 18px; font-size: .93rem; }
@media (min-width: 920px) { .nav { display: block; } }
@media (max-width: 420px) { .lockup img { height: 22px; } .lockup span { font-size: 1.1rem; padding-left: 9px; } .header .btn { padding: 10px 14px; } }

/* ---------- announcement bar ---------- */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.86); font-size: .88rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding-block: 9px; text-align: center; }
.topbar strong { color: #fff; }
.topbar a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.topbar__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200,167,88,.3); flex: none; }
.topbar :focus-visible { outline-color: var(--gold); }

/* ---------- hero: full-bleed navy (the Skillfloor layout, in our colours) ---------- */
.hero {
  background: var(--navy); color: #fff; position: relative; overflow: hidden;
  padding-block: clamp(44px, 6vw, 80px) clamp(120px, 13vw, 170px);   /* room for the tiles to overlap */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);   /* slanted bottom edge */
}
.hero::before { /* the pixel-dissolve dots from the logo's 7, in gold */
  content: ""; position: absolute; inset: 0 auto auto 0; width: 520px; height: 520px; pointer-events: none;
  background-image: radial-gradient(rgba(200,167,88,.28) 1.7px, transparent 1.7px); background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(circle at 18% 18%, #000, transparent 66%); mask-image: radial-gradient(circle at 18% 18%, #000, transparent 66%);
}
.hero__grid { position: relative; display: grid; gap: clamp(40px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.12fr .88fr; } }
.hero .eyebrow { color: var(--gold); }                          /* 5.9:1 on navy */
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .hl { color: var(--gold); background: none; }              /* gold text is fine on navy */
.hero .lead { color: rgba(255,255,255,.84); max-width: 35rem; margin-bottom: 14px; }
.hero__turn { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 28px; }
.hero__by { margin-top: 18px; font-size: .92rem; color: rgba(255,255,255,.66); }
.hero :focus-visible { outline-color: var(--gold); }

/* buttons on navy: the hard shadow switches to peach so it stays visible */
.hero .btn--gold { border-color: var(--gold); box-shadow: 4px 4px 0 var(--peach); }
.hero .btn--gold:hover { box-shadow: 5px 5px 0 var(--peach); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }

.hero__figure { position: relative; justify-self: center; width: min(78vw, 420px); }
.hero__circle { position: absolute; width: 82%; aspect-ratio: 1; right: -8%; top: 10%; border-radius: 50%; background: var(--gold); }
.hero__figure img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 20px 20px; border: 3px solid #fff; background: var(--peach); }
.hero__tag {
  position: absolute; left: -14px; bottom: 34px; display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--navy); border: var(--border); border-radius: 12px; box-shadow: var(--shadow-hard-sm);
  padding: 10px 14px; font-size: .88rem; font-weight: 750; white-space: nowrap;
}
@media (max-width: 480px) { .hero__tag { left: 0; font-size: .8rem; } }

/* ---------- feature tiles overlapping the hero's bottom edge ---------- */
.tiles-wrap { position: relative; z-index: 2; margin-top: calc(-1 * clamp(96px, 10vw, 128px)); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tile {
  display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: start;
  background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: 18px;
  align-content: start;   /* keep icon + title pinned to the top so all four line up */
}
@media (min-width: 1000px) { .tile { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 20px 24px; } }
.tile__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--peach); color: var(--navy); display: grid; place-items: center; }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.02rem; margin: 0 0 3px; }
.tile p { font-size: .92rem; color: var(--navy-soft); margin: 0; }
.tiles-wrap .chips { margin-top: clamp(30px, 4vw, 40px); justify-content: center; }
.tiles-wrap + .band { padding-top: clamp(56px, 7vw, 84px); }   /* the tiles already add space above */

/* ---------- live cohort card ---------- */
.cohort { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: clamp(24px, 4vw, 40px); display: grid; gap: 30px; }
@media (min-width: 900px) { .cohort { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.cohort h3 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); margin: 16px 0 8px; }
.cohort__meta { font-weight: 650; color: var(--navy-soft); margin-bottom: 4px; }
.cohort__when { font-weight: 700; margin-bottom: 18px; }
.cohort__note { font-size: .92rem; color: var(--navy-soft); margin-top: 16px; }
.cohort__box { background: var(--cream); border: var(--border); border-radius: var(--radius-sm); padding: 22px; align-self: start; }
.sessions { list-style: none; margin: 0 0 20px; padding: 0; }
.sessions li { padding: 12px 0; border-bottom: 1px dashed var(--navy-soft); }
.sessions li:first-child { padding-top: 0; }
.sessions small { display: block; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-soft); }
.sessions strong { font-size: 1rem; }
.seatnote { display: block; margin-top: 12px; font-size: .82rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-soft); text-align: center; }
.cohort__box .btn { width: 100%; }

/* ---------- how it's taught ---------- */
.how { display: grid; gap: clamp(34px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .how { grid-template-columns: .9fr 1.1fr; } }
.how__photo { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hard); overflow: hidden; }
.how__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.points li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.points b { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); border: var(--border); display: grid; place-items: center; font-size: .95rem; }
.points h3 { margin-bottom: 4px; }
.points p { color: var(--navy-soft); margin: 0; }

/* ---------- in the works: light, dashed, dateless ---------- */
.works { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 22px; padding: 0; }
.works li { padding: 10px 18px; border: 2px dashed var(--navy-soft); border-radius: 999px; font-weight: 650; font-size: .96rem; color: var(--navy); background: transparent; }
.works__note { color: var(--navy-soft); }

/* ---------- who it's for ---------- */
.fit { display: grid; gap: 24px; }
@media (min-width: 820px) { .fit { grid-template-columns: 1fr 1fr; gap: 32px; } }
.fit__col { border-radius: var(--radius); padding: clamp(24px, 3.5vw, 34px); }
.fit__col--yes { background: #fff; color: var(--navy); border: 2px solid var(--gold); box-shadow: 5px 5px 0 var(--gold); }
.fit__col--no { border: 2px solid rgba(255,255,255,.35); }
.fit__col h3 { margin-bottom: 16px; }
.fit__col--yes h3 { color: var(--navy); }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.fit li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.fit li svg { width: 20px; height: 20px; margin-top: 3px; }
.fit__col--yes li svg { color: var(--navy); }
.fit__col--no li { color: rgba(255,255,255,.86); }
.fit__col--no li svg { color: var(--gold); }
.fit__col--no a { color: #fff; }

/* ---------- instructors ---------- */
.people { display: grid; gap: 24px; }
@media (min-width: 820px) { .people { grid-template-columns: 1fr 1fr; gap: 32px; } }
.person { background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: clamp(24px, 3.5vw, 34px); }
.person__top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.person__mono { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.person h3 { margin: 0; }
.person__teaches { font-size: .88rem; font-weight: 650; color: var(--navy-soft); }
.person p { color: var(--navy-soft); }
.person .arrow { margin-top: 14px; }

/* ---------- rather have it built ---------- */
.outs { display: grid; gap: 22px; }
@media (min-width: 760px) { .outs { grid-template-columns: 1fr 1fr; } }
.out { display: block; border: var(--border); border-radius: var(--radius); padding: 26px 26px 24px; text-decoration: none; box-shadow: var(--shadow-hard-sm); transition: transform .12s ease, box-shadow .12s ease; background: #fff; }
.out:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.out small { display: block; font-size: var(--fs-eyebrow); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 8px; }
.out strong { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.out span { color: var(--navy-soft); }

.arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.arrow svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.72); padding: 56px 0 30px; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.footer__grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .lockup img { height: 26px; }
.footer .lockup span { color: #fff; border-left-color: rgba(255,255,255,.25); }
.footer__label { color: #fff; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: rgba(255,255,255,.55); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
.footer__about { margin-top: 16px; }
@media (max-width: 640px) { .topbar__more { display: none; } .topbar__inner { flex-wrap: nowrap; } }
