/* Office 11 "coming soon" page, built to read like an advert. One file, no outside fonts.
   The colours come from the owner's logo (brand/make-logos.py prints them): navy letters, a blue "11".
   The top block is always dark navy (it carries the white-letter logo); the rest follows the device's
   light or dark setting. Blocks set their own --ink / --muted / … so the shared parts (the sign-up form)
   take the right colours wherever they sit. */

:root {
  color-scheme: light dark;
  --paper: #f7f9fd;
  --card: #ffffff;
  --ink: #0c1838;
  --muted: #53607c;
  --line: #dce3ef;
  --accent: #0049fc;
  --on-accent: #ffffff;
  --focus: #0049fc;
  --blue-from: #0090fd;
  --blue-to: #0049fc;
  --field: #ffffff;
  --field-ink: #0c1838;
  --ok: #0b7a4f;
  --bad: #b3261e;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #070d1f;
    --card: #0e1730;
    --ink: #eef2fb;
    --muted: #97a4c0;
    --line: #1c2745;
    --accent: #1657ff;
    --focus: #6aa8ff;
    --blue-from: #00bbfd;
    --blue-to: #3d7dff;
    --ok: #6fd3a4;
    --bad: #ff9d8f;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Read by screen readers, not shown. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* ── The top block (always dark) ────────────────────────── */

.hero-wrap {
  --ink: #ffffff;
  --muted: #b7c3e0;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #1f5eff;
  --focus: #8fd0ff;
  --ok: #7ee2b4;
  --bad: #ffb0a3;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 88% -5%, rgba(0, 144, 253, 0.5), transparent 65%),
    radial-gradient(760px 460px at -5% 105%, rgba(0, 73, 252, 0.4), transparent 62%),
    linear-gradient(180deg, #0a1740, #050a1c);
  overflow: hidden;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.mark {
  display: block;
  flex: none;
  border-radius: 4px;
}

.mark img {
  display: block;
  height: 34px;
  width: auto;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00bbfd;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-top: clamp(40px, 8vh, 84px);
  padding-bottom: clamp(56px, 10vh, 104px);
}

.eyebrow {
  color: #8fd0ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin-top: 16px;
  font-weight: 800;
  font-size: clamp(2.4rem, 7.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* The word that carries the blue of the logo's "11". */
.hl {
  display: block;
  width: max-content;
  max-width: 100%;
  color: #4d9dff;
  background: linear-gradient(100deg, #00c8ff, #4d8dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin-top: 22px;
  max-width: 33em;
  color: var(--muted);
  font-size: clamp(1.06rem, 2.1vw, 1.24rem);
  text-wrap: pretty;
}

/* ── The sign-up (used in the top block and in the last one) ── */

.notify { margin-top: 30px; max-width: 540px; }

.row { display: flex; gap: 10px; }

input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
  color: var(--field-ink);
  font: inherit;
}

input[type="email"]::placeholder { color: #6b7691; }

button {
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.hero-wrap button { box-shadow: 0 10px 30px rgba(31, 94, 255, 0.5); }

button:hover { filter: brightness(1.12); }
button:disabled { opacity: 0.6; cursor: default; filter: none; }

input[type="email"]:focus-visible,
button:focus-visible,
.mark:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* The box people never see (only robots fill it in). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.55em;
  margin-top: 12px;
  font-weight: 700;
}

.status[data-kind="ok"] { color: var(--ok); }
.status[data-kind="bad"] { color: var(--bad); }

.fine {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 600;
}

.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00bbfd;
  color: #06102b;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ── The example call ───────────────────────────────────── */

.demo { margin: 0; }

.phone {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 44px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 38px;
  background: #0b1230;
  box-shadow: 0 34px 90px rgba(0, 30, 120, 0.6), inset 0 0 0 6px #121b40;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 8px;
  margin-left: -42px;
  border-radius: 999px;
  background: #1c2754;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #b7c3e0;
  font-size: 0.8rem;
  font-weight: 600;
}

.live {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc97;
}

.by {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 187, 253, 0.16);
  color: #8fd0ff;
}

.talk {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.talk li {
  max-width: 86%;
  padding: 9px 13px;
  color: #ffffff;
}

.them {
  justify-self: start;
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, 0.11);
}

.us {
  justify-self: end;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #1f6bff, #0049fc);
}

.job {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  color: #0c1838;
}

.job-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #dcf5e8;
  color: #0b6a45;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-title {
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.job-line { font-size: 0.92rem; }

.job-sent {
  margin-top: 8px;
  color: #53607c;
  font-size: 0.8rem;
}

.demo figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

/* ── A missed call is a missed job ──────────────────────── */

.why { padding-top: clamp(56px, 10vh, 104px); }

h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sub {
  margin-top: 14px;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  text-wrap: pretty;
}

.points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.points li {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.points svg {
  display: block;
  color: var(--blue-to);
}

.points h3 {
  margin-top: 14px;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.points p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
  text-wrap: pretty;
}

/* ── One call, start to finish ──────────────────────────── */

.day { padding-top: clamp(56px, 9vh, 96px); }

.day h2 {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.day ol {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}

.day li { counter-increment: step; }

/* The step numbers carry the blue of the logo's "11". */
.day li::before {
  content: counter(step);
  display: block;
  width: max-content;
  margin-bottom: 10px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue-to);
  background: linear-gradient(160deg, var(--blue-from), var(--blue-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.day h3 {
  margin-bottom: 6px;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.day p {
  color: var(--muted);
  font-size: 0.96rem;
  text-wrap: pretty;
}

/* ── The last block: sign up ────────────────────────────── */

.cta {
  --ink: #ffffff;
  --muted: #dbe6ff;
  --accent: #0c1838;
  --focus: #ffffff;
  --ok: #ffffff;
  --bad: #ffe1dc;
  margin-top: clamp(56px, 10vh, 104px);
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(0, 200, 255, 0.45), transparent 70%),
    linear-gradient(120deg, #0a5cff, #0036d6);
}

.cta .fine { color: var(--muted); }

/* ── Bottom line ────────────────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 7vh, 72px);
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer img {
  display: block;
  height: 24px;
  width: auto;
}

/* ── Narrower screens ───────────────────────────────────── */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}

@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 16px; }
  .mark img { height: 28px; }
  .row { flex-direction: column; }
  input[type="email"] { flex: none; width: 100%; }
  button { width: 100%; }
  .ticks { gap: 8px 16px; font-size: 0.94rem; }
  .points { grid-template-columns: 1fr; }
  .day ol { grid-template-columns: 1fr; gap: 22px; }
  .day li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 8px;
  }
  .day li::before { grid-row: span 2; margin: 0; font-size: 2rem; }
  .day h3, .day p { grid-column: 2; }
  .cta { border-radius: 22px; }
}

/* ── Movement (only for people who have not asked for less) ── */

@media (prefers-reduced-motion: no-preference) {
  button { transition: filter 0.15s ease; }

  /* The example call waits out of sight until its picture is on screen (site.js adds "play"),
     then comes in line by line. With scripts off (no "js" on the page) it is simply shown. */
  .js .talk li,
  .js .job { opacity: 0; }

  .js .play .talk li,
  .js .play .job { animation: rise 0.5s ease both; }

  .js .play .talk li:nth-child(1) { animation-delay: 0.2s; }
  .js .play .talk li:nth-child(2) { animation-delay: 0.7s; }
  .js .play .talk li:nth-child(3) { animation-delay: 1.2s; }
  .js .play .talk li:nth-child(4) { animation-delay: 1.7s; }
  .js .play .talk li:nth-child(5) { animation-delay: 2.2s; }
  .js .play .job { animation-delay: 2.9s; }

  .live { animation: pulse 1.8s ease-out infinite; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
  100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
}
