/* Property Bot — warm paper, thread-first */

:root {
  --paper: #ebe4d4;
  --paper-deep: #e0d6c2;
  --ink: #1a1714;
  --ink-soft: #4a433a;
  --ink-faint: #7a7268;
  --line: rgba(26, 23, 20, 0.12);
  --imessage: #0b84fe;
  --imessage-deep: #0070e0;
  --bubble-gray: #e9e5dc;
  --phone-bezel: #111111;
  --screen: #f6f4ef;
  --shadow: 0 28px 60px rgba(40, 28, 12, 0.18);
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-ui: "Instrument Sans", system-ui, sans-serif;
  --font-thread: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.5;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(255, 248, 230, 0.9), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(214, 198, 160, 0.35), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
}

.brand {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.hero-copy {
  max-width: 28rem;
}

.headline {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.85rem, 5.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background 160ms ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-call {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.18);
}

.btn-call:hover,
.btn-call:focus-visible {
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.24);
  transform: translateY(-1px);
}

.btn-text {
  background: var(--imessage);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 132, 254, 0.28);
}

.btn-text:hover,
.btn-text:focus-visible {
  background: var(--imessage-deep);
  color: #fff;
  transform: translateY(-1px);
}

.phone-number {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.phone-number a {
  text-decoration: none;
}

.phone-number a:hover,
.phone-number a:focus-visible {
  text-decoration: underline;
}

.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 28ch;
}

/* —— Phone mock —— */

.phone-wrap {
  margin: 0;
  justify-self: center;
  width: min(100%, 22.5rem);
}

.phone {
  position: relative;
  border-radius: 2.35rem;
  background: var(--phone-bezel);
  padding: 0.55rem;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: 50% 70%;
  animation: phone-settle 1.1s var(--ease-out) both, phone-float 5.5s 1.2s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  z-index: 3;
  width: 6.5rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: min(70vh, 36rem);
  min-height: 28rem;
  border-radius: 1.9rem;
  overflow: hidden;
  background: var(--screen);
}

.thread-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 2.1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(8px);
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a227, #a67c1a);
  color: #fff8e7;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.thread-who {
  min-width: 0;
}

.thread-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.thread-sub {
  margin: 0.1rem 0 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 500;
}

.thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.85rem 0.75rem;
  overflow: hidden;
}

.bubble {
  position: relative;
  margin: 0;
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: bubble-in 0.45s var(--ease-out) forwards;
}

.bubble.bot {
  align-self: flex-start;
  background: var(--bubble-gray);
  color: var(--ink);
  border-bottom-left-radius: 0.3rem;
}

.bubble.user {
  align-self: flex-end;
  background: var(--imessage);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}

.delivered {
  display: block;
  margin: 0.2rem 0.35rem 0;
  text-align: right;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: bubble-in 0.35s var(--ease-out) forwards;
}

.user-stack {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 88%;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: bubble-in 0.45s var(--ease-out) forwards;
}

.user-stack .bubble {
  opacity: 1;
  transform: none;
  animation: none;
  max-width: 100%;
}

.user-stack .delivered {
  animation-delay: 0.15s;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  align-self: flex-start;
  width: fit-content;
  padding: 0.7rem 0.9rem;
  border-radius: 1.15rem;
  border-bottom-left-radius: 0.3rem;
  background: var(--bubble-gray);
  opacity: 0;
}

.typing span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #8a8278;
  animation: dot-bounce 1.1s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

/* Conversation timeline */
.typing-1 {
  animation: typing-show 0.9s 0.35s both, typing-hide 0.01s 1.35s forwards;
}

.bubble-1 {
  animation-delay: 1.4s;
}

.bubble-2 {
  animation-delay: 2.55s;
}

.typing-2 {
  animation: typing-show 0.9s 3.15s both, typing-hide 0.01s 4.15s forwards;
}

.bubble-3 {
  animation-delay: 4.2s;
}

.composer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem 0.85rem;
  border-top: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.95);
}

.composer-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(26, 23, 20, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.composer-placeholder {
  user-select: none;
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--imessage);
  border-radius: 1px;
  animation: caret-blink 1.05s steps(1, end) infinite;
}

.composer-send {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--imessage);
  color: #fff;
  flex-shrink: 0;
}

/* —— FAQ (thin) —— */

.faq {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.75rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.faq-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.faq-list {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.faq-list dt {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.faq-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.65rem;
}

.page p,
.page li {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.page p {
  margin: 0 0 1rem;
}

.page ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.45rem;
}

.page code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: rgba(26, 23, 20, 0.06);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-line {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.about-line p {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.site-footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.25rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.site-footer a {
  text-decoration: none;
}

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

.brand-inline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-soft);
}

/* —— Keyframes —— */

@keyframes phone-settle {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(4deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(2.5deg) scale(1);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(2.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.8deg);
  }
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typing-show {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-hide {
  to {
    opacity: 0;
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

@keyframes dot-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* —— Responsive —— */

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 22.5rem);
    gap: 3rem;
    padding-top: 2.25rem;
    padding-bottom: 3rem;
    min-height: calc(100vh - 8rem);
  }

  .hero-copy {
    order: 1;
  }

  .phone-wrap {
    order: 2;
    justify-self: end;
  }

  .headline {
    max-width: 10ch;
  }
}

@media (max-width: 859px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .phone-wrap {
    order: 1;
  }

  .hero-copy {
    order: 2;
    text-align: center;
    max-width: none;
    margin: 0 auto;
  }

  .headline {
    margin-left: auto;
    margin-right: auto;
    max-width: 12ch;
  }

  .cta-row {
    justify-content: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }
}

/* —— Reduced motion: finished thread immediately —— */

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

  .phone {
    animation: none;
    transform: rotate(2deg);
  }

  .typing {
    display: none;
  }

  .bubble {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .user-stack,
  .user-stack .delivered {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .caret {
    animation: none;
    opacity: 1;
  }

  .btn {
    transition: none;
  }
}


.phone-screen,
.thread,
.bubble,
.thread-name,
.thread-sub,
.composer,
.composer-placeholder,
.delivered {
  font-family: var(--font-thread);
}
