/* ============================================================
   Duolingo Peer Platform - PM Case Study
   Long-form editorial design system (Duolingo look & feel)
   ============================================================ */

:root {
  --green: #58cc02;
  --green-dark: #58a700;
  --green-deep: #3d8f00;
  --blue: #1cb0f6;
  --blue-dark: #1899d6;
  --yellow: #ffc800;
  --yellow-dark: #e5a600;
  --red: #ff4b4b;
  --red-dark: #ea2b2b;
  --purple: #ce82ff;
  --purple-dark: #a568cc;
  --orange: #ff9600;
  --orange-dark: #e08600;

  --eel: #4b4b4b;
  --ink: #3c3c3c;
  --wolf: #777777;
  --hare: #afafaf;
  --swan: #e5e5e5;
  --polar: #f7f7f7;
  --snow: #ffffff;
  --cream: #fbfaf7;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 0 var(--swan);
  --readw: 720px;
  --maxw: 1140px;

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--eel);
  background: var(--snow);
  line-height: 1.75;
  font-size: 18px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 800; color: var(--ink); }
em { font-style: italic; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin-left: auto; margin-right: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: 15px;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 14px 24px; border: none; border-radius: 14px;
  cursor: pointer; white-space: nowrap;
  transition: filter 0.15s, transform 0.05s;
  color: #fff; background: var(--green); box-shadow: 0 4px 0 var(--green-dark);
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-dark); }
.btn:hover { filter: brightness(1.05); }
.btn .icon { stroke-width: 2.5; width: 18px; height: 18px; }
.btn.blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.btn.blue:active { box-shadow: 0 2px 0 var(--blue-dark); }
.btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--swan); box-shadow: 0 4px 0 var(--swan); }
.btn.ghost:active { box-shadow: 0 2px 0 var(--swan); }
.btn.lg { font-size: 16px; padding: 16px 30px; }

/* ============================================================
   Navbar + progress bar
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--swan);
}
.progress { position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; background: var(--green); transition: width 0.1s linear; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 18px; color: var(--green); white-space: nowrap; flex: 0 0 auto; }
.nav-logo svg { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-logo span { color: var(--hare); font-weight: 700; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-links a {
  font-weight: 700; font-size: 12.5px; color: var(--wolf); padding: 8px 10px;
  border-radius: 10px; transition: background 0.15s, color 0.15s;
  text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--polar); color: var(--green); }
.nav-cta { margin-left: 8px; color: #fff !important; background: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); white-space: nowrap; }
.nav-cta:hover { background: var(--blue) !important; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--eel); border-radius: 3px; margin: 5px 0; transition: 0.3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; padding: 76px 0 64px; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(88,204,2,0.10), transparent 42%),
    radial-gradient(circle at 88% 26%, rgba(28,176,246,0.10), transparent 46%),
    linear-gradient(180deg, #ffffff, #f3fbe9);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--green-dark);
  background: #eaf7dc; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .icon { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 900; line-height: 1.08; }
.hero h1 .hl { color: var(--green); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--eel); font-weight: 600; margin: 22px 0 26px; max-width: 540px; line-height: 1.6; }
.hero-meta { display: grid; gap: 10px; margin-bottom: 30px; }
.hero-meta .row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--wolf); font-weight: 700; }
.hero-meta .row .icon { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 460px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.hero-chip {
  position: absolute; background: #fff; border: 2px solid var(--swan); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow-card); font-weight: 800; font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.hero-chip .icon { width: 18px; height: 18px; }
.hero-chip.a { top: 6%; left: -2%; color: var(--orange); animation: float 5s ease-in-out infinite; }
.hero-chip.b { bottom: 10%; right: -4%; color: var(--blue); animation: float 5.6s ease-in-out infinite 0.5s; }

/* ============================================================
   TL;DR strip
   ============================================================ */
.tldr { background: var(--ink); color: #fff; padding: 34px 0; }
.tldr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.tldr .item { text-align: center; }
.tldr .num { font-size: 38px; font-weight: 900; color: #7ee02c; line-height: 1; }
.tldr .num.b { color: var(--blue); }
.tldr .num.y { color: var(--yellow); }
.tldr .num.p { color: var(--purple); }
.tldr .lbl { margin-top: 6px; font-size: 13px; font-weight: 700; color: #cfcfcf; letter-spacing: 0.02em; }

/* ============================================================
   Chapters / long-form article
   ============================================================ */
.chapter { padding: 84px 0; }
.chapter.alt { background: var(--cream); }
.chapter-head { max-width: var(--readw); margin: 0 auto 34px; }
.chapter-num {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--green); margin-bottom: 14px;
}
.chapter-num .line { width: 34px; height: 3px; background: var(--green); border-radius: 3px; }
.chapter-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.chapter-head .lede { font-size: 21px; color: var(--wolf); font-weight: 600; margin-top: 16px; line-height: 1.55; }

.prose { max-width: var(--readw); margin: 0 auto; }
.prose p { margin: 0 0 22px; color: var(--eel); }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 24px; margin: 40px 0 14px; }
.prose h3 .icon { color: var(--green); width: 26px; height: 26px; margin-right: 6px; }
.prose ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 34px; color: var(--eel); }
.prose ul li .icon { position: absolute; left: 0; top: 5px; width: 22px; height: 22px; color: var(--green); }
.prose a.inline { color: var(--blue-dark); font-weight: 800; border-bottom: 2px solid #bfe6fb; }
.prose a.inline:hover { border-color: var(--blue); }

/* Figure / image */
figure { margin: 34px auto; max-width: var(--readw); }
figure.wide { max-width: 980px; }
figure img { width: 100%; display: block; }
figure.framed {
  background: #fff; border: 2px solid var(--swan); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 26px;
}
figure.plain img { max-width: 420px; margin: 0 auto; }
figcaption { text-align: center; font-size: 14px; color: var(--hare); font-weight: 700; margin-top: 14px; }

/* Pull quote */
.pullquote {
  max-width: var(--readw); margin: 40px auto; padding: 26px 30px;
  border-left: 6px solid var(--green); background: #f2fbe9; border-radius: 0 16px 16px 0;
}
.pullquote p { font-size: 22px; font-weight: 800; color: var(--ink); font-style: italic; line-height: 1.45; margin: 0; }
.pullquote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 700; color: var(--wolf); }

/* Callout box */
.callout {
  max-width: var(--readw); margin: 32px auto; border: 2px solid var(--swan); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-card); padding: 26px 28px; display: flex; gap: 18px;
}
.callout .ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.callout .ic .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.callout h4 { font-size: 19px; margin-bottom: 6px; }
.callout p { margin: 0; font-size: 16px; color: var(--wolf); font-weight: 600; }

/* icon color tiles */
.tile-green { background: #eaf7dc; color: var(--green-dark); }
.tile-blue { background: #e2f4fe; color: var(--blue-dark); }
.tile-yellow { background: #fff4cc; color: var(--yellow-dark); }
.tile-red { background: #ffe0e0; color: var(--red-dark); }
.tile-purple { background: #f4e9ff; color: var(--purple-dark); }
.tile-orange { background: #ffeccc; color: var(--orange-dark); }

/* Card grid inside prose */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--readw); margin: 28px auto; }
.mini {
  background: #fff; border: 2px solid var(--swan); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-card);
}
.mini .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.mini .ic .icon { width: 24px; height: 24px; }
.mini h4 { font-size: 17px; margin-bottom: 4px; }
.mini p { font-size: 14px; color: var(--wolf); font-weight: 600; margin: 0; line-height: 1.5; }

/* ============================================================
   Personas
   ============================================================ */
.persona-block { max-width: 900px; margin: 30px auto; }
.persona-card {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: start;
  background: #fff; border: 2px solid var(--swan); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 26px; margin-bottom: 20px;
}
.persona-card .pic { width: 130px; height: 130px; border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.persona-card .pic svg { width: 78px; height: 78px; }
.persona-card .who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.persona-card .who h3 { font-size: 22px; }
.persona-card .who .role { font-size: 13px; font-weight: 800; color: var(--wolf); text-transform: uppercase; letter-spacing: 0.03em; }
.persona-card .quote { font-style: italic; font-weight: 700; color: var(--ink); margin: 8px 0 12px; font-size: 16px; }
.persona-card p { font-size: 15px; color: var(--eel); margin: 0 0 12px; line-height: 1.6; }
.persona-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.persona-card .tag { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--polar); color: var(--wolf); }

/* ============================================================
   RICE Table + MoSCoW
   ============================================================ */
.table-wrap { max-width: 920px; margin: 28px auto; overflow-x: auto; border-radius: var(--radius-lg); border: 2px solid var(--swan); box-shadow: var(--shadow-card); }
table.rice { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
table.rice th, table.rice td { padding: 13px 16px; text-align: center; font-weight: 700; font-size: 15px; }
table.rice th { background: var(--green); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
table.rice td:first-child, table.rice th:first-child { text-align: left; }
table.rice tbody tr { border-top: 2px solid var(--swan); }
table.rice tbody tr:nth-child(even) { background: var(--polar); }
table.rice tr.top-pick { background: #eaf7dc !important; }
table.rice tr.top-pick td:first-child { color: var(--green-deep); font-weight: 800; }
.pill { display: inline-block; font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 8px; color: #fff; min-width: 34px; }
.pill.hi { background: var(--green); }
.pill.mid { background: var(--yellow); color: var(--eel); }
.pill.lo { background: var(--hare); }
.star-mark { color: var(--yellow-dark); }
.star-mark .icon { width: 16px; height: 16px; fill: var(--yellow); stroke: var(--yellow-dark); }

.moscow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 920px; margin: 26px auto 0; }
.moscow .col { border-radius: var(--radius); padding: 18px; border: 2px solid var(--swan); background: #fff; }
.moscow h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; }
.moscow .must h4 { color: var(--green); }
.moscow .should h4 { color: var(--blue); }
.moscow .could h4 { color: var(--yellow-dark); }
.moscow .wont h4 { color: var(--hare); }
.moscow ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.moscow li { font-size: 13px; font-weight: 700; color: var(--eel); background: var(--polar); border-radius: 8px; padding: 8px 10px; padding-left: 10px; }
.moscow li::before { content: none; }

/* ============================================================
   Feature list (solution)
   ============================================================ */
.feature-list { max-width: var(--readw); margin: 30px auto; }
.feature-row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 2px solid var(--swan); }
.feature-row:last-child { border-bottom: none; }
.feature-row .ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.feature-row .ic .icon { width: 27px; height: 27px; }
.feature-row h4 { font-size: 19px; margin-bottom: 4px; }
.feature-row p { font-size: 15px; color: var(--wolf); font-weight: 600; margin: 0; line-height: 1.55; }

/* ============================================================
   Interactive iOS prototype
   ============================================================ */
.proto-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: center; max-width: 940px; margin: 36px auto 0; }
.proto-copy h3 { font-size: 24px; margin-bottom: 14px; }
.proto-copy p { color: var(--eel); margin-bottom: 18px; font-size: 16px; }
.proto-steps { display: grid; gap: 10px; margin-bottom: 22px; }
.proto-steps .step { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--wolf); cursor: pointer; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--swan); background: #fff; transition: 0.15s; text-align: left; width: 100%; font-family: var(--font); }
.proto-steps .step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--polar); color: var(--wolf); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; flex: 0 0 auto; }
.proto-steps .step.active { border-color: var(--green); color: var(--green-deep); background: #f2fbe9; }
.proto-steps .step.active .n { background: var(--green); color: #fff; }

/* iPhone */
.iphone {
  width: 320px; height: 660px; margin: 0 auto; position: relative;
  background: #0b0b0f; border-radius: 54px; padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28), inset 0 0 0 2px #2a2a30;
}
.iphone .screen { width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; position: relative; }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 106px; height: 30px; background: #000; border-radius: 18px; z-index: 30; }
.statusbar { height: 50px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 24px 6px; font-size: 13px; font-weight: 800; color: var(--ink); position: relative; z-index: 20; }
.statusbar .right { display: flex; align-items: center; gap: 6px; }
.statusbar .right .icon { width: 16px; height: 16px; stroke-width: 2.2; }

.app { position: absolute; inset: 0; top: 50px; bottom: 62px; overflow: hidden; }
.view { position: absolute; inset: 0; padding: 8px 16px 12px; opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; overflow-y: auto; background: #fff; }
.view.show { opacity: 1; transform: none; pointer-events: auto; }
.view::-webkit-scrollbar { width: 0; }

.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-top .title { font-weight: 900; font-size: 17px; color: var(--ink); }
.chip-streak { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: var(--orange); font-size: 14px; }
.chip-streak .icon { width: 18px; height: 18px; fill: var(--orange); stroke: var(--orange-dark); }
.lang-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--wolf); margin-bottom: 12px; }
.lang-row .flag { width: 22px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--swan); }

.ev {
  background: #fff; border: 2px solid var(--swan); border-radius: 16px; box-shadow: 0 3px 0 var(--swan);
  padding: 12px; margin-bottom: 12px; cursor: pointer; transition: 0.15s;
}
.ev:hover { transform: translateY(-2px); }
.ev .ev-top { display: flex; align-items: center; gap: 10px; }
.ev .ev-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ev .ev-ic .icon { width: 22px; height: 22px; }
.ev .ev-name { font-weight: 900; font-size: 14px; color: var(--ink); line-height: 1.2; }
.ev .ev-meta { font-size: 11px; color: var(--wolf); font-weight: 700; }
.ev .avatars { display: flex; margin: 8px 0 0 4px; }
.ev .avatars span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; display: flex; align-items: center; justify-content: center; }
.ev .avatars span svg { width: 15px; height: 15px; }
.ev-cta { margin-top: 8px; text-align: center; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--green); border-radius: 11px; padding: 9px; box-shadow: 0 3px 0 var(--green-dark); }
.ev-cta.blue { background: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }

/* Event detail */
.detail-hero { background: linear-gradient(160deg, #eaf7dc, #fff); border-radius: 18px; padding: 18px; text-align: center; margin-bottom: 14px; }
.detail-hero .big-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.detail-hero .big-ic .icon { width: 34px; height: 34px; }
.detail-hero h4 { font-size: 18px; margin-bottom: 4px; }
.detail-hero p { font-size: 12px; color: var(--wolf); font-weight: 700; margin: 0; }
.detail-list { display: grid; gap: 8px; margin-bottom: 14px; }
.detail-list .d { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--eel); background: var(--polar); border-radius: 10px; padding: 10px 12px; }
.detail-list .d .icon { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; }

/* Live session */
.live { text-align: center; }
.live .rec { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; color: var(--red); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.live .rec .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.live .peers { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.live .peer { text-align: center; }
.live .peer .ring { width: 78px; height: 78px; border-radius: 50%; border: 3px solid var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; background: var(--polar); }
.live .peer .ring svg { width: 46px; height: 46px; }
.live .peer .nm { font-size: 12px; font-weight: 800; color: var(--ink); }
.live .peer.talking .ring { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28,176,246,0.2); }
.ai-prompt { background: #f4e9ff; border: 2px solid #e6cffb; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; text-align: left; }
.ai-prompt .lbl { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple-dark); margin-bottom: 4px; }
.ai-prompt .lbl .icon { width: 14px; height: 14px; }
.ai-prompt p { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.4; }
.mic-bar { display: flex; justify-content: center; gap: 3px; align-items: flex-end; height: 30px; margin-bottom: 12px; }
.mic-bar span { width: 4px; background: var(--green); border-radius: 3px; animation: wave 1s ease-in-out infinite; }
.mic-bar span:nth-child(2){animation-delay:.1s}.mic-bar span:nth-child(3){animation-delay:.2s}.mic-bar span:nth-child(4){animation-delay:.3s}.mic-bar span:nth-child(5){animation-delay:.15s}.mic-bar span:nth-child(6){animation-delay:.25s}.mic-bar span:nth-child(7){animation-delay:.05s}
@keyframes wave { 0%,100%{height:8px}50%{height:28px} }

/* Feedback */
.fb-head { text-align: center; margin-bottom: 14px; }
.fb-head .big-ic { width: 60px; height: 60px; border-radius: 50%; background: #eaf7dc; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.fb-head .big-ic .icon { width: 32px; height: 32px; color: var(--green); }
.fb-head h4 { font-size: 18px; }
.fb-head p { font-size: 12px; color: var(--wolf); font-weight: 700; margin: 0; }
.metric { margin-bottom: 12px; }
.metric .mt { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.metric .mt span:last-child { color: var(--green-deep); }
.bar { height: 10px; background: var(--polar); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--green); width: 0; transition: width 0.9s ease; }
.bar.blue i { background: var(--blue); }
.bar.purple i { background: var(--purple); }
.fb-note { background: #fff4cc; border: 2px solid #ffe89a; border-radius: 12px; padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.fb-note .icon { width: 16px; height: 16px; color: var(--yellow-dark); flex: 0 0 auto; margin-top: 2px; }

/* tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: #fff; border-top: 2px solid var(--swan); display: flex; align-items: center; justify-content: space-around; z-index: 20; }
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--hare); font-size: 9px; font-weight: 800; cursor: pointer; }
.tabbar .tab .icon { width: 24px; height: 24px; }
.tabbar .tab.on { color: var(--green); }

/* ============================================================
   Business / market
   ============================================================ */
.tam-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: var(--readw); margin: 28px auto; }
.tam { text-align: center; background: #fff; border: 2px solid var(--swan); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px 16px; }
.tam .k { font-size: 12px; font-weight: 900; letter-spacing: 0.06em; color: var(--hare); }
.tam .v { font-size: 38px; font-weight: 900; line-height: 1; margin: 4px 0 6px; }
.tam.g .v { color: var(--green); } .tam.b .v { color: var(--blue); } .tam.p .v { color: var(--purple-dark); }
.tam p { font-size: 13px; color: var(--wolf); font-weight: 600; margin: 0; }

/* Competitor */
.compete { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; max-width: 920px; margin: 28px auto; }
.comp {
  background: #fff; border: 2px solid var(--swan); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 22px; display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: start;
}
.comp .logo { width: 60px; height: 60px; border-radius: 14px; background: var(--polar); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.comp .logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.comp .logo svg { width: 40px; height: 40px; }
.comp .name { font-size: 18px; font-weight: 900; color: var(--ink); }
.comp .kind { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hare); margin-bottom: 8px; }
.comp .lim, .comp .adv { display: flex; gap: 8px; font-size: 14px; font-weight: 600; margin-top: 6px; line-height: 1.4; }
.comp .lim .icon { color: var(--red); width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.comp .adv .icon { color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.comp .adv { color: var(--green-deep); font-weight: 700; }

/* ============================================================
   Roadmap
   ============================================================ */
.roadmap { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 980px; margin: 30px auto; }
.phase { background: #fff; border: 2px solid var(--swan); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; }
.phase .badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; padding: 8px 14px; border-radius: 999px; color: #fff; margin-bottom: 12px; }
.phase .badge .icon { width: 16px; height: 16px; }
.phase.p1 .badge { background: var(--green); }
.phase.p2 .badge { background: var(--blue); }
.phase.p3 .badge { background: var(--purple); }
.phase .time { font-size: 13px; font-weight: 800; color: var(--wolf); margin-bottom: 12px; }
.phase ul { list-style: none; display: grid; gap: 10px; margin: 0 0 16px; padding: 0; }
.phase li { display: flex; gap: 8px; font-weight: 600; font-size: 14px; color: var(--eel); line-height: 1.45; }
.phase li .icon { color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.phase .kpi { background: var(--polar); border-radius: 12px; padding: 12px 14px; font-weight: 800; font-size: 13px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.phase .kpi .icon { color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; }

/* ============================================================
   Results
   ============================================================ */
.result-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; max-width: 920px; margin: 30px auto; }
.grade { background: linear-gradient(160deg, #58cc02, #46a302); color: #fff; border-radius: var(--radius-lg); box-shadow: 0 6px 0 var(--green-deep); padding: 30px; text-align: center; }
.grade .big { font-size: 62px; font-weight: 900; line-height: 1; }
.grade .big small { font-size: 24px; opacity: 0.85; }
.grade p { color: rgba(255,255,255,0.92); font-weight: 800; margin: 10px 0 0; font-size: 15px; }
.grade .sub { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.grade .sub .n { font-size: 26px; font-weight: 900; }
.grade .sub .l { font-size: 11px; opacity: 0.85; font-weight: 700; }
.qcard { background: #fff; border: 2px solid var(--swan); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px; }
.qcard .qi { color: var(--swan); width: 40px; height: 40px; }
.qcard blockquote { font-size: 16px; font-weight: 700; color: var(--eel); margin: 6px 0 4px; line-height: 1.5; }
.qcard cite { font-size: 13px; font-style: normal; font-weight: 800; color: var(--wolf); }
.qcard .div { height: 2px; background: var(--swan); margin: 16px 0; border-radius: 2px; }

.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--readw); margin: 30px auto; }
.learn { display: flex; gap: 14px; background: #fff; border: 2px solid var(--swan); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 20px; }
.learn .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.learn .ic .icon { width: 24px; height: 24px; }
.learn h4 { font-size: 16px; margin-bottom: 3px; }
.learn p { font-size: 14px; color: var(--wolf); font-weight: 600; margin: 0; line-height: 1.5; }

/* ============================================================
   CTA + footer
   ============================================================ */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.cta-inner { background: linear-gradient(135deg, #58cc02, #1cb0f6); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; color: #fff; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta-inner p { font-size: 18px; font-weight: 600; margin: 14px auto 26px; max-width: 560px; opacity: 0.96; }
.cta-inner .btn { background: #fff; color: var(--green-dark); box-shadow: 0 4px 0 rgba(0,0,0,0.15); }
.cta-inner .btn:active { box-shadow: 0 2px 0 rgba(0,0,0,0.15); }

.footer { background: var(--ink); color: #fff; padding: 56px 0 28px; margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer p, .footer li { color: #c9c9c9; font-weight: 600; font-size: 14px; line-height: 1.6; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: #7ee02c; }
.footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: #7ee02c; margin-bottom: 12px; }
.footer .brand svg { width: 30px; height: 30px; }
.footer-bottom { border-top: 1px solid #5a5a5a; padding-top: 20px; text-align: center; color: #9a9a9a; font-size: 13px; font-weight: 600; }
.team-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.team-chips span { background: #ffffff14; border: 1px solid #5a5a5a; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #e5e5e5; }
.team-chips span.me { background: var(--green); color: #fff; border-color: var(--green); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .proto-wrap { grid-template-columns: 1fr; }
  .iphone { order: -1; }
  .result-grid { grid-template-columns: 1fr; }
  .tldr-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .roadmap, .compete { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 14px 20px; gap: 4px; border-bottom: 2px solid var(--swan);
    transform: translateY(-160%); transition: transform 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.08); max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .persona-card { grid-template-columns: 1fr; }
  .persona-card .pic { width: 90px; height: 90px; }
  .mini-grid, .tam-grid, .moscow, .learn-grid { grid-template-columns: 1fr; }
  .moscow { grid-template-columns: 1fr 1fr; }
  .chapter { padding: 60px 0; }
  .cta-inner { padding: 40px 22px; }
}
