:root {
  --paper: #fff;
  --ink: #111;
  --muted: #6e6e6e;
  --line: #d8d8d8;
  --page: 1440px;
  --rail: 185px;
  --measure: 650px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 2px; }
p, h1, h2, dl, dd { margin-top: 0; }

.site-header,
main,
footer {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.site-header {
  display: grid;
  grid-template-columns: var(--rail) 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.site-header p { margin: 0; color: var(--muted); }
.site-name { text-decoration: none; }
.site-header nav { display: flex; gap: 18px; }

.opening,
.section {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, var(--measure)) 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.opening { min-height: 590px; padding: 84px 0 110px; }
.section { padding: 28px 0 92px; }

.rail {
  padding-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.rail p { margin: 0; }

.opening-copy,
.body-copy {
  grid-column: 2;
}

h1,
h2 {
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

h1 { margin-bottom: 40px; }
h2 { margin-bottom: 30px; }

.opening-copy > p,
.body-copy > p {
  max-width: 620px;
  margin-bottom: 19px;
  font-size: 22px;
  letter-spacing: -.022em;
  line-height: 1.22;
}

.opening-copy > p:first-of-type {
  max-width: 540px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.list {
  max-width: 620px;
  margin-top: 48px;
  border-top: 1px solid var(--ink);
}

.list-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--line);
}

.list-row span {
  padding-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.list-row p {
  margin: 0;
  font-size: 15px;
}

.scope-copy { grid-column: 2 / 4; width: 100%; max-width: 980px; }
.scope-copy > p { max-width: 650px; }

.scope-graph {
  max-width: 900px;
  margin: 54px 0 0;
}

.scope-graph figcaption {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 11px;
}

.scope-bar {
  position: relative;
  height: 34px;
  overflow: hidden;
  border-radius: 18px;
  background: #ededed;
}

.operator-range {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, #d7d7d7 0%, #777 55%, #191919 100%);
}

.approval-mark {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 74%;
  width: 1px;
  background: var(--paper);
}

.scope-ends {
  display: grid;
  grid-template-columns: 74% 26%;
  margin-top: 14px;
}

.scope-ends > div:last-child { padding-left: 18px; }
.scope-ends strong { display: block; font-size: 15px; font-weight: 400; }
.scope-ends p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.scope-table {
  max-width: 900px;
  margin-top: 58px;
  border-top: 1px solid var(--ink);
}

.scope-row {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 22px;
  padding: 10px 0 11px;
  border-bottom: 1px solid var(--line);
}

.scope-row strong,
.scope-row p,
.scope-row span {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.scope-row p { color: var(--muted); }
.scope-heading span { color: var(--muted); font-size: 11px; }

.mock-copy { grid-column: 2 / 4; width: 100%; max-width: 1050px; }
.mock-copy > p { max-width: 650px; }

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 286px));
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  margin-top: 58px;
}

.phone-figure { margin: 0; }
.phone-figure figcaption { margin-top: 13px; color: var(--muted); font-size: 11px; }
.phone-figure figcaption span { margin-right: 8px; color: var(--ink); }

.phone {
  position: relative;
  height: 590px;
  overflow: hidden;
  border: 7px solid #161616;
  border-radius: 42px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.phone::before {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 50%;
  width: 76px;
  height: 20px;
  border-radius: 12px;
  background: #111;
  content: "";
  transform: translateX(-50%);
}

.phone-status {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  height: 37px;
  padding: 11px 17px 0;
  color: #111;
  font-size: 9px;
  font-weight: 700;
}

.chat-header {
  position: relative;
  display: grid;
  grid-template-columns: 28px 34px 1fr;
  gap: 7px;
  align-items: center;
  min-height: 55px;
  padding: 5px 12px 7px;
  border-bottom: 1px solid #e5e5e5;
  background: rgba(250,250,250,.94);
  color: #111;
}

.chat-back { color: #087bff; font-size: 28px; line-height: 1; }
.chat-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e3e3e3;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  place-items: center;
}

.chat-header strong { display: block; font-size: 11px; font-weight: 600; }
.chat-header small { display: block; margin-top: 1px; color: #888; font-size: 8px; }

.chat-body {
  height: 443px;
  padding: 15px 8px 18px;
  overflow: hidden;
  background: #fff;
}

.bubble {
  position: relative;
  width: fit-content;
  max-width: 83%;
  margin-bottom: 9px;
  padding: 8px 9px 14px;
  border-radius: 16px;
  color: #111;
  font-size: 11px;
  line-height: 1.25;
}

.bubble strong { font-weight: 600; }
.bubble time { position: absolute; right: 8px; bottom: 3px; color: #777; font-size: 7px; }
.bubble.received { margin-right: auto; border-bottom-left-radius: 5px; background: #e9e9eb; }
.bubble.sent { margin-left: auto; border-bottom-right-radius: 5px; background: #0b84ff; color: #fff; }
.bubble.sent time { color: rgba(255,255,255,.72); }
.bubble.short { min-width: 78px; }

.chat-input {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 30px;
  padding: 6px 31px 5px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 16px;
  color: #aaa;
  font-size: 11px;
}

.chat-input span { position: absolute; right: 8px; color: #777; }
.prototype-note { margin: 31px 0 0 !important; color: var(--muted); font-size: 11px !important; }

dl {
  max-width: 620px;
  margin: 48px 0 0;
  border-top: 1px solid var(--ink);
}

dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--line);
}

dt, dd { margin: 0; font-weight: 400; }
dd { color: var(--muted); }

.thesis { min-height: 410px; }
.access { padding-bottom: 118px; }

form {
  max-width: 520px;
  margin-top: 48px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}

label { display: block; margin-bottom: 22px; }
label span { display: block; margin-bottom: 7px; font-size: 12px; }

input,
textarea {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus { border-bottom-color: var(--ink); }
textarea { resize: vertical; }

button {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

button:hover { background: var(--ink); color: var(--paper); }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; }

footer {
  display: grid;
  grid-template-columns: var(--rail) 1fr auto auto;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 44px;
  color: var(--muted);
  font-size: 12px;
}

footer p { margin: 0; }
footer a { color: inherit; }

@media (max-width: 760px) {
  body { overflow-x: hidden; }

  .site-header,
  main,
  footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 50px;
  }

  .site-header nav { display: none; }
  .site-header p { text-align: right; }

  .opening,
  .section {
    display: block;
    width: 100%;
  }

  .opening {
    min-height: 0;
    padding: 72px 0 104px;
  }

  .section { padding: 24px 0 78px; }

  .rail {
    margin-bottom: 42px;
    padding-left: 0;
  }

  .opening-copy,
  .body-copy,
  .scope-copy,
  .mock-copy {
    grid-column: auto;
    width: 100%;
    max-width: none;
  }

  h1 { margin-bottom: 32px; }
  h2 { margin-bottom: 26px; }

  .opening-copy > p,
  .body-copy > p {
    max-width: none;
    font-size: 19px;
    line-height: 1.28;
  }

  .opening-copy > p:first-of-type {
    max-width: 330px;
    font-size: 28px;
    line-height: 1.12;
  }

  .list { margin-top: 40px; }
  .list-row { grid-template-columns: 34px 1fr; }

  .scope-graph { margin-top: 42px; }
  .scope-bar { height: 28px; }
  .scope-ends { grid-template-columns: 66% 34%; }
  .operator-range { width: 66%; }
  .approval-mark { left: 66%; }
  .scope-ends > div:last-child { padding-left: 12px; }
  .scope-ends strong { font-size: 13px; }
  .scope-ends p { font-size: 11px; }

  .scope-table { margin-top: 46px; }
  .scope-row { grid-template-columns: 112px 1fr; gap: 14px; }

  .phones {
    width: calc(100vw - 20px);
    grid-template-columns: repeat(3, 268px);
    gap: 18px;
    margin-right: -20px;
    padding: 0 20px 14px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .phones::-webkit-scrollbar { display: none; }
  .phone-figure { scroll-snap-align: start; }
  .phone { height: 560px; border-radius: 40px; }
  .chat-body { height: 413px; }

  dl div { grid-template-columns: 1fr; gap: 4px; }
  form { max-width: none; margin-top: 42px; }

  footer {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
    padding-top: 16px;
    padding-bottom: 28px;
  }

  footer p:nth-child(2) { display: none; }
  footer a { grid-column: 1; grid-row: 2; }
  footer p:last-child { grid-column: 2; grid-row: 2; }
}
