/* Bootcamp landing page and course catalog (/). Its own dark palette, independent of the course app's theme.
 * Layout follows the other Grapes Labs product pages (Boardy, Ignite): nav, hero with a sticky sign-in card,
 * an animated stage, a product tour, a feature grid, how it works, your data, a final call to action. */
:root {
  --ink: #f6f1ea; --muted: #b9b0a6; --muted-2: #8d857c;
  --bg: #121014; --surface: #1b181d; --surface-2: #231f25;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .17);
  --accent: #f2a65a; --accent-ink: #2a1705; --accent-2: #e0704b; --ok: #6fcf97;
  --serif: "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.noscript { padding: 40px; text-align: center; }

.landing {
  min-height: 100vh; overflow-x: clip;
  background:
    radial-gradient(900px 600px at 6% -6%, rgba(242, 166, 90, .16), transparent 65%),
    radial-gradient(800px 520px at 100% 6%, rgba(224, 112, 75, .13), transparent 65%),
    var(--bg);
}
.landing h1, .landing h2, .landing h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; margin: 0; }
.landing em { font-style: italic; color: var(--accent); }
.landing button { color: inherit; }

.lp-nav, .lp-hero, .lp-section, .lp-final, .lp-footer, .home-hero { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.lp-nav { display: flex; align-items: center; gap: 28px; padding: 22px 0; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px var(--serif); letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #2a2329; border: 1px solid var(--line-strong); }
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.lp-nav nav { display: flex; gap: 4px; margin-left: auto; }
.lp-nav nav button { border: 0; background: none; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.lp-nav nav button:hover { color: var(--ink); background: var(--line); }
.lp-nav-cta { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; color: var(--ink); }
.lp-nav-cta:hover { border-color: var(--accent); }
.lp-nav-link { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 10px; }
.lp-nav-link:hover { color: var(--ink); }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.btn-secondary:hover { border-color: var(--accent); }

/* hero */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 420px); grid-template-areas: 'copy signin' 'stage signin'; column-gap: 64px; align-items: start; padding: 34px 0 70px; }
.lp-hero-copy { grid-area: copy; }
.lp-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.landing .lp-hero h1 { font-size: clamp(44px, 6.2vw, 82px); line-height: 1; letter-spacing: -.035em; }
.lp-hero h1 em { display: block; }
.lp-lead { max-width: 580px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.lp-more { margin: 18px 0 0; padding: 4px 0; border: 0; background: none; font-weight: 700; font-size: 14px; }
.landing .lp-more { color: var(--accent); }

.lp-signin { grid-area: signin; position: sticky; top: 24px; scroll-margin-top: 24px; }
.auth-card { width: 100%; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: rgba(27, 24, 29, .86); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.auth-brand { margin-bottom: 26px; font: 600 22px var(--serif); display: flex; align-items: center; gap: 10px; }
.auth-card h2 { margin: 0 0 10px; font-size: 28px; }
.auth-card > p { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.auth-card .btn-primary { width: 100%; }
.auth-error { overflow-wrap: anywhere; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: rgba(224, 112, 75, .14); color: #ffb39a; font-size: 14px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--muted-2); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
/* Google's sign-in button, dark theme. */
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid #8e918f; border-radius: 10px; background: #131314; color: #e3e3e3; font-weight: 600; font-size: 14px; text-decoration: none; }
.google-btn:hover { background: #1f1f20; }
.auth-new { display: grid; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.auth-new > span { color: var(--muted); font-size: 14px; }
.auth-new small { color: var(--muted-2); font-size: 12px; line-height: 1.5; }

/* the animated lesson */
.lp-stage { grid-area: stage; position: relative; margin-top: 46px; max-width: 680px; }
.lp-window { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(30, 26, 32, .92); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75); }
.lp-window-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; font-size: 14px; }
.lp-dot { width: 11px; height: 11px; border-radius: 4px; background: var(--accent); }
.lp-time { margin-left: auto; color: var(--muted-2); font-weight: 600; font-size: 12px; }
.lp-lines { display: grid; gap: 10px; margin-bottom: 20px; }
.lp-lines i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .09); }
.lp-lines .lp-mark { position: relative; overflow: hidden; }
.lp-lines .lp-mark::after { content: ''; position: absolute; inset: 0; background: rgba(242, 196, 90, .55); transform-origin: left; animation: lp-highlight 7s ease-in-out infinite; }
.lp-quiz { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.lp-quiz b { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lp-opt { position: relative; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.lp-opt-right { animation: lp-answer 7s ease-in-out infinite; }
.lp-opt-right span { position: absolute; right: 12px; color: var(--ok); opacity: 0; animation: lp-tick 7s ease-in-out infinite; }
@keyframes lp-highlight { 0%, 10% { transform: scaleX(0); } 30%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes lp-answer { 0%, 45% { border-color: var(--line); color: var(--muted); background: transparent; } 52%, 92% { border-color: rgba(111, 207, 151, .6); color: var(--ink); background: rgba(111, 207, 151, .1); } 100% { border-color: var(--line); } }
@keyframes lp-tick { 0%, 48% { opacity: 0; } 54%, 92% { opacity: 1; } 100% { opacity: 0; } }
.lp-chip { position: absolute; display: grid; gap: 3px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(35, 31, 37, .96); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .85); animation: lp-float 6s ease-in-out infinite; }
.lp-chip small { color: var(--muted-2); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.lp-chip strong { display: flex; align-items: center; gap: 8px; font: 600 18px var(--serif); }
.lp-ring { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--accent) 0 78%, rgba(255, 255, 255, .12) 78% 100%); }
.lp-chip-one { right: -22px; top: -44px; }
.lp-chip-two { left: -18px; bottom: -26px; animation-delay: -3s; }
@keyframes lp-float { 50% { transform: translateY(-8px); } }

/* sections */
.lp-section { padding: 70px 0; scroll-margin-top: 10px; }
.landing .lp-section h2, .landing .lp-final h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }

/* course catalog */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; margin-top: 36px; }
.home .courses { margin-top: 0; }
.course { --c: var(--accent); display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 3px 0 var(--c); }
.course-head { display: flex; gap: 16px; align-items: center; }
.course-mark { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 15px; background: var(--c); color: #fff; font-size: 28px; }
.landing .course h3 { font-size: 26px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.course-tags span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.course > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.course-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.course-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.course-stats dt { color: var(--muted-2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.course-stats dd { margin: 3px 0 0; font: 600 21px var(--serif); }
.course-progress { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.course-progress .bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.course-progress .bar span { display: block; height: 100%; border-radius: 6px; background: var(--c); }
.course-cta { align-self: flex-start; margin-top: auto; }
.course-soon { justify-content: center; border-style: dashed; box-shadow: none; background: transparent; }
.landing .course-soon h3 { font-size: 22px; }

/* product tour */
.lp-tour { --progress: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 40px; }
.lp-tabs { display: grid; gap: 4px; }
.lp-tabs button { position: relative; display: grid; padding: 14px 16px 14px 20px; border: 0; border-radius: 14px; background: none; text-align: left; }
.lp-tabs button:hover { background: rgba(255, 255, 255, .035); }
.lp-tabs button[aria-selected='true'] { background: rgba(255, 255, 255, .06); }
.lp-tab-bar { position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.lp-tabs button[aria-selected='true'] .lp-tab-bar i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(var(--progress)); }
.lp-tab-name { font-weight: 700; font-size: 15px; color: var(--muted); }
.lp-tabs button[aria-selected='true'] .lp-tab-name { color: var(--ink); }
.lp-tab-text { display: none; padding-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lp-tab-text strong { display: block; margin-bottom: 2px; color: var(--ink); }
.lp-tabs button[aria-selected='true'] .lp-tab-text { display: block; }
.lp-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 90px -40px rgba(242, 166, 90, .45); }
.lp-frame-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lp-frame-bar > span:first-child { display: flex; gap: 6px; }
.lp-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.lp-address { margin: 0 auto; padding: 3px 24px; border-radius: 7px; background: rgba(0, 0, 0, .28); color: var(--muted-2); font-size: 11px; }
.lp-shots { position: relative; aspect-ratio: 1440 / 925; background: #f7f5ef; }
.lp-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transform: translateX(18px); transition: opacity .55s ease, transform .55s ease; }
.lp-shots img.active { opacity: 1; transform: none; }

.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-grid article, .lp-promises article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .028); }
.lp-grid article > span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 11px; background: rgba(242, 166, 90, .14); color: var(--accent); font-size: 17px; }
.landing .lp-grid h3, .landing .lp-promises h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.01em; }
.lp-grid p, .lp-promises p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: center; }
.lp-steps { display: grid; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: step; }
.lp-steps li { position: relative; display: grid; gap: 5px; padding-left: 58px; counter-increment: step; }
.lp-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(242, 166, 90, .45); border-radius: 12px; color: var(--accent); font: 600 18px var(--serif); }
.lp-steps strong { font-size: 17px; }
.lp-steps span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.lp-phone { margin: 0; text-align: center; }
.lp-phone img { display: block; width: 100%; height: auto; border: 6px solid #2e282f; border-radius: 34px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.lp-phone figcaption { margin-top: 14px; color: var(--muted-2); font-size: 13px; }

.lp-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }

.lp-final { margin-top: 40px; margin-bottom: 40px; padding: 70px 24px; border: 1px solid var(--line); border-radius: 26px; text-align: center; background: linear-gradient(135deg, #1f1a1f 0%, #3a2418 60%, #5a2f1c 100%); }
.lp-final .btn-primary { margin-top: 28px; padding: 14px 34px; }

.lp-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.lp-footer .lp-brand { color: var(--ink); font-size: 16px; }
.lp-footer .brand-mark { width: 28px; height: 28px; }

/* signed in */
.who { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-2); color: #fff; font-weight: 700; }
.who-text { display: grid; min-width: 0; line-height: 1.25; }
.who-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { color: var(--muted-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-hero { padding: 40px 0 0; }
.landing .home-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.home-hero .btn-primary { margin-top: 26px; }

.landing button:focus-visible, .landing a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1040px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-tour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .lp-tabs button { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; }
  .lp-tabs button[aria-selected='true'] { border-color: var(--accent); }
  .lp-tab-bar, .lp-tabs button[aria-selected='true'] .lp-tab-text { display: none; }
}
@media (max-width: 900px) {
  .lp-nav nav { display: none; }
  .lp-nav > .lp-nav-cta { margin-left: auto; }
  .lp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'signin' 'stage'; row-gap: 34px; padding-top: 12px; }
  .lp-signin { position: static; width: min(460px, 100%); justify-self: center; }
  .lp-stage { margin-top: 20px; width: 100%; justify-self: center; }
  .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-phone { width: min(260px, 100%); justify-self: center; }
  .lp-promises { grid-template-columns: minmax(0, 1fr); }
  .who-text, .lp-nav-link { display: none; }
}
@media (max-width: 560px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 24px 20px; }
  .lp-chip { display: none; }
  .lp-window { padding: 14px; }
  .course { padding: 20px; }
  .course-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-lines .lp-mark::after, .lp-opt-right, .lp-opt-right span, .lp-chip { animation: none; }
  .lp-opt-right span { opacity: 1; }
  .lp-shots img { transition: none; transform: none; }
  .lp-tabs button[aria-selected='true'] .lp-tab-bar i { transform: none; }
}
