/* Homepage (portal/index.html). Loads after trust.css and commercial.css and is scoped
   to body.commercial-home. Phone first at 390px; two columns from 900px. Tokens are the
   product's: one green, one deep green, one mint, one ink, one muted, one line colour,
   and the commercial stage navy for the one dark band. */
.commercial-home {
  --green: #006b52;
  --green-hover: #00563f;
  --green-deep: #102c27;
  --mint: #e8f4ee;
  --mint-line: #cfe3da;
  --ink: #21313e;
  --muted: #405765;
  --line: #dce5ea;
  --page: #f5f8fa;
  --navy: #0c2939;
  --radius: 18px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.commercial-home .site-wrap {
  max-width: 1160px;
  padding-inline: 20px;
}
.commercial-home.menu-open {
  overflow: hidden;
}

/* Header and menu. Shared markup with the other marketing pages; the sheet below is
   only for the homepage because only it carries data-close-label. */
.commercial-home .site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.commercial-home .site-header.scrolled {
  box-shadow: 0 8px 24px rgba(20, 45, 67, 0.06);
}
.commercial-home .site-nav {
  min-height: 68px;
  gap: 16px;
}
.commercial-home .site-brand {
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.commercial-home .site-brand img {
  width: 40px;
  height: 40px;
}
.commercial-home .menu-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}
.commercial-home .site-menu {
  gap: 4px;
}
.commercial-home .site-menu a:not(.action) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
}
.commercial-home .site-menu a:not(.action):hover {
  background: var(--page);
  text-decoration: none;
}
.commercial-home .hp-menu-actions {
  display: contents;
}
.commercial-home .action {
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  border-color: var(--green);
  background: var(--green);
  font-weight: 600;
  gap: 8px;
}
.commercial-home .action:hover {
  background: var(--green-hover);
  transform: none;
}
.commercial-home .action.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.commercial-home .action.secondary:hover {
  background: var(--page);
}
.commercial-home .action.small {
  min-height: 44px;
  padding: 8px 18px;
}

/* Buttons used in the page body. */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.hp-btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.hp-btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
}
.hp-btn-secondary {
  background: #fff;
  border-color: #b9d8cc;
  color: var(--green);
}
.hp-btn-secondary:hover {
  background: var(--mint);
  border-color: var(--green);
}

/* Hero: the family photo first on phone (full bleed under the header), then the words
   and one primary action. On desktop the photo sits beside the words. */
.hp-hero {
  padding: 0;
  background: #fff;
}
.hp-hero-grid {
  display: grid;
}
.hp-hero-visual {
  order: -1;
  margin: 0 -20px 22px;
}
.hp-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 42% 40%;
}
.hp-hero h1 {
  margin: 0 0 14px;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hp-lead {
  margin: 0 0 18px;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
.hp-actions {
  display: grid;
  gap: 10px;
}
.hp-price {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.hp-price strong {
  color: var(--ink);
  font-weight: 600;
}
.hp-signin {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.hp-signin a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

/* The screened call as Pat hears it, beside "How a call goes". */
.hp-moment-grid {
  display: grid;
  gap: 28px;
}
.hp-moment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36%;
  column-gap: 8px;
  margin: 0;
  padding: 20px 0 0 18px;
  border-radius: 24px;
  background: var(--mint);
  overflow: hidden;
}
.hp-section .hp-moment h2 {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  padding-right: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green-deep);
}
.hp-note {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.hp-steps h2 {
  margin-bottom: 4px;
}
.hp-lines {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-bottom: 22px;
}
.hp-line {
  display: grid;
  gap: 3px;
}
.hp-who {
  font-size: 15px;
  color: var(--muted);
}
.hp-bubble {
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}
.hp-line.pa .hp-bubble {
  background: var(--green);
  color: #fff;
}
.hp-choice {
  display: flex;
  gap: 8px;
}
.hp-choice span {
  flex: 1;
  padding: 9px 4px;
  border: 1px solid var(--mint-line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.hp-choice .yes {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.hp-pat {
  display: block;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 190px;
  height: auto;
}
@keyframes hp-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hp-lines > .hp-line {
  animation: hp-rise 0.5s ease both;
}
.hp-lines > .hp-line:nth-child(1) {
  animation-delay: 0.15s;
}
.hp-lines > .hp-line:nth-child(2) {
  animation-delay: 0.75s;
}
.hp-lines > .hp-line:nth-child(3) {
  animation-delay: 1.35s;
}
.hp-lines > .hp-line:nth-child(4) {
  animation-delay: 1.95s;
}

/* Sections. */
.hp-section {
  padding-top: 44px;
}
.hp-section h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.hp-intro {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--muted);
}

/* What you get: three rows, each with a fragment of the product. */
.hp-get-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hp-get-list li {
  padding: 20px 18px 18px;
  border-radius: var(--radius);
  background: var(--page);
}
.hp-get-list h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
.hp-get-list p {
  margin: 0 0 14px;
  color: var(--muted);
}
.hp-frag {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.hp-frag strong {
  font-size: 16px;
  color: var(--ink);
}
.hp-frag-label {
  font-size: 14px;
  color: var(--muted);
}
.hp-frag-call {
  padding-left: 46px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006b52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.6a2 2 0 0 1-.5 2.1L8.1 9.7a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.8.3 1.7.5 2.6.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 15px;
  background-size: 22px 22px;
}
.hp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.hp-row:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.hp-row b {
  font-weight: 600;
  color: var(--ink);
}
.hp-row em {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: start;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}
.hp-row span {
  grid-column: 1;
}

/* How a call goes: the one numbered list, because it is a sequence. */
.steps-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  align-items: start;
  margin: 0 0 16px;
}
.steps-list li::before {
  content: counter(step);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 700;
}
.steps-list strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}
.steps-list span {
  color: var(--muted);
}

/* The commercial keeps its own styles (commercial.css); this only sets its place. */
.commercial-followup {
  padding-top: 44px;
  scroll-margin-top: 90px;
}
.commercial-followup .commercial-intro {
  margin-bottom: 20px;
}
.commercial-followup .commercial-intro h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.commercial-followup .commercial-intro .commercial-context {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.watch-plain-link {
  margin: 8px 0 0;
}
.watch-plain-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
}
.commercial-followup .commercial-player,
.commercial-followup .commercial-footnote {
  max-width: 1060px;
  margin-inline: auto;
}

/* Phone check and the plan. */
.hp-two {
  display: grid;
  gap: 16px;
}
.hp-check,
.hp-plan {
  padding: 24px 20px;
  border-radius: var(--radius);
}
.hp-check {
  background: var(--mint);
}
.hp-check h2,
.hp-plan h2 {
  font-size: 1.4rem;
}
.hp-check p {
  margin: 0 0 18px;
  max-width: 46ch;
  color: var(--green-deep);
}
.hp-check .hp-btn {
  width: 100%;
  background: #fff;
}
.hp-plan {
  border: 1px solid var(--line);
  background: #fff;
}
.plan-name {
  margin: 4px 0 0;
  font-weight: 600;
}
.plan-amount {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.plan-amount small {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.hp-plan ul {
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.hp-plan ul li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.plan-all-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.hp-limits {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--mint);
  color: var(--green-deep);
}
.hp-limits p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Questions. */
.hp-faq-grid {
  display: grid;
  gap: 8px;
}
.hp-faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0 0 8px;
}
.hp-faq-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.hp-faq details {
  border-top: 1px solid var(--line);
}
.hp-faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.hp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}
.hp-faq summary::-webkit-details-marker {
  display: none;
}
.hp-faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0 6px 4px 0;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.hp-faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}
.hp-faq details p {
  margin: 0 0 18px;
  max-width: 60ch;
  color: var(--muted);
}

/* Closing band: the one dark surface on the page, matching the commercial stage. */
.hp-closing {
  margin: 44px 0 0;
  padding: 34px 22px 26px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.hp-closing h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.hp-closing p {
  margin: 0 auto 20px;
  max-width: 40ch;
  color: #c9dbe4;
}
.hp-closing .hp-btn-primary {
  width: 100%;
  background: #fff;
  border-color: #fff;
  color: var(--green-deep);
}
.hp-closing .hp-btn-primary:hover {
  background: var(--mint);
  border-color: var(--mint);
}
.hp-closing .hp-signin {
  margin: 8px 0 0;
  color: #c9dbe4;
}
.hp-closing .hp-signin a {
  color: #fff;
}

/* Footer. */
.commercial-home .site-footer {
  margin-top: 44px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--page);
}
.hp-footer-grid {
  display: grid;
  gap: 24px;
}
.hp-footer-brand p {
  margin: 10px 0 0;
  max-width: 34ch;
  font-size: 16px;
  color: var(--muted);
}
.hp-footer-col h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hp-footer-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}
.hp-footer-col a:hover {
  color: var(--green);
  text-decoration: underline;
}
.hp-footer-fine {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.hp-footer-fine p {
  margin: 0;
}

/* Assistant launcher: smaller on this page, and it steps back while the hero is on
   screen and the assistant is closed (marketing.js toggles body.hero-in-view). */
.commercial-home .ca-widget-container {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.commercial-home .ca-bubble {
  width: 52px;
  height: 52px;
}
.commercial-home.hero-in-view .ca-widget-container {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* Phone: the menu is a full-screen sheet under the header. */
@media (max-width: 768px) {
  .commercial-home .site-menu {
    display: none;
    position: fixed;
    top: calc(68px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    border: 0;
    background: #fff;
    overflow-y: auto;
  }
  .commercial-home .site-menu.open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .commercial-home .site-menu a:not(.action) {
    min-height: 58px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 19px;
  }
  .commercial-home .site-menu a:not(.action):hover {
    background: none;
  }
  .commercial-home .hp-menu-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
  }
  .commercial-home .site-menu .action {
    width: 100%;
    min-height: 54px;
    font-size: 17px;
  }
}

/* Desktop. */
@media (min-width: 700px) {
  .hp-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .hp-btn {
    min-width: 200px;
  }
  .hp-get-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .hp-two {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .hp-check .hp-btn {
    width: auto;
  }
  .hp-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
  }
}
@media (min-width: 900px) {
  .commercial-home .site-wrap {
    padding-inline: 32px;
  }
  .commercial-home .site-nav {
    min-height: 76px;
  }
  .hp-hero {
    padding-top: 44px;
  }
  .hp-hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .hp-hero-visual {
    order: 2;
    margin: 0;
  }
  .hp-hero-visual img {
    aspect-ratio: 5 / 4;
    border-radius: 24px;
    object-position: 40% 45%;
  }
  .hp-hero h1 {
    max-width: 19ch;
    font-size: 2.6rem;
  }
  .hp-lead {
    font-size: 20px;
  }
  .hp-moment-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .hp-moment {
    grid-template-columns: minmax(0, 1fr) 42%;
    padding: 26px 0 0 26px;
  }
  .hp-section .hp-moment h2 {
    font-size: 16px;
  }
  .hp-bubble {
    font-size: 17px;
  }
  .hp-pat {
    max-width: 240px;
  }
  .hp-section {
    padding-top: 68px;
  }
  .hp-section h2 {
    font-size: 2rem;
  }
  .hp-steps li {
    margin-bottom: 22px;
  }
  .hp-get-list li {
    padding: 24px 22px 22px;
  }
  .commercial-followup {
    padding-top: 68px;
  }
  .hp-check,
  .hp-plan {
    padding: 30px 28px;
  }
  .hp-faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }
  .hp-closing {
    margin-top: 68px;
    padding: 56px 40px 48px;
  }
  .hp-closing h2 {
    font-size: 2.2rem;
  }
  .hp-closing .hp-btn-primary {
    width: auto;
    min-width: 240px;
  }
  .commercial-home .site-footer {
    margin-top: 68px;
    padding: 48px 0 32px;
  }
}
