/* Portfolio site — shared styles. No build step; plain CSS. */
:root {
  --ink: #16211c;
  --ink-soft: #47554e;
  --ink-faint: #71807a;
  --bg: #fafaf7;
  --card: #ffffff;
  --line: #e4e6e0;
  --accent: #0d7a5f;
  --accent-soft: #e3f2ec;
  --amber: #b45309;
  --amber-soft: #fef3e2;
  --blue: #1d4ed8;
  --blue-soft: #e7edfd;
  --radius: 14px;
  --maxw: 1060px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.65; font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.8rem 1.4rem;
  display: flex; align-items: center; gap: 1.6rem;
}
.nav-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-right: auto; }
.nav-name:hover { text-decoration: none; }
nav a.nav-link { color: var(--ink-soft); font-size: 0.94rem; font-weight: 500; }
nav a.nav-link.active, nav a.nav-link:hover { color: var(--accent); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
section { padding: 3.2rem 0; }
section + section { border-top: 1px solid var(--line); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.55rem; letter-spacing: -0.01em; margin-bottom: 1.1rem; }
h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.kicker {
  color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; font-size: 0.78rem; margin-bottom: 0.55rem;
}
.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 46rem; }
p + p { margin-top: 0.9rem; }
.muted { color: var(--ink-faint); font-size: 0.92rem; }

.hero { padding: 4.2rem 0 3.2rem; }
.hero .lede { margin-top: 1.1rem; }
.cta-row { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.68rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 1.5px solid var(--accent);
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #0a5f4a; text-decoration: none; }
.btn.ghost { color: var(--accent); background: transparent; }
.btn.ghost:hover { background: var(--accent-soft); text-decoration: none; }

.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 2.4rem;
}
.metric { background: var(--card); padding: 1.15rem 1.2rem; }
.metric b { display: block; font-size: 1.65rem; letter-spacing: -0.02em; color: var(--accent); }
.metric span { font-size: 0.85rem; color: var(--ink-faint); }

.grid { display: grid; gap: 1.1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.45rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

.decision { border-left: 4px solid var(--accent); }
.decision .dlabel {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 0.15rem;
}
.decision .drow { margin-top: 0.65rem; font-size: 0.94rem; color: var(--ink-soft); }
.decision .drow b { color: var(--ink); font-weight: 600; }

.timeline { list-style: none; margin-top: 1.4rem; position: relative; padding-left: 1.7rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 1.6rem 0.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.7rem; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline .tdate { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.timeline h3 { margin: 0.15rem 0 0.25rem; }
.timeline p { font-size: 0.95rem; color: var(--ink-soft); max-width: 44rem; }

blockquote {
  border-left: 4px solid var(--accent); background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem; margin: 1.4rem 0; color: var(--ink-soft);
  font-size: 0.98rem;
}
blockquote footer { margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-faint); }

.pill {
  display: inline-block; padding: 0.14rem 0.68rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; white-space: nowrap;
}
.pill.green { background: var(--accent-soft); color: var(--accent); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.grey { background: #eef0ec; color: var(--ink-faint); }

.filters { display: flex; gap: 0.55rem; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.filters button {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-soft);
  padding: 0.42rem 0.95rem; border-radius: 999px; font-size: 0.86rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.backlog-count { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 0.9rem; }
.backlog-list { display: grid; gap: 0.85rem; }
.bl-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.05rem 1.3rem;
}
.bl-top { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.bl-id { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.bl-title { font-weight: 650; font-size: 1rem; }
.bl-date { margin-left: auto; font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; }
.bl-summary { margin-top: 0.4rem; font-size: 0.93rem; color: var(--ink-soft); }
.bl-tags { margin-top: 0.55rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }

footer.site {
  border-top: 1px solid var(--line); padding: 2.2rem 0 3rem;
  color: var(--ink-faint); font-size: 0.88rem;
}

.flow { counter-reset: step; display: grid; gap: 1rem; margin-top: 1.4rem; }
.flow .card { position: relative; padding-left: 4rem; }
.flow .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.3rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

.figure { margin: 1.8rem 0; }
.figure svg { width: 100%; height: auto; display: block; }
.figcap { margin-top: 0.6rem; font-size: 0.82rem; color: var(--ink-faint); text-align: center; }
.fig-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.2rem; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; display: block; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 22px rgba(22, 33, 28, 0.08);
}
.shots figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.45rem; text-align: center; }

.phone {
  width: 300px; max-width: 100%; margin: 0 auto;
  background: #10151f; border-radius: 34px; padding: 12px;
  box-shadow: 0 18px 45px rgba(22, 33, 28, 0.22);
}
.phone-screen {
  background: #f6f7f5; border-radius: 24px; overflow: hidden;
  font-size: 12.5px; line-height: 1.45;
}
.phone-status {
  display: flex; justify-content: space-between; padding: 7px 14px 4px;
  font-size: 10px; color: var(--ink-faint); font-weight: 600;
}
.phone-appbar { padding: 6px 14px 8px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--line); background: #fff; }
.phone-body { padding: 10px 12px 14px; display: grid; gap: 8px; }
.ph-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.ph-product { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph-product b { font-size: 13px; }
.ph-price { font-size: 16px; font-weight: 800; color: var(--ink); }
.ph-verdict {
  background: var(--accent-soft); border: 1px solid #bfe3d5; border-radius: 12px;
  padding: 9px 11px; color: var(--accent); font-weight: 700; font-size: 12.5px;
}
.ph-verdict span { display: block; font-weight: 500; color: var(--ink-soft); font-size: 11px; margin-top: 2px; }
.ph-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-top: 1px solid #f0f1ee; }
.ph-row:first-of-type { border-top: 0; }
.ph-store {
  width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
.ph-row .ph-p { margin-left: auto; font-weight: 700; }
.ph-note { font-size: 10.5px; color: var(--ink-faint); text-align: center; }

@media (max-width: 640px) {
  .nav-inner { gap: 0.9rem; overflow-x: auto; }
  section { padding: 2.4rem 0; }
  .bl-date { margin-left: 0; width: 100%; }
}

/* ---------- Phone mockup rows (product tour) ---------- */
.phones-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem; margin-top: 1.8rem; align-items: start;
}
.phones-row figure { margin: 0; }
.phones-row .phone { width: 100%; max-width: 272px; }
.ph-verdict.warn { background: var(--amber-soft); border-color: #f0dbb8; color: var(--amber); }
.ph-verdict.warn span { color: var(--ink-soft); }
.ph-sub { font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; }
.ph-btn {
  display: block; text-align: center; border-radius: 999px;
  padding: 7px 0; font-weight: 700; font-size: 12px;
  background: var(--accent); color: #fff;
}
.ph-btn.disabled { background: #e9ebe7; color: #9aa69f; }

/* ---------- Logo ---------- */
.nav-name { display: inline-flex; align-items: center; gap: 0.55rem; }
.nav-logo { width: 26px; height: 26px; border-radius: 7px; display: block; }
.ph-logo { width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* ---------- User stories ---------- */
.stories { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.story { border-left: 4px solid var(--blue); }
.story .story-tags { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.story p { font-size: 0.98rem; color: var(--ink-soft); }
.story p b { color: var(--ink); }
.story .accept { margin-top: 0.55rem; font-size: 0.85rem; color: var(--ink-faint); }
.story .accept b { color: var(--ink-soft); font-weight: 600; }
.plc-current { border: 1.5px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
