:root {
  --green: #10b981;
  --green-d: #059669;
  --green-deep: #064e3b;
  --green-soft: #ecfdf5;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --bg: #f3f6f4;
  --white: #fff;
  --phone-w: 320px;
  --phone-h: 680px;
  --font: "Noto Sans SC", sans-serif;
  --display: "Syne", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 700; }

.wrap { width: min(100% - 2rem, 1200px); margin-inline: auto; }

/* Site nav */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 244, 0.78);
  border-bottom: 1px solid transparent;
  transition: .25s;
}
.site-nav.scrolled {
  border-color: var(--line);
  background: rgba(243, 246, 244, 0.94);
}
.nav-row {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-d));
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links {
  display: flex; align-items: center; gap: 1.25rem;
  color: var(--muted); font-size: .92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--green-d); }
.nav-cta {
  padding: .5rem .95rem; border-radius: 999px;
  background: var(--green); color: #fff !important; font-weight: 700;
}
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 16px; height: 2px; background: var(--ink); display: block; }

/* Hero */
.hero {
  padding: 7rem 0 2.5rem;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(52, 211, 153, .28), transparent 55%),
    linear-gradient(155deg, #022c22, #064e3b 55%, #047857);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: end;
}
.eyebrow {
  font-size: .75rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #6ee7b7; margin-bottom: .7rem;
}
.eyebrow.dark { color: var(--green-d); }
.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1; letter-spacing: -.04em; margin-bottom: .7rem;
}
.hero-title {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700; margin-bottom: .7rem;
}
.lead { color: rgba(236, 253, 245, .88); max-width: 36rem; margin-bottom: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.2rem; border-radius: 999px; font-weight: 700;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.08); }
.btn-green { background: var(--green); color: #fff; margin-top: 1rem; }
.hero-chips {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end;
  padding-bottom: .4rem;
}
.hero-chips span {
  padding: .45rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-size: .85rem; font-weight: 600;
}

/* Prototype section */
.proto-section { padding: 3.5rem 0 2rem; }
.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: .55rem;
}
.section-head p { color: var(--muted); }

.scene-bar {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
  margin-bottom: 1.5rem; padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.scene-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-right: .35rem; }
.scene-btn {
  padding: .45rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: var(--green-soft); color: var(--green-deep);
  transition: .2s;
}
.scene-btn:hover, .scene-btn.active {
  background: var(--green); color: #fff;
}

.proto-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  justify-items: center;
}
.device-col { width: min(100%, 360px); }
.device-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: .75rem; gap: .75rem;
}
.device-meta h3 { font-size: 1.15rem; }
.device-meta p { color: var(--muted); font-size: .82rem; }
.device-badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: .3rem .55rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green-d);
}
.device-badge.pro { background: #eff6ff; color: #2563eb; }

/* Phone shell */
.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  margin: 0 auto;
  border-radius: 36px;
  background: #0b1220;
  padding: 10px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 28px 60px rgba(15, 23, 42, .28);
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: 999px; background: #020617; z-index: 5;
}
.phone-status {
  position: absolute; top: 14px; left: 22px; right: 22px; z-index: 4;
  display: flex; justify-content: space-between;
  font-size: .62rem; font-weight: 700; color: #e2e8f0;
  pointer-events: none;
}
.phone-body {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex-direction: column;
  position: absolute;
  inset: 0 0 56px 0;
  overflow: auto;
  background: #f3f4f6;
  animation: screen-in .22s ease;
}
.screen.active { display: flex; }
.screen::-webkit-scrollbar { width: 0; }

@keyframes screen-in {
  from { opacity: .35; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.nav-bar, .nav-custom {
  position: sticky; top: 0; z-index: 3;
  padding: 2.1rem 12px .7rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; gap: .4rem;
  min-height: 68px;
}
.nav-custom { justify-content: space-between; }
.nav-kicker { font-size: 1rem; }
.nav-sub { font-size: .68rem; font-weight: 500; opacity: .85; margin-top: 2px; }
.back {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1;
  background: rgba(255,255,255,.16);
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.16); color: #fff; font-size: 1.1rem;
  font-weight: 700; line-height: 1;
}
.icon-btn::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px 2px 0 0;
  box-shadow: -3px -3px 0 #fff;
  margin-top: 2px;
}
.icon-btn { font-size: 0; }

.vitals-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; padding: 8px; background: #fff; border-bottom: 1px solid #e5e7eb;
}
.vitals-strip div { text-align: center; padding: 4px 0; }
.vitals-strip b { display: block; color: var(--green-d); font-size: .78rem; }
.vitals-strip span { font-size: .58rem; color: var(--muted); }

.chat-list {
  flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px;
  overflow: auto; min-height: 180px;
}
.bubble {
  max-width: 88%; padding: 8px 10px; border-radius: 14px;
  font-size: .78rem; line-height: 1.45;
}
.bubble.ai { background: #fff; border: 1px solid #d1fae5; align-self: flex-start; }
.bubble.me { background: var(--green); color: #fff; align-self: flex-end; }

.quick-chips {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 8px;
}
.quick-chips button {
  font-size: .68rem; font-weight: 600;
  padding: 5px 9px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-deep);
}
.composer {
  display: flex; gap: 6px; padding: 8px 10px 10px; background: #fff;
  border-top: 1px solid #e5e7eb;
}
.composer input {
  flex: 1; border: 1px solid #d1d5db; border-radius: 999px;
  padding: 8px 12px; font-size: .78rem; outline: none;
}
.composer input:focus { border-color: var(--green); }
.composer button {
  padding: 0 14px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; font-size: .78rem;
}

.search-fake {
  margin: 10px; padding: 9px 12px; border-radius: 12px;
  background: #fff; color: #94a3b8; font-size: .78rem;
  border: 1px solid #e5e7eb;
}
.chip-row { display: flex; gap: 6px; padding: 0 10px 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: #fff; color: var(--muted); border: 1px solid #e5e7eb;
}
.chip.on { background: var(--green-soft); color: var(--green-d); border-color: #a7f3d0; }

.card-list { padding: 0 10px 12px; display: grid; gap: 8px; }
.food-card, .person-card {
  display: flex; gap: 10px; align-items: center; text-align: left;
  padding: 10px; border-radius: 14px; background: #fff;
  border: 1px solid #e5e7eb; width: 100%;
}
.food-card:active, .person-card:active, .menu-list button:active { transform: scale(.985); }
.food-card h4, .person-card h4 { font-size: .86rem; margin-bottom: 2px; }
.food-card p, .person-card p { font-size: .7rem; color: var(--muted); }
.food-thumb {
  width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0;
}
.t1 { background: linear-gradient(145deg, #86efac, #059669); }
.t2 { background: linear-gradient(145deg, #93c5fd, #2563eb); }
.t3 { background: linear-gradient(145deg, #fcd34d, #d97706); }
.t4 { background: linear-gradient(145deg, #bbf7d0, #16a34a); }
.t5 { background: linear-gradient(145deg, #ddd6fe, #7c3aed); }
.t6 { background: linear-gradient(145deg, #fda4af, #e11d48); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem;
  flex-shrink: 0;
}
.avatar.xl { width: 64px; height: 64px; font-size: 1.3rem; margin-bottom: .4rem; }
.a1 { background: linear-gradient(145deg, #34d399, #059669); }
.a2 { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.a3 { background: linear-gradient(145deg, #fbbf24, #d97706); }
.a4 { background: linear-gradient(145deg, #f472b6, #db2777); }
.flex1 { flex: 1; min-width: 0; }
.chev { color: #cbd5e1; font-size: 1.2rem; }
.person-card em {
  font-style: normal; font-size: .65rem; font-weight: 700;
  color: var(--green-d); background: var(--green-soft);
  padding: 1px 6px; border-radius: 999px; margin-left: 4px;
}
.pill {
  font-size: .65rem; font-weight: 700; color: var(--green-d);
  background: var(--green-soft); padding: 3px 7px; border-radius: 999px;
}
.pill.soft { color: #b45309; background: #fef3c7; }

.detail-hero { height: 140px; }
.detail-body, .panel { padding: 12px; }
.detail-body h3, .panel h4, .profile-head h3 { margin-bottom: .35rem; }
.detail-body h4 { margin: .8rem 0 .35rem; font-size: .9rem; }
.muted { color: var(--muted); font-size: .78rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin: .45rem 0; }
.tag-row.center { justify-content: center; }
.tag-row span, .day-card .tag-row span {
  font-size: .65rem; font-weight: 700;
  background: var(--green-soft); color: var(--green-d);
  padding: 3px 7px; border-radius: 999px;
}
.plain-list { padding-left: 1.1rem; color: var(--muted); font-size: .78rem; margin-bottom: .8rem; }
.primary-btn {
  width: 100%; padding: 11px; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 700; font-size: .86rem;
  margin-top: .4rem;
}

.profile-head {
  text-align: center; padding: 16px 12px 8px; background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.profile-head.compact { padding-bottom: 12px; }
.profile-head p { color: var(--muted); font-size: .78rem; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 4px; margin: 10px; padding: 4px; background: #e5e7eb; border-radius: 12px;
}
.seg button {
  padding: 7px 4px; border-radius: 9px; font-size: .72rem; font-weight: 700; color: var(--muted);
}
.seg button.on { background: #fff; color: var(--green-d); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.seg-pane { display: none; padding: 0 10px 12px; }
.seg-pane.on { display: block; }

.me-head {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 12px; background: #fff; border-bottom: 1px solid #e5e7eb;
}
.me-head h3 { font-size: 1rem; }
.me-head p { font-size: .72rem; color: var(--muted); }
.menu-list { padding: 10px; display: grid; gap: 8px; }
.menu-list button {
  width: 100%; text-align: left; padding: 12px;
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; gap: .5rem; align-items: center;
}
.menu-list span { font-weight: 700; font-size: .86rem; }
.menu-list em { font-style: normal; font-size: .7rem; color: var(--muted); }

.day-card, .panel {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 12px; margin-bottom: 8px;
}
.day-h { display: flex; justify-content: space-between; margin-bottom: .35rem; }
.day-h span, .hint { font-size: .72rem; color: var(--muted); }
.day-card p { font-size: .78rem; margin-bottom: .35rem; }
.hint { margin-top: .4rem; }
.progress {
  height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; margin: .7rem 0 .35rem;
}
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #34d399); }

.metric-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px;
}
.metric {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 12px; text-align: center;
}
.metric b { display: block; font-size: 1.15rem; color: var(--green-d); }
.metric span { font-size: .68rem; color: var(--muted); }

.scan-hero { text-align: center; padding: 16px 12px 8px; }
.scan-frame {
  width: 140px; height: 140px; margin: 0 auto 8px;
  border-radius: 18px;
  border: 3px solid var(--green);
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(45deg, #d1fae5, #d1fae5 8px, #ecfdf5 8px, #ecfdf5 16px);
  box-shadow: inset 0 0 0 12px #fff;
  position: relative;
}
.scan-frame::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 45%; height: 2px;
  background: rgba(16,185,129,.7); animation: scan 1.6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(-30px); opacity: .4; }
  50% { transform: translateY(30px); opacity: 1; }
}
.scan-hero p { font-size: .8rem; color: var(--muted); }
.match-list { display: grid; gap: 6px; margin: .7rem 0; }
.match-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 10px; background: var(--green-soft);
  font-size: .78rem; font-weight: 600;
}
.match-item.dim { background: #f1f5f9; color: #94a3b8; }
.match-item i { font-style: normal; margin-left: auto; font-size: .68rem; color: #ef4444; }

.timeline { padding: 12px; display: grid; gap: 10px; }
.tl {
  padding: 12px; border-radius: 14px; background: #fff;
  border-left: 4px solid #d1d5db;
}
.tl.on { border-left-color: var(--green); background: var(--green-soft); }
.tl b { display: block; font-size: .86rem; }
.tl span { font-size: .72rem; color: var(--muted); }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px;
}
.stat {
  background: #fff; border-radius: 12px; padding: 10px 4px; text-align: center;
  border: 1px solid #e5e7eb;
}
.stat b { display: block; color: var(--green-d); font-size: 1rem; }
.stat span { font-size: .6rem; color: var(--muted); }
.quick-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: .5rem;
}
.quick-grid button {
  padding: 10px 8px; border-radius: 10px; font-size: .72rem; font-weight: 700;
  background: var(--green-soft); color: var(--green-deep);
}
.todo {
  width: 100%; text-align: left; padding: 10px;
  border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: .78rem; font-weight: 600; margin-top: 6px;
}

.week-tabs {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  padding: 10px;
}
.week-tabs button {
  height: 32px; border-radius: 9px; font-size: .72rem; font-weight: 700;
  background: #fff; color: var(--muted); border: 1px solid #e5e7eb;
}
.week-tabs button.on { background: var(--green); color: #fff; border-color: var(--green); }
.meal {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: .78rem;
}
.meal-pick {
  color: var(--green-d); font-weight: 700; font-size: .76rem;
  background: var(--green-soft); padding: 5px 8px; border-radius: 8px;
}
.formish label {
  display: grid; gap: 4px; font-size: .75rem; font-weight: 700;
  color: var(--muted); margin-bottom: 10px;
}
.formish input, .formish textarea {
  border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 10px;
  color: var(--ink); font-size: .82rem; background: #fff;
}
.formish textarea { min-height: 84px; resize: none; }

/* Tabbar */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: #fff; border-top: 1px solid #e5e7eb;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  z-index: 6;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #9ca3af; font-size: .58rem; font-weight: 600;
}
.tab .ico {
  width: 20px; height: 20px; border-radius: 6px;
  background: #e5e7eb; position: relative;
}
.tab.on { color: var(--green); }
.tab.on .ico { background: var(--green); }
.tab[data-tab-go="chat"] .ico::after,
.tab[data-tab-go="home"] .ico::after {
  content: ""; position: absolute; inset: 5px;
  border: 2px solid #fff; border-radius: 3px;
}
.tab[data-tab-go="recipe"] .ico { border-radius: 50%; }
.tab[data-tab-go="nutritionists"] .ico::after,
.tab[data-tab-go="clients"] .ico::after {
  content: ""; position: absolute; left: 5px; right: 5px; top: 4px; height: 7px;
  border: 2px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.tab[data-tab-go="shop"] .ico::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 6px; bottom: 4px;
  border: 2px solid #fff; border-radius: 2px;
}
.tab[data-tab-go="profile"] .ico::after,
.tab[data-tab-go="pro-profile"] .ico::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 6px;
  border-radius: 50%; background: #fff;
}
.tab[data-tab-go="config"] .ico {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.proto-tip {
  text-align: center; color: var(--muted); font-size: .88rem;
  margin-top: 1.25rem;
}

/* Flow + guide */
.flow-section, .guide-section { padding: 3.5rem 0; }
.flow-section { background: #fff; }
.flow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.flow-grid article {
  padding: 1.3rem 1.2rem; border-top: 3px solid var(--green);
  background: var(--bg); border-radius: 0 0 14px 14px;
}
.flow-grid h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.flow-grid p { color: var(--muted); font-size: .92rem; }

.guide-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start;
}
.guide-list {
  margin-top: 1rem; padding-left: 1.2rem; color: var(--muted);
  display: grid; gap: .65rem;
}
.guide-card {
  background: linear-gradient(160deg, #ecfdf5, #fff);
  border: 1px solid #d1fae5; border-radius: 18px; padding: 1.4rem;
}
.guide-card h3 { margin-bottom: .7rem; }
.guide-card p { color: var(--muted); font-size: .92rem; margin-bottom: .35rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .86rem;
}
footer a { color: var(--green-d); font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .86rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 80; max-width: min(90vw, 360px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.phone.pulse {
  animation: phone-pulse .7s ease;
}
@keyframes phone-pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.015); }
  70% { transform: scale(.995); }
}

@media (max-width: 900px) {
  .hero-grid, .proto-stage, .flow-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero-chips { justify-content: flex-start; margin-top: 1rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(243,246,244,.98); border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
  }
  .nav-links.open a { padding: .7rem 0; }
  .menu-btn { display: inline-flex; }
  .proto-stage { gap: 2.5rem; }
}

@media (max-width: 380px) {
  :root { --phone-w: 300px; --phone-h: 640px; }
}
