:root {
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-text: #0E1A3A;
  --color-text-muted: #5C6478;
  --color-border: #E4E7EC;
  --color-brand-navy: #1A2B5C;
  --color-brand-green: #22C55E;
  --color-brand-green-hover: #16A34A;
  --color-success-soft: #ECFDF5;
  --color-wa-header: #075E54;
  --color-wa-bg: #ECE5DD;
  --color-wa-bubble-in: #FFFFFF;
  --color-wa-bubble-out: #DCF8C6;
  --color-wa-link: #34B7F1;
  --color-wa-text: #303030;
  --font-hero: clamp(36px, 5.5vw, 56px);
  --font-h2: clamp(26px, 3.5vw, 36px);
  --font-body-large: clamp(17px, 2vw, 19px);
  --font-body: 16px;
  --font-small: 14px;
  --font-tiny: 13px;
  --shadow-card: 0 1px 2px rgba(14,26,58,0.04), 0 4px 12px rgba(14,26,58,0.04);
  --shadow-phone: 0 24px 48px rgba(14,26,58,0.12), 0 8px 16px rgba(14,26,58,0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--color-brand-navy);
  outline-offset: 2px;
}

.ta-container {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.ta-hero {
  min-height: 90vh;
  padding: 56px 0;
}

.ta-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ta-logo-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 80px;
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
}

.ta-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ta-hero-copy h1,
.ta-page h1 {
  margin: 0;
  color: var(--color-brand-navy);
  font-size: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ta-hero-copy p {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--color-text-muted);
  font-size: var(--font-body-large);
}

.ta-phone {
  width: 320px;
  max-width: 100%;
  margin-top: 48px;
  padding: 8px;
  border: 1px solid rgba(14,26,58,0.06);
  border-radius: 36px;
  background: var(--color-surface);
  box-shadow: var(--shadow-phone);
}

.ta-phone-inner {
  position: relative;
  display: flex;
  height: 600px;
  overflow: hidden;
  flex-direction: column;
  border-radius: 28px;
  background: var(--color-wa-bg);
}

.ta-wa-header {
  display: flex;
  height: 64px;
  flex: 0 0 64px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-wa-header);
}

.ta-wa-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface);
}

.ta-wa-avatar svg {
  width: 21px;
  height: 21px;
}

.ta-wa-name {
  color: var(--color-surface);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.ta-wa-status {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  line-height: 1.3;
}

.ta-chat {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  padding: 12px 10px;
  background: var(--color-wa-bg);
}

.ta-msg,
.ta-typing {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.ta-msg.visible,
.ta-typing.visible {
  opacity: 1;
  transform: translateY(0);
}

.ta-msg {
  width: fit-content;
  max-width: 86%;
  border-radius: 8px;
  color: var(--color-wa-text);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.ta-msg-out {
  align-self: flex-end;
  padding: 7px 10px;
  background: var(--color-wa-bubble-out);
}

.ta-msg-in {
  align-self: flex-start;
  background: var(--color-wa-bubble-in);
}

.ta-msg-bundle {
  overflow: hidden;
}

.ta-msg-text {
  padding: 9px 11px;
  white-space: pre-wrap;
}

.ta-msg-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid rgba(7,94,84,0.14);
  color: var(--color-wa-header);
  font-weight: 500;
}

.ta-msg-action svg {
  width: 14px;
  height: 14px;
}

.ta-typing {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--color-wa-bubble-in);
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.ta-typing.hidden {
  display: none;
}

.ta-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(48,48,48,0.45);
  animation: ta-dot 900ms ease-in-out infinite;
}

.ta-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.ta-typing span:nth-child(3) {
  animation-delay: 240ms;
}

.ta-results {
  padding: 9px 11px;
  font-variant-numeric: tabular-nums;
  white-space: pre-wrap;
}

.ta-results strong {
  font-weight: 600;
}

.ta-link {
  color: var(--color-wa-link);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ta-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 300ms ease-out;
}

.ta-modal-overlay.visible {
  background: rgba(0,0,0,0.35);
}

.ta-modal {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  max-height: 70%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--color-surface);
  transform: translateY(100%);
  transition: transform 350ms cubic-bezier(0.32, 0.72, 0, 1);
  text-align: left;
}

.ta-modal.visible {
  transform: translateY(0);
}

.ta-modal-handle {
  width: 36px;
  height: 4px;
  margin: 8px auto 6px;
  border-radius: 999px;
  background: #D0D5DD;
}

.ta-modal-header {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--color-border);
}

.ta-modal-title {
  color: var(--color-brand-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.ta-modal-subtitle,
.ta-modal-row-desc {
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.ta-modal-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background 150ms ease-out;
}

.ta-modal-row:last-child {
  border-bottom: 0;
}

.ta-modal-row.tap {
  background: var(--color-success-soft);
}

.ta-modal-row-title {
  color: var(--color-text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}

.ta-hero-cta {
  margin-top: 48px;
}

.ta-button,
.ta-submit {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: var(--color-brand-green);
  color: var(--color-surface);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease-out;
  cursor: pointer;
}

.ta-button {
  padding: 0 24px;
}

.ta-button:hover,
.ta-submit:hover {
  background: var(--color-brand-green-hover);
}

.ta-hero-cta p {
  margin: 16px 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-tiny);
}

.ta-how,
.ta-waitlist {
  padding: 56px 0;
}

.ta-how {
  background: var(--color-surface);
}

.ta-how h2,
.ta-waitlist h2 {
  margin: 0;
  color: var(--color-brand-navy);
  font-size: var(--font-h2);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-align: center;
}

.ta-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}

.ta-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ta-step-icon {
  display: grid;
  height: 44px;
  place-items: center;
  color: var(--color-brand-navy);
}

.ta-step-icon svg {
  width: 34px;
  height: 34px;
}

.ta-step h3 {
  margin: 20px 0 0;
  color: var(--color-brand-navy);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.ta-step p {
  max-width: 260px;
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ta-waitlist-subline {
  max-width: 460px;
  margin: 40px auto 0;
  color: var(--color-text-muted);
  font-size: 17px;
  text-align: center;
}

.ta-form-card {
  display: flex;
  max-width: 520px;
  flex-direction: column;
  gap: 24px;
  margin: 40px auto 0;
  padding: 28px;
  border: 1px solid rgba(14,26,58,0.06);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.ta-input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  transition: border-color 150ms ease-out;
}

.ta-input::placeholder {
  color: var(--color-text-muted);
}

.ta-input:focus {
  border-color: var(--color-brand-navy);
  outline: none;
}

.ta-input:focus-visible {
  outline: 2px solid var(--color-brand-navy);
  outline-offset: 2px;
}

.ta-checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: -8px;
}

.ta-checkbox-row input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 2px 0 0;
  accent-color: var(--color-brand-green);
}

.ta-checkbox-row label {
  color: var(--color-text-muted);
  font-size: var(--font-tiny);
  line-height: 1.5;
}

.ta-checkbox-row a {
  color: var(--color-brand-navy);
}

.ta-submit {
  width: 100%;
}

.ta-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.section-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ta-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-tiny);
  line-height: 1.7;
  text-align: center;
}

.ta-footer p {
  margin: 0;
}

.ta-footer p + p {
  margin-top: 8px;
}

.ta-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.ta-page {
  min-height: 100vh;
}

.ta-page-header {
  padding: 24px 0;
}

.ta-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ta-page-logo {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  overflow: hidden;
}

.ta-page-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ta-back-link {
  color: var(--color-text-muted);
  font-size: var(--font-small);
  text-decoration: none;
}

.ta-back-link:hover {
  color: var(--color-brand-navy);
}

.ta-page-main {
  padding: 56px 0 88px;
}

.ta-page-content {
  max-width: 720px;
  margin: 0 auto;
}

.ta-page-content h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.ta-page-content p {
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-body-large);
}

.ta-page-content a {
  color: var(--color-brand-navy);
}

.ta-thanks {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

@keyframes ta-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 0.85;
    transform: translateY(-2px);
  }
}

@media (min-width: 768px) {
  .ta-hero,
  .ta-how,
  .ta-waitlist {
    padding: 88px 0;
  }

  .ta-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .ta-form-card {
    padding: 40px;
  }
}

@media (max-width: 374px) {
  .ta-container {
    width: min(100% - 32px, 1120px);
  }

  .ta-phone {
    width: 100%;
  }

  .ta-chat {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ta-msg,
  .section-reveal {
    opacity: 1;
    transform: none;
  }

  .ta-typing,
  .ta-modal,
  .ta-modal-overlay {
    display: none;
  }
}
