/* ============ RESET / BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #007aff;
  --blue-dark: #0066d6;
  --text: #050505;
  --text-soft: #333333;
  --grey: #6e6e73;
  --border: #e8e8ed;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============ HEADER ============ */
.site-header {
  background: #000000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand: SVG mark + word */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.nav-link:hover {
  color: #ffffff;
}

.btn-outline {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 9px 18px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ============ MAIN ============ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ HERO ============ */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 64px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 120px;
}

.hero-left {
  width: 470px;
  flex-shrink: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 20px;
}

.headline {
  font-size: 54px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 22px;
}

.body-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 410px;
  margin-bottom: 18px;
}

/* STEP LIST */
.steps {
  list-style: none;
  position: relative;
  margin-top: 26px;
  padding-left: 2px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: #e5e5ea;
  z-index: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.step:last-child {
  margin-bottom: 0;
}

.step-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e5e5ea;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4f;
}

.step-label {
  font-size: 14px;
  color: var(--text-soft);
}

.steps-footer {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
  margin-top: 24px;
}

/* ============ iPHONE MOCKUP ============ */
.hero-right {
  flex-shrink: 0;
}

.phone {
  width: 315px;
  height: 590px;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 9px;
  box-shadow:
    0 0 0 2px #2a2a2c,
    0 24px 60px rgba(0, 0, 0, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.12);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status bar */
.status-bar {
  position: relative;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  padding-top: 6px;
}

.status-time {
  font-size: 14px;
  font-weight: 600;
  color: #050505;
  letter-spacing: -0.01em;
}

.dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 26px;
  background: #0a0a0a;
  border-radius: 14px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #050505;
}

/* Messages header */
.msg-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid #ededf0;
}

.msg-back {
  font-size: 26px;
  line-height: 1;
  color: var(--blue);
  font-weight: 400;
  margin-right: 2px;
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #c7c7cc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.msg-name {
  font-size: 13px;
  font-weight: 600;
  color: #050505;
  display: flex;
  align-items: center;
  gap: 3px;
}

.msg-name .chev {
  color: #c7c7cc;
  font-weight: 400;
}

/* Chat area */
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat::-webkit-scrollbar {
  width: 0;
}

.chat-timestamp {
  text-align: center;
  font-size: 10px;
  color: #8e8e93;
  margin-bottom: 6px;
  line-height: 1.4;
}

.chat-timestamp .ts-label {
  font-weight: 600;
  color: #8e8e93;
}

/* Bubbles */
.bubble {
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.25;
  word-wrap: break-word;
  white-space: pre-line;
  animation: pop 0.18s ease;
}

.bubble.incoming {
  align-self: flex-start;
  background: #e9e9eb;
  color: #050505;
  border-bottom-left-radius: 5px;
}

.bubble.outgoing {
  align-self: flex-end;
  background: var(--blue);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Quick reply chips (iOS predictive text style) */
.quick-replies {
  display: none;
  flex-shrink: 0;
  gap: 8px;
  padding: 6px 12px 0;
}

.quick-replies.visible {
  display: flex;
}

.chip {
  flex: 1;
  background: #f6f6f8;
  border: 1px solid #d9d9de;
  border-radius: 9px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #050505;
  cursor: pointer;
  transition: background 0.12s ease;
}

.chip:hover {
  background: #ececf0;
}

/* Subtle send hint */
.send-hint {
  flex-shrink: 0;
  text-align: center;
  font-size: 11px;
  color: #8e8e93;
  padding: 4px 12px 0;
}

/* Input bar */
.input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
}

.plus-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #8e8e93;
  cursor: pointer;
  display: flex;
  padding: 0;
}

.input-field {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #d1d1d6;
  border-radius: 16px;
  padding: 5px 5px 5px 12px;
}

.input-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  font-family: inherit;
  color: #050505;
  background: transparent;
}

.send-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:disabled {
  background: #c7c7cc;
  cursor: default;
}

/* Home indicator */
.home-indicator {
  flex-shrink: 0;
  width: 130px;
  height: 5px;
  background: #0a0a0a;
  border-radius: 3px;
  margin: 4px auto 8px;
}

/* ============ CTA CARD ============ */
.cta-card {
  width: 790px;
  max-width: calc(100% - 40px);
  margin: 42px auto 40px;
  background: #ffffff;
  border: 1px solid #dedee3;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  padding: 30px 38px 26px;
  text-align: center;
}

.cta-label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
}

.cta-headline {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 10px;
}

.cta-sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-soft);
  max-width: 620px;
  margin: 12px auto 0;
}

.cta-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.phone-input {
  width: 380px;
  height: 50px;
  border: 1px solid #d9d9de;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}

.phone-input .flag {
  font-size: 18px;
}

.phone-input .flag-chev {
  font-size: 10px;
  color: #8e8e93;
  margin-right: 4px;
}

.phone-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #050505;
  background: transparent;
}

.phone-input.highlight {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.16);
}

.btn-blue {
  height: 50px;
  width: 190px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.28);
  transition: background 0.15s ease;
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.btn-blue:disabled,
.btn-blue:disabled:hover {
  background: #e5e7eb;
  color: #6b7280;
  border: 1px solid #d1d5db;
  box-shadow: none;
  cursor: default;
  opacity: 1;
  transition: none;
}

.consent {
  font-size: 11px;
  color: #777777;
  margin-top: 14px;
}

.cta-success {
  margin-top: 18px;
}

.success-text {
  font-size: 14px;
  font-weight: 600;
  color: #050505;
  margin-bottom: 12px;
}

.btn-secondary {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  border: 1px solid #d9d9de;
  border-radius: 10px;
  padding: 10px 18px;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: #f5f5f7;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    padding-top: 48px;
  }

  .hero-left {
    width: 100%;
    max-width: 470px;
  }

  .body-text {
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    display: inline-block;
    text-align: left;
  }

  .cta-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0 18px;
  }

  .nav-link {
    display: none;
  }

  .headline {
    font-size: 38px;
  }

  .phone {
    width: 300px;
    height: 562px;
  }

  .cta-card {
    padding: 26px 22px 22px;
  }

  .cta-form {
    flex-direction: column;
  }

  .phone-input,
  .btn-blue {
    width: 100%;
  }
}
