/* ============================================
   Carson — Dark green frame + hero layout
   ============================================ */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #152e25;
  --cream: #f7f6f5;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --serif: "Radley", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --frame: 12px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--green);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* --- Page Shell --- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--frame);
}

/* --- Nav --- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  animation: fadeIn 0.6s ease both;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  color: var(--cream);
}

.nav-logo {
  height: 32px;
  width: auto;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(247, 246, 245, 0.25);
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  background: rgba(247, 246, 245, 0.1);
  border-color: rgba(247, 246, 245, 0.4);
}

/* --- Hero --- */
.hero {
  flex: none;
  min-height: 70vh;
  border-radius: var(--radius);
  position: relative;
  background-image: url("/logos/scenery3.png");
  background-size: cover;
  background-position: center top;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.1s;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: none;
  min-width: 650px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 8px;
  margin-bottom: 30px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.hero-pill-yc {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 3px;
}

.hero-heading .mobile-br {
  display: block;
}

.hero-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 4.2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero-rotator {
  position: relative;
  display: block;
  height: 2.4em;
}

.hero-rotator-line {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-rotator-line.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-rotator-line.exiting {
  opacity: 0;
  transform: translateY(-12px);
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--fg);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero {
  padding: 8px 20px;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
  background: #0e1f1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- App Mockup --- */
.carson-ui {
  flex: 1;
  min-width: 0;
  max-width: 1080px;
  margin-left: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: slideUp 0.9s ease both;
  animation-delay: 0.35s;
}

.carson-ui-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8f7f6;
  border-bottom: 1px solid #eae8e4;
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-close { background: #ec6a5e; }
.dot-minimize { background: #f4bf4f; }
.dot-maximize { background: #61c554; }

.carson-ui-body { display: flex; min-height: 420px; }

.carson-ui-sidebar {
  width: 52px;
  flex-shrink: 0;
  background: #f4f3f0;
  padding: 14px 8px 10px;
  border-right: 1px solid #eae8e4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carson-ui-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: #999;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.carson-ui-kbd {
  margin-left: auto;
  font-size: 0.58rem;
  color: #bbb;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--sans);
}

.carson-ui-nav-items { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }

.carson-ui-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  cursor: default;
}

.carson-ui-nav-item.active { background: rgba(0, 0, 0, 0.08); color: #1a1a1a; border-radius: 10px; }

.carson-ui-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  padding: 2px 6px;
  border-radius: 8px;
  line-height: 1.4;
}

.carson-ui-sidebar-section { margin-top: 4px; }

.carson-ui-section-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  padding: 4px 8px 2px;
}

.carson-ui-recent-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carson-ui-recent-item span { overflow: hidden; text-overflow: ellipsis; }
.carson-ui-recent-item svg { flex-shrink: 0; color: #aaa; }

.carson-ui-team { padding-top: 4px; }

.carson-ui-team-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  padding: 0 8px;
  margin-bottom: 4px;
}

a.carson-ui-team-member {
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}

a.carson-ui-team-member:hover { background: rgba(0, 0, 0, 0.05); }

.carson-ui-team-member {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #555;
}

.avatar-wrap { position: relative; width: 30px; height: 30px; flex-shrink: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: block; object-fit: cover; }

.status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  border: 1.5px solid #f4f3f0;
}

.carson-ui-sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 1px; }

.carson-ui-org {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px;
  font-size: 0.78rem;
  color: #555;
}

.carson-ui-org-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carson-ui-org-name { flex: 1; }
.carson-ui-org svg { color: #999; margin-left: auto; }

.carson-ui-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fafaf8;
  min-width: 0;
}

.carson-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #eae8e4;
}

.carson-ui-page-title { font-size: 0.9rem; font-weight: 500; color: var(--fg); }

.carson-ui-new-task-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

.carson-ui-content { flex: 1; padding: 20px 22px 10px; overflow: hidden; }

.carson-ui-greeting {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--fg);
}

.carson-ui-greeting-sub {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 4px;
  margin-bottom: 18px;
}

.carson-ui-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.carson-ui-section-hdr {
  font-size: 0.85rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 4px;
}

.carson-ui-section-emoji { font-size: 0.72rem; }
.carson-ui-section-hdr strong { font-weight: 600; }
.carson-ui-section-meta { font-size: 0.62rem; color: #bbb; }

.carson-ui-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.carson-ui-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.carson-ui-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carson-ui-card-desc {
  font-size: 0.68rem;
  color: #888;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carson-ui-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.carson-ui-tool-icons { display: flex; align-items: center; gap: 4px; }
.carson-ui-tool-icons svg { color: #ccc; }

.carson-ui-role {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.role-ceo { background: #e8e0c8; color: #6b5d3e; }
.role-cpo { background: #d4e3ef; color: #3d6a8e; }
.role-cto { background: #e0ddef; color: #5b5080; }

.carson-ui-chat { padding: 0 22px 14px; }

.carson-ui-chat-bar {
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 460px;
  margin: 0 auto;
}

.carson-ui-chat-placeholder { font-size: 0.78rem; color: #bbb; margin-bottom: 8px; }

.carson-ui-chat-actions { display: flex; align-items: center; justify-content: space-between; }

.carson-ui-chat-left,
.carson-ui-chat-right { display: flex; align-items: center; gap: 8px; }

.carson-ui-chat-left svg,
.carson-ui-chat-right svg { color: #bbb; }

.carson-ui-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e3de;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carson-ui-send-btn svg { color: #999; }

.carson-ui-sidebar-section { display: none; }
.carson-ui-sidebar .carson-ui-nav-item > span,
.carson-ui-sidebar .carson-ui-search > span,
.carson-ui-sidebar .carson-ui-recent-item > span,
.carson-ui-sidebar .carson-ui-team-member > span:not(.avatar-wrap),
.carson-ui-sidebar .carson-ui-kbd,
.carson-ui-sidebar .carson-ui-badge,
.carson-ui-sidebar .carson-ui-team-label,
.carson-ui-sidebar .carson-ui-org-name,
.carson-ui-sidebar .carson-ui-org svg { display: none; }
.carson-ui-nav-item { justify-content: center; padding: 8px; }
.carson-ui-search { justify-content: center; padding: 8px; }
.carson-ui-team-member { justify-content: center; padding: 4px; }
.carson-ui-org { justify-content: center; padding: 8px 4px 4px; }
.carson-ui-sidebar .carson-ui-search svg,
.carson-ui-sidebar .carson-ui-nav-item svg { flex-shrink: 0; width: 20px; height: 20px; }

/* --- Use Cases Section --- */
.use-cases {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1400px;
  margin: 100px auto 0;
  padding: 0 32px;
}

.use-case-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(247, 246, 245, 0.04);
  border: 1px solid rgba(247, 246, 245, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 620px;
}

.use-case-card--reversed {
  flex-direction: row-reverse;
}

.use-case-text {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.use-case-media {
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.use-case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.use-case-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 246, 245, 0.45);
  margin-bottom: 4px;
}

.use-case-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 8px;
}

.use-case-desc {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(247, 246, 245, 0.6);
}

/* Scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Team Section --- */
.team {
  padding: 60px 24px 80px;
  text-align: center;
}

.team-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
}


.team-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.team-card:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.team-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.team-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--cream);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.team-title {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: rgba(247, 246, 245, 0.45);
  font-weight: 400;
  transition: color 0.3s ease;
}

.team-bio {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(247, 246, 245, 0.6);
  margin-top: 8px;
  line-height: 1.5;
  font-weight: 400;
  transition: color 0.3s ease;
}

.team-card:hover .team-name {
  color: var(--fg);
}

.team-card:hover .team-title {
  color: rgba(26, 26, 26, 0.4);
}

.team-card:hover .team-bio {
  color: var(--fg-muted);
}

/* --- Bottom CTA --- */
.bottom-cta {
  text-align: center;
  padding: 80px 24px 60px;
}

.bottom-cta-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.bottom-cta-subtitle {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(247, 246, 245, 0.6);
  margin-bottom: 28px;
}

.bottom-cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.bottom-cta-actions .btn-primary {
  background: #000;
  color: #fff;
}

.bottom-cta-actions .btn-primary:hover {
  background: #222;
}

.bottom-cta-video {
  width: 72%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  margin: 0 auto;
}

.bottom-cta-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 40px;
  font-size: 0.78rem;
  color: var(--cream);
  animation: fadeIn 0.8s ease both;
  animation-delay: 0.5s;
}

.yc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.yc-logo {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.yc-badge span {
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Waitlist Form Card --- */
.waitlist-form-card,
.waitlist-success {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 10;
  width: calc(100% - 48px);
  max-width: 440px;
  height: fit-content;
  background: var(--cream);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.form-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--fg);
  text-align: center;
}

.form-subtext {
  font-size: 0.92rem;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 6px;
  margin-bottom: 24px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
}

.form-label--last {
  margin-bottom: 24px;
}

.label-hint {
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 0.78rem;
}

.form-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--green);
}

.form-submit {
  margin-top: auto;
  width: 100%;
  color: #fff;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-error {
  font-size: 0.82rem;
  color: #c0392b;
  text-align: center;
  min-height: 1.2em;
}

.form-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--fg-muted);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  line-height: 0;
}

.form-close:hover {
  opacity: 1;
}

/* --- View Transitions --- */
.hero-content {
  transition: opacity 0.3s ease;
}

/* Form view */
.page--form .hero-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.page--form .waitlist-form-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s, visibility 0s linear 0s;
  display: flex;
  flex-direction: column;
}

/* Success view */
.page--success .hero-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.page--success .waitlist-form-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page--success .waitlist-success {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s, visibility 0s linear 0s;
}

.page--success .waitlist-success .form-heading {
  font-size: 2rem;
}

.page--success .waitlist-success .form-subtext {
  font-size: 1.25rem;
  margin-bottom: 0;
  text-wrap: balance;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1400px) {
  .hero-heading {
    font-size: 3.2rem;
  }
}

@media (max-width: 1250px) {
  .hero {
    flex-direction: column;
    padding: 40px 32px;
    gap: 32px;
  }

  .hero-content {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .carson-ui {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --frame: 8px;
  }

  .team {
    padding: 60px 16px 100px;
  }

  .team-heading {
    margin-bottom: 40px;
  }

  .team-grid {
    gap: 20px;
    max-width: 90%;
  }

  .team-photo {
    width: 80px;
    height: 80px;
  }

  .team-card {
    padding: 20px 22px;
    gap: 16px;
  }

  .waitlist-form-card,
  .waitlist-success {
    max-width: 100%;
    width: calc(100% - 32px);
    max-height: calc(100% - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav {
    padding: 18px 8px;
  }

  .hero {
    min-height: auto;
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
  }

  .hero-content {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-rotator {
    height: 2.4em;
  }

  .hero-heading .mobile-br {
    display: block;
  }

  .carson-ui {
    width: 100%;
  }

  .carson-ui-sidebar {
    display: none;
  }

  .carson-ui-cards { gap: 4px; }
  .carson-ui-card { padding: 8px; }
  .carson-ui-card-title { font-size: 0.62rem; }
  .carson-ui-card-desc { font-size: 0.55rem; }
  .carson-ui-tool-icons { display: none; }
  .carson-ui-body { min-height: 260px; }
  .carson-ui-greeting { font-size: 1rem; }
  .carson-ui-content { padding: 10px 16px 6px; }
  .carson-ui-chat { padding: 0 16px 8px; }
  .carson-ui-chat-bar { padding: 6px 8px; }
  .carson-ui-greeting-sub { margin-bottom: 10px; }
  .carson-ui-cards { margin-bottom: 10px; }

  .use-cases {
    gap: 48px;
    padding: 0 16px;
    margin-top: 48px;
  }

  .use-case-card,
  .use-case-card--reversed {
    flex-direction: column;
    padding: 16px;
    min-height: auto;
    gap: 24px;
  }

  .use-case-text {
    flex: none;
    width: 100%;
  }

  .use-case-media img {
    width: 100%;
  }

  .bottom-cta {
    padding: 60px 16px 48px;
  }

  .bottom-cta-video {
    width: 92%;
  }
}

@media (max-width: 480px) {
  :root {
    --frame: 6px;
    --radius: 12px;
  }

  .team {
    padding: 48px 12px 80px;
  }

  .team-heading {
    margin-bottom: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 90%;
  }

  .team-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 16px;
    gap: 14px;
  }

  .team-info {
    text-align: center;
    align-items: center;
    text-wrap: balance;
  }

  .team-name {
    font-size: 1.1rem;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .waitlist-form-card {
    padding: 28px 20px;
    border-radius: 12px;
    width: calc(100% - 24px);
    max-height: calc(100% - 24px);
  }

  .waitlist-success {
    padding: 28px 20px;
    border-radius: 12px;
    width: calc(100% - 24px);
  }

  .form-heading {
    font-size: 1.35rem;
  }

  /* Larger touch targets for mobile inputs */
  .form-input {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .form-submit {
    padding: 14px 26px;
    font-size: 1rem;
  }

  .form-label {
    font-size: 0.88rem;
  }

  /* Ensure Turnstile widget doesn't overflow */
  .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
  }

  .nav {
    padding: 14px 6px;
  }

  .nav-logo {
    height: 22px;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-content {
    padding-top: clamp(32px, 6vh, 60px);
  }

  .hero-heading {
    font-size: 2rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .use-cases {
    gap: 36px;
    padding: 0 12px;
  }

  .use-case-card {
    padding: 12px;
  }

  .use-case-title {
    font-size: 1.2rem;
  }

  .use-case-desc {
    font-size: 0.85rem;
  }

  .bottom-cta {
    padding: 48px 12px 40px;
  }

  .bottom-cta-video {
    width: 95%;
    border-radius: 8px;
  }

  .bottom-cta-actions {
    gap: 8px;
  }
}

/* Very small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
  .waitlist-form-card {
    padding: 24px 16px;
    width: calc(100% - 16px);
    max-height: calc(100% - 16px);
  }

  .form-heading {
    font-size: 1.25rem;
  }

  .form-subtext {
    font-size: 0.85rem;
    margin-bottom: 18px;
  }

  .waitlist-form {
    gap: 12px;
  }
}
