/*
  InlineAI landing page. Deliberately plain: white paper, near-black type,
  0.5px hairlines and one very light black shadow. Quip is the only colour.
*/

:root {
  --bg: #ffffff;
  --fg: #0d0d0f;
  --muted: #6b6b73;
  --surface: #ffffff;
  --screen: #fafafa;
  --hairline: 0.5px solid rgb(0 0 0 / 14%);
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 4px 14px rgb(0 0 0 / 4%);
  --shadow-hover: 0 1px 2px rgb(0 0 0 / 5%), 0 8px 22px rgb(0 0 0 / 7%);
  --radius: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px / 1.55 "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a {
  color: inherit;
}

.top,
.foot,
main {
  max-width: 960px;
  margin: 0 auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: var(--hairline);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.links {
  display: flex;
  gap: 10px;
}
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ghost svg {
  flex-shrink: 0;
}
.ghost:hover {
  box-shadow: var(--shadow-hover);
}

/* Hero */
.hero {
  text-align: center;
  padding-block: 72px 48px;
  max-width: 660px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 12px;
  border-radius: 999px;
  border: var(--hairline);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
}
h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.lede {
  margin: 20px auto 32px;
  max-width: 32em;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

/* Primary button: InlineAI purple, the one strong element on the page */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #5b4fe9;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cta:hover {
  background: #4337c9;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.cta svg {
  width: 18px;
  height: 18px;
}
.cta:focus-visible {
  outline: 2px solid #5b4fe9;
  outline-offset: 3px;
}
.ghost:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.cta[aria-disabled="true"] {
  cursor: default;
}

/* Video, framed as a browser window */
.video {
  padding-block: 8px 96px;
}
.frame {
  border-radius: var(--radius);
  border: var(--hairline);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: var(--hairline);
}
.bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: var(--hairline);
}
.bar span {
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 6px;
  background: var(--screen);
  color: var(--muted);
  font-size: 12px;
}
.screen {
  aspect-ratio: 16 / 9;
  background: var(--screen);
  display: grid;
  place-items: center;
}
.screen video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.soon {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.soon p {
  margin: 0;
}
[hidden] {
  display: none !important;
}

/* Steps: one card, three columns, Quip peeking over the top edge */
.steps {
  padding-block: 0 96px;
}
h2 {
  margin: 0 0 76px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.steps-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.peek {
  position: absolute;
  top: -46px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.peek svg {
  flex-shrink: 0;
}
.greet {
  margin-bottom: 22px;
  padding: 8px 14px;
  border: var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.quip-float {
  animation: quip-float 4s ease-in-out infinite;
}
@keyframes quip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.step {
  padding: 40px 24px 26px;
}
.step + .step {
  border-left: var(--hairline);
}
.ic {
  display: block;
  color: var(--fg);
  width: 26px;
  height: 26px;
}
.num {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px max(22px, env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 14px;
}
.foot nav {
  display: flex;
  gap: 20px;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--fg);
}

/* Privacy page */
.doc {
  max-width: 660px;
  margin: 0 auto;
  padding-block: 40px 96px;
}
.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
}
.doc h2 {
  margin: 36px 0 8px;
  text-align: left;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
}
.doc p,
.doc li {
  color: var(--muted);
}
.doc strong {
  color: var(--fg);
}

@media (max-width: 720px) {
  .hero {
    padding-block: 40px 32px;
  }
  .lede {
    font-size: 16px;
  }
  .steps-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .step + .step {
    border-left: 0;
    border-top: var(--hairline);
  }
  .step:first-child {
    padding-top: 48px;
  }
  .peek {
    left: 14px;
    right: 14px;
  }
  .peek svg {
    width: 52px;
    height: 52px;
  }
  .greet {
    font-size: 13px;
  }
  .video,
  .steps {
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .ghost {
    transition: none;
  }
  .quip-float {
    animation: none;
  }
}
