:root {
  color-scheme: light;
  --brand: #82c3f8;
  --brand-strong: #5da9e8;
  --brand-soft: #eaf6ff;
  --brand-pale: #f5fafe;
  --ink: #272727;
  --muted: #797979;
  --subtle: #848484;
  --line: #e3e7ea;
  --line-strong: #d6dde2;
  --surface: #ffffff;
  --canvas: #f6f9fe;
  --success: #168a5b;
  --success-soft: #eaf8f2;
  --warning: #9a6812;
  --warning-soft: #fff8e8;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 55px rgba(34, 74, 130, 0.10);
  --shadow-soft: 0 8px 24px rgba(34, 74, 130, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --sidebar: 300px;
}

html.dark {
  color-scheme: dark;
  --ink: #f4f8ff;
  --muted: #c0cce0;
  --subtle: #92a1ba;
  --line: #2b3c59;
  --line-strong: #3a4c69;
  --surface: #16243d;
  --canvas: #0d1729;
  --brand-soft: #183862;
  --brand-pale: #132a49;
  --success-soft: #123c31;
  --warning-soft: #3f3219;
  --danger-soft: #47231f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

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

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

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

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-140%);
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(130, 195, 248, 0.52);
  outline-offset: 3px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 420, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.logo-crop {
  width: 190px;
  height: 67px;
  overflow: visible;
  flex: 0 0 auto;
}

.logo-crop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.logo-crop.logo-small { width: 158px; height: 56px; }

.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 229, 242, 0.86);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(18px);
}

.public-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-links { display: flex; align-items: center; gap: 28px; }

.public-links a:not(.button) {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.94rem;
}

.public-links a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.mobile-menu-button { display: none; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 20px;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.54; transform: none; }
.button-primary { background: var(--brand); color: #272727; box-shadow: 0 10px 24px rgba(130, 195, 248, 0.24); }
.button-primary:hover:not(:disabled) { background: #6db7f3; box-shadow: 0 12px 28px rgba(130, 195, 248, 0.32); }
.button-secondary { background: var(--surface); color: var(--brand-strong); border-color: var(--line-strong); }
.button-secondary:hover:not(:disabled) { background: var(--brand-pale); border-color: var(--brand); }
.button-quiet { color: var(--muted); border-color: transparent; }
.button-quiet:hover:not(:disabled) { background: var(--brand-pale); color: var(--brand-strong); }
.button-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 24%, transparent); }
.button-large { min-height: 56px; padding: 14px 26px; font-size: 1.04rem; }
.button-full { width: 100%; }

.icon-button {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover { color: var(--brand); border-color: var(--brand); }

.eyebrow, .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.pill-success { background: var(--success-soft); color: var(--success); }
.pill-warning { background: var(--warning-soft); color: var(--warning); }
.pill-neutral { background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); }

.landing-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.hero-copy h1 {
  max-width: 700px;
  margin: 22px 0 20px;
  font-size: clamp(3.3rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.062em;
  font-weight: 850;
}

.hero-copy h1 span { color: var(--brand); }

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.72;
}

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

.hero-note { margin-top: 18px; color: var(--subtle); font-size: 0.91rem; }

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 14px solid var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #dcecff;
}

.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(16, 33, 63, 0.08);
  pointer-events: none;
}

.trust-row {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-card, .feature-card, .price-card, .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.trust-card { padding: 26px; }
.trust-card strong { display: block; margin: 4px 0 7px; font-size: 1.05rem; }
.trust-card p { margin: 0; color: var(--muted); }
.trust-number { color: var(--brand); font-size: 1.35rem; font-weight: 850; }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-tint { width: 100%; background: color-mix(in srgb, var(--brand-pale) 62%, var(--canvas)); }
.section-heading { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-heading.align-left { margin-left: 0; text-align: left; }
.section-heading h2 { margin: 12px 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; letter-spacing: -0.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px; }
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 28px;
}
.feature-card h3 { margin: 22px 0 8px; font-size: 1.18rem; }
.feature-card p { margin: 0; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; }
.price-card { position: relative; padding: 34px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 18px 48px rgba(130, 195, 248, 0.20); }
.price-badge { position: absolute; top: -14px; left: 28px; }
.price-card h3 { margin: 6px 0; font-size: 1.25rem; }
.price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 3.5rem; line-height: 1; letter-spacing: -0.05em; }
.price span { color: var(--muted); }
.old-price { margin-top: 7px; color: var(--subtle); }
.old-price s { margin-right: 6px; }
.price-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 10px; color: var(--muted); }
.price-list .material-symbols-outlined { color: var(--success); }
.offer-note { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 0.92rem; }

.public-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 0.92rem; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.02fr 0.98fr; background: var(--surface); }
.auth-visual { position: relative; overflow: hidden; min-height: 100vh; background: linear-gradient(150deg, #82c3f8, #dff2ff); color: #272727; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 28% 24%, rgba(255,255,255,.34), transparent 34%), linear-gradient(to top, rgba(130,195,248,.30), transparent 60%); }
.auth-visual-content { position: relative; z-index: 1; min-height: 100%; padding: 54px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual-copy { max-width: 560px; padding-bottom: 30px; }
.auth-visual-copy h1 { margin: 0 0 20px; font-size: clamp(2.7rem, 4.8vw, 5.3rem); line-height: 1; letter-spacing: -0.052em; }
.auth-visual-copy p { margin: 0; max-width: 520px; font-size: 1.13rem; color: #797979; }
.auth-assurance { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; color: #272727; }
.auth-pane { min-height: 100vh; padding: 42px 7vw; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.auth-box { width: min(100%, 470px); }
.auth-tabs { margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border: 1px solid var(--line); background: var(--canvas); border-radius: 14px; }
.auth-tab { min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.auth-tab[aria-selected="true"] { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-soft); }
.auth-panel[hidden] { display: none; }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.field label, .field-label { font-weight: 750; font-size: 0.91rem; }
.required { color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.textarea { min-height: 122px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--brand) 48%, var(--line)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(130,195,248,.20); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 18px; color: var(--danger); font-size: 0.82rem; }
.field-help { color: var(--muted); font-size: 0.84rem; }
.input-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.check-row { margin: 18px 0; display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-size: 0.89rem; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.sidebar-nav { margin-top: 26px; display: grid; gap: 5px; }
.sidebar-link { min-height: 50px; display: flex; align-items: center; gap: 13px; border-radius: 11px; padding: 10px 13px; color: var(--muted); font-weight: 650; }
.sidebar-link:hover { background: var(--brand-pale); color: var(--brand-strong); }
.sidebar-link.active { background: var(--brand-soft); color: var(--brand-strong); }
.sidebar-spacer { flex: 1; }
.sidebar-assurance { padding: 18px; border-radius: 14px; background: var(--brand-pale); border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); }
.sidebar-assurance strong { display: block; margin-bottom: 5px; }
.sidebar-assurance p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.sidebar-user { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color:#272727; font-weight: 800; flex: 0 0 auto; overflow: hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { color: var(--muted); font-size: 0.78rem; }
.app-main { min-width: 0; padding-bottom: 90px; }
.app-topbar { min-height: 74px; padding: 12px 30px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 40; }
.mobile-brand { display: none; }
.app-content { width: min(1240px, calc(100% - 50px)); margin: 0 auto; padding: 34px 0 60px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.04em; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-card { padding: 24px; }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card .feature-icon { width: 46px; height: 46px; }
.stat-number { margin: 22px 0 5px; font-size: 2.25rem; line-height: 1; font-weight: 850; }
.stat-label { color: var(--muted); }
.dashboard-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 20px; }
.card { padding: 24px; }
.card-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.card-header h2, .card-header h3 { margin:0; }
.card-header p { margin:4px 0 0; color:var(--muted); }
.quick-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.quick-link { min-height:112px; border:1px solid var(--line); border-radius:14px; padding:18px; display:flex; flex-direction:column; justify-content:space-between; background:var(--canvas); }
.quick-link:hover { border-color:var(--brand); background:var(--brand-pale); }
.quick-link strong { margin-top:18px; }
.activity-list, .item-list { list-style:none; margin:0; padding:0; display:grid; }
.activity-item, .item-row { padding:15px 0; border-bottom:1px solid var(--line); display:flex; gap:12px; align-items:flex-start; }
.activity-item:last-child, .item-row:last-child { border-bottom:0; }
.activity-icon { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:var(--brand-soft); color:var(--brand); flex:0 0 auto; }
.activity-text { min-width:0; flex:1; }
.activity-text strong, .activity-text span { display:block; }
.activity-text span { color:var(--muted); font-size:.85rem; }
.empty-state { padding:40px 20px; text-align:center; color:var(--muted); }
.empty-state .material-symbols-outlined { font-size:42px; color:var(--brand); }

.wizard-layout { min-height: 100vh; display: grid; grid-template-columns: 360px minmax(0,1fr); }
.wizard-sidebar { position:sticky; top:0; height:100vh; padding:28px; background:var(--surface); border-right:1px solid var(--line); display:flex; flex-direction:column; overflow:auto; }
.wizard-intro h2 { margin:20px 0 5px; font-size:1.3rem; }
.wizard-intro p { margin:0; color:var(--muted); }
.step-list { margin:26px 0; display:grid; gap:7px; }
.step-link { width:100%; min-height:76px; display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; align-items:center; padding:11px; border:1px solid transparent; border-radius:13px; background:transparent; text-align:left; cursor:pointer; }
.step-link:hover:not(:disabled) { background:var(--brand-pale); }
.step-link.active { background:var(--brand-soft); border-color:color-mix(in srgb,var(--brand) 42%,var(--line)); }
.step-link:disabled { cursor:not-allowed; opacity:.68; }
.step-circle { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--surface); border:1px solid var(--line); color:var(--muted); font-weight:800; }
.step-link.active .step-circle { background:var(--brand); color:#fff; border-color:var(--brand); }
.step-link.complete .step-circle { background:var(--success-soft); color:var(--success); border-color:color-mix(in srgb,var(--success) 30%,var(--line)); }
.step-copy strong, .step-copy span { display:block; }
.step-copy strong { font-size:.9rem; }
.step-copy span { color:var(--muted); font-size:.75rem; margin-top:2px; }
.wizard-main { min-width:0; padding:28px; }
.wizard-card { width:min(1180px,100%); margin:0 auto; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow); overflow:hidden; }
.wizard-header { min-height:180px; padding:36px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); background:linear-gradient(120deg,var(--surface),var(--brand-pale)); }
.wizard-header h1 { margin:13px 0 8px; font-size:clamp(2rem,4vw,3.2rem); line-height:1.08; letter-spacing:-.04em; }
.wizard-header p { margin:0; color:var(--muted); max-width:730px; font-size:1.03rem; }
.wizard-illustration { width:180px; height:130px; border-radius:30px 70px 30px 60px; background:linear-gradient(145deg,#eaf6ff,#82c3f8); position:relative; flex:0 0 auto; opacity:.9; }
.wizard-illustration::before { content:""; position:absolute; width:78px; height:92px; left:52px; top:16px; border-radius:12px; background:rgba(255,255,255,.82); box-shadow:0 10px 30px rgba(130,195,248,.20); }
.wizard-illustration::after { content:"favorite"; font-family:"Material Symbols Outlined"; position:absolute; left:73px; top:51px; color:var(--brand); font-size:38px; }
.wizard-body { padding:30px 36px; }
.wizard-panel[hidden] { display:none; }
.section-card { border:1px solid var(--line); border-radius:14px; padding:24px; }
.section-card + .section-card { margin-top:18px; }
.section-card h2, .section-card h3 { margin:0 0 6px; }
.section-card > p { margin:0 0 20px; color:var(--muted); }
.info-banner { margin-top:18px; padding:16px 18px; border-radius:12px; background:var(--brand-pale); color:var(--muted); display:flex; gap:12px; align-items:flex-start; }
.info-banner strong { color:var(--brand-strong); }
.warning-banner { background:var(--warning-soft); }
.warning-banner strong, .warning-banner .material-symbols-outlined { color:var(--warning); }
.success-banner { background:var(--success-soft); }
.success-banner strong, .success-banner .material-symbols-outlined { color:var(--success); }
.option-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.option-card { min-height:152px; border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:20px; text-align:left; cursor:pointer; transition:170ms ease; }
.option-card:hover { border-color:var(--brand); transform:translateY(-1px); }
.option-card.selected { border:2px solid var(--brand); background:var(--brand-pale); box-shadow:0 8px 22px rgba(130,195,248,.18); }
.option-card .feature-icon { margin-bottom:17px; }
.option-card strong, .option-card span { display:block; }
.option-card span { margin-top:5px; color:var(--muted); font-size:.88rem; }
.upload-zone { position:relative; min-height:190px; border:2px dashed color-mix(in srgb,var(--brand) 55%,var(--line)); border-radius:14px; display:grid; place-items:center; text-align:center; padding:28px; background:var(--brand-pale); }
.upload-zone.dragging { border-color:var(--brand); background:var(--brand-soft); }
.upload-zone input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.upload-zone .material-symbols-outlined { font-size:44px; color:var(--brand); }
.file-chip { margin-top:14px; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--surface); }
.file-chip[hidden] { display:none; }
.file-chip .file-meta { flex:1; min-width:0; }
.file-chip strong, .file-chip span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-chip span { color:var(--muted); font-size:.82rem; }
.recorder { border:1px solid var(--line); border-radius:14px; padding:20px; background:var(--canvas); }
.recorder[hidden] { display:none; }
.recorder-status { display:flex; align-items:center; gap:10px; color:var(--muted); margin-bottom:15px; }
.record-dot { width:12px; height:12px; border-radius:50%; background:var(--subtle); }
.record-dot.live { background:#e53935; animation:pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity:.38; transform:scale(.82); } }
.media-preview { width:100%; max-height:360px; border-radius:12px; background:#081120; margin-top:16px; }
.review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.review-item { border:1px solid var(--line); border-radius:12px; padding:17px; }
.review-item span, .review-item strong { display:block; }
.review-item span { color:var(--muted); font-size:.82rem; margin-bottom:4px; }
.review-item.full { grid-column:1/-1; }
.wizard-footer { padding:20px 36px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--canvas); }
.wizard-footer-group { display:flex; gap:10px; }

.data-layout { display:grid; grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr); gap:20px; align-items:start; }
.sticky-card { position:sticky; top:98px; }
.list-card { min-height:420px; }
.recipient-card, .message-card { border:1px solid var(--line); border-radius:13px; padding:17px; display:flex; gap:14px; align-items:flex-start; }
.recipient-card + .recipient-card, .message-card + .message-card { margin-top:11px; }
.item-content { min-width:0; flex:1; }
.item-content h3 { margin:0 0 3px; }
.item-content p { margin:0; color:var(--muted); overflow-wrap:anywhere; }
.item-content .meta-row { display:flex; flex-wrap:wrap; gap:9px; margin-top:10px; }
.item-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }

.profile-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); gap:20px; }
.preview-card { position:sticky; top:98px; overflow:hidden; }
.legacy-preview { min-height:590px; padding:38px 28px; text-align:center; background:linear-gradient(145deg,#f8fcff,#eaf6ff); color:#272727; border-radius:14px; border:1px solid #d6eafa; }
.legacy-preview h2 { margin:22px 0 3px; font-family:Georgia,serif; font-size:2.2rem; letter-spacing:.02em; }
.legacy-preview .legacy-label { color:var(--brand); font-family:Georgia,serif; font-weight:700; letter-spacing:.08em; }
.legacy-preview blockquote { margin:28px 0; padding:18px; border:1px solid #c7d9ee; background:rgba(255,255,255,.62); border-radius:11px; font-family:Georgia,serif; }
.legacy-preview .preview-letter { text-align:left; line-height:1.62; font-family:Georgia,serif; }
.legacy-preview.template-classic { background:#fbf7ef; border-color:#d9ccb4; color:#382f26; }
.legacy-preview.template-classic .legacy-label { color:#745f45; }
.legacy-preview.template-minimal { background:#fff; border-color:#e1e5eb; color:#202938; }
.legacy-preview.template-minimal h2, .legacy-preview.template-minimal blockquote, .legacy-preview.template-minimal .preview-letter { font-family:Inter,ui-sans-serif,sans-serif; }
.template-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; }
.template-button { min-height:92px; border:1px solid var(--line); border-radius:12px; background:var(--surface); cursor:pointer; padding:12px; }
.template-button.selected { border:2px solid var(--brand); background:var(--brand-pale); }

.policy-page { width:min(900px,calc(100% - 40px)); margin:0 auto; padding:70px 0 100px; }
.policy-page h1 { font-size:clamp(2.4rem,5vw,4.4rem); letter-spacing:-.05em; }
.policy-page h2 { margin-top:40px; }
.policy-page p, .policy-page li { color:var(--muted); }
.policy-note { padding:18px; border-radius:12px; background:var(--warning-soft); color:var(--warning); }

.toast-region { position:fixed; right:20px; top:20px; z-index:9999; display:grid; gap:10px; width:min(390px,calc(100% - 40px)); pointer-events:none; }
.toast { pointer-events:auto; border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:12px; background:var(--surface); color:var(--ink); box-shadow:var(--shadow); padding:14px 16px; display:flex; align-items:flex-start; gap:11px; animation:toast-in 180ms ease both; }
.toast.success { border-left-color:var(--success); }
.toast.error { border-left-color:var(--danger); }
.toast.warning { border-left-color:var(--warning); }
.toast-content { min-width:0; flex:1; }
.toast-content strong, .toast-content span { display:block; }
.toast-content span { color:var(--muted); font-size:.85rem; }
.toast-close { border:0; background:transparent; color:var(--muted); cursor:pointer; }
@keyframes toast-in { from { opacity:0; transform:translateY(-8px); } }

.skeleton { position:relative; overflow:hidden; background:color-mix(in srgb,var(--line) 65%,transparent); border-radius:8px; color:transparent!important; }
.skeleton::after { content:""; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.52),transparent); animation:shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform:translateX(100%); } }

.mobile-bottom-nav { display:none; }
.loading-overlay { position:fixed; inset:0; z-index:500; display:grid; place-items:center; background:color-mix(in srgb,var(--canvas) 88%,transparent); backdrop-filter:blur(6px); }
.loading-overlay[hidden] { display:none; }
.spinner { width:42px; height:42px; border-radius:50%; border:4px solid var(--brand-soft); border-top-color:var(--brand); animation:spin .85s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

@media (max-width: 1100px) {
  :root { --sidebar: 260px; }
  .landing-hero { grid-template-columns:1fr 430px; gap:44px; }
  .hero-copy h1 { font-size:clamp(3.1rem,6vw,5rem); }
  .wizard-layout { grid-template-columns:290px minmax(0,1fr); }
  .wizard-sidebar { padding:22px 16px; }
  .wizard-main { padding:20px; }
  .wizard-header { padding:30px; }
  .wizard-body { padding:26px 30px; }
  .option-grid { grid-template-columns:1fr; }
}

@media (max-width: 900px) {
  .public-links { display:none; }
  .mobile-menu-button { display:inline-flex; }
  .landing-hero { grid-template-columns:1fr; padding-top:60px; gap:44px; }
  .hero-copy { text-align:center; }
  .hero-copy .eyebrow { margin:0 auto; }
  .hero-copy > p { margin:0 auto; }
  .hero-actions { justify-content:center; }
  .hero-note { text-align:center; }
  .hero-media { width:min(650px,100%); margin:0 auto; }
  .trust-row, .feature-grid { grid-template-columns:1fr; }
  .pricing-grid { grid-template-columns:minmax(0,560px); }
  .auth-page { grid-template-columns:1fr; }
  .auth-visual { min-height:390px; }
  .auth-visual-content { min-height:390px; padding:34px; }
  .auth-visual-copy h1 { font-size:clamp(2.7rem,9vw,4.6rem); }
  .auth-pane { min-height:auto; padding:52px 24px 80px; }
  .app-layout { display:block; }
  .app-sidebar { display:none; }
  .app-topbar { justify-content:space-between; padding:10px 18px; }
  .mobile-brand { display:block; }
  .app-content { width:min(100% - 30px,780px); padding-top:24px; }
  .mobile-bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:80; min-height:70px; padding:7px 12px max(7px,env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); background:color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter:blur(18px); }
  .mobile-nav-link { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--muted); font-size:.68rem; font-weight:700; }
  .mobile-nav-link.active { color:var(--brand); }
  .stats-grid { grid-template-columns:1fr; }
  .dashboard-grid, .data-layout, .profile-grid { grid-template-columns:1fr; }
  .sticky-card, .preview-card { position:static; }
  .wizard-layout { display:block; }
  .wizard-sidebar { position:sticky; top:0; width:100%; height:auto; z-index:70; padding:10px 16px; border-right:0; border-bottom:1px solid var(--line); }
  .wizard-sidebar .logo-crop, .wizard-intro, .sidebar-assurance { display:none; }
  .step-list { margin:0; display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
  .step-link { min-height:58px; display:flex; justify-content:center; padding:6px; }
  .step-circle { width:40px; height:40px; }
  .step-copy { display:none; }
  .wizard-main { padding:14px; }
  .wizard-card { border-radius:15px; }
  .wizard-header { min-height:auto; padding:25px 22px; }
  .wizard-header h1 { font-size:2rem; }
  .wizard-illustration { display:none; }
  .wizard-body { padding:22px; }
  .wizard-footer { padding:16px 22px; }
  .review-grid { grid-template-columns:1fr; }
  .review-item.full { grid-column:auto; }
}

@media (max-width: 620px) {
  body { font-size:15px; }
  .public-nav { width:calc(100% - 24px); min-height:68px; }
  .logo-crop { width:142px; height:50px; }
  .header-actions .button-secondary, .header-actions .theme-toggle { display:none; }
  .landing-hero, .trust-row, .section, .footer-inner { width:calc(100% - 28px); }
  .landing-hero { padding:44px 0 48px; }
  .hero-copy h1 { font-size:clamp(2.75rem,14vw,4.3rem); }
  .hero-copy > p { font-size:1.03rem; }
  .hero-actions { flex-direction:column; }
  .hero-actions .button { width:100%; }
  .hero-media { min-height:300px; border-width:8px; border-radius:19px; }
  .trust-row { margin-bottom:50px; }
  .trust-card, .feature-card, .price-card { padding:23px; }
  .section { padding:64px 0; }
  .price strong { font-size:3rem; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
  .auth-visual { min-height:330px; }
  .auth-visual-content { min-height:330px; padding:24px; }
  .auth-assurance { display:none; }
  .auth-pane { padding:38px 18px 68px; }
  .input-row { grid-template-columns:1fr; }
  .page-heading { flex-direction:column; }
  .page-actions { width:100%; }
  .page-actions .button { flex:1; }
  .quick-grid { grid-template-columns:1fr; }
  .card { padding:19px; }
  .wizard-main { padding:0; }
  .wizard-card { border-left:0; border-right:0; border-radius:0; box-shadow:none; }
  .wizard-header { padding:22px 18px; }
  .wizard-body { padding:20px 17px; }
  .section-card { padding:18px; }
  .wizard-footer { position:sticky; bottom:0; z-index:50; padding:12px 16px max(12px,env(safe-area-inset-bottom)); gap:8px; }
  .wizard-footer-group { min-width:0; }
  .wizard-footer-group:last-child { flex:1; justify-content:flex-end; }
  .wizard-footer .button { min-height:48px; padding:10px 14px; }
  .wizard-footer .draft-label { display:none; }
  #wizard-exit, #save-tab-progress { display:none; }
  #wizard-next { flex:1; max-width:220px; }
  .template-grid { grid-template-columns:1fr; }
  .toast-region { right:14px; top:14px; width:calc(100% - 28px); }
}

.launch-banner {
  background: #10213f;
  color: #fff;
  text-align: center;
  padding: 10px 18px;
  font-size: 0.9rem;
}
.launch-banner a {
  color: #b9dcff;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 700;
}
.hero-note { display: flex; align-items: center; gap: 7px; }
.hero-note .material-symbols-outlined { color: var(--brand-strong); font-size: 1.15rem; }

/* ALLLAST V7 global theme and footer controls */
.floating-theme-toggle {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 120;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: .82rem;
}
.site-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a:hover { color: var(--brand-strong); }

.recipient-photo-picker { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.avatar-large { width:76px; height:76px; font-size:1.15rem; }
.avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.optional-label { color:var(--muted); font-weight:500; font-size:.82rem; }

.field-label-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.field-label-row > span { color:var(--muted); font-size:.78rem; }
.template-fieldset { border:0; padding:0; margin:20px 0 0; min-width:0; }
.template-fieldset legend { font-weight:750; margin-bottom:10px; }
.preview-avatar { margin:0 auto 16px; }

.message-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.message-heading-row h3 { min-width:0; }
.recipient-summary { margin-top:12px !important; font-size:.86rem; }
.asset-list { display:grid; gap:8px; margin-top:14px; }
.asset-row { width:100%; display:grid; grid-template-columns:34px minmax(0,1fr) 24px; gap:10px; align-items:center; border:1px solid var(--line); border-radius:11px; background:var(--canvas); padding:10px 12px; text-align:left; cursor:pointer; }
.asset-row:hover:not(:disabled) { border-color:var(--brand); background:var(--brand-pale); }
.asset-row:disabled { cursor:not-allowed; opacity:.65; }
.asset-row > span:nth-child(2) { min-width:0; }
.asset-row strong, .asset-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.asset-row small { color:var(--muted); }

.section-title-row, .chosen-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.section-title-row > div > p, .chosen-heading p { margin:0; color:var(--muted); }
.recipient-choice-list { display:grid; gap:10px; }
.recipient-choice { display:grid; grid-template-columns:auto 46px minmax(0,1fr) 26px; gap:11px; align-items:center; border:1px solid var(--line); border-radius:13px; padding:12px; cursor:pointer; background:var(--surface); }
.recipient-choice:hover, .recipient-choice.selected { border-color:var(--brand); background:var(--brand-pale); }
.recipient-choice input { width:19px; height:19px; accent-color:var(--brand); }
.recipient-choice-copy { min-width:0; }
.recipient-choice-copy strong, .recipient-choice-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recipient-choice-copy span { color:var(--muted); font-size:.82rem; }
.choice-check { color:var(--brand); opacity:0; }
.recipient-choice.selected .choice-check { opacity:1; }
.chosen-recipient-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.chosen-chip { display:inline-flex; align-items:center; gap:6px; border:1px solid color-mix(in srgb,var(--brand) 45%,var(--line)); background:var(--brand-pale); color:var(--brand-strong); border-radius:999px; padding:7px 10px; cursor:pointer; }
.chosen-chip .material-symbols-outlined { font-size:16px; }
.muted-copy { color:var(--muted); font-size:.9rem; }
.asset-editor-list { display:grid; gap:14px; margin-top:18px; }
.asset-editor { border:1px solid var(--line); border-radius:14px; padding:18px; background:var(--canvas); }
.asset-editor-head { display:grid; grid-template-columns:40px minmax(0,1fr) 48px; gap:12px; align-items:center; margin-bottom:16px; }
.asset-editor-head > div { min-width:0; }
.asset-editor-head strong, .asset-editor-head span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.asset-editor-head span { color:var(--muted); font-size:.8rem; }
.audience-editor { margin-top:14px; }
.audience-editor > label { display:block; font-weight:700; margin-bottom:7px; }
.recipient-scope { margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.recipient-scope[hidden] { display:none; }
.recipient-scope label { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:999px; padding:7px 10px; background:var(--surface); cursor:pointer; }
.recipient-scope input { accent-color:var(--brand); }
.inline-check, .confirm-check { display:flex; align-items:flex-start; gap:10px; margin-top:16px; }
.inline-check input, .confirm-check input { width:19px; height:19px; margin-top:2px; accent-color:var(--brand); }
.confirm-check { border:1px solid var(--line); border-radius:13px; padding:16px; background:var(--brand-pale); }
.message-upload-actions { display:flex; flex-wrap:wrap; gap:10px; }
.reminder-list { display:flex; flex-wrap:wrap; gap:8px; }
.reminder-list > span { display:inline-flex; align-items:center; gap:6px; background:var(--brand-pale); border:1px solid var(--line); border-radius:999px; padding:7px 10px; color:var(--brand-strong); }
.reminder-list .material-symbols-outlined { font-size:16px; }
@media (max-width: 720px) {
  .recipient-choice { grid-template-columns:auto 42px minmax(0,1fr); }
  .choice-check { display:none; }
  .section-title-row { display:block; }
  .section-title-row .button { margin-top:10px; }
}

.auth-panel h1 { margin:0 0 6px; font-size:2rem; letter-spacing:-.035em; }
.text-button { border:0; background:transparent; color:var(--brand-strong); font-weight:750; cursor:pointer; padding:0; }
.auth-legal { display:flex; justify-content:center; gap:18px; color:var(--muted); font-size:.82rem; margin-top:30px; }
.auth-assurance > span { display:inline-flex; align-items:center; gap:7px; }

/* Trusted Contact controls */
.selection-card{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);cursor:pointer}
.selection-card:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.selection-card input{margin-top:3px;accent-color:var(--brand)}
.selection-card span{display:grid;gap:4px}.selection-card small{color:var(--text-muted);line-height:1.45}
.trusted-contact-item{align-items:flex-start}.contact-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.contact-badges .pill{display:inline-flex;align-items:center;gap:4px}.contact-badges .material-symbols-outlined{font-size:14px}
.contact-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.contact-actions .button{font-size:.78rem;padding:9px 11px}
@media(max-width:720px){.trusted-contact-item{flex-wrap:wrap}.contact-actions{width:100%;justify-content:flex-start;padding-left:52px}}
