/* Click by Click — site styles. Palette and type from the brand bible (brand/brand_bible.md §7). */

@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("fonts/Montserrat-Black.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/Montserrat-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); }

:root {
  --ink: #101418;
  --paper: #F7F7F5;
  --card: #FFFFFF;
  --muted: #5A626B;
  --line: #E3E4E0;
  --orange: #FF6A00;
  --blue: #2F6BFF;
  --green: #19C37D;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2F3F1;
    --paper: #101418;
    --card: #181D23;
    --muted: #A3AAB2;
    --line: #2A3038;
    --blue: #6F97FF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 600 17px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 900; font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-weight: 800; font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--orange); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.site-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--orange); }

/* Wordmark: "click by click", the second "click" in orange */
.wordmark { font: 900 1.35rem/1 "Montserrat", sans-serif; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--orange); }
.wordmark small { font: 800 .7em/1 "Montserrat", sans-serif; color: var(--muted); margin-right: 2px; }
.wordmark:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 800 1rem/1 "Montserrat", sans-serif; text-decoration: none;
  background: var(--orange); color: #fff; border: 2px solid var(--orange);
  transition: transform .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { color: var(--ink); border-color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(56px, 10vw, 110px) clamp(48px, 8vw, 90px); }
.hero .wrap { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow { font: 800 .8rem/1 "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 18px; }

/* Hero illustration: a window with steps being clicked one by one */
.window { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -30px rgba(16,20,24,.35); overflow: hidden; }
.window-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.steps { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; counter-reset: step; }
.steps li {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  counter-increment: step; animation: done 8s infinite;
}
.steps li::before {
  content: counter(step); flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  font: 800 .8rem/1 "Montserrat", sans-serif; background: var(--paper); color: var(--muted);
  animation: tick 8s infinite;
}
.steps li::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; border: 3px solid var(--orange); opacity: 0;
  animation: ripple 8s infinite;
}
.steps li:nth-child(2), .steps li:nth-child(2)::before, .steps li:nth-child(2)::after { animation-delay: 1.5s; }
.steps li:nth-child(3), .steps li:nth-child(3)::before, .steps li:nth-child(3)::after { animation-delay: 3s; }
.steps li:nth-child(4), .steps li:nth-child(4)::before, .steps li:nth-child(4)::after { animation-delay: 4.5s; }
.window-foot { margin: 0 18px 18px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); font-weight: 600; }

@keyframes ripple { 0%, 4% { opacity: 0; transform: scale(.4); } 6% { opacity: 1; } 14% { opacity: 0; transform: scale(2.4); } 100% { opacity: 0; } }
@keyframes tick { 0%, 6% { background: var(--paper); color: var(--muted); } 8%, 88% { background: var(--orange); color: #fff; } 96%, 100% { background: var(--paper); color: var(--muted); } }
@keyframes done { 0%, 6% { border-color: var(--line); } 8%, 88% { border-color: var(--orange); } 96%, 100% { border-color: var(--line); } }

@media (prefers-reduced-motion: reduce) {
  .steps li, .steps li::before, .steps li::after { animation: none; }
  .btn, .tool-chips a { transition: none; }
}

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--paper); }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 900 2rem/1 "Montserrat", sans-serif; color: var(--orange); margin-bottom: 14px; }

.badge { font: 800 .75rem/1 "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px; border-radius: 6px; background: var(--ink); color: var(--paper); }

/* Hero facts */
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.facts strong { font: 900 1.2rem/1 "Montserrat", sans-serif; color: var(--ink); margin-right: 4px; }

/* Learning paths */
.path { display: flex; flex-direction: column; gap: 16px; }
.path header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.path .level { font-size: .85rem; color: var(--muted); }
.lessons { margin: 0; padding: 0; list-style: none; counter-reset: lesson; display: grid; gap: 12px; }
.lessons li { counter-increment: lesson; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; font-size: .95rem; line-height: 1.45; }
.lessons li::before { content: counter(lesson); font: 800 .8rem/1.8 "Montserrat", sans-serif; color: var(--orange); }
.soon { font: 800 .65rem/1 "Montserrat", sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 5px 7px; margin-top: 2px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.soon.first { border-color: var(--orange); color: var(--orange); }
.path .cta { margin-top: auto; font-size: .95rem; }

/* Toolkit teaser */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tool-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tool-chips a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; font: 800 1.05rem/1 "Montserrat", sans-serif; transition: border-color .15s ease; }
.tool-chips a::after { content: " →"; color: var(--orange); }
.tool-chips a:hover { border-color: var(--orange); color: var(--ink); }

/* Tools page */
.page-head { padding-block: clamp(48px, 8vw, 88px) 24px; }
.page-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.notice { max-width: 60ch; padding: 14px 18px; border-left: 4px solid var(--orange); background: var(--card); border-radius: 0 10px 10px 0; font-size: .95rem; }
.tag { font: 800 .7rem/1 "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-radius: 4px; background: var(--orange); color: #fff; vertical-align: 2px; }
.tools-list { padding-top: 24px; }
.tools-list .wrap { display: grid; gap: 20px; }
.tool-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; scroll-margin-top: 24px; }
.tool-row h2 { font-size: 1.6rem; margin-bottom: .3em; }
.tool-row dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .95rem; }
.tool-row dt { color: var(--muted); }
.tool-row dd { margin: 0; }
.tool-row dd:first-of-type { color: var(--green); }
.tool-row:target { border-color: var(--orange); }
.tool-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: .95rem; }
.site-header nav a[aria-current="page"] { color: var(--orange); }

/* Honesty list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; }

/* CTA band */
.band { text-align: center; }
.band h2 { max-width: 18ch; margin-inline: auto; }
.band .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Plain text pages */
.prose { max-width: 720px; padding-block: 56px 80px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 1040px) {
  .paths { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero .wrap, .grid, .paths, .checks, .split, .tool-row { grid-template-columns: 1fr; }
  .tool-row { gap: 20px; }
  .tool-actions { align-items: flex-start; }
  .site-header nav a.hide-sm { display: none; }
}

@media (max-width: 480px) {
  .site-header .wrap { flex-wrap: wrap; gap: 10px 16px; padding-block: 14px; }
}
