:root {
  --cream: #F7F3EE;
  --warm-white: #FDFAF6;
  --sage: #8A9E8C;
  --sage-light: #B5C7B7;
  --sage-dark: #5C7A5E;
  --terracotta: #C4856A;
  --muted-gold: #C9A96E;
  --charcoal: #2C2C2C;
  --soft-gray: #6B6B6B;
  --light-border: #E0D9D0;
  --card-bg: rgba(255,255,255,0.7);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background-color: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(138,158,140,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 80%, rgba(201,169,110,0.08) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
main, section, footer, nav, .app-view { position: relative; z-index: 1; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(247,243,238,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-border);
}
.logo {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  display: none;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo.has-custom-logo .brand-logo-img {
  display: block;
}
.logo.has-custom-logo .logo-leaf {
  display: none;
}
.logo-leaf {
  width: 28px;
  height: 28px;
  background: var(--sage);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
  position: relative;
}
.logo-leaf::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--cream);
  border-radius: 50%;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a, .link-btn {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--soft-gray);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  border: 0;
  background: transparent;
}
.nav-links a:hover, .link-btn:hover { color: var(--charcoal); }
.nav-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(138,158,140,0.28);
  border-radius: 999px;
  background: rgba(253,250,246,0.72);
  color: var(--sage-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.nav-select span {
  color: var(--soft-gray);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-select select {
  min-width: 108px;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  outline: none;
  cursor: pointer;
}
.menu-btn {
  display: none;
  border: 1px solid var(--light-border);
  background: var(--warm-white);
  border-radius: 40px;
  padding: 9px 16px;
  color: var(--soft-gray);
}

.btn-primary {
  background: var(--sage-dark);
  color: white;
  border: none;
  padding: 11px 26px;
  border-radius: 40px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--sage);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92,122,94,0.25);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--light-border);
  color: var(--charcoal);
  padding: 10px 24px;
  border-radius: 40px;
  font-family: var(--body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: rgba(138,158,140,0.05);
}
.btn {
  border: 0;
  border-radius: 40px;
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
}
.btn-muted {
  background: white;
  border: 1.5px solid var(--light-border);
  color: var(--soft-gray);
}
.btn-full { width: 100%; padding: 14px; border-radius: 14px; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(138,158,140,0.12);
  border: 1px solid rgba(138,158,140,0.25);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 24px;
  letter-spacing: 0;
}
.hero-title em, .section-title em, .cta-title em {
  font-style: italic;
  color: var(--sage-dark);
}
.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--soft-gray);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-visual {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg-card {
  background: var(--card-bg);
  border: 1px solid var(--light-border);
  border-radius: 18px;
  padding: 22px 26px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.msg-card:hover { transform: translateY(-2px); }
.msg-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}
.av-sage, .recipient-item .avatar { background: rgba(138,158,140,0.2); color: var(--sage-dark); }
.av-terra { background: rgba(196,133,106,0.15); color: var(--terracotta); }
.av-gold { background: rgba(201,169,110,0.15); color: var(--muted-gold); }
.msg-card-meta { flex: 1; }
.msg-card-name { font-size: 14px; font-weight: 500; color: var(--charcoal); }
.msg-card-rel { font-size: 12px; color: var(--soft-gray); margin-top: 2px; }
.msg-type-badge, .tag, .db-badge-sm {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-video, .tag.video { background: rgba(196,133,106,0.1); color: var(--terracotta); }
.badge-audio, .tag.audio { background: rgba(138,158,140,0.15); color: var(--sage-dark); }
.badge-text, .tag.letter { background: rgba(201,169,110,0.12); color: #9A7A40; }
.msg-card-text {
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  color: var(--soft-gray);
  line-height: 1.6;
}
.msg-card-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.msg-date, .lock-icon { font-size: 11px; color: #AAA; }
.status-card {
  background: linear-gradient(135deg, rgba(92,122,94,0.08), rgba(138,158,140,0.04));
  border: 1px solid rgba(138,158,140,0.2);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-dot, .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(138,158,140,0.2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(138,158,140,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(138,158,140,0.05); }
}
.status-text { font-size: 13px; color: var(--soft-gray); line-height: 1.4; }
.status-text strong { color: var(--sage-dark); font-weight: 500; }

.how-section, .features-section {
  background: var(--warm-white);
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
  padding: 100px 60px;
}
.timeline-section { padding: 100px 60px 56px; }
.dashboard-section { padding: 32px 60px 100px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 60px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
}
.step {
  padding: 36px 32px;
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--light-border);
  transition: background 0.3s;
}
.step:hover { background: rgba(138,158,140,0.04); }
.step-number {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 300;
  color: rgba(138,158,140,0.2);
  line-height: 1;
  margin-bottom: 20px;
}
.step-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(138,158,140,0.12);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}
.step-title { font-size: 15px; font-weight: 500; margin-bottom: 10px; color: var(--charcoal); }
.step-desc { font-size: 13px; line-height: 1.7; color: var(--soft-gray); font-weight: 300; }

.timeline-heading {
  max-width: 600px;
  margin: 0 auto 60px;
}
.preview-heading {
  max-width: 600px;
  margin: 0 auto 28px;
}
.preview-heading { text-align: center; }
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage-light), var(--terracotta), transparent);
}
.tl-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}
.tl-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--light-border);
  background: var(--cream);
  position: relative;
  z-index: 1;
  color: var(--soft-gray);
}
.tl-dot.active { background: rgba(138,158,140,0.1); border-color: var(--sage); color: var(--sage-dark); }
.tl-dot.warning { background: rgba(201,169,110,0.1); border-color: var(--muted-gold); color: #9A7A40; }
.tl-dot.alert, .tl-dot.delivery { background: rgba(196,133,106,0.1); border-color: var(--terracotta); color: var(--terracotta); }
.tl-content { flex: 1; padding-top: 10px; }
.tl-month { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage); margin-bottom: 6px; }
.tl-title { font-size: 16px; font-weight: 500; color: var(--charcoal); margin-bottom: 6px; }
.tl-desc { font-size: 13px; line-height: 1.7; color: var(--soft-gray); font-weight: 300; }

.dashboard-preview {
  max-width: 1000px;
  margin: 34px auto 0;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--light-border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.08);
  overflow: hidden;
}
.db-topbar {
  background: var(--charcoal);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.db-dot { width: 12px; height: 12px; border-radius: 50%; }
.db-dot.red { background:#FF5F57; }
.db-dot.amber { background:#FFBD2E; }
.db-dot.green { background:#28CA41; }
.db-url {
  margin-left: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 16px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  flex: 1;
  max-width: 300px;
}
.db-body { display: flex; min-height: 440px; }
.db-sidebar {
  width: 220px;
  background: #FDFAF6;
  border-right: 1px solid var(--light-border);
  padding: 24px 0;
  flex-shrink: 0;
}
.db-sidebar-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BBB;
  padding: 0 20px;
  margin-bottom: 12px;
}
.db-nav-item {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--soft-gray);
  cursor: pointer;
}
.db-nav-item.active {
  background: rgba(92,122,94,0.08);
  color: var(--sage-dark);
  border-right: 2px solid var(--sage-dark);
  font-weight: 500;
}
.db-main { flex: 1; padding: 30px; overflow: hidden; }
.db-greeting {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.db-sub { font-size: 12px; color: var(--soft-gray); margin-bottom: 24px; }
.db-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.db-stat {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--light-border);
}
.db-stat-label { font-size: 11px; color: #AAA; margin-bottom: 6px; }
.db-stat-value { font-family: var(--display); font-size: 28px; font-weight: 400; color: var(--charcoal); }
.db-stat-unit { font-size: 11px; color: var(--sage); margin-top: 2px; }
.db-rec-title { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #BBB; margin-bottom: 14px; }
.db-rec-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-border);
}
.db-rec-row .avatar { width: 32px; height: 32px; font-size: 13px; }
.db-rec-name { flex: 1; font-size: 13px; font-weight: 500; color: var(--charcoal); }
.db-rec-rel { font-size: 11px; color: #AAA; }
.db-rec-badges { margin-left: auto; display: flex; gap: 4px; }
.db-badge-sm { font-size: 10px; padding: 2px 8px; }

.features-section { border-bottom: 0; }
.features-heading { max-width: 520px; margin-bottom: 60px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feat-card {
  background: white;
  border: 1px solid var(--light-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border-color: var(--sage-light);
}
.feat-icon {
  width: 54px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}
.fi-sage { background: rgba(138,158,140,0.12); color: var(--sage-dark); }
.fi-terra { background: rgba(196,133,106,0.1); color: var(--terracotta); }
.fi-gold { background: rgba(201,169,110,0.1); color: #9A7A40; }
.fi-blue { background: rgba(100,130,170,0.1); color: #4D6E91; }
.feat-title { font-size: 16px; font-weight: 500; margin-bottom: 10px; color: var(--charcoal); }
.feat-desc { font-size: 13px; line-height: 1.75; color: var(--soft-gray); font-weight: 300; }

.cta-section {
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(138,158,140,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 20px;
  line-height: 1.15;
}
.cta-sub {
  font-size: 16px;
  color: var(--soft-gray);
  font-weight: 300;
  margin: 0 auto 40px;
  max-width: 480px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 60px;
}
.footer-logo {
  font-family: var(--display);
  font-size: 22px;
  color: white;
  font-weight: 400;
  margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.app-view { display: none; }
.app-view.active { display: block; }
.landing-view.hidden { display: none; }
.app-view {
  min-height: 100vh;
  padding: 88px 60px 60px;
  background:
    linear-gradient(180deg, rgba(253,250,246,0.86), rgba(247,243,238,0.96)),
    radial-gradient(ellipse 60% 50% at 82% 8%, rgba(138,158,140,0.12), transparent 62%);
}
.app-site-nav {
  background: rgba(247,243,238,0.9);
}
.app-home-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-frame {
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 148px);
  background: transparent;
}
.dash-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 148px);
  gap: 34px;
}
.dash-sidebar {
  background: transparent;
  border-right: 0;
  padding: 8px 0;
}
.dash-menu-label {
  padding: 0 24px 16px;
  color: #b7b3ad;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-menu-item {
  width: 100%;
  height: 52px;
  border: 0;
  border-right: 2px solid transparent;
  background: transparent;
  color: var(--soft-gray);
  display: flex;
  align-items: center;
  padding: 0 24px;
  text-align: left;
  font-size: 16px;
}
.dash-menu-item:hover {
  color: var(--charcoal);
  background: rgba(138,158,140,0.05);
}
.dash-menu-item.active {
  background: rgba(138,158,140,0.09);
  border-right-color: var(--sage-dark);
  color: var(--sage-dark);
}
.dash-account {
  margin: 28px 24px 0;
  padding-top: 18px;
  border-top: 1px solid var(--light-border);
  color: #aaa39b;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dash-main {
  padding: 0;
  background: transparent;
}
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.dash-head h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 12px;
}
.dash-head p { color: var(--soft-gray); font-weight: 300; }
.pinned-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(138,158,140,0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(138,158,140,0.12), rgba(201,169,110,0.08)),
    rgba(253,250,246,0.82);
}
.pinned-plan-label {
  display: block;
  margin-bottom: 5px;
  color: var(--sage-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pinned-plan h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 300;
  line-height: 1.05;
}
.pinned-plan p {
  color: var(--soft-gray);
  font-size: 13px;
  margin-top: 5px;
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.overview-stat {
  min-height: 156px;
  border: 1px solid #ddd4c9;
  border-radius: 16px;
  background: #f8f4ef;
  padding: 24px 20px 20px;
}
.overview-stat span {
  display: block;
  color: #aaa6a1;
  font-size: 14px;
  margin-bottom: 24px;
}
.overview-stat strong {
  display: block;
  font-family: var(--body);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.overview-stat em {
  display: block;
  margin-top: 10px;
  color: #7e9b82;
  font-size: 14px;
  font-style: normal;
}
.overview-list-card {
  margin-bottom: 0;
  border: 1px solid var(--light-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.overview-card-inline {
  margin-top: 20px;
}
.overview-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-border);
  background: #fbf8f3;
}
.overview-list-head h2 {
  color: #b4b1ad;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.overview-list-head span {
  color: var(--sage-dark);
  font-size: 13px;
}
.list-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-mini {
  border: 1px solid rgba(138,158,140,0.28);
  border-radius: 999px;
  background: rgba(138,158,140,0.1);
  color: var(--sage-dark);
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1;
}
.btn-mini:hover {
  background: rgba(138,158,140,0.16);
}
.recipient-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--light-border);
  background: rgba(253,250,246,0.74);
}
.recipient-action-row .btn-ghost:disabled {
  opacity: 0.5;
  cursor: default;
}
.recipient-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--soft-gray);
}
.recipient-empty strong {
  color: var(--charcoal);
  font-size: 15px;
}
.recipient-empty p {
  max-width: 320px;
  font-size: 13px;
}
.dashboard-view {
  display: none;
  min-height: 360px;
  animation: fadeUp 0.28s ease both;
}
.dashboard-view.active {
  display: block;
}
.sub-window-title {
  margin-bottom: 16px;
}
.sub-window-title h2 {
  font-family: var(--display);
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.05;
  font-weight: 300;
  margin-bottom: 5px;
}
.sub-window-title p {
  color: var(--soft-gray);
  font-size: 13px;
}
.sub-window-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.checkin-window {
  min-height: 156px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--light-border);
  border-radius: 14px;
  background: #f8f4ef;
  padding: 22px;
}
.checkin-window h3 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 300;
}
.checkin-window p {
  color: var(--soft-gray);
  font-size: 13px;
}
.checkin-timestamp {
  margin-top: 8px;
}
.checkin-timestamp strong {
  color: var(--sage-dark);
  font-weight: 500;
}
.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(253,250,246,0.82));
  border: 1px solid rgba(224,217,208,0.95);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(44,44,44,0.05);
}
.plan-copy {
  padding: 10px;
}
.plan-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}
.plan-card h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 8px;
}
.plan-card p {
  color: var(--soft-gray);
  font-weight: 300;
  max-width: 620px;
}
.plan-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.settings-card {
  border: 1px solid rgba(224,217,208,0.9);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 30px rgba(44,44,44,0.035);
}
.preference-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 16px;
}
.preference-card strong {
  display: block;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
}
.preference-card span {
  display: block;
  color: var(--soft-gray);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 3px;
}
.preference-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
}
.preference-row label {
  color: var(--soft-gray);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.preference-row select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(224,217,208,0.95);
  border-radius: 999px;
  padding: 11px 14px;
  background: white;
  color: var(--charcoal);
  box-shadow: 0 7px 20px rgba(44,44,44,0.035);
}
.plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.plan-option {
  min-height: 122px;
  border: 1px solid rgba(224,217,208,0.95);
  background: rgba(255,255,255,0.72);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  color: var(--charcoal);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.plan-option::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(138,158,140,0.45);
  border-radius: 50%;
}
.plan-option.active {
  border-color: var(--sage);
  background: linear-gradient(180deg, rgba(138,158,140,0.14), rgba(255,255,255,0.8));
  box-shadow: 0 12px 32px rgba(92,122,94,0.12);
}
.plan-option.active::after {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 4px rgba(138,158,140,0.16);
}
.plan-option strong,
.plan-option span,
.plan-option em {
  display: block;
}
.plan-option strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  padding-right: 20px;
}
.plan-option span {
  color: var(--soft-gray);
  font-size: 12px;
  line-height: 1.45;
  margin: 7px 0 12px;
}
.plan-option em {
  color: var(--sage-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
}
.plan-includes span {
  border: 1px solid rgba(138,158,140,0.24);
  background: rgba(138,158,140,0.08);
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
}
.plan-price {
  padding: 24px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(138,158,140,0.18), transparent 70%),
    #fff;
  border: 1px solid rgba(224,217,208,0.95);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.price-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa6a1;
  margin-bottom: 8px;
}
.price-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 4px;
}
.plan-price strong {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}
.price-term {
  color: var(--soft-gray);
  font-size: 13px;
  margin: 2px 0 18px;
}
.plan-card .btn-primary:disabled {
  background: var(--sage);
  opacity: 0.72;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.message-panel {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: 14px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-border);
  background: #fbf8f3;
}
.panel-head h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}
.panel-head p { color: var(--soft-gray); font-size: 12px; }
.recipient-list { padding: 0; }
.recipient-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  text-align: left;
  color: var(--charcoal);
  border-bottom: 1px solid var(--light-border);
}
.recipient-item:last-child { border-bottom: 0; }
.recipient-item:hover, .recipient-item.active { background: rgba(138,158,140,0.04); }
.recipient-item:nth-child(3n + 1) .avatar { background: rgba(138,158,140,0.14); color: var(--sage-dark); }
.recipient-item:nth-child(3n + 2) .avatar { background: rgba(196,133,106,0.11); color: var(--terracotta); }
.recipient-item:nth-child(3n + 3) .avatar { background: rgba(201,169,110,0.12); color: #9A7A40; }
.recipient-item strong { display: block; font-size: 14px; font-weight: 500; }
.recipient-item small { display: block; font-size: 12px; color: #aaa6a1; }
.recipient-badges {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.recipient-delete {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(196,133,106,0.24);
  background: rgba(196,133,106,0.08);
  color: var(--terracotta);
  border-radius: 50%;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.recipient-write {
  border: 1px solid rgba(138,158,140,0.28);
  background: rgba(138,158,140,0.08);
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1;
  transition: all 0.2s;
}
.recipient-write:hover {
  background: rgba(138,158,140,0.16);
  border-color: rgba(138,158,140,0.42);
}
.recipient-item:hover .recipient-delete,
.recipient-item.active .recipient-delete {
  opacity: 1;
}
.recipient-delete:hover {
  background: rgba(196,133,106,0.16);
  border-color: rgba(196,133,106,0.4);
}
.message-recipient-picker {
  display: grid;
  grid-template-columns: auto minmax(240px, 380px);
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--light-border);
  background: linear-gradient(180deg, rgba(253,250,246,0.92), rgba(255,255,255,0.72));
}
.message-recipient-picker label {
  color: #aaa6a1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.message-recipient-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(224,217,208,0.95);
  border-radius: 999px;
  background: white;
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 14px;
  padding: 0 42px 0 16px;
  box-shadow: 0 8px 24px rgba(44,44,44,0.04);
}
.message-body { padding: 18px; }
.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--soft-gray);
}
.empty-state.compact {
  min-height: 160px;
}
.empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--light-border);
  font-family: var(--display);
  color: var(--sage-dark);
  background: rgba(138,158,140,0.08);
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--light-border);
  border-radius: 999px;
  background: #fbf8f3;
}
.tab {
  min-height: 42px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  color: var(--soft-gray);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.tab.active {
  background: #fff;
  color: var(--charcoal);
  box-shadow: 0 6px 18px rgba(44,44,44,0.06);
}
.tab-main {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
}
.tab-badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.tab-badge.free {
  background: rgba(138,158,140,0.16);
  color: var(--sage-dark);
}
.tab-badge.paid {
  background: rgba(201,169,110,0.14);
  color: #9A7A40;
}
.tab.locked {
  background: rgba(255,255,255,0.48);
}
.tab.locked .tab-main {
  color: #8F8982;
}
.tab.locked:not(.active)::after {
  content: "Locked";
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 10px;
  color: var(--terracotta);
  background: rgba(196,133,106,0.1);
  border-radius: 999px;
  padding: 3px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.recording-guide {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(138,158,140,0.18);
  border-radius: 12px;
  background: rgba(138,158,140,0.06);
}
.guide-copy h3 {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2px;
}
.guide-copy p {
  color: var(--soft-gray);
  font-size: 12px;
}
.guide-prompts {
  display: flex;
}
.guide-prompts button {
  border: 1px solid rgba(138,158,140,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--sage-dark);
  padding: 7px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.guide-start {
  padding: 8px 14px;
  font-size: 12px;
}
textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1.5px solid var(--light-border);
  border-radius: 12px;
  background: white;
  padding: 13px;
  color: var(--charcoal);
  outline: none;
}
textarea:focus, input:focus, select:focus { border-color: var(--sage); outline: none; }
.media-box {
  border: 1.5px dashed rgba(138,158,140,0.45);
  border-radius: 12px;
  background: rgba(138,158,140,0.06);
  padding: 14px;
  color: var(--soft-gray);
  margin-bottom: 16px;
}
.media-box h3 { font-size: 15px; color: var(--charcoal); margin-bottom: 6px; }
.recorder-status {
  margin: 12px 0;
  border: 1px solid rgba(138,158,140,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  color: var(--sage-dark);
  padding: 10px 12px;
  font-size: 13px;
}
.recorder-status.is-recording {
  border-color: rgba(196,133,106,0.35);
  background: rgba(196,133,106,0.08);
  color: var(--terracotta);
}
.recorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.recorder-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.danger-soft {
  color: var(--terracotta);
  border-color: rgba(196,133,106,0.32);
}
.upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-border);
  border-radius: 999px;
  background: white;
  color: var(--sage-dark);
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
}
.upload-action input {
  display: none;
}
.media-preview {
  min-height: 78px;
  display: grid;
  gap: 8px;
  place-items: center;
  border: 1px solid rgba(224,217,208,0.9);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  padding: 12px;
}
.media-preview audio,
.media-preview video {
  width: 100%;
  max-height: 260px;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #111;
}
.media-preview small,
.saved-media-note span,
.empty-media-preview {
  color: var(--soft-gray);
  font-size: 12px;
}
.media-items-list {
  width: 100%;
  display: grid;
  gap: 10px;
}
.media-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(224,217,208,0.9);
  border-radius: 12px;
  background: rgba(253,250,246,0.72);
}
.media-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.media-item-head strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
}
.recording-live {
  width: 100%;
  min-height: 130px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--terracotta);
}
.recording-live strong {
  color: var(--charcoal);
  font-weight: 500;
}
.recording-live small {
  color: var(--soft-gray);
}
.recording-self-preview {
  width: min(100%, 320px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: contain;
  border: 1px solid rgba(196,133,106,0.26);
  background: #111;
  box-shadow: 0 10px 28px rgba(44,44,44,0.12);
}
.recording-timer {
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.recording-timer.is-warning {
  color: var(--terracotta);
}
.recording-orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(196,133,106,0.1);
  border: 1px solid rgba(196,133,106,0.22);
  position: relative;
}
.recording-orb::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 6px rgba(196,133,106,0.14);
}
.recording-orb span {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(196,133,106,0.32);
  border-radius: 50%;
  animation: recordPulse 1.8s infinite ease-out;
}
.recording-orb span:nth-child(2) { animation-delay: 0.35s; }
.recording-orb span:nth-child(3) { animation-delay: 0.7s; }
@keyframes recordPulse {
  from { transform: scale(0.72); opacity: 0.75; }
  to { transform: scale(1.45); opacity: 0; }
}
.saved-media-note {
  display: grid;
  gap: 2px;
  text-align: center;
}
.saved-media-note strong {
  color: var(--charcoal);
  font-weight: 500;
}
.locked-box {
  border: 1.5px solid rgba(196,133,106,0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(196,133,106,0.09), rgba(201,169,110,0.08));
  padding: 18px;
}
.locked-box h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 8px;
}
.locked-box p {
  color: var(--soft-gray);
  max-width: 620px;
  margin-bottom: 14px;
}
.save-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.hidden { display: none !important; }

.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44,44,44,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--cream);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  border: 1px solid var(--light-border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.14);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--soft-gray);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.06); }
.modal-title {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.modal-sub { font-size: 13px; color: var(--soft-gray); margin-bottom: 32px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.form-input, .media-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-border);
  border-radius: 12px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  margin-top: 6px;
}
.form-input::placeholder { color: #C0BAB3; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--soft-gray);
  font-size: 12px;
  line-height: 1.55;
  margin: 2px 0 16px;
}
.consent-check input {
  margin-top: 3px;
  accent-color: var(--sage-dark);
}
.consent-check a {
  color: var(--sage-dark);
  text-decoration: underline;
}
.modal-switch {
  text-align: center;
  font-size: 13px;
  color: var(--soft-gray);
  margin-top: 20px;
}
.payment-modal {
  max-width: 560px;
}
.payment-options {
  display: grid;
  gap: 12px;
}
.payment-option {
  width: 100%;
  border: 1px solid rgba(224,217,208,0.95);
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  color: var(--charcoal);
  padding: 16px 18px;
  text-align: left;
  transition: all 0.2s;
}
.payment-option:hover {
  border-color: var(--sage-light);
  background: rgba(138,158,140,0.08);
  transform: translateY(-1px);
}
.payment-option strong,
.payment-option span {
  display: block;
}
.payment-option strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}
.payment-option span {
  color: var(--soft-gray);
  font-size: 13px;
  margin-top: 2px;
}
.payment-note {
  color: var(--soft-gray);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 16px;
}
.inline-action {
  border: 0;
  background: transparent;
  color: var(--sage-dark);
  text-decoration: none;
  cursor: pointer;
}
.toast {
  position: fixed;
  z-index: 250;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  border-radius: 14px;
  background: var(--charcoal);
  color: white;
  padding: 14px 18px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  font-size: 14px;
}
.toast.show { transform: translateY(0); opacity: 1; }

.legal-shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 120px 28px 80px;
}
.legal-hero {
  max-width: 760px;
  margin-bottom: 28px;
}
.legal-hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 16px;
}
.legal-hero p {
  color: var(--soft-gray);
  font-size: 16px;
  max-width: 700px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.legal-meta span,
.legal-toc a {
  border: 1px solid rgba(138,158,140,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  color: var(--sage-dark);
  padding: 7px 12px;
  font-size: 12px;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.legal-toc a {
  text-decoration: none;
}
.legal-card {
  border: 1px solid var(--light-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 14px 44px rgba(44,44,44,0.045);
  padding: 28px;
  margin-bottom: 18px;
}
.legal-card h2 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 12px;
}
.legal-card h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}
.legal-card p,
.legal-card li {
  color: var(--soft-gray);
  font-size: 14px;
}
.legal-card ul {
  padding-left: 20px;
  margin: 8px 0 0;
}
.legal-card a {
  color: var(--sage-dark);
}

.faq-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 230;
}
.faq-toggle {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(92,122,94,0.22);
  border-radius: 50%;
  background: var(--sage-dark);
  color: white;
  box-shadow: 0 16px 45px rgba(44,44,44,0.18);
  display: grid;
  place-items: center;
  gap: 0;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.faq-toggle:hover {
  transform: translateY(-2px);
  background: var(--sage);
  box-shadow: 0 18px 55px rgba(44,44,44,0.22);
}
.faq-toggle span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.faq-toggle strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  margin-top: -10px;
}
.faq-panel {
  position: absolute;
  right: 0;
  bottom: 90px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 130px));
  display: none;
  grid-template-rows: auto minmax(170px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--light-border);
  border-radius: 24px;
  background: rgba(253,250,246,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(44,44,44,0.18);
}
.faq-chat.open .faq-panel { display: grid; }
.faq-chat.open .faq-toggle { display: none; }
.faq-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--light-border);
  background: linear-gradient(135deg, rgba(138,158,140,0.12), rgba(201,169,110,0.06));
}
.faq-head p {
  font-size: 11px;
  color: var(--sage-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.faq-head h2 {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 300;
}
.faq-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  color: var(--soft-gray);
}
.faq-messages {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-message {
  max-width: 86%;
  border-radius: 18px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.55;
}
.faq-message.bot {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--light-border);
  color: var(--charcoal);
}
.faq-message.user {
  align-self: flex-end;
  background: var(--sage-dark);
  color: white;
}
.faq-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 18px 14px;
}
.faq-suggestions button {
  flex: 0 0 auto;
  border: 1px solid rgba(138,158,140,0.24);
  border-radius: 999px;
  background: white;
  color: var(--sage-dark);
  padding: 8px 12px;
  font-size: 12px;
}
.faq-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--light-border);
  background: white;
}
.faq-form input {
  min-width: 0;
  border: 1px solid var(--light-border);
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
  color: var(--charcoal);
  background: var(--cream);
}
.faq-form input:focus { border-color: var(--sage); }
.faq-form button {
  border: 0;
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  padding: 0 16px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text > * { animation: fadeUp 0.7s ease backwards; }
.hero-eyebrow { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }

@media (max-width: 900px) {
  .site-nav { padding: 16px 24px; }
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: var(--warm-white);
    border: 1px solid var(--light-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-select {
    justify-content: space-between;
    width: 100%;
  }
  .app-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .hero { flex-direction: column; padding: 100px 24px 60px; }
  .hero-visual { flex: none; width: 100%; }
  .how-section, .features-section, .cta-section { padding: 70px 24px; }
  .timeline-section { padding: 70px 24px 40px; }
  .dashboard-section { padding: 26px 24px 70px; }
  .site-footer { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .db-sidebar { display: none; }
  .db-cards { grid-template-columns: repeat(2, 1fr); }
  .app-view {
    padding: 76px 18px 28px;
  }
  .dashboard-frame {
    margin: 0;
  }
  .dash-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dash-sidebar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--light-border);
  }
  .dash-menu-label,
  .dash-account {
    display: none;
  }
  .dash-menu-item {
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
    border-right: 0;
    border-bottom: 2px solid transparent;
  }
  .dash-menu-item.active {
    border-bottom-color: var(--sage-dark);
  }
  .dash-main {
    padding: 0;
  }
  .dash-head, .pinned-plan, .sub-window-title-row { flex-direction: column; align-items: stretch; }
  .plan-card {
    grid-template-columns: 1fr;
  }
  .preference-card {
    grid-template-columns: 1fr;
  }
  .overview-stats {
    grid-template-columns: 1fr;
  }
  .checkin-window {
    grid-template-columns: 12px 1fr;
  }
  .checkin-window .btn-primary {
    grid-column: 2;
    width: fit-content;
  }
  .plan-price {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--light-border);
  }
}

@media (max-width: 620px) {
  .form-row, .db-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(42px, 14vw, 58px); }
  .modal { padding: 34px 24px; }
  .preference-row,
  .plan-options { grid-template-columns: 1fr; }
  .app-view {
    padding: 68px 10px 20px;
  }
  .dash-sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .dash-menu-item {
    justify-content: flex-start;
    padding: 0 16px;
  }
  .recipient-item {
    grid-template-columns: 38px 1fr;
  }
  .recipient-badges,
  .recipient-write,
  .recipient-delete {
    grid-column: 2;
    justify-content: flex-start;
    opacity: 1;
  }
  .recipient-action-row {
    flex-direction: column;
  }
  .recipient-action-row .btn-primary,
  .recipient-action-row .btn-ghost {
    width: 100%;
  }
  .message-recipient-picker {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .checkin-window {
    grid-template-columns: 1fr;
  }
  .checkin-window .status-dot,
  .checkin-window .btn-primary {
    grid-column: auto;
  }
  .tabs { grid-template-columns: 1fr; }
  .recording-guide {
    grid-template-columns: 1fr;
  }
  .guide-prompts button,
  .guide-start {
    width: 100%;
  }
  .tab { min-height: 78px; }
  .db-body { min-height: auto; }
  .db-main { padding: 22px; }
  .db-rec-row { align-items: flex-start; }
  .db-rec-badges { flex-direction: column; }
  .save-row { flex-direction: column; }
  .save-row .btn-primary, .save-row .btn-ghost, .save-row .btn { width: 100%; }
  .faq-chat {
    right: 16px;
    bottom: 16px;
  }
  .faq-toggle {
    width: 66px;
    height: 66px;
  }
  .faq-panel {
    right: -2px;
    bottom: 82px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 110px);
  }
}
