:root {
  --bg: #F6F4ED;
  --surface: #FBFAF6;
  --sidebar: #EFECDF;
  --ink: #19181C;
  --ink2: #3A3835;
  --mute: #7A7468;
  --mute2: #A89F8C;
  --accent: #21A366;
  --accent-soft: #E0F5E8;
  --border: #E0DACA;
  --border-soft: #EEE9D7;
  --warn: #B58A2C;
  --warn-soft: #F5ECD5;
  --danger: #C24B3A;
  --danger-soft: #F4DDD7;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

header {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
@media (max-width: 720px) {
  .site-header-inner { justify-content: space-between; }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
    border-top: 1px solid var(--border-soft);
  }
  .site-header-actions { margin-left: 0; }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
/* Sidebar/header logo lockup — PNG badge + wordmark. */
.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}
.logo-wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  color: #2C2C2C;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink2); border: 1px solid var(--border); }
.btn-ghost:hover { text-decoration: none; }

.hero { padding: 52px 0 28px; text-align: center; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero p {
  margin: 0 auto 24px;
  max-width: 520px;
  font-size: 17px;
  color: var(--mute);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--mute2); }

.page-hero { padding: 40px 0 24px; }
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-hero p { margin: 0; max-width: 640px; font-size: 17px; color: var(--mute); }

.prose { padding: 8px 0 32px; font-size: 15px; color: var(--ink2); }
.prose h2 { margin: 28px 0 10px; font-size: 18px; color: var(--ink); }
.prose p { margin: 0 0 14px; line-height: 1.65; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
}

.demo-section { padding: 8px 0 40px; }
.demo-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute2);
  margin-bottom: 12px;
}
.demo-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(25, 24, 28, 0.08);
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--mute);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.demo-dots span:first-child { background: #E8A0A0; }
.demo-dots span:nth-child(2) { background: #E8D090; }
.demo-dots span:nth-child(3) { background: #A8D8A8; }
.demo-url { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--mute2); }
.demo-stage { position: relative; aspect-ratio: 16 / 9; min-height: 320px; background: var(--bg); }
.demo-scene {
  position: absolute; inset: 0; display: flex; opacity: 0; visibility: hidden;
  animation-duration: 18s; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
@keyframes demo-scene-1 { 0%, 26% { opacity: 1; visibility: visible; } 30%, 100% { opacity: 0; visibility: hidden; } }
@keyframes demo-scene-2 { 0%, 30% { opacity: 0; visibility: hidden; } 33%, 59% { opacity: 1; visibility: visible; } 63%, 100% { opacity: 0; visibility: hidden; } }
@keyframes demo-scene-3 { 0%, 63% { opacity: 0; visibility: hidden; } 66%, 92% { opacity: 1; visibility: visible; } 96%, 100% { opacity: 0; visibility: hidden; } }
.demo-scene-1 { animation-name: demo-scene-1; }
.demo-scene-2 { animation-name: demo-scene-2; }
.demo-scene-3 { animation-name: demo-scene-3; }
@media (prefers-reduced-motion: reduce) {
  .demo-scene { animation: none; }
  .demo-scene-1 { opacity: 1; visibility: visible; position: relative; }
  .demo-scene-2, .demo-scene-3 { display: none; }
  .demo-caption span:not(:first-child) { display: none; }
}
.mock-app { display: flex; width: 100%; height: 100%; font-size: 11px; }
.mock-side {
  width: 28%; min-width: 140px; max-width: 200px; background: var(--sidebar);
  border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 4px;
}
.mock-side .brand { font-weight: 700; font-size: 12px; margin-bottom: 8px; }
.mock-nav { padding: 5px 8px; border-radius: 6px; color: var(--ink2); }
.mock-nav.on { background: #F0EEE7; font-weight: 600; color: var(--ink); }
.mock-nav .badge { float: right; font-family: var(--mono); font-size: 9px; color: var(--mute); }
.mock-main { flex: 1; padding: 14px 16px; overflow: hidden; }
.mock-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mock-sub { font-size: 10.5px; color: var(--mute); margin-bottom: 12px; }
.mock-inbox-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px;
}
.mock-pdf {
  width: 32px; height: 40px; background: var(--danger-soft); border: 1px solid var(--danger);
  border-radius: 4px; display: grid; place-items: center; font-size: 8px; font-weight: 700; color: var(--danger);
}
.pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-pos { background: var(--accent-soft); color: var(--accent); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.mock-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-field { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.mock-field label { display: block; font-size: 9px; color: var(--mute); margin-bottom: 3px; }
.mock-field strong { font-size: 11px; font-weight: 600; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.mock-table th {
  text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--border); font-weight: 500;
}
.mock-table td { padding: 8px; border-bottom: 1px solid var(--border-soft); }
.mock-table tr.hl { background: var(--warn-soft); }
.demo-caption {
  display: flex; justify-content: center; gap: 24px; margin-top: 14px;
  font-size: 12.5px; color: var(--mute); min-height: 1.4em; position: relative;
}
.demo-caption span { position: absolute; opacity: 0; animation-duration: 18s; animation-iteration-count: infinite; }
.demo-caption .c1 { animation-name: demo-scene-1; }
.demo-caption .c2 { animation-name: demo-scene-2; }
.demo-caption .c3 { animation-name: demo-scene-3; }
.email-float {
  position: absolute; top: 18%; right: 8%; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  animation: email-drop 18s ease-in-out infinite; max-width: 200px;
}
@keyframes email-drop {
  0%, 8% { transform: translateY(-20px); opacity: 0; }
  12%, 24% { transform: translateY(0); opacity: 1; }
  28%, 100% { transform: translateY(8px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .email-float { animation: none; opacity: 1; position: static; margin-bottom: 12px; }
}
.youtube-wrap {
  margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 9; background: #000;
}
.youtube-wrap iframe { width: 100%; height: 100%; border: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 48px 0 32px; }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 14px; }
.step p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.55; }

.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute2);
  margin: 0 0 8px;
}
.use-cases { padding: 8px 0 40px; }
.use-cases-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 760px) {
  .use-cases-grid { grid-template-columns: 1fr; }
}
.use-case-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.use-case-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(30, 158, 88, 0.08);
  text-decoration: none;
}
.use-case-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.use-case-card p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.55;
}
.use-case-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.cta-band {
  text-align: center; padding: 40px 24px 56px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 48px;
}
.cta-band h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.cta-band p { margin: 0 0 20px; color: var(--mute); font-size: 15px; }

footer {
  padding: 24px 0 40px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--mute); text-align: center;
}
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
