:root {
  --canvas: #fff8ef;
  --canvas-soft: #fff3e3;
  --surface: #fffdf8;
  --surface-warm: #fff1e3;
  --surface-strong: #ffe6cb;
  --ink: #3e342e;
  --ink-soft: #867669;
  --accent: #f39d62;
  --accent-strong: #d97d3e;
  --mint: #cfe6d7;
  --mint-strong: #77a686;
  --blush: #f7d7e0;
  --cocoa: #8b5f46;
  --alert: #e67c73;
  --warning: #f0b75f;
  --shadow-soft: 0 20px 40px rgba(154, 118, 79, 0.12);
  --shadow-card: 0 18px 48px rgba(152, 111, 66, 0.14);
  --shadow-tight: 0 10px 24px rgba(138, 94, 58, 0.1);
  --border-soft: rgba(189, 152, 109, 0.18);
  --border-strong: rgba(178, 130, 76, 0.26);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --max-width: 1240px;
  --page-gutter: clamp(18px, 3vw, 32px);
  --ring-tab: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 235, 0.98));
  --speed: 180ms;
  --font-display: "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 169, 0.55), transparent 34%),
    radial-gradient(circle at bottom right, rgba(204, 229, 213, 0.55), transparent 28%),
    linear-gradient(180deg, #fff9f1 0%, #fff6ea 42%, #fffaf4 100%);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.78), transparent 18%),
    radial-gradient(circle at 85% 6%, rgba(255, 236, 214, 0.6), transparent 14%),
    radial-gradient(circle at 92% 82%, rgba(211, 232, 220, 0.45), transparent 16%);
}

body::after {
  top: 92px;
  left: max(16px, calc((100vw - var(--max-width)) / 2 - 18px));
  width: 12px;
  height: calc(100vh - 168px);
  opacity: 0.35;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(201, 164, 122, 0.72) 0 36%, transparent 40%) center top / 12px 36px repeat-y;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.boot-splash {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.boot-logo {
  width: min(112px, 28vw);
}

.boot-splash strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.site-shell,
.workspace-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 244, 0.78);
  border-bottom: 1px solid rgba(206, 175, 137, 0.18);
}

.topbar-inner {
  width: min(var(--max-width), calc(100vw - (var(--page-gutter) * 2)));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-lockup img {
  width: 56px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link,
.topbar-actions .ghost-btn,
.topbar-actions .secondary-btn,
.topbar-actions .primary-btn {
  white-space: nowrap;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--speed) ease, background var(--speed) ease, transform var(--speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(255, 244, 231, 0.92);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.tag-chip,
.status-chip,
.filter-chip,
.quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease, color var(--speed) ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 18px;
}

.primary-btn {
  color: #fff8f1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 14px 28px rgba(217, 125, 62, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.tag-chip:hover,
.filter-chip:hover,
.quick-chip:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 244, 231, 0.98);
  border: 1px solid var(--border-soft);
}

.ghost-btn {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(184, 148, 107, 0.16);
}

.page-wrap {
  width: min(var(--max-width), calc(100vw - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.landing {
  padding: 34px 0 120px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 22px;
}

.hero-copy,
.hero-surface,
.card,
.auth-card,
.section-card,
.metric-card,
.timeline-item,
.plan-card,
.list-card,
.chat-shell,
.composer-card,
.empty-state,
.legal-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 248, 238, 0.96));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
}

.hero-copy::before,
.hero-surface::before,
.card::before,
.auth-card::before,
.section-card::before,
.metric-card::before,
.timeline-item::before,
.plan-card::before,
.list-card::before,
.chat-shell::before,
.composer-card::before,
.empty-state::before,
.legal-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: 62px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--ring-tab);
  box-shadow: inset 0 0 0 1px rgba(216, 188, 155, 0.18);
}

.hero-copy {
  padding: 74px 34px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 580px;
}

.hero-pill,
.section-label,
.soft-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa);
  background: rgba(255, 239, 220, 0.88);
}

.hero-copy h1,
.page-heading,
.section-heading {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 16px 0 0;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.hero-copy p {
  max-width: 30ch;
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-footnotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.hero-footnote {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid rgba(201, 166, 130, 0.14);
}

.hero-footnote strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.hero-footnote span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-surface {
  padding: 20px;
  min-height: 580px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(255, 243, 230, 0.95)),
    url("/assets/brand/hero.png") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.example-card {
  width: min(420px, 100%);
  margin-left: auto;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 52px rgba(149, 107, 69, 0.18);
  backdrop-filter: blur(14px);
}

.example-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.example-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pet-avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(243, 157, 98, 0.22), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(208, 166, 124, 0.22);
  color: var(--accent-strong);
  font-weight: 800;
  overflow: hidden;
}

.pet-avatar {
  width: 58px;
  height: 58px;
}

.mini-avatar {
  width: 42px;
  height: 42px;
}

.example-badges,
.tag-row,
.filter-row,
.quick-chip-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip,
.status-chip,
.filter-chip,
.quick-chip {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  background: rgba(255, 246, 234, 0.92);
  color: var(--cocoa);
  border: 1px solid rgba(207, 173, 138, 0.18);
}

.tag-chip.mint,
.filter-chip.mint,
.status-chip.good {
  background: rgba(226, 244, 233, 0.94);
  color: #44765d;
}

.tag-chip.blush,
.filter-chip.blush {
  background: rgba(252, 236, 242, 0.96);
  color: #966277;
}

.tag-chip.warning,
.status-chip.warning {
  background: rgba(255, 244, 222, 0.96);
  color: #9a6a1a;
}

.status-chip.alert {
  background: rgba(255, 230, 228, 0.96);
  color: #a84d48;
}

.feature-section,
.demo-section,
.story-section,
.value-section,
.preview-section,
.cta-section,
.pricing-section,
.legal-section {
  margin-top: 34px;
}

.section-card,
.cta-band,
.legal-card {
  padding: 72px 30px 30px;
}

.demo-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(255, 221, 196, 0.48), transparent 30%),
    linear-gradient(135deg, rgba(255, 251, 246, 0.98), rgba(255, 243, 232, 0.98));
}

.demo-copy {
  display: grid;
}

.demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.demo-frame {
  padding: 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(214, 180, 143, 0.2);
  box-shadow: 0 20px 40px rgba(138, 97, 62, 0.12);
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(244, 227, 206, 0.88);
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-lead {
  margin-top: 12px;
  max-width: 56ch;
  line-height: 1.85;
  color: var(--ink-soft);
}

.feature-grid,
.story-grid,
.value-grid,
.preview-grid,
.plan-grid,
.stats-grid,
.pet-grid,
.reminder-grid,
.two-up-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feature-grid,
.value-grid,
.preview-grid,
.pet-grid,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-grid,
.reminder-grid,
.two-up-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.story-card,
.preview-card,
.metric-card,
.pet-card,
.plan-card,
.reminder-column {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(210, 175, 136, 0.16);
  box-shadow: var(--shadow-tight);
}

.feature-card h3,
.story-card h3,
.preview-card h3,
.pet-card h3,
.plan-card h3,
.page-panel h3 {
  margin: 14px 0 10px;
  font-size: 1.15rem;
}

.feature-card p,
.story-card p,
.preview-card p,
.pet-card p,
.plan-card p,
.metric-copy,
.muted {
  line-height: 1.75;
  color: var(--ink-soft);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 232, 206, 0.9), rgba(255, 250, 242, 0.96));
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(215, 177, 140, 0.18);
}

.value-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.value-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.value-line .icon-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 180, 0.52), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 244, 0.98), rgba(255, 241, 227, 0.98));
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cta-note {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(214, 180, 143, 0.2);
}

.workspace-shell {
  padding: 24px 0 118px;
}

.workspace-layout {
  width: min(var(--max-width), calc(100vw - (var(--page-gutter) * 2)));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.welcome-banner,
.page-panel,
.auth-card,
.card,
.list-card,
.composer-card {
  padding: 70px 24px 24px;
}

.welcome-banner {
  background:
    linear-gradient(115deg, rgba(255, 250, 244, 0.96), rgba(255, 242, 229, 0.94)),
    url("/assets/brand/hero.png") right center/46% auto no-repeat;
  min-height: 280px;
  display: grid;
  align-items: center;
}

.welcome-banner h2,
.page-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.welcome-banner p {
  max-width: 52ch;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.page-toolbar,
.inline-actions,
.info-row,
.field-actions,
.card-actions,
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-toolbar {
  justify-content: space-between;
  margin-top: 20px;
}

.workspace-grid,
.dashboard-grid,
.editor-grid,
.page-grid,
.ai-grid,
.settings-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.editor-grid,
.page-grid,
.ai-grid,
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 18px;
}

.card-header,
.list-header,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-header h3,
.panel-header h3,
.list-header h3 {
  margin: 0;
  font-size: 1.24rem;
}

.card-header p,
.panel-header p,
.list-header p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
  margin-top: 8px;
}

.metric-card small {
  color: var(--ink-soft);
  font-weight: 600;
}

.overview-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.overview-photo {
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 219, 183, 0.85), rgba(255, 251, 246, 0.92));
  border: 1px solid rgba(214, 178, 138, 0.2);
  overflow: hidden;
}

.overview-photo img,
.pet-avatar img,
.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-main h3 {
  margin: 0;
  font-size: 1.3rem;
}

.overview-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.status-tile {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 248, 237, 0.88);
  border: 1px solid rgba(208, 171, 131, 0.16);
}

.status-tile span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
}

.status-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field,
.field.wide {
  display: grid;
  gap: 8px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(192, 155, 116, 0.22);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  padding: 14px 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(243, 157, 98, 0.18);
  border-color: rgba(243, 157, 98, 0.42);
}

.field textarea {
  min-height: 118px;
  max-height: 240px;
  resize: vertical;
}

.field small {
  color: var(--ink-soft);
  line-height: 1.6;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 157, 115, 0.38), transparent);
  margin: 18px 0;
}

.toggle-grid,
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-chip {
  position: relative;
}

.toggle-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 247, 237, 0.9);
  border: 1px solid rgba(204, 169, 129, 0.18);
  color: var(--ink-soft);
  font-weight: 700;
  transition: all var(--speed) ease;
}

.toggle-chip input:checked + span,
.toggle-chip.active span {
  background: rgba(243, 157, 98, 0.18);
  border-color: rgba(243, 157, 98, 0.4);
  color: var(--accent-strong);
}

.collapsible {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.84);
  border: 1px dashed rgba(206, 167, 126, 0.26);
}

.upload-preview-grid,
.photo-grid,
.favorite-grid,
.entry-grid,
.thread-grid {
  display: grid;
  gap: 12px;
}

.photo-grid,
.favorite-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-grid,
.thread-grid {
  grid-template-columns: 1fr;
}

.entry-card,
.favorite-card,
.thread-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.92);
  border: 1px solid rgba(206, 170, 131, 0.16);
  box-shadow: var(--shadow-tight);
}

.entry-head,
.favorite-head,
.thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.entry-title,
.favorite-title,
.thread-title {
  margin: 0;
  font-size: 1.05rem;
}

.entry-meta,
.favorite-meta,
.thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.entry-card p,
.favorite-card p,
.thread-card p {
  margin: 12px 0 0;
  line-height: 1.78;
  color: var(--ink-soft);
}

.ai-grid {
  align-items: start;
}

.chat-shell {
  display: grid;
  grid-template-rows: auto auto minmax(340px, 1fr) auto;
  min-height: 720px;
}

.thread-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.thread-strip::-webkit-scrollbar {
  display: none;
}

.thread-pill {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 246, 234, 0.92);
  border: 1px solid rgba(204, 169, 129, 0.18);
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

.thread-pill.active {
  background: rgba(243, 157, 98, 0.18);
  color: var(--accent-strong);
  border-color: rgba(243, 157, 98, 0.34);
}

.chat-scroll {
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.message-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message-row.user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(76%, 620px);
  padding: 16px 18px;
  border-radius: 24px;
  line-height: 1.8;
  background: rgba(255, 251, 246, 0.94);
  border: 1px solid rgba(209, 173, 134, 0.16);
}

.message-row.user .message-bubble {
  background: linear-gradient(135deg, rgba(243, 157, 98, 0.18), rgba(255, 236, 212, 0.9));
}

.message-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.composer-card {
  display: grid;
  gap: 12px;
}

.composer-card textarea {
  min-height: 110px;
  max-height: 160px;
}

.quick-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-chip {
  min-height: 44px;
  padding: 10px 14px;
  text-align: left;
  justify-content: flex-start;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 70px 24px 24px 90px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 44px;
  top: 60px;
  bottom: -22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(243, 157, 98, 0.46), rgba(207, 230, 215, 0.46));
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 28px;
  top: 74px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(243, 157, 98, 0.18), rgba(255, 249, 240, 1));
  border: 1px solid rgba(243, 157, 98, 0.24);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

.empty-state {
  padding: 80px 24px 24px;
  text-align: left;
}

.empty-state strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(54, 42, 30, 0.32);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  background: rgba(255, 251, 246, 0.96);
}

.auth-visual {
  border-radius: 26px;
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.16), rgba(255, 248, 238, 0.28)),
    url("/assets/brand/hero.png") center/cover no-repeat;
  padding: 26px;
  display: flex;
  align-items: flex-end;
}

.auth-quote {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.auth-body {
  display: grid;
  gap: 18px;
  align-content: start;
}

.auth-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 244, 232, 0.84);
  border: 1px solid rgba(200, 167, 129, 0.2);
}

.auth-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-weight: 700;
}

.auth-tab.active {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(145, 103, 66, 0.12);
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid transparent;
}

.notice.info {
  background: rgba(255, 247, 232, 0.9);
  border-color: rgba(243, 157, 98, 0.22);
}

.notice.success {
  background: rgba(228, 244, 234, 0.9);
  border-color: rgba(128, 177, 149, 0.22);
}

.notice.error {
  background: rgba(255, 232, 229, 0.9);
  border-color: rgba(230, 124, 115, 0.24);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 50;
  max-width: 340px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(62, 52, 46, 0.92);
  color: #fff7ef;
  box-shadow: 0 16px 36px rgba(47, 32, 20, 0.24);
}

.mobile-nav {
  display: none;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.note-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.note-list li {
  line-height: 1.75;
  color: var(--ink-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(206, 170, 131, 0.18);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(214, 179, 140, 0.14);
  background: rgba(255, 252, 247, 0.8);
}

.comparison-table th {
  background: rgba(255, 244, 231, 0.92);
  white-space: nowrap;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.chip-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.footer-copy {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 1100px) {
  body::after {
    display: none;
  }

  .hero-shell,
  .demo-shell,
  .dashboard-grid,
  .editor-grid,
  .page-grid,
  .ai-grid,
  .settings-grid,
  .cta-band,
  .auth-card {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .value-grid,
  .preview-grid,
  .pet-grid,
  .stats-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid,
  .plan-grid,
  .reminder-grid,
  .two-up-grid,
  .form-grid,
  .quick-prompt-grid,
  .photo-grid,
  .favorite-grid {
    grid-template-columns: 1fr;
  }

  .welcome-banner {
    background-size: cover;
    background-position: center;
  }

  .hero-surface {
    min-height: 460px;
  }

  .hero-copy,
  .section-card,
  .cta-band,
  .card,
  .auth-card,
  .timeline-item,
  .welcome-banner,
  .list-card,
  .composer-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .demo-frame {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand-lockup {
    gap: 10px;
    flex-shrink: 1;
  }

  .brand-lockup img {
    width: 42px;
  }

  .brand-kicker {
    display: none;
  }

  .brand-title {
    font-size: 16px;
  }

  .nav-links,
  .topbar-actions .ghost-btn:not(.essential) {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .topbar-actions .primary-btn.essential,
  .topbar-actions .secondary-btn.essential,
  .topbar-actions .ghost-btn.essential {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .landing {
    padding-bottom: 112px;
  }

  .hero-copy,
  .hero-surface,
  .chat-shell,
  .welcome-banner,
  .auth-visual,
  .demo-shell {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .hero-footnotes,
  .feature-grid,
  .value-grid,
  .preview-grid,
  .pet-grid,
  .stats-grid,
  .legal-grid,
  .stat-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-card,
  .cta-band,
  .card,
  .auth-card,
  .timeline-item,
  .welcome-banner,
  .list-card,
  .composer-card,
  .empty-state {
    padding-top: 66px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy::before,
  .hero-surface::before,
  .card::before,
  .auth-card::before,
  .section-card::before,
  .metric-card::before,
  .timeline-item::before,
  .plan-card::before,
  .list-card::before,
  .chat-shell::before,
  .composer-card::before,
  .empty-state::before,
  .legal-card::before {
    left: 18px;
  }

  .timeline-item {
    padding-left: 76px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-item::after {
    left: 36px;
  }

  .demo-frame {
    padding: 10px;
    border-radius: 24px;
  }

  .demo-video {
    border-radius: 18px;
  }

  .demo-frame {
    order: -1;
    margin-bottom: 8px;
  }

  .message-bubble {
    max-width: 100%;
  }

  .page-wrap,
  .workspace-layout {
    width: min(var(--max-width), calc(100vw - 24px));
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 251, 246, 0.94);
    border: 1px solid rgba(206, 171, 132, 0.18);
    box-shadow: 0 18px 36px rgba(117, 87, 61, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    min-height: 58px;
    padding: 10px 6px;
    border-radius: 18px;
    display: grid;
    gap: 5px;
    place-items: center;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-nav button.active {
    background: rgba(243, 157, 98, 0.16);
    color: var(--accent-strong);
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 92px;
    max-width: none;
  }
}
