:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #5a6067;
  --paper: #f6f3ed;
  --white: #ffffff;
  --line: #d9d1c5;
  --blue: #2e67b1;
  --green: #267657;
  --coral: #bd493f;
  --amber: #9f6a18;
  --soft-blue: #e8f1ff;
  --soft-green: #e7f4ee;
  --soft-coral: #faece9;
  --shadow: 0 18px 50px rgba(24, 26, 30, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(46, 103, 177, 0.45);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(246, 243, 237, 0.97);
  border-bottom: 1px solid rgba(21, 21, 21, 0.09);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 12px;
  text-transform: uppercase;
}

.nav-links {
  justify-self: center;
  gap: 24px;
  font-size: 14px;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a {
  position: relative;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.scroll-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 40px rgba(24, 26, 30, 0.16);
}

.scroll-controls button {
  min-width: 54px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.scroll-controls button:hover {
  border-color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(86svh - 64px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 32px 32px 28px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    94deg,
    rgba(246, 243, 237, 0.95) 0%,
    rgba(246, 243, 237, 0.82) 46%,
    rgba(255, 255, 255, 0.3) 100%
  );
}

.hero-copy {
  width: min(700px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(58px, 7.8vw, 98px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  max-width: 920px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.08;
}

.hero-line {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.03;
  font-weight: 820;
}

.hero-questions {
  display: grid;
  gap: 5px;
  max-width: 620px;
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 4px solid var(--coral);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.08;
  font-weight: 770;
}

.hero-questions p,
.hero-subhead {
  margin-bottom: 0;
}

.hero-subhead {
  max-width: 600px;
  color: #303438;
  font-size: 19px;
  line-height: 1.45;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #303438;
  font-size: 13px;
  font-weight: 780;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.answer-band {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.answer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr;
  gap: 28px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0;
}

.answer-line {
  margin: 0;
  font-size: 28px;
  font-weight: 840;
}

.answer-detail {
  align-self: center;
  margin: 0;
  color: #d8dde4;
  font-size: 18px;
  line-height: 1.4;
}

.comparison-section,
.how-section,
.ios-keyboard-section,
.final-cta {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.section-heading.compact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1fr;
  gap: 24px;
  align-items: end;
}

.comparison-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.message-pane {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.message-pane {
  min-height: 220px;
  padding: 24px;
}

.message-pane span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-pane span {
  margin-bottom: 28px;
}

.message-pane p {
  margin-bottom: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.08;
  font-weight: 800;
}

.message-pane.bad {
  background: var(--soft-coral);
}

.message-pane.good {
  background: var(--soft-green);
}

.slack-layer-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.slack-window {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid #cfc8bd;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.slack-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: #342338;
  color: rgba(255, 255, 255, 0.78);
}

.workspace-dot {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #f3c85f;
}

.slack-sidebar p {
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 820;
}

.slack-sidebar span {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
}

.slack-sidebar span.active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.slack-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  background: #fbfaf7;
}

.slack-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.channel-name {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 840;
}

.slack-topbar p,
.presence {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.slack-messages {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px 18px;
}

.slack-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.slack-message p {
  margin: 0;
  color: #303438;
  line-height: 1.42;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.avatar.blue {
  background: #bfd7f5;
}

.avatar.green {
  background: #bfe4cd;
}

.compose-area {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.compose-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #aeb8c0;
  border-radius: 8px;
  background: var(--white);
}

.compose-box p {
  margin: 0;
  color: #202326;
  font-size: 15px;
  line-height: 1.42;
}

.send-button,
.nice-actions button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.send-button {
  min-width: 68px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
}

.nice-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid #d8b9b4;
  border-radius: 8px;
  background: #fff7f5;
}

.nice-layer.ready {
  border-color: #a8d5bd;
  background: #f2fbf6;
}

.nice-badge {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nice-layer p {
  margin: 0;
  color: #383331;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.nice-layer.ready .nice-badge {
  color: var(--green);
}

.nice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nice-actions button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 0 12px;
}

.nice-actions button.quiet {
  border-color: #d8b9b4;
  background: var(--white);
  color: var(--muted);
}

.integration-copy {
  padding: 4px 0;
}

.integration-copy h3 {
  max-width: 420px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
}

.integration-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.integration-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: #303438;
  font-weight: 720;
  line-height: 1.4;
}

.ios-keyboard-section {
  border-top: 1px solid var(--line);
}

.ios-keyboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: center;
}

.ios-keyboard-copy p {
  max-width: 640px;
  color: #303438;
  font-size: 22px;
  line-height: 1.32;
  font-weight: 760;
}

.ios-keyboard-copy ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.42;
}

.ios-phone {
  justify-self: end;
  width: min(390px, 100%);
  padding: 14px;
  border: 1px solid #202326;
  border-radius: 34px;
  background: #202326;
  box-shadow: var(--shadow);
}

.ios-screen {
  overflow: hidden;
  border-radius: 24px;
  background: #f9f8f5;
}

.ios-message {
  min-height: 190px;
  padding: 18px;
  background: var(--white);
}

.ios-message span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ios-message p {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft-coral);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 720;
}

.ios-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #d7dce2;
  border-bottom: 1px solid #d7dce2;
  background: #f3f6fa;
}

.ios-suggestion strong {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ios-suggestion p {
  grid-column: 1;
  margin: 0;
  color: #303438;
  font-size: 14px;
  font-weight: 720;
}

.ios-suggestion button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 780;
}

.ios-keys {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
  background: #d8dde4;
}

.ios-keys span {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border-radius: 7px;
  background: #ffffff;
  color: #202326;
  font-size: 12px;
  font-weight: 780;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.ios-bottom-row {
  display: grid;
  grid-template-columns: 54px 1fr 72px;
  gap: 6px;
  padding: 0 10px 12px;
  background: #d8dde4;
}

.ios-bottom-row span {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border-radius: 7px;
  background: #eef0f3;
  color: #202326;
  font-size: 12px;
  font-weight: 780;
}

.ios-bottom-row .space {
  background: var(--white);
}

.final-cta {
  padding-bottom: 110px;
}

.final-cta h2 {
  max-width: 940px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 38px 22px 42px;
  }

  .hero-image {
    object-position: 63% center;
  }

  .hero::after {
    background: rgba(255, 255, 255, 0.72);
  }

  .answer-inner,
  .comparison-section,
  .how-section,
  .ios-keyboard-section,
  .final-cta {
    width: min(100% - 36px, 760px);
  }

  .answer-inner,
  .section-heading.compact,
  .comparison-grid,
  .slack-layer-demo,
  .ios-keyboard-layout {
    grid-template-columns: 1fr;
  }

  .ios-phone {
    justify-self: start;
  }

  .slack-window {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .nice-layer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nice-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .header-cta {
    min-height: 40px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-line {
    font-size: 30px;
  }

  .hero-questions {
    font-size: 20px;
  }

  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .comparison-section,
  .how-section,
  .ios-keyboard-section,
  .final-cta {
    padding: 64px 0;
  }

  .slack-window {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .slack-sidebar {
    display: grid;
    grid-template-columns: 34px repeat(3, auto);
    align-items: center;
    overflow: hidden;
  }

  .slack-sidebar p,
  .slack-sidebar span:not(.active) {
    display: none;
  }

  .workspace-dot {
    margin-bottom: 0;
  }

  .slack-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .compose-box {
    grid-template-columns: 1fr;
  }

  .send-button,
  .nice-actions,
  .nice-actions button {
    width: 100%;
  }

  .ios-keyboard-copy p {
    font-size: 19px;
  }

  .ios-keys {
    gap: 4px;
  }

  .ios-keys span {
    min-height: 30px;
    font-size: 11px;
  }

  .scroll-controls {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
  }

  .scroll-controls button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .button:hover,
  .header-cta:hover {
    transform: none;
  }
}

/* --- Polish layer: micro-interactions --- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  transform: translateY(-200%);
}

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

.button,
.header-cta,
.scroll-controls button,
.send-button,
.nice-actions button,
.ios-suggestion button {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.button.primary:hover,
.header-cta:hover {
  box-shadow: 0 10px 24px rgba(24, 26, 30, 0.24);
}

.button.secondary:hover {
  background: var(--white);
}

.button:active,
.header-cta:active,
.scroll-controls button:active {
  transform: translateY(0);
  box-shadow: none;
}

.scroll-controls button {
  min-width: 44px;
  font-size: 16px;
  line-height: 1;
}

.scroll-controls #top-section {
  font-size: 13px;
}
