:root {
  --header-height: 72px;
  --bg: #f8f6f1;
  --ink: #0b2530;
  --muted: #66747a;
  --surface: #ffffff;
  --line: #dde5e2;
  --primary: #087b7a;
  --primary-dark: #07545b;
  --blue: #0f4f7a;
  --navy: #092f3f;
  --amber: #c79522;
  --red: #dc2626;
  --green: #188f68;
  --dark: #071f2f;
  --violet: #5b557f;
  --aura: #edf8f6;
  --cream: #fffaf1;
  --radius: 18px;
  --radius-sm: 12px;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --line-soft: rgba(255, 255, 255, 0.74);
  --shadow: 0 24px 70px rgba(7, 31, 47, 0.12), 0 8px 20px rgba(8, 123, 122, 0.06);
  --shadow-soft: 0 14px 34px rgba(7, 31, 47, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(199, 149, 34, 0.13), transparent 24%),
    radial-gradient(circle at 94% 8%, rgba(8, 123, 122, 0.14), transparent 28%),
    linear-gradient(180deg, #fffcf7 0%, #f5faf8 42%, #f8f6f1 100%);
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.55; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 38px;
  background: rgba(255, 252, 247, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 36px rgba(7, 31, 47, 0.06);
  backdrop-filter: blur(22px) saturate(1.18);
}

.brand, .agent-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo,
.mini-logo,
.product-logo {
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(199, 149, 34, 0.28);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 13px 28px rgba(8, 123, 122, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mini-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.product-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--primary) 58%, var(--amber));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 117, 107, 0.25);
}

.site-nav {
  display: flex;
  gap: 24px;
  color: #344054;
  font-weight: 700;
  font-size: 14px;
}

.primary-button, .secondary-button {
  min-height: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.primary-button::before, .secondary-button::before, .choice::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.primary-button {
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(135deg, #079486 0%, var(--primary) 36%, var(--blue) 100%);
  color: #fff;
  box-shadow:
    0 16px 30px rgba(8, 123, 122, 0.2),
    0 4px 0 rgba(5, 61, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 22px rgba(5, 61, 77, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.choice:hover,
.app-nav-item:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(135deg, #08a093 0%, var(--primary-dark) 43%, #1f3f68 100%);
  filter: saturate(1.05);
}

.primary-button:active,
.secondary-button:active,
.choice:active {
  transform: translateY(1px);
  box-shadow: inset 0 4px 12px rgba(7, 31, 47, 0.16);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow:
    0 12px 24px rgba(7, 31, 47, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -10px 18px rgba(7, 31, 47, 0.04);
  backdrop-filter: blur(18px) saturate(1.12);
}

.large {
  min-height: 48px;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: 44px;
  align-items: center;
  padding: 54px 6vw 42px;
  background:
    radial-gradient(circle at 13% 18%, rgba(199, 149, 34, 0.16), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(8, 123, 122, 0.18), transparent 30%),
    radial-gradient(circle at 52% 90%, rgba(15, 79, 122, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.96) 0%, rgba(238, 248, 246, 0.92) 50%, rgba(248, 242, 231, 0.95) 100%);
}

.wisdom-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.56;
  pointer-events: none;
}

.hero-copy,
.hero-stage,
.hero-product {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 20px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.hero-text {
  max-width: 680px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(1.18);
}

.hero-product, .panel, .signup-card, .invite-card, .step-card, .trust-list, .account-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.12);
}

.hero-stage {
  min-height: 640px;
}

.assistant-portrait {
  position: absolute;
  right: -24px;
  bottom: -42px;
  width: min(335px, 42vw);
  height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.assistant-portrait::before {
  content: "";
  position: absolute;
  width: 76%;
  height: 70%;
  right: 5%;
  bottom: 3%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 123, 122, 0.12), rgba(199, 149, 34, 0.12));
  filter: blur(8px);
}

.assistant-portrait img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(7, 31, 47, 0.23));
}

.hero-product {
  position: absolute;
  left: -48px;
  bottom: 42px;
  z-index: 2;
  width: min(370px, 88%);
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.phone-mockup {
  left: -34px;
  bottom: 52px;
  width: min(340px, 86%);
  height: 568px;
  padding: 10px;
  border: 1px solid rgba(7, 31, 47, 0.7);
  border-radius: 34px;
  background: linear-gradient(145deg, #071f2f, #0b3a4b);
  box-shadow:
    0 34px 80px rgba(7, 31, 47, 0.3),
    0 8px 0 rgba(7, 31, 47, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -14px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.phone-speaker {
  width: 70px;
  height: 5px;
  margin: 3px auto 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
}

.whatsapp-screen {
  height: 532px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(rgba(236, 248, 244, 0.9), rgba(236, 248, 244, 0.9)),
    repeating-linear-gradient(135deg, rgba(8, 123, 122, 0.08) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.whatsapp-header {
  display: grid;
  grid-template-columns: 44px 1fr 12px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 13px;
  background: linear-gradient(135deg, #07545b, #087b7a);
  color: #fff;
}

.whatsapp-header .product-logo {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.whatsapp-header strong,
.whatsapp-header span {
  display: block;
}

.whatsapp-header span:not(.signal) {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.whatsapp-header .signal {
  background: #31d47d;
  box-shadow: 0 0 0 rgba(49, 212, 125, 0.5);
}

.chat-area {
  display: grid;
  flex: 1;
  gap: 8px;
  padding: 12px 12px 8px;
  overflow: hidden;
}

.chat-day {
  justify-self: center;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.74);
  color: #607078;
  font-size: 11px;
  font-weight: 900;
}

.message {
  max-width: 86%;
  display: grid;
  gap: 5px;
  padding: 9px 10px 6px;
  border-radius: 18px;
  box-shadow: 0 9px 20px rgba(7, 31, 47, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.message p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.message time {
  justify-self: end;
  color: #718188;
  font-size: 10px;
  font-weight: 800;
}

.sofia-message {
  justify-self: start;
  background: #ffffff;
  border-top-left-radius: 4px;
}

.sofia-message.compact p {
  font-size: 13px;
}

.user-message {
  justify-self: end;
  background: #d8f8c8;
  border-top-right-radius: 4px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 92%;
}

.quick-actions button {
  min-height: 30px;
  border: 1px solid rgba(8, 123, 122, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(7, 31, 47, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.message-composer {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
  align-items: center;
  padding: 6px 10px 10px;
}

.message-composer span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #8b999e;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.message-composer b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #84f5ad, #25d366 58%, #16a34a);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(37, 211, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.product-top {
  display: grid;
  grid-template-columns: 48px 1fr 14px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.product-top span:not(.signal) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.signal {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 rgba(24, 143, 104, 0.5);
  animation: pulseSignal 2.4s ease-out infinite;
}

.insight-strip {
  display: grid;
  gap: 2px;
  margin: 14px 0 2px;
  padding: 10px;
  border: 1px solid rgba(199, 149, 34, 0.28);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(199, 149, 34, 0.13), rgba(8, 123, 122, 0.08));
}

.insight-strip span {
  color: var(--amber);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.priority-feed {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.priority-feed article {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.priority-feed article:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 76, 119, 0.35);
  box-shadow: 0 14px 28px rgba(39, 76, 119, 0.08);
}

.priority-feed p {
  margin-bottom: 0;
}

.priority-feed b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: #fff3cf;
  color: #81570b;
}

.channel {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.whatsapp { background: #dff8ef; color: #08734f; }
.email { background: #e1ecf7; color: #274c77; }
.system { background: #fff2cc; color: #8a5a0a; }

.section {
  padding: 70px 6vw;
  scroll-margin-top: 86px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading p {
  font-size: 17px;
}

.section-heading h2, .split h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.step-grid, .signup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-section {
  overflow: hidden;
}

.benefit-shell {
  position: relative;
}

.benefit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.benefit-counter {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
}

.benefit-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(238, 248, 246, 0.56));
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  box-shadow:
    0 14px 28px rgba(7, 31, 47, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -10px 18px rgba(7, 31, 47, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.carousel-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px rgba(7, 31, 47, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.carousel-button:active {
  transform: translateY(1px);
}

.benefit-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding: 2px;
  padding: 4px 2px 26px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.benefit-viewport::-webkit-scrollbar {
  display: none;
}

.benefit-track {
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  align-items: stretch;
}

.benefit-card,
.usecase-grid article {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  backdrop-filter: blur(20px) saturate(1.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.benefit-card {
  min-height: 300px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.benefit-card:hover,
.usecase-grid article:hover,
.step-card:hover,
.panel:hover,
.account-card:hover,
.trust-list div:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(7, 31, 47, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.benefit-card.emphasis {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 86% 84%, rgba(199, 149, 34, 0.18), transparent 30%),
    linear-gradient(135deg, var(--dark), var(--primary-dark) 62%, var(--blue));
  color: #fff;
  box-shadow:
    0 30px 70px rgba(7, 31, 47, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -24px 46px rgba(0, 0, 0, 0.16);
}

.benefit-card.emphasis p {
  color: #d8efeb;
}

.benefit-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 28px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--amber);
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.benefit-card.emphasis span {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd46a;
}

.benefit-card h3 {
  max-width: 360px;
  margin-bottom: 20px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.08;
}

.benefit-card.emphasis h3 {
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.05;
}

.benefit-card p {
  align-self: end;
  margin-bottom: 0;
  font-size: 16px;
}

.benefit-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -6px;
}

.benefit-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 79, 122, 0.16);
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
  padding-block: 18px;
  margin-block: -18px;
}

.benefit-dots button.active {
  width: 52px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 8px 18px rgba(8, 123, 122, 0.16);
}

.assistant-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 123, 122, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.54);
  border-block: 1px solid rgba(255, 255, 255, 0.72);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.usecase-grid article {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.66);
}

.usecase-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 18px;
}

.step-card {
  padding: 22px;
}

.step-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.46), transparent 32%),
    linear-gradient(135deg, var(--blue), var(--primary));
  color: #fff;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(8, 123, 122, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}

.split::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(8, 123, 122, 0.12), transparent 68%);
  filter: blur(16px);
  pointer-events: none;
}

.trust-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(232, 247, 244, 0.5)),
    radial-gradient(circle at 100% 0%, rgba(8, 123, 122, 0.12), transparent 34%);
  box-shadow:
    0 32px 80px rgba(7, 31, 47, 0.13),
    0 8px 0 rgba(7, 31, 47, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.trust-list::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at 90% 110%, rgba(199, 149, 34, 0.12), transparent 34%);
  pointer-events: none;
}

.trust-list div {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 94px;
  padding: 17px 18px 17px 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 0%, rgba(8, 123, 122, 0.07), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(245, 251, 249, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow:
    0 17px 34px rgba(7, 31, 47, 0.09),
    0 3px 0 rgba(8, 123, 122, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -12px 20px rgba(7, 31, 47, 0.03);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trust-list div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.8), transparent 32%),
    linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow:
    0 0 0 7px rgba(8, 123, 122, 0.08),
    0 14px 24px rgba(8, 123, 122, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.trust-list div:nth-child(2)::before {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.8), transparent 32%),
    linear-gradient(135deg, var(--blue), #4a7fa0);
}

.trust-list div:nth-child(3)::before {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.8), transparent 32%),
    linear-gradient(135deg, var(--amber), #e6bf62);
}

.trust-list strong {
  color: var(--navy);
  font-size: 17px;
}

.trust-list span {
  color: #4f6067;
  line-height: 1.45;
}

.signup-grid {
  grid-template-columns: 1fr;
  justify-content: center;
  text-align: center;
}

.signup-grid .signup-start {
  justify-self: center;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 800;
  font-size: 14px;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 10px 18px rgba(7, 31, 47, 0.03);
}

input:focus, select:focus {
  outline: 2px solid rgba(8, 123, 122, 0.24);
  border-color: rgba(8, 123, 122, 0.34);
}

.platform {
  margin: 40px 6vw 80px;
  min-height: 760px;
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.12);
}

.app-sidebar {
  background:
    radial-gradient(circle at 20% 4%, rgba(255, 255, 255, 0.13), transparent 24%),
    radial-gradient(circle at 82% 92%, rgba(199, 149, 34, 0.16), transparent 30%),
    linear-gradient(180deg, #071f2f 0%, #0b3a4b 52%, #07545b 100%);
  color: #fff;
  padding: 22px;
}

.agent-mini {
  margin-bottom: 28px;
}

.agent-mini small {
  display: block;
  color: #a9bbb8;
}

.app-nav {
  display: grid;
  gap: 6px;
}

.app-nav-item {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #d9e7e5;
  text-align: left;
  padding: 11px 12px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.app-nav-item.active, .app-nav-item:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 24px rgba(0, 0, 0, 0.12);
}

.app-shell {
  padding: 24px;
  background:
    radial-gradient(circle at 88% 4%, rgba(8, 123, 122, 0.08), transparent 26%),
    rgba(248, 250, 252, 0.72);
}

.app-header, .panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.app-header h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 99px;
  padding: 0 10px;
  background: rgba(239, 246, 255, 0.76);
  color: #1d4ed8;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.status-pill.ok { background: rgba(220, 252, 231, 0.78); color: #166534; }
.status-pill.warn { background: rgba(255, 247, 237, 0.82); color: #9a3412; }

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.setup-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.setup-progress article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
}

.setup-progress article > span {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  border: 2px solid var(--line);
}

.setup-progress .done > span { background: var(--green); border-color: var(--green); }
.setup-progress .active { border-color: var(--primary); }
.setup-progress small { color: var(--muted); }

.config-grid, .account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel, .account-card {
  padding: 18px;
}

.choice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.choice {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 12px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.choice.selected {
  border-color: rgba(8, 123, 122, 0.28);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.56), transparent 28%),
    linear-gradient(135deg, rgba(232, 246, 243, 0.92), rgba(255, 255, 255, 0.66));
  color: var(--primary-dark);
  box-shadow: 0 14px 28px rgba(8, 123, 122, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@keyframes pulseSignal {
  0% { box-shadow: 0 0 0 0 rgba(24, 143, 104, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(24, 143, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 143, 104, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-card.add {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.54);
}

.account-card.add > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 24px;
}

.qr-panel {
  text-align: center;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 10px auto 16px;
  display: grid;
  place-items: center;
  border: 10px solid #111827;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 28px;
}

.routing-table {
  display: grid;
  gap: 8px;
}

.routing-table > div {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 110px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
}

.routing-table .table-head {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.permission-grid {
  display: grid;
  grid-template-columns: 130px 1fr 230px;
  gap: 8px;
}

.permission-grid > * {
  padding: 12px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.metric-grid span {
  color: var(--muted);
  font-weight: 800;
}

.metric-grid strong {
  font-size: 28px;
}

.inbox-list {
  display: grid;
  gap: 10px;
}

.inbox-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.inbox-list span {
  color: var(--muted);
}

@media (max-width: 1020px) {
  .site-nav { display: none; }
  .hero, .split, .platform, .config-grid, .signup-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 44px;
  }
  .hero-stage {
    min-height: 620px;
  }
  .assistant-portrait {
    right: 3vw;
    bottom: -24px;
    width: min(360px, 52vw);
    height: 590px;
  }
  .hero-product {
    left: 0;
    bottom: 34px;
  }
  .platform {
    margin-inline: 14px;
  }
  .app-sidebar {
    display: block;
  }
  .app-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .setup-progress, .account-grid, .metric-grid, .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefit-track {
    grid-auto-columns: minmax(300px, calc((100% - 16px) / 2));
  }

}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding: 12px 14px;
  }
  .site-header .primary-button {
    display: none;
  }
  .hero, .section {
    padding-inline: 14px;
  }
  .hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
  }
  .hero-text {
    max-width: 100%;
    font-size: 16px;
  }
  .hero-actions {
    gap: 10px;
  }
  .large {
    padding: 0 16px;
  }
  .hero-proof span {
    max-width: 100%;
  }
  .brand span {
    font-size: 22px;
  }
  .hero-stage {
    min-height: auto;
    display: grid;
    gap: 14px;
  }
  .assistant-portrait {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(330px, 88vw);
    height: 430px;
    margin: 0 auto -18px;
  }
  .assistant-portrait::before {
    width: 84%;
    height: 64%;
    right: 8%;
  }
  .hero-product {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
  }
  .product-top {
    grid-template-columns: 42px 1fr 12px;
  }
  .product-logo {
    width: 42px;
    height: 42px;
  }
  .step-grid, .setup-progress, .account-grid, .metric-grid, .usecase-grid {
    grid-template-columns: 1fr;
  }
  .benefit-toolbar {
    align-items: end;
  }
  .benefit-track {
    grid-auto-columns: minmax(270px, 84%);
  }
  .benefit-card {
    min-height: 330px;
    padding: 20px;
  }
  .benefit-card h3,
  .benefit-card.emphasis h3 {
    font-size: 25px;
  }
  .carousel-button {
    width: 44px;
    height: 44px;
  }
  .platform {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-sidebar {
    padding: 16px;
  }
  .routing-table > div, .permission-grid {
    grid-template-columns: 1fr;
  }
  .routing-table .table-head {
    display: none;
  }
  .inbox-list article {
    flex-direction: column;
  }
  .app-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 6px;
    padding-bottom: 4px;
    grid-template-columns: unset;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    border-radius: 999px;
    padding: 10px 16px;
  }

  .quick-actions button {
    min-height: 44px;
    padding: 0 14px;
  }
}

/* ── Mobile navigation ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 260ms ease, opacity 260ms ease, width 260ms ease;
  transform-origin: center;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1020px) {
  .menu-toggle {
    display: flex;
  }
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  background: rgba(7, 31, 47, 0.42);
  backdrop-filter: blur(4px);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 9;
  padding: 18px 20px 24px;
  background: rgba(255, 252, 247, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(7, 31, 47, 0.14);
  backdrop-filter: blur(22px) saturate(1.18);
  transform: translateY(-110%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  transition: background 160ms ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: rgba(8, 123, 122, 0.08);
}

.mobile-nav .primary-button {
  margin-top: 8px;
  min-height: 48px;
}

.menu-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.menu-open .mobile-nav {
  transform: translateY(0);
  pointer-events: auto;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-nav {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* ── iOS safe areas (notch, Dynamic Island, home indicator) ── */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-left: max(38px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .platform {
    margin-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
  }
}

/* ── Very small screens (iPhone SE, compact Android) ── */
@media (max-width: 375px) {
  .hero, .section {
    padding-inline: 12px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .secondary-button {
    align-self: flex-start;
  }

  .hero-proof span:nth-child(n+3) {
    display: none;
  }

  .benefit-track {
    grid-auto-columns: 90vw;
  }

  .benefit-card {
    min-height: 300px;
  }
}

/* ── Responsive hardening for desktop, tablet, Android and iOS ── */
img, canvas {
  max-width: 100%;
}

.app-shell,
.app-sidebar,
.app-view,
.panel,
.account-card,
.benefit-card,
.step-card,
.signup-card,
.invite-card,
.usecase-grid article,
.routing-table > div,
.permission-grid > *,
.metric-grid article,
.inbox-list article {
  min-width: 0;
}

h1, h2, h3, h4, p, span, strong, small, button, input, select {
  overflow-wrap: anywhere;
}

.site-header {
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

@media (min-width: 1440px) {
  .hero,
  .section {
    padding-left: max(7vw, calc((100vw - 1320px) / 2));
    padding-right: max(7vw, calc((100vw - 1320px) / 2));
  }

  .platform {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1180px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(40px, 5.2vw, 62px);
  }

  .platform {
    margin-left: 4vw;
    margin-right: 4vw;
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    min-height: var(--header-height);
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .phone-mockup {
    width: min(330px, 54vw);
  }

  .assistant-portrait {
    width: min(320px, 45vw);
    height: 560px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-heading {
    max-width: 100%;
  }

  .benefit-track {
    grid-auto-columns: minmax(310px, calc((100% - 16px) / 2));
  }

  .platform {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .app-sidebar {
    position: sticky;
    top: var(--header-height);
    z-index: 3;
    padding: 16px;
  }

  .agent-mini {
    margin-bottom: 14px;
  }

  .app-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .setup-progress,
  .account-grid,
  .metric-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routing-table > div {
    grid-template-columns: 1fr 1fr;
  }

  .routing-table .table-head {
    display: none;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 22px;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.04;
  }

  .hero-text,
  .section-heading p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .signup-card .primary-button,
  .invite-card .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .hero-stage {
    min-height: auto;
  }

  .assistant-portrait {
    width: min(280px, 82vw);
    height: 380px;
    margin-bottom: -8px;
  }

  .phone-mockup {
    width: min(360px, 100%);
    height: auto;
    min-height: 540px;
    margin: 0 auto;
  }

  .whatsapp-screen {
    height: 505px;
  }

  .section-heading h2,
  .split h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .benefit-toolbar {
    align-items: center;
  }

  .benefit-controls {
    gap: 8px;
  }

  .carousel-button {
    width: 46px;
    height: 46px;
  }

  .benefit-track {
    grid-auto-columns: minmax(272px, 86%);
  }

  .benefit-card {
    min-height: 315px;
  }

  .step-grid,
  .signup-grid,
  .setup-progress,
  .account-grid,
  .metric-grid,
  .usecase-grid,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .platform {
    margin: 28px 12px 56px;
    border-radius: 22px;
  }

  .app-shell {
    padding: 16px;
  }

  .app-header,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-header .primary-button,
  .app-header .status-pill {
    align-self: flex-start;
  }

  .routing-table > div {
    grid-template-columns: 1fr;
  }

  .inbox-list article {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .hero,
  .section {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .benefit-counter {
    min-height: 34px;
    font-size: 12px;
  }

  .benefit-track {
    grid-auto-columns: minmax(260px, 88%);
    gap: 12px;
  }

  .benefit-card {
    min-height: 300px;
    padding: 18px;
  }

  .benefit-card h3,
  .benefit-card.emphasis h3 {
    font-size: 24px;
  }

  .trust-list {
    padding: 14px;
  }

  .trust-list div {
    padding: 15px 14px 15px 52px;
  }

  .choice-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .choice {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand span {
    font-size: 20px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .phone-mockup {
    min-height: 510px;
    padding: 8px;
  }

  .whatsapp-screen {
    height: 480px;
  }

  .message p {
    font-size: 12px;
  }

  .quick-actions button {
    width: 100%;
  }
}

.platform-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(8, 123, 122, 0.1), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(199, 149, 34, 0.1), transparent 26%),
    #f4f7f6;
}

.platform-page main {
  min-height: calc(100vh - var(--header-height));
  padding-top: 1px;
}

.platform-standalone {
  margin-top: 28px;
  min-height: calc(100vh - var(--header-height) - 56px);
}

@media (max-width: 900px) {
  .platform-standalone {
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .platform-page .site-header > .secondary-button {
    display: none;
  }

  .platform-standalone {
    margin-top: 12px;
  }
}

/* Sofia platform application */
.platform-page {
  --platform-sidebar: 264px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 123, 122, 0.08), transparent 26%),
    #f3f7f6;
}

.platform-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px max(24px, env(safe-area-inset-right)) 10px max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(11, 37, 48, 0.08);
  background: rgba(249, 251, 250, 0.86);
  backdrop-filter: blur(22px) saturate(1.15);
}

.platform-topbar .brand {
  width: fit-content;
}

.topbar-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #53646a;
  font-size: 13px;
  font-weight: 800;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 143, 104, 0.1);
}

.topbar-exit {
  justify-self: end;
  color: #53646a;
  font-size: 14px;
  font-weight: 800;
}

.topbar-exit:hover {
  color: var(--primary-dark);
}

.sofia-app {
  width: min(1440px, 100%);
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: var(--platform-sidebar) minmax(0, 1fr);
  margin: 0 auto;
}

.platform-sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  border-right: 1px solid rgba(11, 37, 48, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.sofia-status-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(7, 31, 47, 0.05);
}

.sofia-status-card img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(199, 149, 34, 0.24);
  border-radius: 50%;
}

.sofia-status-card strong,
.sofia-status-card span {
  display: block;
}

.sofia-status-card strong {
  color: var(--navy);
  font-size: 14px;
}

.sofia-status-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.sofia-status-card b {
  color: var(--primary-dark);
  font-size: 12px;
}

.platform-nav {
  display: grid;
  gap: 5px;
}

.platform-nav-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 6px 10px;
  background: transparent;
  color: #53646a;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.platform-nav-item:hover {
  transform: translateX(2px);
  color: var(--navy);
  background: rgba(8, 123, 122, 0.06);
}

.platform-nav-item.active {
  color: var(--primary-dark);
  background: rgba(8, 123, 122, 0.1);
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: #65767c;
  font-size: 11px;
  font-weight: 900;
}

.platform-nav-item.active .nav-icon {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 123, 122, 0.18);
}

.sidebar-trust {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px;
  border-radius: 12px;
  background: #e9f4f1;
}

.sidebar-trust strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.sidebar-trust span {
  color: #526a6c;
  font-size: 11px;
  line-height: 1.45;
}

.platform-content {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  padding: 42px clamp(24px, 4vw, 56px) 72px;
}

.platform-content-header {
  min-height: 108px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.platform-content-header > div {
  max-width: 760px;
}

.platform-content-header h1 {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.05;
}

.platform-content-header p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 16px;
}

.compact-profile {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(11, 37, 48, 0.1);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(7, 31, 47, 0.07);
}

.platform-page .app-view {
  animation: platformView 220ms ease;
}

@keyframes platformView {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-summary {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(8, 123, 122, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(199, 149, 34, 0.12), transparent 28%),
    linear-gradient(135deg, #e9f5f2, #f8fbfa);
}

.onboarding-summary h2,
.platform-section-heading h2,
.today-panel h2,
.form-panel h2,
.human-control-banner h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.onboarding-summary p {
  margin-bottom: 0;
}

.progress-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 75%, rgba(8, 123, 122, 0.12) 75% 100%);
  box-shadow: inset 0 0 0 1px rgba(8, 123, 122, 0.08);
}

.progress-ring::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f4faf8;
}

.progress-ring span {
  position: relative;
  z-index: 1;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.soft-label {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.platform-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 38px 0 16px;
}

.platform-section-heading p {
  margin: 5px 0 0;
}

.step-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.setup-list,
.connection-list,
.permission-list {
  display: grid;
  gap: 10px;
}

.setup-item {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.setup-item:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 123, 122, 0.22);
  box-shadow: 0 14px 30px rgba(7, 31, 47, 0.07);
}

.setup-item > span:nth-child(2) strong,
.setup-item > span:nth-child(2) small {
  display: block;
}

.setup-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.setup-item b {
  color: var(--primary-dark);
  font-size: 12px;
}

.setup-check {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f4f0;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.setup-item.active {
  border-color: rgba(8, 123, 122, 0.3);
  background: #fff;
}

.setup-item.active .setup-check {
  background: var(--primary);
  color: #fff;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.capability-grid article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.capability-grid strong {
  margin: 16px 0 7px;
  color: var(--navy);
  line-height: 1.3;
}

.capability-grid p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.5;
}

.capability-mark,
.permission-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e6f4f0;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.today-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 22px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
}

.today-panel h2 {
  color: #fff;
}

.today-panel .soft-label {
  color: #efc65e;
}

.today-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.today-metrics article {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.today-metrics strong {
  font-size: 25px;
}

.today-metrics span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.today-activity {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.today-activity-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.today-activity-heading strong {
  font-size: 15px;
}

.today-activity-heading span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.today-activity-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.today-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
}

.today-activity-item strong {
  color: #fff;
  font-size: 13px;
}

.today-activity-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-align: right;
}

.simple-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border-radius: 14px;
  background: #e8f4f1;
}

.simple-note p {
  margin: 4px 0 0;
  font-size: 13px;
}

.note-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 900;
}

.connection-item {
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.connection-item p {
  margin: 4px 0 0;
  font-size: 13px;
}

.connection-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

.connection-logo.calendar {
  background: #fff0cf;
  color: #81570b;
}

.connection-state {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.connect-button {
  min-width: 104px;
}

.advanced-settings {
  margin-top: 18px;
  border-top: 1px solid rgba(11, 37, 48, 0.09);
}

.advanced-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.advanced-settings summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.coming-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
}

.coming-options span {
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.alert-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.delivery-options {
  display: grid;
  gap: 10px;
}

.delivery-option {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.delivery-option.selected {
  border-color: rgba(8, 123, 122, 0.34);
  box-shadow: 0 12px 28px rgba(8, 123, 122, 0.08);
}

.delivery-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.delivery-option strong,
.delivery-option small {
  display: block;
}

.delivery-option small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.delivery-option b {
  color: var(--primary-dark);
  font-size: 11px;
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.delivery-options .form-panel {
  margin-top: 12px;
}

.form-panel h3 {
  margin-bottom: 0;
}

.check-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  font-weight: 700;
}

.check-row input {
  width: 19px;
  min-height: 19px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.phone-preview {
  overflow: hidden;
  border: 8px solid #0b2530;
  border-radius: 28px;
  background: #edf6f2;
  box-shadow: 0 24px 54px rgba(7, 31, 47, 0.18);
}

.phone-preview-top {
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: var(--primary-dark);
  color: #fff;
}

.phone-preview-top img {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.phone-preview-top strong,
.phone-preview-top small {
  display: block;
}

.phone-preview-top small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
}

.phone-preview-chat {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 12px;
  background:
    linear-gradient(rgba(237, 246, 242, 0.94), rgba(237, 246, 242, 0.94)),
    repeating-linear-gradient(45deg, rgba(8, 123, 122, 0.08) 0 1px, transparent 1px 18px);
}

.chat-time {
  align-self: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.preview-message {
  max-width: 90%;
  padding: 10px 11px;
  border-radius: 3px 14px 14px 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(7, 31, 47, 0.07);
}

.preview-message p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-actions span {
  border: 1px solid rgba(8, 123, 122, 0.16);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 900;
}

.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(11, 37, 48, 0.09);
  color: var(--muted);
  font-size: 13px;
}

.human-control-banner {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--navy);
}

.human-control-banner img {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.human-control-banner h2 {
  color: #fff;
}

.human-control-banner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.human-control-banner .soft-label {
  color: #efc65e;
}

.permission-item {
  min-height: 84px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.permission-item strong,
.permission-item small {
  display: block;
}

.permission-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.permission-item.is-upcoming {
  opacity: 0.62;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.55);
}

.upcoming-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(199, 146, 43, 0.16);
  color: #8a6516;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.learned-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-state {
  margin: 0;
  padding: 18px 16px;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed rgba(11, 37, 48, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.audit-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.audit-actor {
  align-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(39, 76, 119, 0.1);
  color: var(--action, #274c77);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.audit-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink, #13201f);
}

.audit-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: #cad5d3;
  transition: background 160ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(7, 31, 47, 0.2);
  transition: transform 160ms ease;
}

.switch-input:checked + .switch {
  background: var(--primary);
}

.switch-input:checked + .switch::after {
  transform: translateX(19px);
}

.advanced-content,
.preferences-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advanced-content {
  padding-bottom: 18px;
}

.advanced-field {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.advanced-field strong {
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.35;
}

.advanced-field small {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.advanced-field input,
.advanced-field select {
  margin-top: 5px;
}

.advanced-note {
  margin: 0 2px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.preferences-grid .form-panel {
  align-content: start;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.people-panel {
  margin-top: 16px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.person-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(11, 37, 48, 0.08);
  padding-top: 14px;
}

.person-row strong,
.person-row small {
  display: block;
}

.person-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.person-row b {
  color: var(--primary-dark);
  font-size: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.platform-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(7, 31, 47, 0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.platform-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1080px) {
  .platform-page {
    --platform-sidebar: 224px;
  }

  .platform-content {
    padding-inline: 30px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid article {
    min-height: 160px;
  }

  .onboarding-summary {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .onboarding-summary .primary-button {
    grid-column: 2;
    justify-self: start;
  }

  .progress-ring {
    width: 72px;
    height: 72px;
  }

  .progress-ring::before {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 820px) {
  .platform-topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-status {
    display: none;
  }

  .sofia-app {
    display: block;
  }

  .platform-sidebar {
    position: sticky;
    top: 68px;
    z-index: 10;
    height: auto;
    display: block;
    padding: 10px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 37, 48, 0.08);
    background: rgba(249, 251, 250, 0.92);
    backdrop-filter: blur(20px);
  }

  .sofia-status-card,
  .sidebar-trust {
    display: none;
  }

  .platform-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: none;
  }

  .platform-nav::-webkit-scrollbar {
    display: none;
  }

  .platform-nav-item {
    min-height: 42px;
    flex: 0 0 auto;
    grid-template-columns: 25px auto;
    border: 1px solid rgba(11, 37, 48, 0.07);
    border-radius: 999px;
    padding: 4px 13px 4px 5px;
    background: rgba(255, 255, 255, 0.66);
    white-space: nowrap;
  }

  .platform-nav-item:hover {
    transform: none;
  }

  .nav-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
  }

  .platform-content {
    max-width: none;
    padding: 34px 28px 68px;
  }

  .alert-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }

  .today-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .platform-page {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .platform-topbar {
    min-height: 60px;
    padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
  }

  .platform-topbar .brand-logo {
    width: 38px;
    height: 38px;
  }

  .platform-topbar .brand span {
    font-size: 21px;
  }

  .topbar-exit {
    font-size: 12px;
  }

  .platform-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid rgba(11, 37, 48, 0.09);
    border-bottom: 0;
    background: rgba(250, 252, 251, 0.96);
  }

  .platform-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
  }

  .platform-nav-item {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    padding: 3px 1px;
    background: transparent;
    text-align: center;
    white-space: normal;
    font-size: 9px;
    line-height: 1.1;
  }

  .platform-nav-item.active {
    background: rgba(8, 123, 122, 0.08);
  }

  .nav-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
  }

  .platform-content {
    padding: 26px max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left));
  }

  .platform-content-header {
    min-height: 0;
    gap: 14px;
    margin-bottom: 22px;
  }

  .platform-content-header h1 {
    font-size: 31px;
  }

  .platform-content-header p:last-child {
    font-size: 14px;
  }

  .compact-profile {
    display: none;
  }

  .onboarding-summary {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }

  .onboarding-summary h2,
  .platform-section-heading h2,
  .today-panel h2,
  .form-panel h2,
  .human-control-banner h2 {
    font-size: 19px;
  }

  .onboarding-summary p {
    font-size: 13px;
  }

  .onboarding-summary .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .progress-ring {
    width: 60px;
    height: 60px;
  }

  .progress-ring::before {
    width: 46px;
    height: 46px;
  }

  .progress-ring span {
    font-size: 12px;
  }

  .platform-section-heading {
    align-items: flex-start;
    margin-top: 30px;
  }

  .step-count {
    display: none;
  }

  .setup-item {
    min-height: 78px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .setup-item > b {
    display: none;
  }

  .setup-check {
    width: 34px;
    height: 34px;
  }

  .setup-item small {
    font-size: 12px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article {
    min-height: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 2px 12px;
    padding: 15px;
  }

  .capability-grid .capability-mark {
    grid-row: 1 / 3;
  }

  .capability-grid strong {
    margin: 0 0 4px;
  }

  .today-panel {
    gap: 14px;
    padding: 18px 16px;
  }

  .today-metrics {
    grid-template-columns: 1fr;
  }

  .today-metrics article {
    grid-template-columns: 34px 1fr;
    align-items: center;
    padding: 11px 13px;
  }

  .today-metrics strong {
    font-size: 20px;
  }

  .today-activity-heading,
  .today-activity-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .today-activity-item span {
    text-align: left;
  }

  .connection-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .connection-state,
  .connection-item .text-button,
  .connection-item .connect-button {
    grid-column: 2;
    justify-self: start;
  }

  .connection-item .connect-button {
    min-height: 38px;
  }

  .alert-layout {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    width: min(310px, 100%);
    margin: 8px auto 0;
  }

  .phone-preview-chat {
    min-height: 340px;
  }

  .delivery-option {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .delivery-option b {
    grid-column: 2;
  }

  .save-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .save-bar .primary-button {
    width: 100%;
  }

  .human-control-banner {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    padding: 18px 15px;
  }

  .human-control-banner img {
    width: 52px;
    height: 52px;
  }

  .human-control-banner p {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .permission-item {
    grid-template-columns: 38px minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 13px 12px;
  }

  .permission-icon {
    width: 36px;
    height: 36px;
  }

  .advanced-content,
  .preferences-grid,
  .time-grid {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 17px 15px;
  }

  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-title-row .secondary-button {
    width: 100%;
  }

  .platform-toast {
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 14px;
    text-align: center;
  }
}

@media (max-width: 370px) {
  .platform-nav-item {
    font-size: 8px;
  }

  .platform-content-header h1 {
    font-size: 28px;
  }

  .topbar-exit {
    max-width: 60px;
    text-align: right;
    line-height: 1.15;
  }

  .permission-item {
    grid-template-columns: 34px minmax(0, 1fr) 40px;
  }

  .switch {
    width: 40px;
  }

  .switch-input:checked + .switch::after {
    transform: translateX(15px);
  }
}

/* Conversational learning */
.learning-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  margin: 42px 0 58px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 56px rgba(18, 48, 52, 0.08);
}

.learning-conversation {
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgba(8, 123, 122, 0.14);
  border-radius: 16px;
  background: #eef7f4;
}

.learning-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 37, 48, 0.08);
}

.learning-person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.learning-person strong,
.learning-person small {
  display: block;
}

.learning-person small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.learning-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.5;
}

.learning-bubble.user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: #d9f3e7;
}

.learning-bubble.sofia {
  border-bottom-left-radius: 4px;
  background: #fff;
}

.learning-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-confirm span {
  padding: 8px 11px;
  border: 1px solid rgba(8, 123, 122, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.learning-copy h3 {
  max-width: 620px;
  margin: 10px 0 14px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.05;
}

.learning-copy > p {
  font-size: 17px;
  line-height: 1.65;
}

.learning-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.learning-copy li {
  position: relative;
  padding-left: 25px;
  color: var(--navy);
  font-weight: 700;
}

.learning-copy li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 146, 43, 0.13);
}

.learning-callout {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgba(8, 123, 122, 0.16);
  border-radius: 14px;
  padding: 15px 18px;
  background: #e9f5f1;
  color: var(--navy);
  text-align: left;
  box-shadow: 0 12px 26px rgba(18, 48, 52, 0.06);
}

.learning-callout:hover {
  border-color: rgba(8, 123, 122, 0.32);
  transform: translateY(-1px);
}

.learning-callout img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.learning-callout > span {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 18px;
}

.learning-callout small {
  grid-column: 1 / -1;
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 900;
}

.learning-callout strong {
  font-size: 15px;
}

.learning-callout b {
  color: var(--primary-dark);
  font-size: 12px;
}

.learning-intro-banner {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 16px;
  background: var(--navy);
}

.learning-intro-banner img {
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.learning-intro-banner h2 {
  margin: 4px 0 7px;
  color: #fff;
}

.learning-intro-banner p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.learning-intro-banner .soft-label {
  color: #efc65e;
}

.learning-guide-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.learning-guide-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.learning-guide-heading h2 {
  margin: 4px 0;
}

.learning-guide-heading p {
  margin: 0;
  font-size: 13px;
}

.learning-channel-picker {
  flex: 0 0 auto;
}

.learning-channel-picker > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.learning-channel-picker > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 12px;
  background: #edf2f0;
}

.learning-channel-picker button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 6px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.learning-channel-picker button.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(18, 48, 52, 0.09);
}

.learning-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.learning-shortcut {
  min-height: 78px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 13px;
  padding: 11px;
  background: rgba(248, 251, 250, 0.86);
  color: var(--navy);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.learning-shortcut:hover,
.learning-shortcut.active {
  transform: translateY(-1px);
  border-color: rgba(8, 123, 122, 0.3);
  background: #fff;
}

.learning-shortcut.featured {
  background: #e8f4f0;
}

.learning-shortcut > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(18, 48, 52, 0.07);
}

.learning-shortcut strong,
.learning-shortcut small {
  display: block;
}

.learning-shortcut strong {
  font-size: 12px;
  line-height: 1.3;
}

.learning-shortcut small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.learning-channel-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.learning-channel-note p {
  margin: 0;
}

.learning-channel-note strong {
  color: var(--primary-dark);
}

.learning-channel-note button {
  flex: 0 0 auto;
  border: 0;
  padding: 7px 2px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.whatsapp-contact-item {
  border-color: rgba(8, 123, 122, 0.2);
  background: #edf8f4;
}

.connection-heading {
  margin-top: 34px;
}

.connection-heading p {
  max-width: 760px;
}

.connection-setup-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(18, 48, 52, 0.06);
}

.monitoring-setup-card {
  border-color: rgba(8, 123, 122, 0.18);
  background: #f1f8f6;
}

.qr-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  min-height: 230px;
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 14px;
  padding: 15px;
  background: #fff;
}

.qr-panel img {
  width: min(178px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-panel img.refreshing {
  opacity: 0.42;
  transform: scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.qr-panel > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.qr-panel .text-button {
  padding: 4px;
  font-size: 11px;
}

.qr-panel-placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 246, 0.96) 100%);
  border-style: dashed;
}

.qr-panel-placeholder .qr-placeholder {
  width: min(210px, 100%);
  height: auto;
  min-height: 170px;
  margin: 0;
  padding: 18px;
  align-content: center;
  border: 1px dashed rgba(8, 123, 122, 0.24);
  border-radius: 16px;
  background: rgba(8, 123, 122, 0.04);
}

.qr-panel-placeholder .qr-placeholder strong {
  color: var(--navy);
  font-size: 16px;
}

.qr-panel-placeholder .qr-placeholder span {
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.connection-setup-copy {
  align-self: center;
}

.connection-step-badge {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 900;
}

.connection-setup-copy h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 24px;
}

.connection-setup-copy > p {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.simple-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.simple-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.45;
}

.simple-steps b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f3ef;
  color: var(--primary-dark);
  font-size: 10px;
}

.connection-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.connection-security-note {
  display: grid;
  gap: 3px;
  max-width: 620px;
  border-radius: 11px;
  padding: 11px 13px;
  background: #e5f3ef;
}

.connection-security-note strong {
  color: var(--navy);
  font-size: 12px;
}

.connection-security-note span {
  color: var(--muted);
  font-size: 11px;
}

.email-connection-panel {
  padding: 20px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.email-security-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 13px 15px;
  background: #edf7f4;
}

.email-security-banner strong {
  color: var(--primary-dark);
  font-size: 12px;
}

.email-security-banner span {
  color: var(--muted);
  font-size: 12px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.provider-option {
  min-height: 170px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 13px;
  padding: 16px;
  background: #fff;
}

.provider-option > div strong,
.provider-option > div p {
  display: block;
}

.provider-option > div p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.provider-option .secondary-button {
  width: 100%;
  grid-column: 1 / -1;
  align-self: end;
}

.provider-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}

.provider-mark.google {
  background: #f7eee7;
  color: #b34b32;
}

.provider-mark.microsoft {
  background: #e6f0f8;
  color: #275d91;
}

.other-email-settings {
  margin-top: 14px;
  border-top: 1px solid rgba(11, 37, 48, 0.08);
}

.other-email-settings summary {
  padding: 15px 2px 4px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.other-email-settings > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 13px;
}

.other-email-settings p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.other-email-settings label {
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.other-email-settings input {
  margin-top: 6px;
}

.other-email-settings .secondary-button {
  grid-column: 1 / -1;
  width: fit-content;
}

.sofia-number-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  border: 1px solid rgba(8, 123, 122, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  background: #edf8f4;
}

.sofia-number-summary img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.sofia-number-summary strong,
.sofia-number-summary small {
  display: block;
}

.sofia-number-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.sofia-number-summary b {
  color: #16845f;
  font-size: 11px;
}

.sofia-number-summary a {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sofia-number-summary.pending {
  border-color: rgba(199, 149, 34, 0.22);
  background: #fff7ea;
}

.sofia-number-summary.pending b {
  color: #b7791f;
}

.activation-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7faf9 0%, #edf5f2 100%);
}

.activation-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.activation-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: end;
  gap: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(11, 37, 48, 0.09);
}

.activation-heading h1 {
  max-width: 780px;
  margin: 8px 0 14px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
}

.activation-heading > div > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.6;
}

.activation-progress {
  display: grid;
  gap: 8px;
}

.activation-progress > span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.activation-progress > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e2df;
}

.activation-progress i {
  width: 50%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--primary);
}

.activation-progress small {
  color: var(--muted);
  line-height: 1.45;
}

.activation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.72fr);
  align-items: start;
  gap: clamp(32px, 6vw, 76px);
  padding-top: 38px;
}

.activation-instructions h2 {
  max-width: 680px;
  margin: 7px 0 11px;
  color: var(--navy);
  font-size: 30px;
}

.activation-instructions > p {
  max-width: 650px;
  font-size: 14px;
  line-height: 1.6;
}

.activation-steps {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.activation-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(11, 37, 48, 0.08);
  padding: 11px 0;
}

.activation-steps li > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e3f2ee;
  color: var(--primary-dark);
  font-size: 11px;
}

.activation-steps strong,
.activation-steps small {
  display: block;
}

.activation-steps strong {
  color: var(--navy);
  font-size: 13px;
}

.activation-steps small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.activation-explainer {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  background: #f8f4e8;
}

.activation-explainer strong {
  color: var(--navy);
  font-size: 12px;
}

.activation-explainer span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.activation-technical {
  margin-top: 18px;
  border-top: 1px solid rgba(11, 37, 48, 0.08);
}

.activation-technical summary {
  padding: 15px 0 5px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.activation-technical dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.activation-technical dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(11, 37, 48, 0.07);
  padding: 8px 0;
  font-size: 11px;
}

.activation-technical dt {
  color: var(--muted);
}

.activation-technical dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  text-align: right;
}

.activation-qr-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 54px rgba(18, 48, 52, 0.1);
}

.activation-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activation-status > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(199, 146, 43, 0.12);
}

.activation-status.connected > span {
  background: #1a9a70;
  box-shadow: 0 0 0 5px rgba(26, 154, 112, 0.12);
}

.activation-status strong,
.activation-status small {
  display: block;
}

.activation-status strong {
  color: var(--navy);
  font-size: 13px;
}

.activation-status small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.activation-qr-frame {
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.activation-qr-frame img {
  width: min(250px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.activation-qr-frame img.refreshing {
  opacity: 0.4;
  transform: scale(0.96);
}

.activation-empty-state {
  min-height: 250px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.activation-empty-state[hidden],
.activation-qr-frame img[hidden] {
  display: none;
}

.activation-empty-state strong {
  color: var(--navy);
  font-size: 16px;
}

.activation-empty-state span {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.activation-qr-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.activation-start,
.activation-refresh,
.activation-continue {
  width: 100%;
}

.activation-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.42;
  pointer-events: none;
}

.activation-continue.ready {
  opacity: 1;
  pointer-events: auto;
}

.signup-start {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page {
  background:
    radial-gradient(circle at 16% 12%, rgba(199, 149, 34, 0.12), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(8, 123, 122, 0.14), transparent 28%),
    linear-gradient(180deg, #fcf9f4 0%, #eef7f4 100%);
}

.auth-shell {
  display: grid;
  gap: 30px;
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11, 37, 48, 0.09);
}

.auth-hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.03;
}

.auth-note-card,
.auth-card {
  border: 1px solid rgba(11, 37, 48, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.auth-note-card {
  padding: 20px;
}

.auth-note-card strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 8px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.auth-card {
  padding: 24px;
}

.auth-card h2 {
  margin: 8px 0 18px;
  color: var(--navy);
  font-size: 30px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid rgba(11, 37, 48, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.auth-form input:focus {
  outline: 2px solid rgba(8, 123, 122, 0.16);
  border-color: rgba(8, 123, 122, 0.4);
}

.auth-form button {
  margin-top: 6px;
}

.auth-form label[hidden] {
  display: none;
}

.auth-checkbox {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.auth-checkbox input {
  min-height: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-feedback {
  min-height: 22px;
  margin: 0;
  font-size: 12px;
}

.auth-side-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 37, 48, 0.08);
}

.auth-side-note strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 6px;
}

@media (max-width: 820px) {
  .activation-shell {
    width: min(100% - 32px, 720px);
    padding-top: 34px;
  }

  .activation-heading,
  .activation-layout {
    grid-template-columns: 1fr;
  }

  .activation-heading {
    gap: 24px;
  }

  .activation-layout {
    gap: 28px;
  }

  .activation-qr-card {
    position: static;
  }

  .auth-hero,
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .activation-shell {
    width: min(100% - 28px, 540px);
    padding: 28px 0 44px;
  }

  .activation-heading h1 {
    font-size: 38px;
  }

  .activation-heading > div > p:last-child {
    font-size: 15px;
  }

  .activation-instructions h2 {
    font-size: 25px;
  }

  .activation-qr-card {
    padding: 16px;
  }

  .sofia-number-summary {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 13px;
  }

  .sofia-number-summary img {
    width: 42px;
    height: 42px;
  }

  .sofia-number-summary a {
    grid-column: 2 / -1;
  }
}

.learning-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: 18px;
  margin-top: 20px;
}

.learning-chat-panel,
.learned-panel {
  border: 1px solid rgba(11, 37, 48, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(18, 48, 52, 0.06);
}

.learning-chat-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(11, 37, 48, 0.08);
}

.learning-chat-header strong,
.learning-chat-header small {
  display: block;
}

.learning-chat-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.learning-chat-header b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  font-size: 11px;
}

.learning-chat-header i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20a474;
}

.learning-chat-messages {
  height: 350px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 20px;
  background: #f1f7f5;
}

.assistant-chat-bubble,
.user-chat-bubble {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 13px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.5;
}

.assistant-chat-bubble {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #fff;
}

.user-chat-bubble {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #d7f1e5;
}

.learning-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.learning-chat-actions button {
  min-height: 34px;
  border: 1px solid rgba(8, 123, 122, 0.18);
  border-radius: 999px;
  padding: 6px 11px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.learning-composer {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.learning-composer label {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.learning-composer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.learning-composer input {
  min-height: 46px;
}

.learned-panel {
  padding: 20px;
}

.learned-panel-heading p {
  margin: 4px 0 16px;
  font-size: 12px;
}

.learned-rules {
  border-top: 1px solid rgba(11, 37, 48, 0.08);
}

.learned-rule {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 37, 48, 0.08);
}

.learned-rule > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e5f3ef;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
}

.learned-rule p,
.learned-rule strong,
.learned-rule small {
  display: block;
  margin: 0;
}

.learned-rule small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.learned-rule button {
  border: 0;
  padding: 6px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.learning-control-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: #f7f4e8;
}

.learning-control-note strong {
  color: var(--navy);
  font-size: 12px;
}

.learning-control-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.pending-proposals-section {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11, 37, 48, 0.08);
}

.pending-proposal {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 37, 48, 0.08);
}

.pending-proposal:last-child {
  border-bottom: 0;
}

.pending-proposal > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f7f4e8;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
}

.pending-proposal-body strong,
.pending-proposal-body small {
  display: block;
  margin: 0;
}

.pending-proposal-body small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.pending-proposal-body textarea {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(11, 37, 48, 0.16);
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
  min-height: 60px;
}

.pending-proposal-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pending-proposal-actions button {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  background: #e5f3ef;
  color: var(--primary-dark);
}

.pending-proposal-actions button[data-cancel-proposal] {
  background: transparent;
  color: var(--muted);
}

@media (max-width: 900px) {
  .learning-showcase,
  .learning-workspace {
    grid-template-columns: 1fr;
  }

  .learning-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-copy {
    order: -1;
  }

  .connection-setup-card {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }

  .other-email-settings > div {
    grid-template-columns: 1fr;
  }

  .other-email-settings p,
  .other-email-settings .secondary-button {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .platform-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .learning-showcase {
    gap: 24px;
    margin: 28px 0 38px;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .learning-conversation {
    padding: 15px;
  }

  .learning-copy h3 {
    font-size: 32px;
  }

  .learning-copy > p {
    font-size: 15px;
  }

  .learning-callout {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px;
  }

  .learning-callout img {
    width: 42px;
    height: 42px;
  }

  .learning-callout > span {
    display: block;
  }

  .learning-callout small,
  .learning-callout strong,
  .learning-callout b {
    display: block;
  }

  .learning-callout b {
    margin-top: 5px;
  }

  .learning-intro-banner {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    padding: 18px 15px;
  }

  .learning-intro-banner img {
    width: 54px;
    height: 54px;
  }

  .learning-guide-panel {
    padding: 16px 14px;
  }

  .learning-guide-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .learning-channel-picker > div {
    width: 100%;
  }

  .learning-shortcuts {
    grid-template-columns: 1fr;
  }

  .learning-shortcut {
    min-height: 66px;
  }

  .learning-channel-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .connection-heading {
    margin-top: 28px;
  }

  .connection-setup-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .qr-panel {
    min-height: 0;
    padding: 14px;
  }

  .qr-panel img {
    width: 170px;
  }

  .connection-setup-copy h3 {
    font-size: 21px;
  }

  .connection-action {
    width: 100%;
  }

  .email-connection-panel {
    padding: 14px;
  }

  .email-security-banner,
  .provider-grid {
    grid-template-columns: 1fr;
  }

  .provider-option {
    min-height: 0;
  }

  .learning-chat-messages {
    height: 320px;
    padding: 15px;
  }

  .assistant-chat-bubble,
  .user-chat-bubble {
    max-width: 90%;
  }

  .learning-composer {
    padding: 14px;
  }

  .learning-composer > div {
    grid-template-columns: 1fr;
  }

  .learning-composer .primary-button {
    width: 100%;
  }

  .learned-panel {
    padding: 17px 14px;
  }
}
