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

:root {
  color-scheme: light;
  --salt: #f2f0ea;
  --salt-deep: #e9e6dd;
  --ink: #1b2940;
  --ink-soft: rgba(27, 41, 64, 0.72);
  --muted: rgba(27, 41, 64, 0.54);
  --line: rgba(27, 41, 64, 0.14);
  --line-strong: rgba(27, 41, 64, 0.85);
  --white: #faf9f5;
  --sea: #3f628c;
  --gold: #c19a55;
  --gold-deep: #8a6a33;
  --bezel: #0b0f16;
  --shadow: 0 40px 80px rgba(18, 28, 44, 0.12);
  --serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--salt);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  pointer-events: none;
  height: 0;
}

.nav__shell {
  --nav-section-gap: calc(
    (1 - var(--nav-t, 0)) * max(
      0px,
      100vw - 2 * var(--nav-pad-x) - var(--nav-logo-w) - var(--nav-links-w) - var(--nav-links-gap) - var(--nav-cta-w)
    ) + var(--nav-t, 0) * clamp(56px, 8vw, 120px)
  );
  --nav-links-gap: calc(clamp(36px, 4vw, 72px) - clamp(8px, 1vw, 24px) * var(--nav-t, 0));
  --nav-links-inner-gap: calc(36px - 8px * var(--nav-t, 0));
  --nav-logo-w: 48px;
  --nav-links-w: 140px;
  --nav-cta-w: 148px;
  --nav-pad-y: calc(20px - 8px * var(--nav-t, 0));
  --nav-pad-x: calc(clamp(20px, 5vw, 64px) * (1 - var(--nav-t, 0)) + clamp(28px, 4vw, 40px) * var(--nav-t, 0));
  position: fixed;
  top: calc(12px * var(--nav-t, 0));
  left: 50%;
  transform: translateX(-50%);
  width: calc((1 - var(--nav-t, 0)) * 100vw + var(--nav-t, 0) * var(--nav-pill-w, 520px));
  max-width: 100vw;
  min-height: calc(var(--nav-pad-y) * 2 + 2.75rem);
  padding: var(--nav-pad-y) 0;
  box-sizing: border-box;
  pointer-events: auto;
  overflow: hidden;
}

.nav__shell.is-scrolled {
  --nav-t: 1;
}

.nav__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: calc(12px * var(--nav-t, 0));
  background: rgba(242, 240, 234, calc(0.65 * var(--nav-t, 0)));
  backdrop-filter: blur(calc(16px * var(--nav-t, 0)));
  box-shadow: 0 1px 3px rgba(18, 28, 44, calc(0.08 * var(--nav-t, 0)));
  pointer-events: none;
}

.wordmark {
  position: absolute;
  left: var(--nav-pad-x);
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

.nav__links {
  position: absolute;
  top: 50%;
  left: calc(var(--nav-pad-x) + var(--nav-logo-w) + var(--nav-section-gap));
  z-index: 1;
  transform: translateY(-50%);
  display: flex;
  gap: var(--nav-links-inner-gap);
}

.nav__links a {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  position: absolute;
  top: 50%;
  left: calc(
    var(--nav-pad-x) + var(--nav-logo-w) + var(--nav-section-gap) + var(--nav-links-w) +
      var(--nav-links-gap)
  );
  z-index: 1;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--salt);
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.nav__cta:hover {
  opacity: 0.88;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 16px 32px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.button--dark {
  background: var(--ink);
  color: var(--salt);
  border: 1px solid var(--ink);
}

.button--dark:hover {
  opacity: 0.88;
}

/* ---------- Hero masthead ---------- */

.hero__masthead {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 156px 32px 0;
  text-align: center;
  color: var(--ink);
}

.hero__masthead h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 7vw, 100px);
  line-height: 1.01;
  letter-spacing: -0.015em;
}

.hero__masthead h1 em {
  font-style: italic;
  font-weight: 400;
}

/* ---------- Desktop mockup ---------- */

.hero {
  padding: 0 var(--pad) 60px;
}

.display {
  width: min(1100px, 94vw);
  margin: 40px auto 0;
  padding: 12px;
  background: var(--bezel);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  border-radius: 16px;
  overflow: hidden;
}

.screen__wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.menubar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 16px;
  background: rgba(12, 17, 26, 0.5);
  backdrop-filter: blur(14px);
  color: rgba(240, 244, 249, 0.92);
  font-family: var(--sans);
  font-size: 11.5px;
}

.menubar__app {
  font-weight: 600;
}

.menubar__right {
  margin-left: auto;
  color: rgba(240, 244, 249, 0.72);
}

/* ---------- Sky notch ---------- */

@keyframes notch-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hw-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 0 0 14px 14px;
  pointer-events: none;
}

.hw-notch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #3d4b5c 0%, #12161d 55%, #000 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: min(320px, 48%);
  background: #000;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 16px 44px rgba(10, 16, 26, 0.45);
  overflow: hidden;
  transition: width 0.32s var(--sky-ease, ease);
}

.notch:hover {
  width: min(400px, 60%);
}

.notch__status {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.notch__status-left,
.notch__status-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.notch__status-left {
  justify-content: flex-start;
}

.notch__status-right {
  justify-content: flex-end;
}

.notch__status-spacer {
  flex: none;
  width: 110px;
}

.notch__status-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.notch__status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5dcaa5;
  box-shadow: 0 0 8px rgba(93, 202, 165, 0.45);
  animation: notch-pulse 1.2s ease-in-out infinite;
}

.notch__status-time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
}

.notch__status-mic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.notch__status-mic svg {
  width: 10px;
  height: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.notch__tip {
  display: flex;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0);
  transition: max-height 0.32s var(--sky-ease, ease), opacity 0.24s ease, padding 0.32s var(--sky-ease, ease),
    border-color 0.32s ease;
}

.notch.is-demo-precall {
  width: min(420px, 62%);
}

.notch.is-demo-precall:hover {
  width: min(440px, 64%);
}

.notch.is-demo-precall .notch__tip-copy p {
  font-size: 11.5px;
  line-height: 1.4;
}

.notch:hover .notch__tip,
.notch.is-demo-coaching .notch__tip {
  max-height: 74px;
  opacity: 1;
  padding: 11px 16px 14px;
  border-color: rgba(255, 255, 255, 0.08);
}

.notch.is-demo-precall .notch__tip {
  max-height: 108px;
  opacity: 1;
  padding: 11px 16px 14px;
  border-color: rgba(255, 255, 255, 0.08);
}

.notch.is-demo-precall .notch__tip-bar {
  background: #9eb4d4;
}

.notch.is-demo-precall .notch__tip-label {
  color: #9eb4d4;
}

.notch__tip-bar {
  flex: none;
  align-self: stretch;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.notch__tip-copy {
  min-width: 0;
  font-family: var(--sans);
}

.notch__tip-label {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gold);
}

.notch__tip-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Call window ---------- */

.call-window {
  position: relative;
  z-index: 2;
  width: min(760px, 88%);
  height: 448px;
  margin: auto;
  background: rgba(250, 249, 245, 0.97);
  border: 1px solid rgba(27, 41, 64, 0.1);
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(15, 24, 38, 0.42);
  overflow: hidden;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}

.call-window__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d6d2c6;
}

.call-window__chrome strong {
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 500;
}

.call-window__chrome em {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.call-window__chrome em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.call-window__body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
}

.pane {
  padding: 20px 24px 22px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pane--memory {
  border-left: 1px solid var(--line);
  background: rgba(233, 230, 221, 0.6);
  display: flex;
  flex-direction: column;
}

.pane__label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sea);
}

.pane--transcript {
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.transcript-feed {
  min-height: 0;
}

.memory-thread {
  margin-top: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.transcript-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.transcript-row.is-entering {
  opacity: 0;
  transform: translateY(6px);
}

.demo-word {
  display: inline;
  opacity: 0;
  transform: translateY(4px);
}

.transcript-row.is-typing p::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.08em;
  background: var(--sea);
  opacity: 0.7;
  animation: demo-cursor 0.9s step-end infinite;
}

@keyframes demo-cursor {
  50% {
    opacity: 0;
  }
}

.transcript-row .who {
  flex: none;
  width: 44px;
  padding-top: 1px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sea);
}

.transcript-row .who--you {
  color: var(--ink-soft);
}

.transcript-row p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.transcript-row time {
  flex: none;
  padding-top: 2px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.sky-note {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  background: rgba(193, 154, 85, 0.1);
}

.sky-note strong {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-deep);
  padding-top: 1px;
}

.sky-note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.person-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
}

.person-card p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.sky-note.is-entering {
  opacity: 0;
  transform: translateY(6px);
}

.sky-note--rapport {
  border-left-color: var(--sea);
  background: rgba(63, 98, 140, 0.08);
}

.sky-note--rapport strong {
  color: var(--sea);
}

.memory-item {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.memory-item.is-entering {
  opacity: 0;
  transform: translateX(8px);
}

.memory-item__tag {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.memory-item__copy {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.memory-item__icon {
  flex: none;
  display: flex;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.memory-item__icon svg {
  width: 14px;
  height: 14px;
}

.memory-item--last-call .memory-item__tag,
.memory-item--last-call .memory-item__icon {
  color: var(--sea);
}

.memory-item--rapport .memory-item__tag,
.memory-item--rapport .memory-item__icon {
  color: var(--sea);
}

.memory-item--action .memory-item__tag,
.memory-item--action .memory-item__icon {
  color: var(--gold-deep);
}

.memory-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Access section ---------- */

.access {
  background: var(--salt);
  padding: 64px var(--pad) 40px;
}

.access__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Apply form ---------- */

.apply {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 72px;
  padding-top: 60px;
  border-top: 1px solid var(--line-strong);
}

.apply__story h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.1;
}

.apply__story p {
  margin: 0;
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.apply-form {
  font-family: var(--sans);
}

.apply-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
}

.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apply-form label span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 10px;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.apply-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%231b2940' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}

.apply-form select:invalid {
  color: var(--muted);
}

.apply-form textarea {
  resize: vertical;
}

.apply-form ::placeholder {
  color: var(--muted);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.apply-form__wide {
  margin-top: 30px;
}

.apply-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.apply-form__button {
  margin-top: 34px;
  border: 0;
}

.form-status {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--gold-deep);
  min-height: 1.2em;
}

.form-legal {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.form-legal a {
  color: inherit;
}

/* ---------- Footer ---------- */

.site-footer {
  overflow: hidden;
  padding: 90px var(--pad) 0;
}

.site-footer__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer__col a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__col a:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  gap: 28px;
}

.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink);
}

.site-footer__wordmark {
  margin: 40px auto -0.24em;
  font-family: var(--serif);
  font-size: clamp(170px, 30vw, 470px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--ink);
  user-select: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .apply {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 720px) {
  .nav__shell {
    --nav-pad-x: var(--pad);
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding: 0 var(--pad) 40px;
  }

  .hero__masthead {
    padding-top: 120px;
    max-width: 92%;
  }

  .hero__masthead h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .display {
    margin-top: 28px;
    padding: 7px;
    border-radius: 18px;
  }

  .screen {
    min-height: 0;
    border-radius: 12px;
  }

  .hw-notch {
    width: 92px;
    height: 24px;
  }

  .hw-notch::after {
    width: 7px;
    height: 7px;
  }

  .notch.is-demo-precall {
    width: min(320px, 94%);
  }

  .notch.is-demo-precall:hover {
    width: min(340px, 96%);
  }

  .notch.is-demo-precall .notch__tip {
    max-height: 120px;
  }

  .notch {
    width: min(270px, 90%);
  }

  .notch:hover {
    width: min(320px, 94%);
  }

  .notch__status {
    height: 24px;
    padding: 0 12px;
    font-size: 11.5px;
  }

  .notch__status-spacer {
    width: 92px;
  }

  .call-window {
    width: 92%;
    height: 420px;
    margin: 28px auto 26px;
  }

  .call-window__body,
  .pane--transcript {
    height: 372px;
    min-height: 372px;
    max-height: 372px;
  }

  .call-window__body {
    grid-template-columns: 1fr;
  }

  .pane--memory {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .transcript-row time {
    display: none;
  }

  .access {
    padding-top: 48px;
  }

  .apply-form__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    flex-direction: column;
    gap: 18px;
  }

  .site-footer__wordmark {
    margin-top: 24px;
  }
}
