/* PlateLoop product landing: shared layout, chat demos and interaction styles. */

:root {
  --bg: #faf7f1;
  --bg-2: #f3eee4;
  --surface: #ffffff;
  --ink: #14201a;
  --ink-2: #2b3a32;
  --muted: #5f6b64;
  --muted-2: #8a938d;
  --hairline: #e8e2d6;
  --hairline-2: #d9d1c2;
  --forest: #163226;
  --forest-deep: #12281f;
  --accent: #1f7a45;
  --accent-2: #2a9d5c;
  --mint: #4fd98a;
  --mint-soft: #e3f7eb;
  --mint-line: #b9ead0;
  --yolk: #ffc94d;
  --tomato: #ff7a5c;
  --tg-bg: #e9eff3;
  --tg-out: #dcf2c8;
  --tg-in: #ffffff;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 26, 0.06), 0 4px 14px rgba(20, 32, 26, 0.05);
  --shadow-md: 0 2px 4px rgba(20, 32, 26, 0.05), 0 18px 40px -12px rgba(20, 32, 26, 0.16);
  --shadow-lg: 0 40px 80px -20px rgba(20, 32, 26, 0.35), 0 20px 40px -20px rgba(20, 32, 26, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #cfeedd; color: var(--forest); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 8px 12px; background: var(--forest); color: #fff; font-weight: 700; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }

h1 em, h2 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow-light { color: var(--mint); }

.section-lead {
  margin: 16px 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.section-head { margin-bottom: 48px; }
.section-head .section-lead { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -8px rgba(31, 122, 69, 0.55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(22, 50, 38, 0.5); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; box-shadow: none; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--forest); border-color: var(--forest); }
.btn-ghost {
  background: transparent; border-color: var(--hairline-2); color: var(--ink); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; border-color: #fff; color: var(--forest); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5); }
.btn-light:hover { background: var(--mint-soft); border-color: var(--mint-soft); color: var(--forest); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; image-rendering: crisp-edges; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand-tag {
  padding: 2px 8px; border-radius: 999px;
  background: var(--mint-soft); color: var(--accent);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.header-inner .btn-sm { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 40px 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20,32,26,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.glow-a { width: 560px; height: 560px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(79,217,138,0.55), transparent 65%); }
.glow-b { width: 460px; height: 460px; left: -160px; top: 220px; background: radial-gradient(circle, rgba(255,201,77,0.45), transparent 65%); }
.glow-c { width: 380px; height: 380px; right: 22%; bottom: -120px; background: radial-gradient(circle, rgba(255,122,92,0.28), transparent 65%); }

.hero-grid { display: grid; gap: 48px; align-items: center; padding-bottom: 48px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--mint-line); border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--ink-2); font-size: 0.82rem; font-weight: 700;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(79,217,138,0.22); animation: blink 2.2s ease-in-out infinite; }

.hero h1 { margin-bottom: 22px; }
.lead { margin: 0 0 30px; max-width: 34rem; font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
.lead span { color: var(--ink); font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 30px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--accent); width: 1em; height: 1em; }

.hero-visual { position: relative; display: grid; justify-items: center; padding: 20px 0 10px; }

/* Floating notes */
.float-note {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(255,255,255,0.9); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem; line-height: 1.25; color: var(--muted);
  backdrop-filter: blur(8px);
  animation: floaty 6s ease-in-out infinite;
}
.float-note strong { color: var(--ink); font-weight: 800; }
.fn-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--mint-soft); font-size: 1.05rem; }
.float-a { left: 0; top: 18%; animation-delay: -1.5s; }
.float-b { right: 0; bottom: 20%; animation-delay: -3.5s; }

/* ---------- Phone ---------- */
.phone {
  position: relative;
  width: min(100%, 340px);
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(160deg, #2a2f2c, #0f1512 60%);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08) inset,
    var(--shadow-lg);
}
.phone::before {
  /* side buttons */
  content: ""; position: absolute; left: -3px; top: 120px; width: 3px; height: 34px; border-radius: 2px 0 0 2px; background: #1a1f1c;
  box-shadow: 0 50px 0 #1a1f1c, 0 100px 0 #1a1f1c;
}
.phone::after {
  content: ""; position: absolute; right: -3px; top: 160px; width: 3px; height: 62px; border-radius: 0 2px 2px 0; background: #1a1f1c;
}
.phone-screen {
  position: relative; display: flex; flex-direction: column;
  min-height: 640px;
  border-radius: 40px; overflow: hidden;
  background: var(--tg-bg);
}
.status-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 6px 26px 0;
  background: #fff;
  color: var(--ink); font-size: 0.86rem; font-weight: 700;
}
.island { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 94px; height: 26px; border-radius: 20px; background: #0d110f; }
.st-icons { display: inline-flex; align-items: center; gap: 6px; }

.tg-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 6px 14px 10px;
  background: #fff; border-bottom: 1px solid #dfe5ea;
  color: var(--ink);
}
.tg-back { width: 24px; height: 24px; color: #3b82c4; }
.tg-title { text-align: center; line-height: 1.15; }
.tg-title strong { display: block; font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; }
.tg-title small { display: block; color: #6f7b85; font-size: 0.74rem; }
.tg-ava { width: 34px; height: 34px; border-radius: 50%; image-rendering: pixelated; }

.chat {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 10px 10px;
  background:
    radial-gradient(circle at 20% 10%, rgba(79,217,138,0.10), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255,201,77,0.12), transparent 45%),
    var(--tg-bg);
}
.msg {
  position: relative; max-width: 86%;
  padding: 7px 10px 6px; border-radius: 16px;
  font-size: 0.86rem; line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg time { display: block; margin-top: 3px; font-size: 0.66rem; color: #7b8790; text-align: right; }
.msg.out { align-self: flex-end; background: var(--tg-out); border-bottom-right-radius: 5px; }
.msg.out time { color: #5f9a52; }
.msg.in { align-self: flex-start; background: var(--tg-in); border-bottom-left-radius: 5px; }
.msg.wide { max-width: 100%; width: 100%; }
.msg.card { max-width: 96%; }
.msg.photo { padding: 4px 4px 6px; max-width: 78%; }
.msg.photo img { width: 100%; height: 118px; object-fit: cover; object-position: 50% 65%; border-radius: 12px; }
.msg.photo p { margin: 6px 6px 0; }
.msg.photo time { margin-right: 6px; }
.ticks { display: inline-block; width: 12px; height: 8px; vertical-align: middle; margin-left: 2px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5.5 4 8.5 10 1.5M6.5 8.5 13 1.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5.5 4 8.5 10 1.5M6.5 8.5 13 1.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.kicker { margin-bottom: 5px !important; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.line { font-size: 0.82rem; }
.totals { margin-top: 6px !important; padding-top: 6px; border-top: 1px solid #edf0f2; font-size: 0.82rem; }
.totals strong { font-weight: 800; }
.hint { margin-top: 4px !important; color: var(--muted-2); font-size: 0.72rem; }

.msg.typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ae; animation: dots 1.2s ease-in-out infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }

/* inline keyboard, Telegram style */
.kb { display: flex; flex-wrap: wrap; gap: 4px; max-width: 96%; }
.kb-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(4px);
  color: var(--ink-2); font-size: 0.76rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.kb-btn.kb-tap { position: relative; }

.progress { display: grid; gap: 5px; margin: 8px 0 4px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); }
.progress-label strong { color: var(--ink); }
.track { display: block; height: 7px; border-radius: 99px; background: #e6ebee; overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width 1.2s var(--ease); }

.bars { display: grid; gap: 8px; margin: 10px 0 4px; }
.bar { display: grid; gap: 4px; }
.bar > span:first-child { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); }
.bar strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.shop { margin: 6px 0 0; padding: 0; list-style: none; }
.shop li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid #eef1f3; font-size: 0.82rem; }
.shop li:last-child { border-bottom: 0; }
.shop li::before { content: ""; width: 15px; height: 15px; flex: none; border: 1.6px solid var(--accent); border-radius: 5px; }
.shop li.on { color: var(--muted-2); text-decoration: line-through; }
.shop li.on::before {
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}

.composer {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 14px;
  background: #fff; border-top: 1px solid #dfe5ea;
  color: #8b979f;
}
.c-ico { width: 22px; height: 22px; color: #8b979f; flex: none; }
.c-input { flex: 1; padding: 8px 12px; border: 1px solid #dfe5ea; border-radius: 18px; font-size: 0.84rem; }

/* Hero chat choreography */
.chat-hero .step { opacity: 0; transform: translateY(10px); }
.chat-hero.is-playing .step { animation: pop .5s var(--ease) both; }
.chat-hero.is-playing .s1 { animation-delay: .3s; }
.chat-hero.is-playing .s2 { animation-name: typingLife; animation-duration: 1.7s; animation-delay: .9s; animation-timing-function: var(--ease); }
.chat-hero.is-playing .s3 { animation-delay: 2.5s; }
.chat-hero.is-playing .kb-tap { animation: tap .6s var(--ease) 3.9s both; }
.chat-hero.is-playing .s5 { animation-delay: 4.7s; }
.chat-hero.is-playing .s5 .track i { animation: fill 1s var(--ease) 5.1s both; }
.chat-hero .s5 .track i { width: 0; }
.chat-hero { position: relative; }
.chat-hero .msg.typing { position: absolute; left: 10px; top: 186px; }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes typingLife { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes tap { 0% { background: rgba(255,255,255,0.72); color: var(--ink-2); transform: none; } 40% { transform: scale(.96); } 100% { background: var(--accent); color: #fff; transform: none; } }
@keyframes fill { from { width: 0; } to { width: var(--w); } }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes blink { 0%, 100% { box-shadow: 0 0 0 4px rgba(79,217,138,0.22); } 50% { box-shadow: 0 0 0 7px rgba(79,217,138,0.08); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  padding: 18px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: rgba(255,255,255,0.55);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; gap: 12px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--ink-2); font-size: 0.92rem; font-weight: 600; white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-2); }
.section-dark { background: var(--forest-deep); color: #e7efe9; }
.section-dark h2 { color: #fff; }
.section-dark h2 em { color: var(--mint); }
.section-dark .section-lead { color: #a9b8ae; }

/* Steps */
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step-card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-visual {
  display: grid; gap: 10px; align-content: center;
  min-height: 190px; margin-bottom: 22px; padding: 18px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--bg-2), #eee8dc);
}
.step-n { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: .12em; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.mini-out { align-self: end; justify-self: end; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--tg-out); font-size: 0.88rem; font-weight: 600; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.mini-card { padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: 0 1px 1px rgba(0,0,0,.06); font-size: 0.82rem; }
.mini-card p { margin: 0 0 2px; }
.mini-card .kicker { font-size: 0.72rem; }
.mini-kb { display: flex; gap: 6px; }
.mini-kb span { flex: 1; padding: 7px 8px; border-radius: 10px; background: rgba(255,255,255,0.8); font-size: 0.76rem; font-weight: 700; text-align: center; color: var(--ink-2); box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.mini-kb .on { background: var(--accent); color: #fff; }
.mini-bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.72rem; color: var(--muted); }
.mini-bar i { display: block; height: 6px; border-radius: 99px; background: #e6ebee; position: relative; overflow: hidden; }
.mini-bar i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mint)); }
.mini-bar b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Bento */
.bento { display: grid; gap: 20px; }
.bento-card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-card h3 { margin: 0 0 8px; }
.bento-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.bento-visual {
  display: grid; align-content: center; gap: 10px;
  min-height: 200px; margin-bottom: 22px; padding: 18px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--bg-2), #eee8dc);
  overflow: hidden;
}

.input-stack { display: grid; gap: 8px; }
.in-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 1px 1px rgba(0,0,0,.05);
  font-size: 0.86rem; font-weight: 600; color: var(--ink-2);
}
.in-ico { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--mint-soft); color: var(--accent); font-size: 0.8rem; font-weight: 800; }
.in-img { width: 44px; height: 30px; border-radius: 7px; background-size: cover; background-position: center; }
.in-dur { margin-left: auto; color: var(--muted-2); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { display: block; width: 3px; height: 40%; border-radius: 2px; background: var(--accent); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2n) { height: 80%; animation-delay: .1s; }
.wave i:nth-child(3n) { height: 60%; animation-delay: .2s; }
.wave i:nth-child(5n) { height: 100%; animation-delay: .3s; }
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

.ring-wrap { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-bg { stroke: #e6ebee; }
.ring-val { stroke: var(--accent); stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 * (1 - var(--p))); transition: stroke-dashoffset 1s var(--ease); }
.ring-num { text-align: center; line-height: 1.1; }
.ring-num strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.ring-num span { font-size: 0.72rem; color: var(--muted); }
.macro-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.macro-list li { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 10px; font-size: 0.76rem; color: var(--muted); }
.macro-list i { display: block; height: 6px; border-radius: 99px; background: #e6ebee; overflow: hidden; }
.macro-list b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mint)); }
.macro-list li span:last-child { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.recipe-card .rc-title { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
.recipe-card .rc-meta { color: var(--muted); font-size: 0.76rem; margin-bottom: 6px !important; }
.recipe-card .rc-ing { color: var(--accent); font-weight: 700; font-size: 0.78rem; }

.week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.week-day { display: grid; gap: 5px; padding: 10px 8px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 1px rgba(0,0,0,.05); min-width: 0; }
.week-day span { color: var(--muted-2); font-size: 0.68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.week-day b { display: block; padding: 5px 7px; border-radius: 7px; background: var(--bg-2); font-size: 0.7rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-day b.swap { background: var(--mint-soft); color: var(--accent); }
.week-day.dim { opacity: .55; }

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; background: var(--surface);
  box-shadow: 0 1px 1px rgba(0,0,0,.05); font-size: 0.86rem; font-weight: 600; color: var(--ink-2);
}
.checklist small { margin-left: auto; color: var(--muted-2); font-weight: 600; }
.checklist i { width: 18px; height: 18px; flex: none; border: 1.8px solid var(--accent); border-radius: 6px; }
.checklist .done { color: var(--muted-2); text-decoration: line-through; }
.checklist .done i {
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

.lang-stack { display: grid; gap: 8px; }
.lang-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 1px 1px rgba(0,0,0,.05); font-size: 0.84rem; color: var(--ink-2); }
.lang-flag { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--mint-soft); color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: .04em; }

.privacy-row { display: grid; gap: 8px; }
.p-chip { padding: 11px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 1px rgba(0,0,0,.05); font-size: 0.86rem; font-weight: 700; color: var(--ink-2); text-align: center; }
.p-chip.p-danger { color: #b3412a; }

/* ---------- Inside the bot ---------- */
.inside { display: grid; gap: 40px; align-items: center; }
.tabs { display: grid; gap: 8px; margin-top: 32px; }
.tab {
  position: relative; display: grid; gap: 2px; text-align: left;
  padding: 14px 16px 16px; border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.tab:hover { border-color: var(--hairline-2); transform: translateX(2px); }
.tab.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,122,69,0.12), var(--shadow-sm); }
.tab-title { font-weight: 800; letter-spacing: -0.01em; }
.tab-desc { color: var(--muted); font-size: 0.9rem; }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--mint)); }
.tab.is-running .tab-progress { animation: tabprog var(--dur, 5200ms) linear both; }
@keyframes tabprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.inside-stage { position: relative; display: grid; justify-items: center; padding: 28px 0; }
.stage-glow {
  position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(79,217,138,0.28), rgba(255,201,77,0.16) 45%, transparent 70%);
  filter: blur(40px);
}
.phone-tour .phone-screen { min-height: 620px; }
.scene { display: none; }
.scene.is-active { display: flex; justify-content: flex-end; animation: pop .45s var(--ease) both; }

/* ---------- Principles ---------- */
.principles { display: grid; gap: 20px; }
.principle {
  padding: 28px; border-radius: var(--r-lg);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: background .3s, transform .3s var(--ease);
}
.principle:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.pr-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: rgba(79,217,138,0.14); color: var(--mint); }
.pr-ico svg { width: 24px; height: 24px; }
.principle h3 { color: #fff; margin-bottom: 8px; }
.principle p { margin: 0; color: #b6c4bb; }

/* ---------- Honest ---------- */
.honest { display: grid; gap: 40px; align-items: center; }
.not-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.not-list li { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline); color: var(--muted); }
.not-list .x { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fdece8; color: #b3412a; font-size: 0.8rem; font-weight: 800; }
.not-list strong { color: var(--ink); }
.honest-photo { margin: 0; }
.honest-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.honest-photo figcaption { margin: 12px 4px 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 32px; align-items: start; }
.faq-head { margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--hairline-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bg-2); transition: transform .3s var(--ease), background .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 1px; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--mint-soft); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--accent); }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-final { padding: 40px 0 104px; }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; text-align: center; gap: 12px;
  padding: 64px 28px;
  border-radius: 36px;
  background: var(--forest-deep); color: #e7efe9;
  box-shadow: var(--shadow-lg);
}
.cta-glow { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(79,217,138,0.28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(255,201,77,0.18), transparent 60%);
}
.cta-logo { width: 72px; height: 72px; margin-bottom: 8px; image-rendering: pixelated; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4)); }
.cta-card h2 { color: #fff; max-width: 22ch; }
.cta-card p { margin: 0; max-width: 34rem; color: #b6c4bb; font-size: 1.1rem; }
.cta-card .btn { margin-top: 12px; }
.cta-fine { font-size: 0.85rem !important; color: #7f9088 !important; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 44px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: grid; gap: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { margin: 0; color: var(--muted-2); }

.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-inner .footer-nav { justify-content: flex-end; }
  .footer-inner .footer-meta { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-inner .btn-sm { margin-left: 0; }

  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; padding-bottom: 72px; min-height: min(calc(100svh - var(--header-h) - 80px), 760px); }
  .hero h1 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); }
  .hero-visual { padding: 30px 56px; }
  .float-a { left: -6px; top: 24%; }
  .float-b { right: -6px; bottom: 24%; }

  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .b-log { grid-column: span 3; }
  .b-day { grid-column: span 3; }
  .b-recipe { grid-column: span 2; }
  .b-plan { grid-column: span 4; }
  .b-shop { grid-column: span 2; }
  .b-privacy { grid-column: span 2; }
  .b-lang { grid-column: span 2; }
  .b-day .bento-visual { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .b-day .macro-list { margin: 0; }
  .b-shop .bento-visual { grid-template-columns: 1fr; }

  .inside { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; }
  .tabs { grid-template-columns: 1fr 1fr; }

  .honest { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }

  .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (min-width: 1100px) {
  .tabs { grid-template-columns: 1fr; }
}

@media (max-width: 1199px) {
  .float-note { display: none; }
}

@media (max-width: 899px) {
  body { padding-bottom: 84px; }
  .header-inner .btn-sm { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .phone { width: min(100%, 320px); }
  .phone-screen, .phone-tour .phone-screen { min-height: 580px; }
  .chat-hero .msg.typing { top: 168px; }

  .mobile-cta {
    position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 30;
    display: flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 52px; padding: 0.75rem 1rem; border-radius: 999px;
    background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 16px 36px -10px rgba(22, 50, 38, 0.5);
    transform: translateY(140%); opacity: 0;
    transition: transform .35s var(--ease), opacity .35s;
  }
  .mobile-cta.is-shown { transform: none; opacity: 1; }
  .mobile-cta:hover { color: #fff; background: var(--forest); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .wave i, .badge .dot, .float-note, .msg.typing span { animation: none !important; }
  .chat-hero .step { opacity: 1; transform: none; animation: none !important; }
  .chat-hero .msg.typing { display: none; }
  .chat-hero .s5 .track i { width: var(--w); }
  .chat-hero .kb-tap { background: var(--accent); color: #fff; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scene.is-active { animation: none; }
}
