/* =========================================================
   2ucan — landing page styles
   Toucan energy: Ink structure on Cloud, bold warm-block pops,
   blue as a single accent. Built on the 2ucan-brand skill.
   Presentation-forward; class names match index.html.
   ========================================================= */

:root {
  /* --- Brand colors --- */
  --ink:        #181310;  /* dominant structure, text, primary buttons */
  --cloud:      #F7F4EC;  /* ground */
  --cobalt:     #2B4CD4;  /* the single blue accent (the "blue block") */
  --bill-red:   #E0322A;  /* warm pop */
  --ember:      #FB8B1C;  /* warm pop */
  --sun:        #F7C61E;  /* warm pop, badges */
  --white:      #FFFFFF;
  --cobalt-hover: #2340BC;
  --hairline:   rgba(24, 19, 16, 0.10);

  /* --- Semantic aliases --- */
  --bg:        var(--cloud);
  --surface:   var(--white);
  --surface-2: #EFEADD;                 /* soft warm neutral fill */
  --text:      var(--ink);
  --muted:     rgba(24, 19, 16, 0.62);
  --accent:    var(--cobalt);
  --cobalt-tint: rgba(43, 76, 212, 0.06);
  --warm-tint:   rgba(251, 139, 28, 0.12);  /* ember wash for highlights */
  --sun-tint:    rgba(247, 198, 30, 0.20);

  --border:    var(--hairline);
  --radius:    12px;
  --radius-btn: 8px;
  --maxw:      1160px;

  --shadow-sm: 0 1px 2px rgba(24, 19, 16, 0.06);
  --shadow-md: 0 4px 16px rgba(24, 19, 16, 0.08);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1.5rem; }

.accent { color: var(--cobalt); }  /* the one blue moment, in the hero headline */

/* Global focus — never removed. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* ---------- Buttons (primary = Ink, like the black "2") ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--large { padding: 15px 30px; font-size: 1.05rem; }
.btn--small { padding: 9px 16px; font-size: 0.9rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink); }

/* ---------- Brand mark (SVG logo) ---------- */
.mark { display: block; overflow: visible; transition: transform .18s ease; }
.mark--lg { width: 116px; height: 116px; }
.hero__logo { display: flex; justify-content: center; margin-bottom: 30px; }
.hero__logo .mark:hover { transform: translateY(-3px); }
.logo:hover .mark { transform: scale(1.06); }

/* Warm blocks animate around their own centers. */
.mb { transform-box: fill-box; transform-origin: center; }
@keyframes mbPulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(0.82); } }

/* Idle cycle: staggered pulse on the large hero mark. */
.hero__logo .mb { animation: mbPulse 3s ease-in-out infinite; }
.hero__logo .mb:nth-child(1) { animation-delay: 0s; }
.hero__logo .mb:nth-child(2) { animation-delay: .12s; }
.hero__logo .mb:nth-child(3) { animation-delay: .24s; }
.hero__logo .mb:nth-child(4) { animation-delay: .36s; }
.hero__logo .mb:nth-child(5) { animation-delay: .48s; }
.hero__logo .mb:nth-child(6) { animation-delay: .60s; }

/* Light motion: one wave through the blocks on nav-logo hover. */
.logo:hover .mb { animation: mbPulse .7s ease-in-out; }
.logo:hover .mb:nth-child(2) { animation-delay: .06s; }
.logo:hover .mb:nth-child(3) { animation-delay: .12s; }
.logo:hover .mb:nth-child(4) { animation-delay: .18s; }
.logo:hover .mb:nth-child(5) { animation-delay: .24s; }
.logo:hover .mb:nth-child(6) { animation-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  .mb { animation: none !important; }
  .mark, .logo:hover .mark { transition: none; transform: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__word { font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.03em; }
.logo .mark { width: 26px; height: 26px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--cobalt); font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 24px; }
.lede {
  max-width: 640px; margin: 0 auto 36px; font-size: 1.2rem; color: var(--muted);
}
.lede strong { color: var(--ink); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 22px; color: var(--muted); font-size: 0.9rem; }
.hero__variant[hidden] { display: none; }  /* A/B: hide the non-assigned hero */

/* Hero jump-control */
.hero__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.hero__arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--hairline); background: transparent; color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .15s ease;
}
.hero__arrow:hover { background: var(--surface-2); }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0;
  border: none; background: rgba(24, 19, 16, 0.22); cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.hero__dot:hover { background: rgba(24, 19, 16, 0.4); }
.hero__dot.is-active { background: var(--ink); transform: scale(1.15); }

/* ---------- Contrast ---------- */
.contrast { padding: 96px 0; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; text-align: left; }
.card {
  background: var(--surface);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card--muted p { color: var(--muted); }
.card--hero { background: var(--warm-tint); box-shadow: none; }
.card--hero h3 { color: var(--ink); }
.contrast__line { font-size: 1.5rem; font-weight: 700; margin-top: 8px; color: var(--ink); }

/* ---------- How ---------- */
.how { padding: 96px 0; background: var(--surface); }
.steps { list-style: none; display: grid; gap: 32px; max-width: 760px; margin: 0 auto; }
.steps li { position: relative; padding-left: 64px; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px;   /* blocky, not round */
  display: grid; place-items: center;
  background: var(--sun); color: var(--ink); font-weight: 700; font-size: 1.1rem;
}
/* Warm block sequence, echoing the logo. */
.steps li:nth-child(2) .step__num { background: var(--ember); color: var(--ink); }
.steps li:nth-child(3) .step__num { background: var(--bill-red); color: var(--white); }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* ---------- Pillars ---------- */
.pillars { padding: 88px 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { padding: 96px 0; background: var(--surface); text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 24px; justify-content: center; margin: 36px 0 20px; }
.plan {
  background: var(--surface);
  border-radius: var(--radius); padding: 32px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.plan--featured { position: relative; box-shadow: var(--shadow-md); border: 2px solid var(--ink); }
.plan__badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--sun); color: var(--ink); font-size: 0.75rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 8px; }
.plan__price { font-size: 2.6rem; font-weight: 700; margin-bottom: 18px; }
.plan__price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin-bottom: 24px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }
.pricing__note { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }

/* ---------- Waitlist ---------- */
.waitlist { padding: 104px 0; }
.waitlist__inner { max-width: 620px; margin: 0 auto; text-align: center; }
.waitlist p { color: var(--muted); margin-bottom: 26px; }
.form__row { display: flex; gap: 10px; }
.form__col { display: flex; flex-direction: column; gap: 12px; }
.form input[type="email"], .form input[type="text"] {
  flex: 1; width: 100%;
  background: var(--surface); border: 1px solid var(--hairline);
  color: var(--ink); padding: 14px 16px; border-radius: var(--radius-btn); font-size: 1rem;
}
.form input::placeholder { color: rgba(24, 19, 16, 0.4); }
.form input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 2px var(--cobalt-tint); }
.form__probe { display: block; margin-top: 16px; text-align: left; color: var(--muted); font-size: 0.9rem; }
.form__probe span { opacity: 0.7; }
.form__probe input { margin-top: 8px; }
.waitlist__fineprint { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; border-top: 1px solid var(--hairline); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer p { color: var(--muted); font-size: 0.9rem; }
.footer__brand a { color: var(--cobalt); text-decoration: none; }
.footer__brand a:hover { text-decoration: underline; }

/* ---------- Modal (fake door) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(24, 19, 16, 0.45); }
.modal__panel {
  position: relative; background: var(--surface);
  border-radius: var(--radius); padding: 34px; max-width: 440px; width: calc(100% - 40px);
  box-shadow: var(--shadow-md);
}
.modal__panel h3 { font-size: 1.4rem; margin-bottom: 10px; }
.modal__panel p { color: var(--muted); margin-bottom: 22px; }
.modal__close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.modal__close:hover { color: var(--ink); }

/* ---------- Thank-you page ---------- */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.thanks p { color: var(--muted); margin-bottom: 28px; font-size: 1.1rem; }

/* ---------- The Big Idea (education section) ---------- */
.skills { padding: 96px 0; }
.skills .eyebrow { display: block; }
.section-lede { max-width: 720px; color: var(--muted); font-size: 1.12rem; margin-bottom: 40px; }
.section-lede strong { color: var(--ink); }

/* Comparison table */
.compare { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.compare thead th { font-size: 0.95rem; font-weight: 600; background: var(--surface-2); }
.compare tbody td:first-child { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare tbody td { color: var(--ink); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare__hi { background: var(--warm-tint); }
.compare thead .compare__hi { color: var(--ink); background: var(--sun-tint); }

/* Stack: one skill -> many -> superpower */
.stack { display: flex; align-items: stretch; gap: 16px; margin: 40px 0; }
.stack__step {
  flex: 1; background: var(--surface);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stack__step--hi { background: var(--warm-tint); box-shadow: none; border: 1px solid var(--ember); }
.stack__step p { color: var(--muted); font-size: 0.96rem; }
.stack__step p strong { color: var(--ink); }
.stack__icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 10px; background: var(--sun-tint);
  color: var(--ink); font-weight: 700;
}
.stack__step--hi .stack__icon { background: var(--ink); color: var(--white); }
.stack__arrow { display: grid; place-items: center; color: rgba(24, 19, 16, 0.4); font-size: 1.4rem; }

/* The thesis block */
.bigidea {
  margin-top: 40px; padding: 40px; border-radius: 20px;
  background: var(--warm-tint);
}
.bigidea h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; color: var(--ink); }
.bigidea > p { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
.bigidea > p strong { color: var(--ink); }
.bigidea__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.bigidea__points div { color: var(--ink); font-size: 0.96rem; }
.bigidea__points span { color: var(--ink); font-weight: 700; margin-right: 6px; }
.bigidea__points em { color: var(--ink); font-style: normal; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .cards, .pillars__grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav__links a:not(.btn) { display: none; }
  .form__row { flex-direction: column; }
  .stack { flex-direction: column; }
  .stack__arrow { transform: rotate(90deg); }
  .bigidea__points { grid-template-columns: 1fr; }
}
