/* KennyZai.com: phone = warm note style (B), desktop = clean grid. */
:root {
  --bg: #FFF8F1; --paper: #FFFFFF; --ink: #2A1F1A; --muted: #6B5D55;
  --accent: #C2410C; --accent-d: #9A3412; --chip: #FCE7D6; --chip-ink: #7C2D12; --line: #EEE5DC;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; padding-bottom: 84px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }
:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; border-radius: 6px; }
h1, h2, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 241, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-top: 8px; }
.brand { font-weight: 900; font-size: 19px; color: var(--ink); letter-spacing: 0.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand:hover { color: var(--ink); }
.actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav { order: 3; flex: 1 0 100%; display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin-top: 4px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; height: 44px; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; flex-shrink: 0; }
.nav a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid #E5D9CE; background: #fff; color: var(--ink); font-size: 13px; white-space: nowrap; }
.pill:hover { color: var(--ink); border-color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 24px; border: 0; background: var(--accent); color: #fff; font: 700 15px/1.2 var(--font); cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-d); color: #fff; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid #E5D9CE; }
.btn.ghost:hover { border-color: var(--accent); color: var(--ink); }
.only-d { display: none; }

/* Hero */
.hero { padding: 16px 0 4px; }
.hero .wrap { display: grid; gap: 16px; }
.hero-main { display: grid; gap: 12px; }
.who { display: flex; align-items: center; gap: 12px; }
.who-text { flex: 1; min-width: 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--chip); border: 2px solid #fff; display: grid; place-items: center; font-weight: 900; font-size: 26px; color: var(--accent-d); flex-shrink: 0; }
.avatar.sm { width: 40px; height: 40px; font-size: 17px; }
.role { font-size: 12px; color: var(--muted); }
h1 { font-size: 20px; font-weight: 900; line-height: 1.25; }
h1 span { color: var(--accent); }
.tagline { font-size: 13px; font-weight: 700; color: var(--accent-d); }
.slogan { font-size: 17px; font-weight: 700; line-height: 1.45; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.creds li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--chip); color: var(--chip-ink); font-size: 12.5px; font-weight: 700; }
.creds svg { flex-shrink: 0; }
.intro { font-size: 14px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn { flex: 1 1 auto; }

/* Quick search -> WhatsApp */
.quick { background: var(--paper); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.quick h2 { font-size: 18px; }
.quick p { font-size: 13px; color: var(--muted); margin-top: -6px; }
.quick label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.quick select, .quick input { width: 100%; height: 46px; border: 1px solid #E5D9CE; border-radius: 10px; padding: 0 12px; font: 16px var(--font); color: var(--ink); background: #fff; }
.quick select:focus, .quick input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15); }

/* Sections */
.sec { padding: 20px 0 4px; }
.sec h2 { font-size: 20px; font-weight: 900; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec-head a { font-size: 14px; font-weight: 700; }
.sec-note { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }

/* Cards: phone = 2-column note feed with mixed heights */
.cards { columns: 2; column-gap: 8px; }
.card { display: block; break-inside: avoid; margin: 0 0 8px; background: var(--paper); border-radius: 12px; overflow: hidden; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42, 31, 26, 0.08); }
.card.hl { box-shadow: 0 0 0 3px var(--accent); }
.cover { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; min-height: 150px; }
.cover small { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.cover strong { font-size: 19px; font-weight: 900; line-height: 1.25; }
.card .body { display: grid; gap: 6px; padding: 10px 12px 12px; }
.card .body p { font-size: 13px; color: var(--muted); }
.card .more { font-size: 13px; font-weight: 700; color: var(--accent); }
.t1 .cover { background: #F3C9A8; color: #431407; min-height: 200px; }
.t2 .cover { background: #2A1F1A; color: #FFFFFF; min-height: 160px; }
.t2 .cover small { color: #F3C9A8; }
.t3 .cover { background: #FCE7D6; color: #431407; min-height: 170px; }
.t4 .cover { background: #E9D6C8; color: #431407; min-height: 210px; }
.g1 .cover { background: #2A1F1A; color: #fff; min-height: 170px; }
.g1 .cover small { color: #F3C9A8; }
.g2 .cover { background: #F3C9A8; color: #431407; min-height: 170px; }
.g3 .cover { background: #FCE7D6; color: #431407; min-height: 110px; }
.cards.guides { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cards.guides .card { margin: 0; }
.cards.guides .g3 { grid-column: 1 / -1; }

/* Steps */
.steps h2 { margin-bottom: 12px; }
.steps ol { list-style: none; margin: 0; padding: 16px; background: var(--paper); border-radius: 16px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--accent-d); font-weight: 800; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.steps strong { display: block; font-size: 15px; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* About + follow */
.about-row { display: grid; gap: 12px; }
.card-box { background: var(--paper); border-radius: 16px; padding: 16px; }
.about { display: flex; gap: 14px; align-items: center; }
.about h2 { font-size: 18px; margin-bottom: 4px; }
.about .lead { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.about p { font-size: 14px; color: #4A3B33; line-height: 1.6; }
.cats { width: 84px; height: 84px; border-radius: 16px; background: var(--chip); color: var(--accent-d); display: grid; place-items: center; align-content: center; gap: 2px; flex-shrink: 0; text-align: center; }
.cats span { font-size: 10px; font-weight: 700; }
.follow { display: grid; gap: 8px; }
.follow h2 { font-size: 18px; margin-bottom: 2px; }
.follow a { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 14px; }
.follow a:hover { color: var(--ink); background: var(--chip); }
.follow a span:last-child { color: var(--accent-d); }

/* Footer */
.foot { background: #2A1F1A; color: #D9CCC2; margin-top: 28px; font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 32px; padding-top: 24px; padding-bottom: 28px; }
.foot .wrap > div { display: grid; gap: 2px; }
.brand.light { color: #fff; font-size: 17px; }
.brand.light span { color: #F3A274; }

/* Phone bottom bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(42, 31, 26, 0.06); }
.mbar > span { flex: 1; font-size: 13px; line-height: 1.35; color: #4A3B33; }
.mbar .btn { min-height: 46px; }

/* 404 */
.nf { padding: 0; }
.nf-box { padding: 80px 16px; display: grid; gap: 16px; max-width: 560px; }
.nf-box h1 { font-size: 28px; }
.nf-box p { color: var(--muted); }

/* Desktop: clean grid */
@media (min-width: 900px) {
  body { background: #fff; padding-bottom: 0; }
  .wrap { padding: 0 32px; }
  .top { background: rgba(255, 255, 255, 0.96); }
  .top .wrap { flex-wrap: nowrap; gap: 36px; min-height: 72px; padding-top: 0; }
  .brand { font-size: 22px; }
  .nav { order: 0; flex: 0 1 auto; margin: 0; gap: 26px; }
  .nav a { border-bottom: 0; }
  .nav a.on { color: var(--ink); }
  .only-d { display: inline-flex; }
  .mbar { display: none; }

  .hero { background: var(--bg); padding: 64px 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
  .hero-main { gap: 18px; }
  .who { gap: 20px; }
  .avatar { width: 96px; height: 96px; font-size: 38px; border-width: 3px; }
  .role { font-size: 14px; font-weight: 700; color: var(--accent-d); letter-spacing: 0.04em; }
  h1 { font-size: 48px; line-height: 1.15; }
  .tagline { font-size: 17px; margin-top: 4px; }
  .slogan { font-size: 22px; font-weight: 600; }
  .creds { display: flex; flex-wrap: wrap; }
  .creds li { font-size: 14px; padding: 8px 14px; }
  .intro { font-size: 16px; }
  .cta .btn { flex: 0 0 auto; min-height: 52px; padding: 0 28px; font-size: 16px; }
  .quick { padding: 24px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(42, 31, 26, 0.07); }

  .sec { padding: 56px 0 8px; }
  .sec h2 { font-size: 28px; }
  .sec-head a { font-size: 15px; }
  .sec-note { font-size: 15px; margin: -4px 0 24px; }
  .cards { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .cards.guides { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .cards.guides .g3 { grid-column: auto; }
  .card { margin: 0; border: 1px solid var(--line); border-radius: 14px; }
  .card .cover, .t1 .cover, .t2 .cover, .t3 .cover, .t4 .cover, .g1 .cover, .g2 .cover, .g3 .cover { min-height: 170px; padding: 22px; }
  .cover strong { font-size: 22px; }
  .card .body { padding: 14px 18px 18px; }
  .card .body p { font-size: 14px; }
  .card .more { font-size: 14px; }

  .steps { background: var(--bg); margin-top: 56px; padding: 56px 0; }
  .steps h2 { text-align: center; margin-bottom: 28px; }
  .steps ol { background: none; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps li { background: #fff; border-radius: 16px; padding: 24px; flex-direction: column; gap: 12px; }
  .num { width: 36px; height: 36px; background: var(--accent); color: #fff; font-size: 16px; }
  .steps strong { font-size: 17px; margin-bottom: 4px; }

  #about { padding-bottom: 56px; }
  .about-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
  .card-box { border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
  .about { gap: 28px; }
  .cats { width: 160px; height: 160px; border-radius: 18px; }
  .cats svg { width: 64px; height: 64px; }
  .cats span { font-size: 13px; }
  .about h2, .follow h2 { font-size: 22px; }
  .about .lead { font-size: 18px; }
  .about p { font-size: 16px; }
  .follow a { min-height: 50px; font-size: 15px; }
  .foot { margin-top: 0; }
  .foot .wrap { padding-top: 32px; padding-bottom: 40px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .nav { gap: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
