.home-page {
  --home-navy: #00163e;
  --home-blue: #0b61d8;
  --home-ice: #edf5ff;
  --home-border: #dbe6f4;
  --home-muted: #435772;
  background: #fff;
}

.home-page :is(.wrap, .nav-wrap) { max-width: 1320px; padding-inline: clamp(20px, 4vw, 44px); }
.home-page .site-header { background: #fff; border-color: var(--home-border); }
.home-page .nav-wrap { min-height: 76px; }
.home-page .ai2line-wordmark { --ai2line-wordmark-width: 157px; }
.home-page .site-header .brand { margin-inline-start: -8px; }
.home-page .button:not(.text-link) { border-radius: 10px; }
.home-page .text-link svg { width: 17px; height: 17px; }

.home-masthead {
  background: radial-gradient(ellipse at 90% 4%, #ddeeff 0%, transparent 56%), #f6faff;
}

.home-masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-block: clamp(48px, 5.5vw, 80px);
}

.home-masthead-copy h1 {
  max-width: 600px;
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.062em;
  text-wrap: balance;
}

.home-masthead-copy h1 em {
  display: block;
  color: var(--home-blue);
  font-weight: inherit;
}

.home-masthead-copy > p {
  max-width: 52ch;
  margin-top: 17px;
  color: var(--home-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.home-masthead-copy .actions { gap: 8px 20px; margin-top: 23px; }
.home-masthead-copy .primary { min-height: 52px; }
.home-masthead-copy .text-link { padding-inline: 0; }

.home-hero-scene {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 11px 11px 18px;
  border-radius: 26px;
  background: var(--home-navy);
  box-shadow: 0 18px 42px #00163e24;
}

.home-hero-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(142deg, #1672f4, #1254aa 58%, #0b346d);
  clip-path: polygon(63% 0, 100% 0, 100% 100%, 13% 100%);
}

.home-hero-scene .hero-pizzeria .communication-photo {
  aspect-ratio: 1.39;
  object-position: 56% 62%;
  border-radius: 17px;
}

.home-hero-scene .hero-promo-thread {
  width: min(19.25rem, calc(100% - 22px));
  margin: -112px 0 0 12px;
  border-color: #e1eaf7;
  border-radius: 14px;
  box-shadow: 0 8px 24px #00163e31;
}

.home-hero-scene .hero-promo-reply { background: #edf1f7; }
.home-hero-scene .hero-promo-sent { background: #e7f1ff; }

.home-assurance { border-block: 1px solid var(--home-border); background: #fff; }
.home-assurance .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-assurance .wrap > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 18px 12px;
  color: var(--home-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.home-assurance .wrap > div + div { border-inline-start: 1px solid var(--home-border); }
.home-assurance svg { width: 20px; height: 20px; color: var(--home-blue); }

.home-section { padding-block: clamp(52px, 6.25vw, 92px); }
.home-section-heading { margin-bottom: 26px; }
.home-section h2 {
  font-size: clamp(33px, 4.1vw, 54px);
  font-weight: 710;
  line-height: 1.07;
  letter-spacing: -.053em;
  text-wrap: balance;
}
.home-section-heading p { margin-top: 12px; max-width: 60ch; color: var(--home-muted); }

.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-features article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: clamp(19px, 2.3vw, 29px);
  background: #fff;
}
.home-feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--home-ice);
  color: var(--home-blue);
}
.home-features h3 { font-size: 23px; }
.home-features p { margin-block: 9px 15px; font-size: 16px; color: var(--home-muted); }
.home-features .text-link { margin-top: auto; padding-block: 6px; padding-inline: 0; }

.home-preview { background: #061c42; color: #fff; }
.home-preview .home-section-heading p, .home-preview-copy p { color: #c5d6ec; }
.home-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.home-preview-tabs button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #46628a;
  border-radius: 9px;
  background: transparent;
  color: #eaf3ff;
  font-size: 14px;
  font-weight: 630;
}
.home-preview-tabs button:hover { background: #153760; }
.home-preview-tabs [aria-selected="true"] { background: #eef6ff; color: #063e89; border-color: #eef6ff; }
.home-preview-tabs [aria-selected="true"]:hover { background: #fff; }
.home-preview :focus-visible, .home-contact :focus-visible { outline-color: #acdaff; }

.home-preview-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: 398px;
  padding: clamp(22px, 3.5vw, 46px);
  border: 1px solid #37547b;
  border-radius: 20px;
  background: linear-gradient(120deg, #0b244b, #0e325f);
}
.home-preview-panel[hidden] { display: none; }
.home-preview-copy h3 { font-size: clamp(27px, 3.1vw, 43px); line-height: 1.1; text-wrap: balance; }
.home-preview-copy p { margin-top: 12px; max-width: 44ch; }
.home-preview-copy .text-link { color: #b6daff; margin-top: 11px; padding-inline: 0; }
.home-preview-visual { min-width: 0; }
.home-preview-visual .flow-demo { color: var(--home-navy); padding: 16px 19px; }
.home-preview-visual .sample-label { margin-bottom: 10px; }
.home-preview-visual .flow-node { padding: 8px 11px; }
.home-preview-visual .flow-branch { margin-block: 6px; }
.home-preview-visual .route-list > div { padding-block: 6px; }
.home-preview-visual .connector { height: 10px; }
.home-preview-visual .story-thread { margin-top: 10px; }

.home-campaign-body { padding: 16px 20px 20px; }
.home-campaign-audience {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.home-campaign-audience small { display: block; color: var(--home-muted); }
.home-campaign .story-outgoing { width: auto; max-width: 100%; }
.home-campaign-schedule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #145393;
  font-size: 13px;
  font-weight: 600;
}
.home-campaign-schedule svg { width: 16px; height: 16px; }

.home-heading-with-action { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.home-industry .industries-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-industry .industry-card {
  grid-column: auto;
  min-height: 195px;
  padding: 20px;
  border: 1px solid var(--home-border);
  border-radius: 15px;
  background: #f8fbff;
  color: var(--home-navy);
}
.home-industry .industry-card:hover { border-color: var(--home-blue); background: var(--home-ice); }
.home-industry .industry-emblem { color: var(--home-blue); margin-bottom: 13px; }
.home-industry .industry-card h3 { margin-bottom: 6px; }
.home-industry .industry-card p { font-size: 15px; }
.home-industry .industry-link { color: var(--home-blue); padding-top: 14px; }

.home-switch { background: #eff6ff; }
.home-switch-grid, .home-questions .wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(29px, 6vw, 86px);
}
.home-switch .home-section-heading, .home-questions .home-section-heading { margin-bottom: 0; }
.home-switch .text-link, .home-questions .text-link { margin-top: 10px; padding-inline: 0; }
.home-switch-steps { margin: 0; padding: 0; list-style: none; counter-reset: switch-step; }
.home-switch-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding-block: 16px;
  border-top: 1px solid #cddef2;
  counter-increment: switch-step;
}
.home-switch-steps li::before {
  content: counter(switch-step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #dbeaff;
  color: #064ba6;
  font-size: 14px;
  font-weight: 650;
}
.home-switch-steps h3 { font-size: 20px; }
.home-switch-steps p { margin-top: 4px; font-size: 16px; }
.home-questions .faq { border-top: 1px solid var(--home-border); }
.home-contact { padding-top: 0; }
.home-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(27px, 5vw, 66px);
  border-radius: 22px;
  background: linear-gradient(143deg, #061b43 54%, #0b49a2);
  color: #fff;
}
.home-contact-panel p { margin-top: 14px; color: #d9e9ff; }
.home-contact-panel .primary { flex: 0 0 auto; background: #fff; color: #084b9f; }
.home-contact-panel .primary:hover { background: #e9f3ff; }
.home-page footer { border-top: 1px solid var(--home-border); background: #f7faff; }

@media (max-width: 1000px) {
  .home-masthead-grid { gap: 26px; }
  .home-industry .industries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-page .nav-wrap { min-height: 68px; }
  .home-masthead-grid, .home-preview-panel, .home-switch-grid, .home-questions .wrap { grid-template-columns: minmax(0, 1fr); }
  .home-masthead-copy h1 { font-size: clamp(34px, 7.5vw, 51px); text-wrap: pretty; }
  .home-masthead-copy > p { margin-top: 16px; }
  .home-masthead-copy .actions { margin-top: 19px; }
  .home-hero-scene { padding: 8px 8px 13px; border-radius: 20px; }
  .home-hero-scene .hero-pizzeria .communication-photo { aspect-ratio: 1.47; border-radius: 13px; }
  .home-hero-scene .hero-promo-thread { margin-top: -72px; }
  .home-assurance .wrap > div { align-items: flex-start; justify-content: start; font-size: 13px; padding-inline: 8px; gap: 7px; }
  .home-assurance svg { width: 17px; height: 17px; }
  .home-features { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-feature-icon { margin-bottom: 13px; }
  .home-features p { margin-bottom: 8px; }
  .home-preview-panel { min-height: 0; }
  .home-heading-with-action, .home-contact-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .home-page .ai2line-wordmark { --ai2line-wordmark-width: 145px; }
  .home-masthead-grid { padding-block: 38px; }
  .home-hero-scene .hero-promo-thread { width: min(18rem, calc(100% - 14px)); margin: -46px 0 0 7px; }
  .home-hero-scene .hero-promo-sent p { font-size: 13px; }
  .home-assurance .wrap { grid-template-columns: 1fr; padding-block: 8px; }
  .home-assurance .wrap > div { min-height: 32px; padding-block: 7px; }
  .home-assurance .wrap > div + div { border-inline-start: 0; }
  .home-preview-tabs { gap: 5px; }
  .home-preview-tabs button { padding-inline: 9px; font-size: 12px; }
  .home-preview-panel { padding: 14px; }
  .home-preview-visual .flow-demo { padding-inline: 9px; }
  .home-preview-visual .route-list > div { grid-template-columns: 26px 1fr 12px 1fr; gap: 5px; }
  .home-industry .industries-grid { grid-template-columns: minmax(0, 1fr); }
  .home-industry .industry-card { min-height: 0; }
}
