/* =========================================================
   VidQR — design system
   Palette: forest, sage, cream, sand, peach, ochre. No purple.
   ========================================================= */
:root {
  --green-950: #14271B;
  --green-900: #1D3A28;
  --green-800: #2C6E49;
  --green-700: #357A52;
  --green-600: #4C956C;
  --green-500: #6BAF86;
  --green-300: #A8CDB8;
  --mint-200: #D5E6D2;
  --mint-100: #E9F2E2;
  --mint-50: #F3F8EE;
  --cream: #FBF7EA;
  --paper: #FFFDF7;
  --ink: #1D2A22;
  --ink-soft: #33443A;
  --muted: #62705F;
  --muted-2: #8C9787;
  --line: #E5DCC8;
  --line-soft: #EFE8D8;
  --red: #B4453A;
  --red-soft: #FBEDEA;
  --peach-200: #FFC9B9;
  --peach-100: #FFE2D8;
  --ochre-500: #D68C45;
  --ochre-600: #B86B3D;
  --sand-100: #F7F2DE;
  --sand-50: #FEFEE3;
  --shadow-sm: 0 1px 2px rgba(60, 50, 25, .05), 0 4px 14px rgba(60, 50, 25, .06);
  --shadow-md: 0 10px 30px rgba(60, 50, 25, .10);
  --shadow-lg: 0 30px 70px rgba(44, 50, 25, .16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1180px;
}

[data-lang="ja"] { --font-sans: "Yu Gothic UI", "Meiryo", "Segoe UI", sans-serif; }
[data-lang="ko"] { --font-sans: "Malgun Gothic", "Segoe UI", sans-serif; }
[data-lang="zh-CN"] { --font-sans: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--green-300); color: var(--green-950); }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 72px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.accent { color: var(--green-600); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ochre-600);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }

.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: .95rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 53, 39, .18); background: var(--green-800); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--green-300); outline-offset: 3px; }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--green-800); }
.btn-light:hover { background: var(--mint-50); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--green-700);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 246, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10,53,39,.05); background: rgba(251,250,246,.94); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; font-size: 1.28rem; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 9px 13px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: var(--mint-100); color: var(--green-800); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-login { font-size: .9rem; font-weight: 650; padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.header-login:hover { background: var(--mint-100); }

/* language */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 999px;
  font-size: .82rem; font-weight: 650; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.lang-btn:hover { border-color: var(--green-300); background: #fff; }
.lang-btn .icon { width: 16px; height: 16px; color: var(--green-700); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none; z-index: 80;
}
.lang-menu.is-open { display: block; animation: pop .18s var(--ease); }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; text-align: left; font-size: .9rem;
}
.lang-menu button:hover { background: var(--mint-50); }
.lang-menu button.is-active { background: var(--mint-100); font-weight: 700; color: var(--green-800); }
.lang-menu .code { font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 90px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 780px; height: 780px;
  background: radial-gradient(circle at 50% 50%, rgba(255,201,185,.30), rgba(255,201,185,0) 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -180px; bottom: -260px; width: 620px; height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(254,254,227,.9), rgba(254,254,227,0) 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-copy { max-width: 610px; }
.hero h1 { margin-top: 18px; }
.hero h1 .accent-line { display: block; }
.hero h1 .serif { color: var(--green-600); }
.hero .lead { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .84rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { width: 15px; height: 15px; color: var(--green-600); }

.hero-visual { position: relative; min-height: 520px; }
.hero-panel {
  position: absolute; inset: 20px 0 20px 30px; border-radius: 34px;
  background:
    radial-gradient(120% 90% at 15% 10%, #4C956C 0%, #2C6E49 48%, #14271B 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .35;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 70%);
}
.hero-panel::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -140px; border-radius: 50%;
  border: 1px solid rgba(127,211,182,.35);
  box-shadow: 0 0 0 40px rgba(127,211,182,.06), 0 0 0 80px rgba(127,211,182,.04);
}
.phone {
  position: absolute; width: 248px; height: 492px; left: 52px; top: 52px;
  background: #0B1A15; border-radius: 38px; padding: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(-3deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .phone { transform: rotate(-1deg) translateY(-4px); }
.phone-screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(160deg, #0E6248, #07271D); }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 999px; background: #08120E; z-index: 3; }
.phone-video {
  position: absolute; inset: 44px 14px 96px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(145deg, #1B9771, #0A3527);
}
.phone-video::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.28), transparent 55%);
}
.play-chip {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--green-800);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 2;
}
.play-chip .icon { width: 22px; height: 22px; margin-left: 3px; }
.phone-caption { position: absolute; left: 14px; right: 82px; bottom: 16px; color: #fff; }
.phone-caption strong { display: block; font-size: .95rem; }
.phone-caption span { font-size: .7rem; opacity: .72; }
.phone-qr {
  position: absolute; right: 18px; bottom: 14px; width: 56px; height: 56px; background: #fff; border-radius: 10px; padding: 6px;
}
.phone-qr img, .phone-qr canvas { width: 100%; height: 100%; }

.qr-float {
  position: absolute; right: 8px; top: 68px; width: 196px; padding: 16px;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 50px rgba(7,39,29,.28);
  transform: rotate(4deg); z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.qr-float .qr-box { background: var(--mint-50); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.qr-float canvas { width: 100%; height: auto; }
.qr-float .qr-box img { display: block; width: 150px; height: 150px; object-fit: contain; }
.qr-float p { margin-top: 10px; font-size: .72rem; color: var(--muted); }
.qr-float strong { display: block; color: var(--ink); font-size: .84rem; }
.stat-float {
  position: absolute; left: 4px; bottom: 48px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 44px rgba(7,39,29,.22);
  animation: float 8s ease-in-out infinite reverse;
}
.stat-float .icon-wrap { width: 38px; height: 38px; border-radius: 12px; background: var(--mint-100); color: var(--green-700); display: grid; place-items: center; }
.stat-float strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.stat-float span { font-size: .7rem; color: var(--muted); }

@keyframes float { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- logo strip ---------- */
.logo-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.55); }
.logo-strip-inner { display: flex; align-items: center; gap: 34px; padding: 22px 0; flex-wrap: wrap; }
.logo-strip span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.logo-word { font-weight: 800; letter-spacing: -.04em; color: #93A39D; font-size: 1.05rem; opacity: .9; }
.logo-word:nth-child(2n) { font-family: var(--font-serif); font-style: italic; font-weight: 600; }

/* ---------- section heading ---------- */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }
.section-head .lead-center { margin-inline: auto; text-align: center; }

/* ---------- use cases ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-tile {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
  overflow: hidden;
}
.case-tile::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--mint-100), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.case-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.case-tile:hover::after { opacity: 1; }
.case-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--mint-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 20px; transition: transform .35s var(--ease), background .35s ease; }
.case-tile:hover .case-icon { transform: rotate(-6deg) scale(1.06); background: var(--green-700); color: #fff; }
.case-icon .icon { width: 23px; height: 23px; }
.case-tile h3 { font-size: 1.02rem; margin-bottom: 8px; }
.case-tile p { font-size: .88rem; color: var(--muted); }
.case-tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font-size: .68rem; font-weight: 650; color: var(--green-800); background: var(--mint-50); border: 1px solid var(--line-soft); padding: 3px 8px; border-radius: 999px; }

/* ---------- features ---------- */
.features { background: var(--paper); border-block: 1px solid var(--line); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #FCFEFC);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.feature-card .case-icon { margin-bottom: 18px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--muted); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 60px; align-items: center; }
.why-list { display: grid; gap: 22px; margin-top: 30px; }
.why-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.why-num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--green-700); background: #fff; }
.why-item h3 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: .88rem; color: var(--muted); }
.why-visual { position: relative; }
.dash-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(1.5deg);
}
.dash-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: #FCFEFC; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dash-body { padding: 18px; display: grid; gap: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpi { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; background: var(--mint-50); }
.dash-kpi span { font-size: .62rem; color: var(--muted); display: block; }
.dash-kpi strong { font-size: 1.25rem; letter-spacing: -.04em; }
.dash-chart { height: 120px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; display: flex; align-items: end; gap: 7px; background: #fff; }
.dash-chart i { flex: 1; background: linear-gradient(180deg, var(--green-500), var(--green-700)); border-radius: 5px 5px 2px 2px; opacity: .85; }
.dash-row { display: flex; align-items: center; gap: 10px; font-size: .72rem; color: var(--muted); }
.dash-row .thumb { width: 34px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, var(--green-500), var(--green-800)); }
.float-badge {
  position: absolute; right: -16px; bottom: -18px; background: var(--green-800); color: #fff;
  padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
}
.float-badge .icon { width: 20px; height: 20px; color: var(--green-300); }
.float-badge strong { display: block; font-size: .95rem; line-height: 1.1; }
.float-badge span { font-size: .66rem; opacity: .7; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--green-600);
}
.step h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.step p { font-size: .88rem; color: var(--muted); }
.step-line { position: absolute; top: 42px; right: -11px; width: 22px; height: 1px; background: var(--line); }
.step:last-child .step-line { display: none; }

/* ---------- cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(145deg, var(--green-600), var(--green-950));
}
.case-media::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(127,211,182,.25), transparent 55%);
}
.case-media .placeholder-note {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75);
  border: 1px dashed rgba(255,255,255,.35); padding: 4px 8px; border-radius: 6px;
}
.case-media .play-chip { width: 52px; height: 52px; transition: transform .35s var(--ease); }
.case-card:hover .case-media .play-chip { transform: scale(1.1); }
.case-body { padding: 22px; }
.case-body .tag { margin-bottom: 10px; display: inline-block; }
.case-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-body p { font-size: .86rem; color: var(--muted); }
.case-metric { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.case-metric strong { font-size: 1.5rem; letter-spacing: -.04em; color: var(--green-700); }
.case-metric span { font-size: .72rem; color: var(--muted); }

/* ---------- testimonials ---------- */
.testimonials { background: var(--green-950); color: #fff; }
.testimonials .section-head p { color: rgba(255,255,255,.62); }
.testimonials .eyebrow { color: var(--green-300); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-card {
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); transition: transform .3s var(--ease), background .3s ease;
}
.quote-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); }
.quote-mark { font-family: var(--font-serif); font-size: 3rem; line-height: .6; color: var(--green-300); opacity: .7; }
.quote-card blockquote { margin: 14px 0 22px; font-size: .98rem; color: rgba(255,255,255,.86); line-height: 1.6; }
.quote-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--mint-200); color: var(--green-900); display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; }
.quote-person strong { display: block; font-size: .86rem; }
.quote-person span { font-size: .72rem; color: rgba(255,255,255,.55); }

/* ---------- pricing ---------- */
.pricing-section { background: var(--paper); border-block: 1px solid var(--line); }
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.billing-toggle button {
  border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-size: .86rem; font-weight: 650; cursor: pointer; color: var(--muted);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.billing-toggle button.is-active { background: var(--green-700); color: #fff; box-shadow: 0 4px 12px rgba(10,53,39,.2); }
.save-pill { font-size: .68rem; font-weight: 750; color: var(--green-800); background: var(--mint-100); border: 1px solid var(--mint-200); padding: 3px 8px; border-radius: 999px; margin-left: 6px; }

.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1200px; margin-inline: auto; }
.plan-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 20px; display: flex; flex-direction: column; min-height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.plan-card.is-popular { border-color: var(--green-600); box-shadow: 0 16px 40px rgba(10,53,39,.12); }
.popular-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--green-700); color: #fff; font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: .92rem; font-weight: 750; letter-spacing: -.01em; }
.plan-desc { font-size: .74rem; color: var(--muted); min-height: 34px; margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 16px; }
.plan-price .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.plan-price .per { font-size: .72rem; color: var(--muted); }
.plan-price-note { font-size: .68rem; color: var(--muted); min-height: 16px; margin-top: 4px; }
.plan-cta { margin-top: 18px; }
.plan-features { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.plan-features li {
  display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start;
  padding: 9px 0; font-size: .78rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft);
  transition: background .15s ease;
}
.plan-features li .icon { width: 15px; height: 15px; margin-top: 2px; }
.plan-features li .icon-check { color: var(--green-600); }
.plan-features li .icon-x { color: #B9C6C1; }
.plan-features li.is-muted { color: var(--muted-2); }
.plan-features li.is-compare { background: var(--mint-50); }
.plan-features li .val { color: var(--muted); font-size: .72rem; }

/* full pricing page */
.pricing-page-hero { padding: 72px 0 40px; text-align: center; }
.pricing-page-hero .lead { margin: 18px auto 0; }
.pricing-page-hero .billing-toggle { margin-top: 26px; }
.pricing-page-grid { padding-bottom: 80px; }
.pricing-footnote { margin-top: 26px; font-size: .78rem; color: var(--muted); text-align: center; }
.compare-hint { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); margin-top: 14px; }
.compare-hint .icon { width: 15px; height: 15px; color: var(--green-600); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 650; font-size: .95rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--green-700); flex: none; transition: transform .25s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: .9rem; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  color: #fff; padding: 64px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.cta-panel::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03);
}
.cta-panel h2 { color: #fff; max-width: 18ch; }
.cta-panel p { color: rgba(255,255,255,.7); margin-top: 14px; max-width: 46ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-qr { justify-self: center; background: #fff; padding: 14px; border-radius: 20px; width: 190px; transform: rotate(3deg); box-shadow: var(--shadow-lg); }
.cta-qr canvas, .cta-qr img { width: 100%; height: auto; }
.cta-qr small { display: block; text-align: center; color: var(--muted); font-size: .62rem; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .84rem; max-width: 34ch; margin-top: 16px; color: rgba(255,255,255,.55); }
.footer-col h4 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .84rem; padding: 5px 0; color: rgba(255,255,255,.62); transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: .74rem; color: rgba(255,255,255,.45); }
.footer-lang .lang-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.footer-lang .lang-menu { top: auto; bottom: calc(100% + 8px); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- modal / toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(7,39,29,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.is-open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 30px;
  animation: modalIn .28s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.modal-head h3 { font-size: 1.4rem; }
.modal-close { border: 0; background: var(--mint-50); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.modal-close:hover { background: var(--mint-100); }
.modal p.modal-sub { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.modal-body { margin-top: 22px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.modal-actions .btn { flex: 1; min-width: 140px; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 8px; }
.toast {
  padding: 12px 16px; border-radius: 12px; background: var(--green-900); color: #fff; font-size: .84rem;
  box-shadow: var(--shadow-lg); animation: toastIn .25s var(--ease);
}
.toast.is-error { background: var(--red); }

/* Workspace only: center, light-green operation feedback */
body.app-body .toast-wrap {
  left: 50%; top: 50%; right: auto; bottom: auto;
  justify-items: center; transform: translate(-50%, -50%); pointer-events: none;
}
body.app-body .toast {
  padding: 11px 22px; border-radius: 999px; background: var(--mint-100); color: var(--green-900);
  border: 1px solid var(--mint-200); font-weight: 600; text-align: center;
  box-shadow: 0 12px 35px rgba(20, 39, 27, .16);
  pointer-events: none; max-width: min(520px, calc(100vw - 40px));
}
body.app-body .toast.is-error { background: #FBEDEA; color: #7C2F26; border-color: #F3CDBD; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   AUTH
   ========================================================= */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.06fr .94fr; }
.auth-visual {
  position: relative; color: #fff; padding: 56px; overflow: hidden; display: flex;
  background:
    radial-gradient(70% 70% at 90% 0%, rgba(255,201,185,.20), transparent 55%),
    radial-gradient(60% 60% at 10% 100%, rgba(214,140,69,.18), transparent 60%),
    linear-gradient(145deg, #1D3A28 0%, #14271B 55%, #2C6E49 140%);
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .28;
  mask-image: radial-gradient(circle at 30% 20%, #000, transparent 72%);
}
.auth-qr-bg {
  position: absolute; right: -150px; bottom: -170px; width: 620px; height: 620px;
  opacity: .13; transform: rotate(-8deg); pointer-events: none;
}
.auth-visual-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: 100%; max-width: 540px; height: 100%; }
.auth-visual .brand { color: #fff; }
.auth-visual .brand small { color: rgba(255,255,255,.45); }
.auth-quote { margin: 56px 0; max-width: 500px; }
.auth-quote h2 { font-size: clamp(2.1rem, 3.1vw, 3.1rem); margin: 18px 0 20px; max-width: 13ch; }
.auth-quote p { color: rgba(255,255,255,.66); font-size: .98rem; max-width: 42ch; }
.auth-bullets { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: rgba(255,255,255,.84); }
.auth-bullets li > span:first-child { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid rgba(255,201,185,.55); position: relative; margin-top: 2px; }
.auth-bullets li > span:first-child::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--peach-200); }
.auth-foot { font-size: .72rem; color: rgba(255,255,255,.42); letter-spacing: .06em; }
.auth-form-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 28px; background: #F7F3E8; }
.auth-card {
  width: min(560px, 100%); background: var(--paper); border: 1px solid var(--line);
  border-radius: 26px; padding: 42px 44px; box-shadow: var(--shadow-lg);
}
.auth-kicker { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--ochre-600); font-weight: 800; margin-bottom: 12px; }
.auth-card h1 { font-size: clamp(1.75rem, 2.5vw, 2.2rem); letter-spacing: -.04em; }
.auth-card .lead { font-size: .9rem; margin-top: 8px; max-width: 46ch; }
.auth-providers { display: grid; gap: 10px; margin-top: 24px; }
.auth-provider {
  width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: .86rem; font-weight: 650; color: var(--ink); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.auth-provider:hover { border-color: var(--green-300); background: var(--mint-50); box-shadow: var(--shadow-sm); }
.google-g {
  font-weight: 900; font-size: 1.15rem; line-height: 1;
  background: conic-gradient(from -45deg, #EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wa-g { width: 22px; height: 22px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; }
.wa-g svg { width: 15px; height: 15px; }
.auth-provider-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .68rem; color: var(--muted); margin-top: 10px; }
.auth-provider-note > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 4px; color: var(--muted-2); font-size: .7rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-card .field { margin-top: 14px; }
.auth-card .input { height: 48px; background: #fff; }
.auth-hint { font-size: .68rem; color: var(--muted-2); margin-top: 5px; }
.auth-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; font-size: .72rem; color: var(--muted); line-height: 1.45; max-width: 320px; cursor: pointer; }
.auth-check input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--green-700); flex: none; }
.auth-row > a { font-size: .72rem; color: var(--green-700); font-weight: 650; margin-left: auto; }
.auth-submit { margin-top: 20px; min-height: 50px; }
.auth-switch { font-size: .82rem; color: var(--muted); margin-top: 18px; text-align: center; }
.auth-switch a { color: var(--green-700); font-weight: 700; }
.auth-demo { font-size: .68rem; color: var(--muted-2); text-align: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.auth-lang { position: absolute; right: 24px; top: 22px; z-index: 2; }
.auth-lang .lang-btn { background: #fff; border-color: var(--line); color: var(--ink); }

/* =========================================================
   WORKSPACE
   ========================================================= */
.app-body { background: #F4F7F5; }
.app-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: var(--green-950); color: #fff;
  display: flex; flex-direction: column; gap: 8px; z-index: 30;
}
.sidebar .brand { color: #fff; padding: 4px 8px 18px; }
.sidebar .brand small { color: rgba(255,255,255,.45); }
.side-nav { display: grid; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.66); cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%;
  transition: background .2s ease, color .2s ease;
}
.side-link .icon { width: 18px; height: 18px; flex: none; color: rgba(255,255,255,.45); }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.is-active { background: var(--green-700); color: #fff; }
.side-link.is-active .icon { color: #fff; }
.side-link .lock { margin-left: auto; width: 13px; height: 13px; opacity: .55; }
.side-link .new { margin-left: auto; font-size: .55rem; letter-spacing: .08em; background: var(--green-600); color: #fff; padding: 2px 6px; border-radius: 999px; }
.side-sep { height: 1px; background: rgba(255,255,255,.08); margin: 12px 8px; }
.side-plan { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.side-plan .plan-row { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; }
.side-plan .plan-row strong { color: #fff; }
.side-plan .pill { font-size: .58rem; background: var(--green-600); padding: 2px 7px; border-radius: 999px; }
.side-plan .usage { height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); margin-top: 10px; overflow: hidden; }
.side-plan .usage i { display: block; height: 100%; background: var(--green-300); border-radius: inherit; width: 0; }
.side-plan small { display: block; margin-top: 6px; font-size: .64rem; color: rgba(255,255,255,.5); }
.side-plan .btn { margin-top: 10px; min-height: 34px; padding: 0 12px; font-size: .72rem; background: #fff; color: var(--green-900); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; }
.side-user .avatar { width: 32px; height: 32px; background: var(--green-600); color: #fff; }
.side-user strong { display: block; font-size: .76rem; color: #fff; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { font-size: .64rem; color: rgba(255,255,255,.45); }

.app-main { min-width: 0; }
.app-topbar {
  height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 28px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.app-topbar h1 { font-size: 1.02rem; letter-spacing: -.02em; }
.app-topbar .spacer { flex: 1; }
.app-topbar .btn { min-height: 38px; font-size: .8rem; padding: 0 14px; }
.app-content { padding: 28px; max-width: 1280px; }
.app-section { display: none; }
.app-section.is-active { display: block; animation: fadeUp .3s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.kpi:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kpi .label { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.kpi .label .icon { width: 15px; height: 15px; color: var(--green-600); }
.kpi strong { display: block; font-size: 1.7rem; letter-spacing: -.04em; margin-top: 8px; }
.kpi small { font-size: .68rem; color: var(--muted-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h2 { font-size: 1rem; letter-spacing: -.01em; }
.panel-head a, .panel-head button.link { font-size: .78rem; }
.video-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.video-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.video-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.video-table tr:last-child td { border-bottom: 0; }
.video-thumb { width: 68px; height: 44px; border-radius: 8px; background: linear-gradient(140deg, var(--green-500), var(--green-900)); position: relative; overflow: hidden; }
.video-thumb .icon { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; color: #fff; opacity: .9; }
.video-title { font-weight: 650; color: var(--ink); }
.video-meta { font-size: .66rem; color: var(--muted-2); margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 650; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ready { color: var(--green-600); }
.status.processing { color: var(--muted); }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { border-color: var(--green-300); color: var(--green-700); background: var(--mint-50); }
.icon-btn .icon { width: 14px; height: 14px; }
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state .empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; background: var(--mint-100); color: var(--green-700); display: grid; place-items: center; }
.empty-state h3 { color: var(--ink); font-size: .98rem; margin-bottom: 6px; }
.empty-state p { font-size: .8rem; }

.locked-wrap { position: relative; min-height: 420px; border-radius: 18px; overflow: hidden; }
.locked-blur { filter: blur(6px); opacity: .5; pointer-events: none; user-select: none; }
.lock-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(180deg, rgba(244,247,245,.2), rgba(244,247,245,.85));
}
.lock-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; max-width: 420px; text-align: center; box-shadow: var(--shadow-lg); }
.lock-card .lock-icon { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px; background: var(--mint-100); color: var(--green-700); display: grid; place-items: center; }
.lock-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.lock-card p { font-size: .82rem; color: var(--muted); }
.lock-card .btn { margin-top: 16px; }

.upload-zone {
  border: 1.5px dashed var(--green-300); border-radius: 18px; background: var(--mint-50);
  padding: 40px 20px; text-align: center; cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.upload-zone:hover, .upload-zone.is-over { background: var(--mint-100); border-color: var(--green-600); }
.upload-zone .up-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: #fff; color: var(--green-700); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.upload-zone h3 { font-size: .95rem; margin-bottom: 4px; }
.upload-zone p { font-size: .76rem; color: var(--muted); }
.progress { height: 8px; background: var(--mint-100); border-radius: 99px; overflow: hidden; margin-top: 16px; display: none; }
.progress.is-on { display: block; }
.progress i { display: block; height: 100%; width: 0; background: var(--green-600); transition: width .2s ease; }

.qr-preview { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-preview .qr-canvas { width: 180px; height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.qr-preview .qr-canvas canvas, .qr-preview .qr-canvas img { width: 100%; height: auto; }
.qr-meta { flex: 1; min-width: 200px; }
.qr-meta .link-box { display: flex; gap: 6px; margin-top: 8px; }
.qr-meta .link-box input { flex: 1; height: 38px; font-size: .74rem; }
.qr-warning { margin-top: 12px; padding: 9px 11px; border-radius: 9px; background: var(--red-soft); color: #7C2F26; font-size: .7rem; display: none; }
.qr-warning.is-on { display: block; }

/* app pricing modal */
.plan-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-mini { border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.plan-mini:hover { border-color: var(--green-400, var(--green-500)); box-shadow: var(--shadow-sm); }
.plan-mini.is-current { border-color: var(--green-600); background: var(--mint-50); }
.plan-mini strong { font-size: .84rem; }
.plan-mini .price { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.plan-mini .price small { font-size: .62rem; font-weight: 500; color: var(--muted); }
.plan-mini ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: .68rem; color: var(--muted); display: grid; gap: 4px; }
.plan-mini .btn { width: 100%; margin-top: 10px; min-height: 32px; font-size: .7rem; }

/* watch page */
.watch-body { background: var(--green-950); color: #fff; min-height: 100vh; }
.watch-body .lang-menu button { color: var(--green-800); }
.watch-header { padding: 20px 0; }
.watch-header .brand { color: #fff; }
.watch-main { max-width: 960px; margin: 0 auto; padding: 12px 20px 60px; }
.watch-player { border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.watch-player video { width: 100%; max-height: 70vh; background: #000; }
.watch-info { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.watch-info h1 { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.watch-info p { color: rgba(255,255,255,.55); font-size: .84rem; margin-top: 6px; }
.watch-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.watch-note { margin-top: 28px; font-size: .7rem; color: rgba(255,255,255,.4); text-align: center; }
.watch-error { max-width: 520px; margin: 14vh auto; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 480px; max-width: 560px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .app-shell { grid-template-columns: 220px 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; z-index: 70; }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
  .mobile-nav a:hover { background: var(--mint-50); }
  .mobile-nav .btn { margin-top: 6px; }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 430px; transform: scale(.9); transform-origin: top left; }
  .section { padding: 76px 0; }
  .cases-grid, .quote-grid, .steps { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-qr { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-wrap { min-height: 100vh; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .app-content { padding: 18px; }
  .app-topbar { padding: 0 16px; }
  .app-topbar h1 { font-size: .92rem; }
  .video-table .hide-sm { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; transform: scale(.78); }
  .phone { left: 24px; }
  .qr-float { right: -10px; width: 160px; }
  .stat-float { left: -6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan-mini-grid { grid-template-columns: 1fr; }
  .modal { padding: 22px; }
  .app-topbar .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* unlock states */
.locked-wrap.is-unlocked .lock-overlay { display: none; }
.locked-wrap.is-unlocked .locked-blur { filter: none; opacity: 1; pointer-events: auto; user-select: auto; }
.locked-wrap.is-unlocked { min-height: 0; }
@media (max-width: 860px) {
  .app-topbar #mobileMenu { display: inline-grid !important; }
}

.auth-form-wrap { position: relative; }
.auth-lang .lang-btn { background: #fff; border-color: var(--line); color: var(--ink); }
.auth-mini-qr canvas { width: 100%; height: auto; }
.watch-header .brand small { color: rgba(255,255,255,.4); }



/* =========================================================
   Warmth + depth pass
   ========================================================= */
body { background: var(--cream); }
.section-warm { background: linear-gradient(180deg, var(--sand-50), var(--cream)); border-block: 1px solid var(--line-soft); }
.section-peach { background: linear-gradient(180deg, #FFF2EC, var(--cream)); }
.section-sage { background: linear-gradient(180deg, #EFF5E9, var(--cream)); }
.logo-strip { background: var(--sand-50); }
.features { background: var(--paper); }
.testimonials .quote-mark { color: var(--peach-200); }
.testimonials .eyebrow { color: var(--peach-200); }
.pricing-section { background: linear-gradient(180deg, #FFF8F0, var(--paper)); }
.plan-card.is-popular .popular-badge { background: var(--ochre-600); }
.tag:nth-child(2n) { background: var(--peach-100); color: #7A3B26; border-color: #F3CDBD; }
.case-tile:nth-child(2) .case-icon { background: var(--peach-100); color: var(--ochre-600); }
.case-tile:nth-child(3) .case-icon { background: var(--sand-50); color: var(--green-700); }
.case-tile:nth-child(4) .case-icon { background: var(--mint-200); color: var(--green-800); }
.case-tile:hover .case-icon { background: var(--green-800); color: #fff; }
.cta-panel {
  background:
    radial-gradient(80% 100% at 95% 0%, rgba(255,201,185,.22), transparent 55%),
    linear-gradient(135deg, var(--green-800), var(--green-950));
}
.cta-panel::after {
  content: ""; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(214,140,69,.22), transparent 65%);
}
.site-footer { background: linear-gradient(180deg, var(--green-950), #101F16); }

.nav a { padding: 9px 11px; font-size: .87rem; }
.header-actions { gap: 8px; }
@media (max-width: 1120px) {
  .nav a { padding: 8px 7px; font-size: .8rem; }
  .header-actions .header-login { display: none; }
}

/* stats band */
.stats-band {
  background: var(--green-900); color: var(--paper); padding: 38px 0; position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,201,185,.25); box-shadow: 0 0 0 40px rgba(255,201,185,.05);
}
.stats-band::after {
  content: ""; position: absolute; left: -100px; bottom: -160px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,140,69,.18), transparent 65%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.stat-item { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item strong { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.05em; line-height: 1; color: #fff; }
.stat-item strong em { font-style: normal; color: var(--peach-200); }
.stat-item span { display: block; margin-top: 8px; font-size: .76rem; color: rgba(255,255,255,.62); }

/* generic page hero */
.page-hero {
  position: relative; padding: 78px 0 64px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 88% 10%, rgba(255,201,185,.45), transparent 60%),
    radial-gradient(50% 60% at 6% 90%, rgba(214,140,69,.14), transparent 60%),
    linear-gradient(180deg, var(--sand-50), var(--cream));
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(44,110,73,.13) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .5;
  mask-image: radial-gradient(circle at 72% 30%, #000, transparent 62%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; margin-top: 14px; }
.page-hero h1.cases-title { max-width: none; }
.page-hero .lead { margin-top: 16px; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }

/* help center */
.help-layout { display: grid; grid-template-columns: 270px 1fr; gap: 34px; padding: 54px 0 90px; align-items: start; }
.help-side { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.help-side h3 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 4px 8px 12px; }
.help-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font-size: .84rem; font-weight: 600; color: var(--ink-soft); text-align: left;
}
.help-cat:hover { background: var(--mint-50); }
.help-cat.is-active { background: var(--green-800); color: #fff; }
.help-cat span.count { font-size: .66rem; opacity: .65; }
.help-side .support-mini { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--peach-100); }
.help-side .support-mini strong { display: block; font-size: .82rem; color: #6C3522; }
.help-side .support-mini p { font-size: .72rem; color: #7A4B38; margin-top: 4px; }
.help-side .support-mini a { display: inline-flex; margin-top: 8px; font-size: .76rem; font-weight: 700; color: #6C3522; text-decoration: underline; }
.help-main { min-width: 0; }
.help-search { position: relative; margin-bottom: 26px; }
.help-search input { width: 100%; height: 54px; padding: 0 52px 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: .95rem; }
.help-search input:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(76,149,108,.14); }
.help-search .icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.help-group { margin-bottom: 34px; scroll-margin-top: 100px; }
.help-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.help-group-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ochre-500); }
.help-group h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.help-group .help-faq details { background: var(--paper); }
.help-faq { display: grid; gap: 8px; }
.help-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.help-faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-size: .9rem; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary .plus { color: var(--green-700); font-size: 1.1rem; transition: transform .2s ease; flex: none; }
.help-faq details[open] summary .plus { transform: rotate(45deg); }
.help-faq .faq-a { padding: 0 18px 18px; color: var(--muted); font-size: .86rem; max-width: 72ch; }
.help-empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); background: var(--paper); }

/* support panel */
.support-panel {
  margin-top: 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 34px;
  border-radius: var(--radius-xl); background: var(--green-900); color: #fff; position: relative; overflow: hidden;
}
.support-panel::before { content: ""; position: absolute; right: -80px; top: -100px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,185,.18), transparent 65%); }
.support-panel h2 { color: #fff; font-size: 1.6rem; }
.support-panel p { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 8px; }
.support-options { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.support-options .btn { min-height: 40px; font-size: .8rem; }
.support-form { position: relative; z-index: 1; background: #fff; border-radius: 18px; padding: 20px; color: var(--ink); }
.support-form h3 { font-size: .95rem; margin-bottom: 10px; }
.support-form .field { margin-top: 10px; }
.support-form .input { height: 40px; font-size: .82rem; }
.support-form textarea.input { height: 76px; padding: 10px 12px; resize: vertical; }
.support-form .btn { margin-top: 12px; min-height: 40px; }
.support-note { font-size: .68rem; color: var(--muted); margin-top: 8px; }

/* cases page */
.case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.case-filter button { border: 1px solid var(--line); background: var(--paper); padding: 8px 14px; border-radius: 999px; font-size: .78rem; font-weight: 650; cursor: pointer; color: var(--muted); }
.case-filter button.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.case-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-page-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.case-page-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-page-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(145deg, var(--green-600), var(--green-950)); overflow: hidden; }
.case-page-card:nth-child(2n) .case-page-media { background: linear-gradient(145deg, var(--peach-200), var(--ochre-500)); }
.case-page-card:nth-child(3n) .case-page-media { background: linear-gradient(145deg, var(--sand-50), var(--green-600)); }
.case-page-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%); }
.case-page-media .placeholder-note { z-index: 2; }
.case-page-media .play-chip { z-index: 2; width: 56px; height: 56px; }
.case-page-body { padding: 22px; }
.case-page-body .tag { margin-bottom: 10px; display: inline-block; }
.case-page-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-page-body p { font-size: .86rem; color: var(--muted); }
.case-page-metrics { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.case-page-metrics strong { display: block; font-size: 1.25rem; letter-spacing: -.03em; color: var(--green-700); }
.case-page-metrics span { font-size: .68rem; color: var(--muted-2); }
.case-page-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .78rem; font-weight: 700; color: var(--green-700); }
.case-page-link .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.case-page-card:hover .case-page-link .icon { transform: translateX(3px); }

/* testimonials page */
.review-summary { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); margin-bottom: 26px; }
.review-score { text-align: center; border-right: 1px solid var(--line); }
.review-score strong { display: block; font-size: 3rem; line-height: 1; letter-spacing: -.06em; color: var(--green-800); }
.review-score .stars { justify-content: center; margin: 8px 0 4px; }
.review-score span { font-size: .74rem; color: var(--muted); }
.review-bars { display: grid; gap: 6px; }
.review-bar { display: grid; grid-template-columns: 52px 1fr 36px; gap: 10px; align-items: center; font-size: .68rem; color: var(--muted); }
.review-bar i { display: block; height: 6px; border-radius: 99px; background: var(--mint-200); overflow: hidden; }
.review-bar i b { display: block; height: 100%; background: var(--ochre-500); border-radius: inherit; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review-card .stars { margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 18px; font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }
.review-person { display: flex; align-items: center; gap: 11px; }
.review-person .avatar { width: 38px; height: 38px; background: var(--peach-100); color: #7A3B26; }
.review-person strong { display: block; font-size: .82rem; }
.review-person span { font-size: .68rem; color: var(--muted-2); }
.review-industry { display: inline-block; margin-top: 12px; font-size: .66rem; color: var(--green-700); background: var(--mint-50); border: 1px solid var(--line-soft); padding: 3px 8px; border-radius: 999px; }
.stars { display: inline-flex; gap: 2px; color: var(--ochre-500); }
.stars .icon { width: 14px; height: 14px; }
.video-reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.video-review { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(145deg, var(--green-600), var(--green-950)); border: 1px solid var(--line); }
.video-review::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,201,185,.25), transparent 55%); }
.video-review .play-chip { z-index: 2; }
.video-review .placeholder-note { z-index: 2; }

/* workspace warm theme */
.app-body { background: #F8F3E6; }
.app-topbar { background: rgba(255,253,247,.9); }
.app-content { background: transparent; }
.kpi, .panel { background: var(--paper); border-color: var(--line); }
.kpi:nth-child(1) { border-top: 3px solid var(--green-600); }
.kpi:nth-child(2) { border-top: 3px solid var(--ochre-500); }
.kpi:nth-child(3) { border-top: 3px solid var(--peach-200); }
.kpi:nth-child(4) { border-top: 3px solid var(--green-300); }
.side-plan { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.side-plan .usage { margin-top: 8px; }
.side-plan .usage + small { margin-top: 4px; }
.side-plan .usage.storage i { background: var(--peach-200); }
.side-plan .plan-note { display: flex; justify-content: space-between; font-size: .6rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.side-link.is-active { background: var(--green-700); }
.side-plan .btn { background: var(--sand-50); color: var(--green-900); }
.team-form { display: grid; grid-template-columns: 1fr 1fr 150px auto; gap: 8px; margin-bottom: 16px; }
.team-form .input { height: 38px; font-size: .8rem; }
.team-form .btn { min-height: 38px; font-size: .76rem; }
.role-pill { font-size: .68rem; padding: 3px 8px; border-radius: 999px; background: var(--mint-100); color: var(--green-800); }
@media (max-width: 760px) { .team-form { grid-template-columns: 1fr; } }

/* mobile watch */
@media (max-width: 640px) {
  .watch-header { padding: 14px 0; }
  .watch-header .container { padding-inline: 14px; }
  .watch-main { padding: 8px 12px 38px; }
  .watch-player { border-radius: 14px; }
  .watch-info h1 { font-size: 1.3rem; }
  .watch-cta .btn { flex: 1 1 100%; }
  .watch-note { margin-top: 20px; }
  .watch-error { margin: 10vh auto; padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .help-layout { grid-template-columns: 1fr; padding-top: 30px; }
  .help-side { position: static; }
  .support-panel { grid-template-columns: 1fr; padding: 24px; }
  .case-page-grid, .review-grid, .video-reviews { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; }
  .review-score { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .page-hero { padding: 52px 0 42px; }
}

.help-inline {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--sand-50);
}
.help-inline strong { display: block; font-size: .95rem; }
.help-inline p { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.help-inline .btn { flex: none; min-height: 42px; font-size: .82rem; }
@media (max-width: 640px) { .help-inline { flex-direction: column; align-items: flex-start; } }

/* small warm accents */
.qr-float { border-top: 4px solid var(--peach-200); }
.qr-float .qr-box { background: var(--sand-50); }
.stat-float .icon-wrap { background: var(--peach-100); color: var(--ochre-600); }
.phone-qr { border: 2px solid var(--peach-100); }
.case-card:nth-child(2) .case-media { background: linear-gradient(145deg, #6BAF86, #2C6E49); }
.case-card:nth-child(3) .case-media { background: linear-gradient(145deg, #D68C45, #7A4B26); }
.case-card:nth-child(2) .case-media::before,
.case-card:nth-child(3) .case-media::before { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 55%); }

.plan-price { flex-wrap: wrap; }
.plan-price .save-pill { font-size: .55rem; padding: 2px 7px; margin-left: 4px; vertical-align: middle; }
.plan-desc { min-height: 48px; }

.auth-body { background: var(--cream); }
.auth-form-wrap { overflow-y: auto; }
@media (max-width: 860px) {
  .auth-form-wrap { padding: 64px 16px 30px; align-items: flex-start; }
  .auth-card { padding: 30px 22px; border-radius: 20px; }
  .auth-lang { top: 14px; right: 14px; }
}

@media (max-width: 560px) {
  .billing-toggle button { padding: 8px 12px; font-size: .76rem; }
  .billing-toggle .save-pill { display: none; }
  .plan-price .amount { font-size: 2rem; }
}


/* =========================================================
   Form primitives (restored globally)
   ========================================================= */
.field { margin-top: 14px; }
.field > label { display: block; font-size: .78rem; font-weight: 650; color: var(--ink-soft); margin-bottom: 6px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; font-size: .9rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.input { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(76,149,108,.16); }

/* =========================================================
   Fixed header + smooth section transitions
   ========================================================= */
body { padding-top: 76px; }
.auth-body, .app-body, .watch-body { padding-top: 0; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; }
section[id] { scroll-margin-top: 92px; }

.logo-strip { background: linear-gradient(180deg, transparent, var(--sand-50) 28%, var(--sand-50) 72%, transparent); border-block: 0; }
.section-warm { background: linear-gradient(180deg, transparent 0%, var(--sand-50) 9%, var(--sand-50) 91%, transparent 100%); border-block: 0; }
.section-peach { background: linear-gradient(180deg, transparent 0%, #FFF2EC 9%, #FFF2EC 91%, transparent 100%); }
.section-sage { background: linear-gradient(180deg, transparent 0%, #EFF5E9 9%, #EFF5E9 91%, transparent 100%); }
.features { background: linear-gradient(180deg, transparent 0%, var(--paper) 8%, var(--paper) 92%, transparent 100%); border-block: 0; }
.pricing-section { background: linear-gradient(180deg, transparent 0%, #FFF8F0 8%, #FFF8F0 92%, transparent 100%); border-block: 0; }
.stats-band { background: var(--green-900); }
.section.testimonials { background: var(--green-950); }
.section-warm + .section-peach, .section-peach + .section-sage, .section-sage + .section { background-color: transparent; }

/* =========================================================
   Use-case horizontal rail + illustrated scenarios
   ========================================================= */
.scenes-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.scene-nav { display: flex; gap: 8px; }
.scene-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--green-800); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.scene-nav button:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; transform: translateY(-2px); }
.scenes-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 20px; scrollbar-width: thin; scrollbar-color: var(--green-300) transparent; }
.scenes-track::-webkit-scrollbar { height: 8px; }
.scenes-track::-webkit-scrollbar-thumb { background: var(--mint-200); border-radius: 99px; }
.scene-card { flex: 0 0 286px; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease; }
.scene-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.scene-card .scene-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--peach-100); color: var(--ochre-600); display: grid; place-items: center; margin-bottom: 16px; }
.scene-card:nth-child(2n) .scene-icon { background: var(--mint-100); color: var(--green-800); }
.scene-card h3 { font-size: .98rem; margin-bottom: 6px; }
.scene-card p { font-size: .82rem; color: var(--muted); }
.scene-card .tag { margin-top: 14px; }

.scene-detail { display: grid; grid-template-columns: 1.04fr .96fr; gap: 44px; align-items: center; margin-top: 46px; }
.scene-detail.is-reverse .scene-art { order: 2; }
.scene-art { border-radius: 26px; overflow: hidden; background: var(--sand-50); border: 1px solid var(--line); box-shadow: var(--shadow-md); aspect-ratio: 16 / 11; }
.scene-art svg { width: 100%; height: 100%; display: block; }
.scene-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.scene-copy .eyebrow { margin-bottom: 10px; }
.scene-copy h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); margin-bottom: 10px; }
.scene-copy p { color: var(--muted); font-size: .92rem; max-width: 50ch; }
.scene-points { display: grid; gap: 8px; margin-top: 16px; }
.scene-points span { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-soft); }
.scene-points .icon { width: 15px; height: 15px; color: var(--green-600); }
@media (max-width: 860px) {
  .scene-detail { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .scene-detail.is-reverse .scene-art { order: 0; }
  .scene-card { flex-basis: 250px; }
}

#support { scroll-margin-top: 96px; }

/* ---------- scenes auto marquee (title pills) ---------- */
.scenes-marquee { overflow: hidden; padding: 6px 0; }
.scenes-marquee-track { display: flex; width: max-content; animation: scenesScroll 28s linear infinite; }
.scenes-marquee:hover .scenes-marquee-track { animation-play-state: paused; }
.scenes-marquee-group { display: flex; gap: 14px; padding-right: 14px; flex: none; }
.scene-pill {
  flex: none; padding: 12px 26px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .95rem; font-weight: 650; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
@keyframes scenesScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 渐入渐出：左右边缘淡出遮罩 */
.scenes-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .scenes-marquee-track { animation: none; }
}

/* solid dark backgrounds (no fade) */
.stats-band {
  background: var(--green-900);
  padding: 52px 0;
}
.section.testimonials {
  background: var(--green-950);
  padding-top: 120px;
  padding-bottom: 120px;
}
@media (max-width: 640px) {
  .testimonials { padding-top: 90px; padding-bottom: 90px; }
}

/* ---------- workspace: plan, QR lab, brand, domain, forms ---------- */
.side-plan.is-near-limit {
  border-color: rgba(214, 140, 69, 0.7);
  box-shadow: 0 0 0 1px rgba(214, 140, 69, 0.25);
}

.qr-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.qr-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 39, 27, 0.04);
}

.qr-card-head,
.qr-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.qr-card-head {
  margin-bottom: 8px;
}

.qr-code {
  color: var(--green-700);
  font: 600 0.72rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.qr-card > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.qr-card .field {
  margin-bottom: 10px;
}

.qr-card-actions {
  margin-top: 8px;
}

.qr-design {
  margin: 14px 0 4px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--sand-50);
}

.qr-design-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.qr-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.qr-color,
.qr-logo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.qr-color input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-logo input {
  width: 100%;
  font-size: 0.72rem;
}

.brand-grid,
.domain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.brand-preview {
  overflow: hidden;
  min-height: 230px;
  border-radius: 16px;
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 18px 40px rgba(20, 39, 27, 0.14);
}

.brand-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffc9b9;
}

.brand-preview-video {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 1.6rem;
}

.brand-preview-note {
  padding: 0 14px 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
}

.brand-logo-preview {
  margin-top: 8px;
}

.brand-logo-preview img {
  max-width: 120px;
  max-height: 60px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.domain-dns {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sand-50);
}

.dns-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.dns-row code {
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff;
  color: var(--green-700);
  font-size: 0.72rem;
}

.domain-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
}

.domain-status code {
  color: var(--green-700);
  font-size: 0.72rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa79f;
}

.domain-status.is-pending .status-dot {
  background: #d68c45;
}

.domain-status.is-active .status-dot {
  background: #4c956c;
}

.form-builder {
  max-width: 620px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.billing-usage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.usage-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.usage-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.usage-card strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .brand-grid,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .billing-usage {
    grid-template-columns: 1fr;
  }

  .qr-design-grid {
    grid-template-columns: 1fr;
  }
}

/* watch lead form + brand logo */
.watch-lead { width: min(680px, calc(100% - 32px)); margin: 20px auto; padding: 22px; border-radius: 18px; background: #fff; color: #1d2a22; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.watch-lead h2 { font-size: 1.2rem; }
.lead-form { display: grid; gap: 10px; margin-top: 14px; }
.lead-field { display: grid; gap: 5px; color: #62705f; font-size: .78rem; font-weight: 650; }
.lead-field input, .lead-field textarea { width: 100%; border: 1px solid #d8e3d5; border-radius: 10px; padding: 10px 12px; font: inherit; color: #1d2a22; background: #fffdf7; }
.lead-thanks { margin-top: 14px; color: #2c6e49; font-weight: 700; }
#watchBrandMark { object-fit: contain; }

[hidden] { display: none !important; }

/* align the four plan cards row by row */
.plan-desc { min-height: 60px !important; }
.plan-price { min-height: 38px; align-items: flex-end; }
.plan-price-note { min-height: 18px; }
.plan-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.plan-features li { min-height: 54px; align-items: center; }
.plan-features li .icon { margin-top: 0; }
.plan-features li > span:last-child { line-height: 1.35; }

.brand-preview-watermark {
  position: absolute;
  right: 10px;
  top: 10px;
  max-width: 78px;
  max-height: 38px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .88);
  object-fit: contain;
}

.brand-preview-video {
  position: relative;
}

.watch-logo-watermark {
  position: absolute;
  right: 16px;
  top: 16px;
  max-width: 84px;
  max-height: 42px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .9);
  object-fit: contain;
  pointer-events: none;
}

.watch-player { position: relative; }
.watch-player video::-webkit-media-controls-fullscreen-button { display: none !important; }
.watch-fullscreen {
  position: absolute;
  bottom: 58px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 9px;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.watch-fullscreen[hidden] { display: none; }
.watch-fullscreen:hover { background: rgba(0, 0, 0, .7); }
.watch-fullscreen:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 2px; }
.watch-fullscreen svg { pointer-events: none; }
.watch-player:fullscreen,
.watch-player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: grid;
  place-items: center;
}
.watch-player:fullscreen video,
.watch-player:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.watch-player:fullscreen .watch-fullscreen,
.watch-player:-webkit-full-screen .watch-fullscreen { bottom: 58px; right: 16px; }

/* compact form builder */
.form-builder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  max-width: 760px;
}
.form-builder .field {
  margin-bottom: 0;
}
.form-builder .field:nth-child(2) {
  grid-column: 1 / -1;
}
.form-builder .form-save {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 36px;
  padding: 0 20px;
  font-size: .78rem;
}
@media (max-width: 720px) {
  .form-builder { grid-template-columns: 1fr; }
  .form-builder .field:nth-child(2), .form-builder .form-save { grid-column: auto; }
}

/* whiter workspace canvas */
.app-body { background: #FBFAF6; }

/* reserve the same price/badge/note height for every billing cycle and every plan */
.plan-price {
  min-height: 66px;
  align-items: flex-start;
  align-content: flex-start;
}
.plan-price .save-pill {
  margin-top: 2px;
}
.plan-price-note {
  min-height: 20px;
}

/* feature explanation under the subscription cards */
.feature-explain {
  padding: 28px 0 72px;
}
.feature-explain .section-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 28px;
}
.feature-explain .lead {
  margin-top: 10px;
}
.feature-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  max-width: 1120px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.feature-explain-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}
.feature-explain-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mint-100);
  color: var(--green-800);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.feature-explain-item h3 {
  margin: 1px 0 4px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
}
.feature-explain-item p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .feature-explain-grid { grid-template-columns: 1fr; }
}

/* brand logo file picker */
.file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 6px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-trigger {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--green-700);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
}
.file-trigger:hover { background: var(--green-800); }
.file-trigger:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }
.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.check-row input:disabled + span { opacity: .5; }

/* platform watermark on the video */
.watch-platform-watermark,
.brand-preview-platform {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.brand-preview-platform { left: 10px; top: 10px; bottom: auto; font-size: .62rem; }
.watch-platform-watermark { left: 14px; top: 14px; bottom: auto; }

@media (max-width: 560px) {
  .file-picker { flex-wrap: wrap; }
  .file-name { flex-basis: 100%; padding: 0 4px 2px; }
}

/* brand logo preview + remove button */
.brand-logo-preview {
  position: relative;
  display: inline-block;
  min-width: 52px;
  min-height: 34px;
  margin-top: 8px;
}
.brand-logo-preview img {
  display: block;
  max-width: 120px;
  max-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.logo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c94b3c;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.brand-logo-preview:hover .logo-remove,
.brand-logo-preview:focus-within .logo-remove {
  opacity: 1;
  pointer-events: auto;
}
.logo-remove:hover { transform: scale(1.06); }
@media (hover: none) {
  .logo-remove { opacity: 1; pointer-events: auto; }
}
.field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.45;
}

/* account security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  max-width: 760px;
}
.security-grid .field:first-child { grid-column: 1 / -1; }
#passwordSave { margin-top: 4px; }
@media (max-width: 640px) {
  .security-grid { grid-template-columns: 1fr; }
  .security-grid .field:first-child { grid-column: auto; }
}

/* workspace switcher + pending invitation */
.side-workspace { padding: 14px 14px 2px; }
.side-workspace label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .55);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-select {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: .76rem;
  outline: none;
}
.side-select option { color: var(--ink); background: #fff; }
.side-select:focus { border-color: var(--mint-300); }

.workspace-switcher { position: relative; }
.workspace-switcher-btn {
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.workspace-switcher-btn:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .26); }
.workspace-switcher-btn:focus-visible {
  outline: 2px solid var(--mint-300);
  outline-offset: 2px;
}
.workspace-switcher-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.workspace-switcher-name {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: .77rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-switcher-plan {
  display: block;
  overflow: hidden;
  color: var(--mint-300);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.workspace-switcher-chevron {
  width: 15px;
  height: 15px;
  flex: none;
  color: rgba(255, 255, 255, .52);
  transition: transform .2s ease;
}
.workspace-switcher.is-open .workspace-switcher-chevron { transform: rotate(180deg); }
.workspace-switcher-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 238px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: #163326;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .18);
}
.workspace-switcher-menu[hidden] { display: none; }
.workspace-option {
  width: 100%;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.workspace-option:hover,
.workspace-option:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.workspace-option.is-selected { background: rgba(127, 211, 182, .13); color: #fff; }
.workspace-option-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.workspace-option-name {
  overflow: hidden;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-option-plan {
  overflow: hidden;
  color: rgba(255, 255, 255, .5);
  font-size: .6rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-option.is-selected .workspace-option-plan { color: var(--mint-300); }
.workspace-option-check {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--mint-300);
  opacity: 0;
}
.workspace-option.is-selected .workspace-option-check { opacity: 1; }

.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid var(--mint-300);
  border-radius: 14px;
  background: var(--mint-50);
  color: var(--green-900);
}
.invite-banner > div:first-child { display: grid; gap: 3px; }
.invite-banner strong { font-size: .82rem; }
.invite-banner span { color: var(--muted); font-size: .8rem; }
.invite-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.invite-banner-actions .icon-btn { background: transparent; border-color: transparent; }
@media (max-width: 640px) {
  .invite-banner { align-items: flex-start; flex-direction: column; }
  .invite-banner-actions { width: 100%; justify-content: flex-end; }
}

/* real video thumbnails */
.video-thumb.has-image { position: relative; background: #0d1b12; }
.video-thumb.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb .thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .18);
}
.video-thumb .thumb-play svg { width: 18px; height: 18px; }

/* home tutorial QR */
.tutorial-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 28px;
  align-items: center;
  padding: 44px;
  overflow: hidden;
  border: 1px solid var(--mint-300);
  border-radius: 24px;
  background:
    radial-gradient(75% 120% at 100% 0%, rgba(255, 201, 185, .38), transparent 58%),
    linear-gradient(135deg, var(--mint-50), #fffdf6);
}
.tutorial-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(44, 110, 73, .12);
  border-radius: 50%;
  pointer-events: none;
}
.tutorial-copy { position: relative; z-index: 1; }
.tutorial-copy h2 {
  max-width: 15ch;
  margin: 12px 0 14px;
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  line-height: calc(1.08em + 7px);
  letter-spacing: -.04em;
}
.tutorial-copy .lead { max-width: 48ch; margin: 0; }
.tutorial-scan-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 13px;
  border: 1px solid var(--mint-300);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--green-800);
  font-size: .8rem;
}
.tutorial-scan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(44, 110, 73, .12);
}
.tutorial-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .75rem;
}
.tutorial-qr-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(20, 39, 27, .1);
}
.tutorial-qr-frame {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
}
.tutorial-qr-frame img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  border-radius: 6px;
}
.tutorial-qr-label {
  margin-top: 14px;
  color: var(--green-900);
  font-size: .84rem;
  font-weight: 750;
  text-align: center;
}
.tutorial-qr-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .7rem;
  text-align: center;
}
@media (max-width: 760px) {
  .tutorial-panel { grid-template-columns: 1fr; padding: 28px 22px; }
  .tutorial-copy h2 { max-width: none; }
  .tutorial-qr-card { padding: 18px; }
}

/* case video preview + floating player */
.case-media-video {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.case-media-video .case-video-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.case-media-video::before { z-index: 1; }
.case-media-video .play-chip,
.case-media-video .placeholder-note { z-index: 3; }
.case-media-video:focus-visible { outline: 3px solid var(--mint-300); outline-offset: -3px; }

.case-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.case-video-modal[hidden] { display: none; }
.case-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 14, .84);
  backdrop-filter: blur(9px);
}
.case-video-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}
.case-video-dialog video {
  display: block;
  width: 100%;
  max-height: 90vh;
  background: #000;
}
.case-video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.case-video-close:hover { background: rgba(0, 0, 0, .78); }
@media (max-width: 640px) {
  .case-video-modal { padding: 10px; }
  .case-video-dialog { border-radius: 12px; }
}

/* cases page video preview */
.case-page-media-video {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.case-page-media-video .case-video-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.case-page-media-video::after { z-index: 1; }
.case-page-media-video .play-chip,
.case-page-media-video .placeholder-note { z-index: 3; }
.case-page-media-video:focus-visible { outline: 3px solid var(--mint-300); outline-offset: -3px; }

/* video trash */
.trash-note {
  margin: -2px 0 14px;
  padding: 9px 12px;
  border: 1px solid #E8D6C4;
  border-radius: 9px;
  background: #FBF4EC;
  color: #7A4B26;
  font-size: .72rem;
}
.trash-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.trash-actions .btn { white-space: nowrap; }

/* Homepage plan cards: keep name, description, price and CTA; hide feature list below. */
#homePlans .plan-features { display: none; }

/* ==========================================================================
   Homepage · Mexico editorial refresh (scoped to body.home-v2 only)
   ========================================================================== */
.home-v2 { background: #F7F1E6; overflow-x: hidden; overflow-x: clip; }

.hero-v2 {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #F7F1E6;
  isolation: isolate;
}
.hero-v2-media {
  position: absolute;
  inset: 0 0 0 45%;
  overflow: hidden;
  z-index: 0;
}
.hero-v2-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  display: block;
}
.hero-v2-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #F7F1E6 0%, rgba(247, 241, 230, .94) 6%, rgba(247, 241, 230, .32) 24%, transparent 46%),
    linear-gradient(0deg, #F7F1E6 0%, transparent 22%);
}
.hero-v2-grid {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 88px;
}
.hero-v2-copy {
  width: 56%;
  max-width: 760px;
  padding-right: 36px;
}
.hero-v2 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #B5652A;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: none;
}
.hero-v2 .eyebrow::before,
.hero-v2 .eyebrow::after {
  content: "";
  width: 46px;
  height: 1px;
  background: #D5773C;
  flex: none;
}
.hero-v2 h1 {
  margin: 20px 0 0;
  color: #143D2B;
  font-size: clamp(2.7rem, 4vw, 3.9rem);
  line-height: calc(1.03em + 5px);
  letter-spacing: -.065em;
  font-weight: 750;
}
.hero-v2 h1 > span:first-child { display: block; }
.hero-v2 h1 .accent-line {
  display: block;
  position: relative;
  width: fit-content;
  padding-bottom: 14px;
  color: #143D2B;
}
.hero-v2 h1 .accent-line::after {
  content: "";
  position: absolute;
  left: 36%;
  right: 0;
  bottom: 2px;
  height: 8px;
  border-top: 3px solid #D5773C;
  border-radius: 50%;
  transform: rotate(-1.2deg);
}
.hero-v2 h1 .serif { font-family: var(--font); font-style: normal; font-weight: 750; }
.hero-v2 .lead { max-width: 520px; margin-top: 25px; color: #4E5C52; font-size: .98rem; line-height: 1.8; }
.hero-v2 .hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-v2 .hero-ctas .btn { min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: .9rem; }
.hero-v2 .hero-ctas .btn-ghost { background: rgba(255, 253, 247, .42); border: 1px solid rgba(44, 110, 73, .65); color: #2C6E49; }
.hero-v2 .hero-ctas .btn-ghost:hover { background: #fffdf7; }
.hero-v2 .hero-note { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 22px; color: #6F786F; font-size: .72rem; }
.hero-v2 .hero-note span { display: inline-flex; align-items: center; gap: 5px; }
.hero-v2 .hero-note .icon { width: 13px; height: 13px; color: #2C6E49; }
.hero-v2-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; z-index: 1; pointer-events: none; background: linear-gradient(0deg, #F7F1E6 0%, rgba(247, 241, 230, .84) 28%, transparent 100%); }

.home-feature-strip { position: relative; z-index: 4; margin-top: -44px; padding: 0 0 20px; background: linear-gradient(180deg, rgba(247, 241, 230, 0) 0%, #F7F1E6 55%); }
.home-feature-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 20px 12px; border: 1px solid rgba(20, 61, 43, .08); border-radius: 22px; background: rgba(255, 253, 247, .94); box-shadow: 0 24px 56px rgba(14, 42, 29, .11); backdrop-filter: blur(12px); }
.home-feature { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 20px; border-right: 1px solid #EAE3D6; }
.home-feature:last-child { border-right: 0; }
.home-feature-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #C87D39; background: #F7E7C2; }
.home-feature-icon .icon { width: 23px; height: 23px; }
.home-feature strong { display: block; color: #143D2B; font-size: .82rem; line-height: 1.35; font-weight: 750; }
.home-feature span:not(.home-feature-icon) { display: block; margin-top: 3px; color: #6E786F; font-size: .66rem; line-height: 1.45; }

.stats-band-v2 { position: relative; overflow: hidden; padding: 24px 0 28px; background: radial-gradient(60% 160% at 2% 100%, rgba(72, 135, 96, .28), transparent 48%), radial-gradient(55% 160% at 100% 100%, rgba(232, 179, 154, .12), transparent 52%), #123D2A; }
.stats-band-v2::before, .stats-band-v2::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; pointer-events: none; }
.stats-band-v2::before { left: -120px; bottom: -178px; box-shadow: 0 0 0 34px rgba(255,255,255,.018), 0 0 0 70px rgba(255,255,255,.012); }
.stats-band-v2::after { right: -100px; bottom: -190px; box-shadow: 0 0 0 30px rgba(255,255,255,.018), 0 0 0 64px rgba(255,255,255,.012); }
.stats-band-v2 .stats-grid { position: relative; z-index: 1; }
.stats-band-v2 .stat-item strong { font-size: clamp(1.7rem, 2.5vw, 2.35rem); }
.stats-band-v2 .stat-item span { color: rgba(236, 244, 238, .72); }
.stats-band-v2 .stat-item { border-color: rgba(255, 255, 255, .10); }

@media (max-width: 1100px) {
  .hero-v2-media { left: 48%; }
  .hero-v2-copy { width: 56%; }
  .hero-v2 h1 { font-size: clamp(2.35rem, 4.6vw, 3.55rem); }
  .home-feature { padding-left: 12px; padding-right: 12px; gap: 9px; }
  .home-feature-icon { width: 42px; height: 42px; }
  .home-feature strong { font-size: .76rem; }
  .home-feature span:not(.home-feature-icon) { font-size: .62rem; }
}
@media (max-width: 900px) {
  .hero-v2 { min-height: 0; }
  .hero-v2-media { position: relative; inset: auto; width: 100%; height: 360px; }
  .hero-v2-media::after { background: linear-gradient(0deg, #F7F1E6 0%, rgba(247, 241, 230, .15) 34%, transparent 62%); }
  .hero-v2-grid { min-height: 0; display: block; padding-top: 30px; padding-bottom: 30px; }
  .hero-v2-copy { width: 100%; max-width: none; padding-right: 0; }
  .hero-v2 .eyebrow { font-size: .68rem; }
  .hero-v2 .eyebrow::before, .hero-v2 .eyebrow::after { width: 30px; }
  .hero-v2 h1 { margin-top: 16px; font-size: clamp(1.95rem, 7.2vw, 3.1rem); }
  .hero-v2 .lead { margin-top: 18px; font-size: .9rem; }
  .hero-v2 .hero-ctas { margin-top: 20px; }
  .hero-v2 .hero-ctas .btn { min-height: 46px; padding: 0 17px; }
  .hero-v2 .hero-note { gap: 12px; font-size: .67rem; }
  .hero-v2-fade { display: none; }
  .home-feature-strip { margin-top: 0; padding-top: 8px; background: #F7F1E6; }
  .home-feature-inner { grid-template-columns: 1fr 1fr; gap: 14px 0; padding: 16px 8px; border-radius: 16px; }
  .home-feature:nth-child(2) { border-right: 0; }
  .home-feature:nth-child(3) { border-right: 1px solid #EAE3D6; }
  .home-feature { padding: 4px 11px; }
  .stats-band-v2 { padding: 20px 0 24px; }
}
@media (max-width: 560px) {
  .hero-v2-media { height: 300px; }
  .hero-v2-media img { object-position: 62% center; }
  .hero-v2-grid { padding-top: 24px; }
  .hero-v2 .hero-ctas { align-items: stretch; }
  .hero-v2 .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero-v2 .hero-note { display: grid; gap: 7px; }
  .home-feature-inner { grid-template-columns: 1fr; gap: 0; padding: 5px 13px; }
  .home-feature { border-right: 0 !important; border-bottom: 1px solid #EAE3D6; padding: 12px 2px; }
  .home-feature:last-child { border-bottom: 0; }
  .home-feature-icon { width: 42px; height: 42px; }
  .stats-band-v2 .stats-grid { gap: 0; }
  .stats-band-v2 .stat-item { padding: 14px 0; }
}


/* ============================================================
   Shared notifications + public header logout
   ============================================================ */
.notif-host { position: relative; display: inline-flex; align-items: center; flex: none; }
.notif-toggle {
  width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .72); color: var(--green-800);
  cursor: pointer; position: relative;
  transition: border-color .2s ease, background .2s ease;
}
.notif-toggle:hover, .notif-toggle.is-open { border-color: var(--green-300); background: #fff; }
.notif-toggle .icon { width: 18px; height: 18px; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid var(--cream);
  background: var(--ochre-600, #b5652a); color: #fff;
  font-size: 9px; font-weight: 800; line-height: 1;
}
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(370px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 100px));
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg, 0 24px 70px rgba(14, 42, 29, .20));
  z-index: 100; overflow: hidden;
  animation: notifPop .16s ease both;
}
.notif-panel[hidden] { display: none !important; }
@keyframes notifPop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.notif-head strong { color: var(--ink); font-size: .88rem; letter-spacing: -.02em; }
.notif-mark-all {
  border: 0; background: transparent; color: var(--green-700);
  font-size: .68rem; font-weight: 750; padding: 3px 0; cursor: pointer;
}
.notif-mark-all:hover { color: var(--ochre-600); }
.notif-mark-all[hidden] { display: none; }
.notif-tabs { display: flex; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--line-soft); }
.notif-tab {
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; cursor: pointer;
}
.notif-tab.is-active { background: var(--mint-100); color: var(--green-800); }
.notif-list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  width: 100%; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: transparent; text-align: left; cursor: pointer; position: relative;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #fbfdf9; }
.notif-item.is-unread { background: rgba(231, 240, 234, .45); }
.notif-item-icon {
  width: 31px; height: 31px; flex: none; border-radius: 9px;
  display: grid; place-items: center; color: var(--green-700); background: var(--mint-100);
}
.notif-item-icon .icon { width: 15px; height: 15px; }
.notif-item-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.notif-item-copy strong { color: var(--ink); font-size: .72rem; line-height: 1.35; padding-right: 9px; }
.notif-item-copy span { color: var(--muted); font-size: .65rem; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-item-copy time { color: var(--muted-2); font-size: .6rem; margin-top: 2px; }
.notif-unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre-600); position: absolute; top: 15px; right: 13px; }
.notif-empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.notif-empty .icon { width: 25px; height: 25px; color: var(--green-300); margin-bottom: 7px; }
.notif-empty p { font-size: .72rem; }
.header-logout {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.55); color: var(--ink-soft);
  font-size: .78rem; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.header-logout:hover { border-color: var(--green-300); background: #fff; color: var(--green-800); }
.header-logout .icon { width: 15px; height: 15px; }
.header-logout[hidden] { display: none !important; }
.app-topbar .notif-toggle { width: 38px; height: 38px; }
.app-topbar .notif-panel { top: calc(100% + 8px); }
@media (max-width: 1120px) {
  .header-actions .header-logout span:last-child { display: none; }
  .header-logout { width: 40px; padding: 0; }
}
@media (max-width: 700px) {
  .notif-panel { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 92px); }
  .app-topbar .notif-panel { top: 70px; }
}

/* ============================================================
   Public surfaces: slightly whiter cream/paper palette
   ============================================================ */
body:not(.app-body) {
  --cream: #FCFAF3;
  --paper: #FFFEFA;
  --sand-50: #FEFCF6;
  --sand-100: #FAF6EC;
  --line: #E8E1D3;
  --line-soft: #F2EDE2;
  --mint-50: #F6FAF2;
  --mint-100: #EDF4E8;
  background: var(--cream);
}
body:not(.app-body) .site-header {
  background: rgba(255, 254, 250, .86);
}
body:not(.app-body) .site-header.is-scrolled {
  background: rgba(255, 254, 250, .95);
}
body:not(.app-body) .section-peach {
  background: linear-gradient(180deg, transparent 0%, #FFF8F4 9%, #FFF8F4 91%, transparent 100%);
}
body:not(.app-body) .section-sage {
  background: linear-gradient(180deg, transparent 0%, #F6FAF2 9%, #F6FAF2 91%, transparent 100%);
}
body:not(.app-body) .pricing-section {
  background: linear-gradient(180deg, transparent 0%, #FFFCF8 8%, #FFFCF8 92%, transparent 100%);
}

/* Public pages: move both header edges outward by 20px */
body:has(.site-header) {
  --container: 1220px;
}

/* ============================================================
   Workbench: lighter canvas and top bar
   ============================================================ */
body.app-body {
  --cream: #FCFAF3;
  --paper: #FFFEFA;
  --line: #E8E1D3;
  --line-soft: #F2EDE2;
  background: #FDFCF8;
}
body.app-body .app-topbar {
  background: rgba(255, 255, 255, .92);
}

/* Product features: link to the full feature index */
.features-all-link {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.features-all-link .link-arrow {
  font-size: .95rem;
  padding: 6px 4px;
}

/* All standalone-site headings: extra breathing room between wrapped lines */
body:not(.app-body) :is(h1, h2, h3, h4) {
  line-height: calc(1.08em + 7px);
}
.app-body :is(h1, h2, h3, h4) {
  line-height: calc(1.08em + 5px);
}

/* Homepage "what it is for" cards: image on top, copy below */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.use-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s ease;
}
.use-card:hover {
  transform: translateY(-5px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}
.use-card-media {
  aspect-ratio: 4 / 3;
  flex: none;
  overflow: hidden;
  background: var(--sand-100);
}
.use-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.use-card:hover .use-card-media img { transform: scale(1.035); }
.use-card-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px dashed rgba(44, 110, 73, .2);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .72), transparent 48%),
    linear-gradient(135deg, #F8F3E8 0%, #EEF3EA 100%);
  color: var(--green-700);
  text-align: center;
  user-select: none;
}
.use-card-placeholder-icon {
  width: 34px;
  height: 34px;
  color: var(--green-600);
  opacity: .62;
}
.use-card-placeholder-text {
  color: var(--muted);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.45;
}
.use-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 26px 29px;
}
.use-card-body h3 {
  margin: 0 0 9px;
  color: var(--green-900);
  font-size: 1.12rem;
  line-height: calc(1.25em + 7px);
  letter-spacing: -.02em;
}
.use-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}
@media (max-width: 1000px) {
  .uses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 700px) {
  .uses-grid { grid-template-columns: 1fr; }
  .use-card-body { padding: 22px 22px 25px; }
}

/* New-notification toast at the top of the page */
.notif-toast-wrap {
  position: fixed;
  top: 84px;
  left: max(20px, calc((100vw - 1220px) / 2));
  z-index: 55;
  display: grid;
  justify-items: start;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.app-body .notif-toast-wrap {
  z-index: 18;
}
.notif-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-600);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(20, 39, 27, .16);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease;
}
.notif-toast.is-in {
  opacity: 1;
  transform: none;
}
.notif-toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
}
.notif-toast-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--mint-100);
  color: var(--green-700);
}
.notif-toast-icon .icon {
  width: 16px;
  height: 16px;
}
.notif-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.notif-toast-copy strong {
  color: var(--green-900);
  font-size: .82rem;
  line-height: 1.4;
}
.notif-toast-copy span {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .notif-toast-wrap {
    top: 76px;
    width: calc(100vw - 24px);
  }
  .notif-toast {
    padding: 11px 12px;
  }
}
