/* ─────────────────────────────────────────────────────────────
   Queenie Kung — Portfolio Design System · July 2026
   Palette: #0693e3 blue (brand) · #00d084 green (wins)
            #ff6900 orange (warnings) · #ee4055 red (critical)
            #9b51e0 purple (tools/skills) · #717F96 slate (neutral)
   Type: Gelion (local) → Poppins (webfont fallback)
   Scale: Title 42 · Subtitle 28 · Heading 22 · Subheading 17
          Section header 12 caps · Body 15.5 · Quote 18 italic
   ───────────────────────────────────────────────────────────── */

:root {
  --blue: #0693e3;        --blue-dark: #0674b3;   --blue-light: rgba(6,147,227,.09);
  --green: #00d084;       --green-dark: #00a468;  --green-light: rgba(0,208,132,.10);
  --orange: #ff6900;      --orange-dark: #d95a02; --orange-light: rgba(255,105,0,.09);
  --red: #ee4055;         --red-dark: #cf2b40;    --red-light: rgba(238,64,85,.08);
  --purple: #9b51e0;      --purple-dark: #7e3cbd; --purple-light: rgba(155,81,224,.09);
  --slate: #717F96;       --slate-light: rgba(113,127,150,.12);

  --bg: #f5f8fc;
  --surface: #eef3f9;
  --ink: #16202b;
  --ink-2: #3d4a5c;
  --ink-3: #717F96;
  --border: rgba(113,127,150,.22);
  --border-soft: rgba(113,127,150,.14);

  --font: 'Gelion', 'Poppins', system-ui, -apple-system, sans-serif;
  --r: 18px; --r2: 12px;
  --shadow: 0 4px 18px rgba(6,147,227,.09);
  --shadow-hover: 0 14px 30px rgba(6,147,227,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

/* ── Type scale ── */
.t-title    { font-size: 42px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.t-subtitle { font-size: 28px; font-weight: 700; line-height: 1.2;  letter-spacing: -.015em; }
.t-heading  { font-size: 22px; font-weight: 700; line-height: 1.25; }
.t-subhead  { font-size: 17px; font-weight: 600; line-height: 1.4; }
.t-section  { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.t-quote    { font-size: 18px; font-style: italic; font-weight: 400; line-height: 1.6; }

/* ── Nav ── */
.nav {
  background: #fff;
  box-shadow: 0 2px 14px rgba(6,147,227,.10);
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 0; z-index: 100;
}
.nav-brand { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ── Hero ── */
.hero { max-width: 960px; margin: 0 auto; padding: 76px 48px 44px; }
.hero-eyebrow { composes: t-section; }
.hero .t-section { color: var(--blue); margin-bottom: 18px; }
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 22px; max-width: 860px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 17px; color: var(--ink-2); line-height: 1.7; max-width: 720px; }
.hero-sub strong { color: var(--ink); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pill { font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border-soft); color: var(--ink-2); }
.pill-red    { background: var(--red-light);    border-color: rgba(238,64,85,.25);  color: var(--red-dark); }
.pill-orange { background: var(--orange-light); border-color: rgba(255,105,0,.25);  color: var(--orange-dark); }
.pill-green  { background: var(--green-light);  border-color: rgba(0,208,132,.3);   color: var(--green-dark); }
.pill-blue   { background: var(--blue-light);   border-color: rgba(6,147,227,.25);  color: var(--blue-dark); }

/* ── Stat cards (hero numbers) ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 34px; }
.stat-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 22px 24px; }
.stat-num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; color: var(--blue); }
.stat-num.red { color: var(--red); } .stat-num.orange { color: var(--orange); }
.stat-num.green { color: var(--green-dark); } .stat-num.purple { color: var(--purple); }
.stat-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.stat-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

/* ── Layout ── */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 48px; }
.section { padding: 30px 0 64px; }
.sec-num { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.sec-title { font-size: 28px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 14px; }
.sec-title::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--orange); margin-top: 12px; }
.sec-center { text-align: center; }
.sec-center .sec-title::after { margin-left: auto; margin-right: auto; }
.sec-center .sec-sub { margin-left: auto; margin-right: auto; }
.sec-sub { font-size: 15.5px; color: var(--ink-2); max-width: 740px; margin-bottom: 34px; }
.divider { border: none; border-top: 1px solid var(--border-soft); margin: 8px 0; }

/* ── Finding cards ── */
.finding { background: #fff; border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--r2); padding: 24px 28px; margin-bottom: 16px; }
.finding-red    { border-left-color: var(--red); }
.finding-orange { border-left-color: var(--orange); }
.finding-blue   { border-left-color: var(--blue); }
.finding-green  { border-left-color: var(--green); }
.finding-purple { border-left-color: var(--purple); }
.finding-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 16px; margin-bottom: 12px; }
.tag-red    { background: var(--red-light);    color: var(--red-dark); }
.tag-orange { background: var(--orange-light); color: var(--orange-dark); }
.tag-blue   { background: var(--blue-light);   color: var(--blue-dark); }
.tag-green  { background: var(--green-light);  color: var(--green-dark); }
.tag-purple { background: var(--purple-light); color: var(--purple-dark); }
.tag-slate  { background: var(--slate-light);  color: var(--ink-2); }
.finding-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.finding-body { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.finding-body strong { color: var(--ink); }
.finding-insight { margin-top: 14px; padding: 14px 18px; background: var(--blue-light); border-radius: var(--r2); font-size: 13.5px; color: var(--ink); line-height: 1.65; }
.finding ul { margin: 12px 0 0 18px; font-size: 13.5px; color: var(--ink-2); }
.finding ul li { margin-bottom: 6px; }

/* ── Fix blocks ── */
.fix { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r2); padding: 22px 26px; margin: 18px 0; }
.fix-num { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 6px; }
.fix-title { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.fix-body { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ── Screenshots ── */
.shot { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin: 22px 0 10px; background: #fff; }
.shot img { width: 100%; }
.shot-caption { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 26px; padding: 0 4px; }
.shot-caption strong { color: var(--ink); }
.shot-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.shot-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }
.shot-grid-2 .shot, .shot-grid-3 .shot { margin: 0 0 10px; }

/* Phone-frame screenshots (mobile captures) */
.phone-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 26px 0; }
.phone { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.phone img { width: 100%; }
.phone-note { font-size: 12px; color: var(--ink-2); line-height: 1.55; margin-top: 10px; }
.phone-note .finding-tag { margin-bottom: 6px; }

/* ── Evidence quote cards (emails/SMS quoted, not screenshotted) ── */
.evidence { background: #fff; border: 1px solid var(--border); border-radius: var(--r2); padding: 20px 24px; margin-bottom: 14px; }
.evidence-meta { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.evidence-quote { font-size: 15px; font-style: italic; color: var(--ink); line-height: 1.65; padding-left: 16px; border-left: 3px solid var(--purple); }
.evidence-note { font-size: 13px; color: var(--ink-2); margin-top: 12px; line-height: 1.6; }

/* Before / after comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.compare-panel { border-radius: var(--r2); padding: 18px 20px; border: 1px solid; }
.compare-bad  { background: var(--red-light);   border-color: rgba(238,64,85,.22); }
.compare-good { background: var(--green-light); border-color: rgba(0,208,132,.28); }
.compare-label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.compare-bad  .compare-label { color: var(--red-dark); }
.compare-good .compare-label { color: var(--green-dark); }
.compare-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.compare-panel .shot, .compare-panel .phone { margin: 10px 0; }

/* ── Email timeline ── */
.timeline { border: 1px solid var(--border-soft); border-radius: var(--r); overflow: hidden; margin: 26px 0; }
.tl-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); align-items: start; background: #fff; }
.tl-row:last-child { border-bottom: none; }
.tl-row.tl-alert { background: var(--red-light); }
.tl-row.tl-win { background: var(--green-light); }
.tl-day { font-size: 13px; font-weight: 700; }
.tl-time { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.tl-subject { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.tl-note { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.tl-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 14px; white-space: nowrap; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; }
.badge-red    { background: var(--red-light);    color: var(--red-dark); }    .badge-red .tl-dot { background: var(--red); }
.badge-orange { background: var(--orange-light); color: var(--orange-dark); } .badge-orange .tl-dot { background: var(--orange); }
.badge-blue   { background: var(--blue-light);   color: var(--blue-dark); }   .badge-blue .tl-dot { background: var(--blue); }
.badge-green  { background: var(--green-light);  color: var(--green-dark); }  .badge-green .tl-dot { background: var(--green); }
.badge-purple { background: var(--purple-light); color: var(--purple-dark); } .badge-purple .tl-dot { background: var(--purple); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--r); margin: 26px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
table.data th { text-align: left; padding: 13px 18px; background: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--border-soft); }
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--border-soft); color: var(--ink-2); vertical-align: top; line-height: 1.55; }
table.data tr:last-child td { border-bottom: none; }
table.data td:first-child { font-weight: 600; color: var(--ink); }
td.cell-good { color: var(--green-dark); font-weight: 600; }
td.cell-warn { color: var(--orange-dark); font-weight: 600; }
td.cell-bad  { color: var(--red-dark); font-weight: 600; }

/* ── Priority list (Section 5) ── */
.priority { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r2); padding: 22px 26px; margin-bottom: 14px; align-items: flex-start; }
.priority-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.priority-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.priority-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.priority-meta { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.meta-chip { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 12px; }
.chip-effort-low  { background: var(--green-light);  color: var(--green-dark); }
.chip-effort-med  { background: var(--orange-light); color: var(--orange-dark); }
.chip-effort-high { background: var(--red-light);    color: var(--red-dark); }
.chip-impact { background: var(--blue-light); color: var(--blue-dark); }

/* ── Callout / insight box ── */
.callout { background: var(--ink); color: #fff; border-radius: var(--r); padding: 30px 34px; margin: 34px 0; }
.callout-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.callout-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.callout-body { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.82); }
.callout-body strong { color: #fff; }

/* Quote block */
.pull-quote { font-size: 18px; font-style: italic; line-height: 1.6; color: var(--ink); padding: 20px 26px; border-left: 4px solid var(--purple); background: var(--purple-light); border-radius: 0 var(--r2) var(--r2) 0; margin: 26px 0; }

/* ── Cards (homepage) ── */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: #fff; border: 1px solid transparent; border-radius: var(--r); padding: 30px 32px 26px; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.card-tag { align-self: flex-start; margin-bottom: 16px; }
.card-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.card-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.card-cta { font-size: 13.5px; font-weight: 700; color: var(--blue); }
.card:hover .card-cta { color: var(--blue-dark); }

/* ── Author strip / footer ── */
.author-strip { border-top: 1px solid var(--border-soft); margin-top: 30px; }
.author-inner { max-width: 960px; margin: 0 auto; padding: 34px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.author-name { font-size: 15px; font-weight: 700; }
.author-name a { color: var(--blue); text-decoration: none; }
.author-title { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.author-note { font-size: 12px; color: var(--ink-3); max-width: 460px; line-height: 1.6; }
.author-note a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ── Personal hero (homepage) ── */
.hero-person { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.avatar-mono { width: 150px; height: 150px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-size: 46px; font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(6,147,227,.32); }
.hero-hi { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.hero-name { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 6px; }
.typed-line { font-size: 19px; font-weight: 700; color: var(--blue); min-height: 30px; margin-bottom: 16px; }
.typed-line .cursor { display: inline-block; width: 2px; height: 20px; background: var(--blue); margin-left: 3px; animation: blink .8s infinite; vertical-align: -3px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-socials { display: flex; gap: 10px; margin-bottom: 20px; }
.soc { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(6,147,227,.16); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: none; transition: transform .15s; }
.soc:hover { transform: translateY(-3px); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 13px 28px; border-radius: 12px; text-decoration: none; box-shadow: 0 6px 20px rgba(6,147,227,.40); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6,147,227,.5); }
.btn-ghost { background: #fff; color: var(--blue); box-shadow: 0 3px 14px rgba(6,147,227,.14); }
.btn-purple { background: var(--purple); box-shadow: 0 6px 20px rgba(155,81,224,.4); }

/* ── "What you'll learn" box (teardowns + guides) ── */
.learnbox { background: #fff; border: 1px solid var(--border-soft); border-left: 5px solid var(--blue); border-radius: var(--r2); padding: 22px 26px; margin: 34px 0 6px; box-shadow: var(--shadow); }
.learnbox-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.learnbox ul { list-style: none; margin: 0; }
.learnbox li { font-size: 14px; color: var(--ink-2); padding: 5px 0 5px 28px; position: relative; line-height: 1.6; }
.learnbox li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ── Lesson cards (AI 101 guides) ── */
.lesson { background: #fff; border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.lesson:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.lesson-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lesson-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.lesson-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.lesson-title { font-size: 18px; font-weight: 700; }
.lesson-steps { display: flex; gap: 8px; margin: 16px 0 8px; }
.lesson-step { flex: 1; height: 8px; border-radius: 99px; background: var(--surface); }
.lesson-step.done { background: var(--green); }
.lesson-meta { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

/* ── Responsive ── */
@media (max-width: 820px) {
  .nav { padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
  .nav-links { gap: 18px; }
  .nav-meta { display: none; }
  .hero { padding: 48px 20px 32px; }
  .hero h1, .t-title { font-size: 30px; }
  .sec-title, .t-subtitle { font-size: 23px; }
  .wrap { padding: 0 20px; }
  .card-grid, .shot-grid-2, .shot-grid-3, .compare { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 84px 1fr; }
  .tl-row > div:last-child { grid-column: 2; }
  .priority { flex-direction: column; }
  .priority-meta { flex-direction: row; align-items: center; }
  .author-inner { padding: 26px 20px; }
  .hero-person { gap: 24px; }
  .avatar-mono { width: 110px; height: 110px; font-size: 34px; }
  .hero-name { font-size: 32px; }
}
