/* ============================================================
   Coil Public Landing Page Styles
   Depends on: css/theme.css (design tokens)
   ============================================================ */

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.header-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font);
}
.header-wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.header-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.header-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  margin-left: 4px;
}
.header-nav .nav-cta:hover {
  background: var(--blue-hover);
  color: #fff;
}

/* ---- Login Dropdown ---- */
.login-dropdown-wrapper {
  position: relative;
}
.login-trigger {
  cursor: pointer;
}
.login-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 20px;
  z-index: 200;
}
.login-dropdown.open {
  display: block;
}
.login-dropdown .google-signin-btn {
  background: #fff;
  color: #333;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.login-dropdown .google-signin-btn:hover {
  background: var(--surface-hover);
}
.login-divider {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 12px 0;
}
.login-dropdown .field {
  margin-bottom: 10px;
}
.login-dropdown .field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.login-dropdown .field input:focus {
  border-color: var(--blue);
}
.login-dropdown .submit-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.login-dropdown .submit-btn:hover {
  background: var(--blue-hover);
}
.login-dropdown .form-error {
  color: var(--red, #e53e3e);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  padding: 80px 40px;
}
.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-section p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}
.cta-login-link {
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeSlideUp 0.8s ease-out both;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
  max-width: 780px;
  color: var(--text);
  animation: fadeSlideUp 0.8s ease-out 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}
.hero-actions .btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(74, 134, 232, 0.25);
}
.hero-actions .btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 134, 232, 0.3);
}
.hero-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.hero-actions .btn-outline:hover {
  background: var(--surface);
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
}

/* ============ PRODUCT SHOWCASE ============ */
.showcase {
  padding: 80px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.showcase .section-header {
  text-align: center;
  margin-bottom: 56px;
}
.showcase .section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.showcase .section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text);
}
.showcase .section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

.phones-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

/* Phone Frame */
.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.phone-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}
.phone-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg);
  border-radius: 36px;
  border: 3px solid #1C1C1E;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 120px;
  height: 28px;
  background: #1C1C1E;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
}

/* ---- Phone 1: Owner Chat ---- */
.screen-chat .chat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.screen-chat .chat-header .coil-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}
.screen-chat .chat-header .chat-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.screen-chat .chat-header .owner-badge {
  font-size: 8px;
  font-weight: 700;
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.screen-chat .chat-header .status-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-left: auto;
}
.screen-chat .company-name {
  font-size: 9px;
  color: var(--text-tertiary);
  padding: 0 14px 6px;
  background: var(--surface);
}
.screen-chat .chat-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.screen-chat .ai-bubble {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text);
  max-width: 95%;
  box-shadow: var(--shadow-sm);
}
.screen-chat .action-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.screen-chat .action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.screen-chat .action-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.screen-chat .action-icon.blue { background: var(--blue-light); }
.screen-chat .action-icon.teal { background: var(--teal-light); }
.screen-chat .action-icon.coral { background: var(--coral-light); }
.screen-chat .action-icon svg {
  width: 14px;
  height: 14px;
}
.screen-chat .action-text .action-title {
  font-weight: 600;
  font-size: 10.5px;
  color: var(--text);
}
.screen-chat .action-text .action-desc {
  font-size: 9px;
  color: var(--text-tertiary);
}
.screen-chat .chat-input {
  padding: 8px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}
.screen-chat .chat-input-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 10px;
  color: var(--text-tertiary);
}

/* ---- Phone 2: Jobs List ---- */
.screen-jobs .jobs-header {
  padding: 10px 14px 0;
  background: var(--surface);
}
.screen-jobs .jobs-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.screen-jobs .jobs-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.screen-jobs .jobs-count {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.screen-jobs .myjobs-toggle {
  font-size: 9px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 8px;
  border-radius: 6px;
}
.screen-jobs .date-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.screen-jobs .date-arrows {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.screen-jobs .date-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.screen-jobs .back-today {
  font-size: 8px;
  color: var(--blue);
  text-align: center;
  padding: 4px 0 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.screen-jobs .jobs-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.screen-jobs .job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.screen-jobs .job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.screen-jobs .job-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.screen-jobs .job-status {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.screen-jobs .job-status.active {
  background: var(--teal-light);
  color: var(--teal);
}
.screen-jobs .job-customer {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}
.screen-jobs .member-badge {
  font-size: 7px;
  font-weight: 700;
  background: linear-gradient(135deg, #B91C1C, #D97706);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.screen-jobs .job-desc {
  font-size: 9.5px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.screen-jobs .job-tech {
  font-size: 9px;
  color: var(--blue);
  margin-bottom: 2px;
}
.screen-jobs .job-address {
  font-size: 8.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.screen-jobs .job-actions {
  display: flex;
  gap: 4px;
}
.screen-jobs .job-btn {
  flex: 1;
  padding: 5px 2px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  border: none;
  color: #fff;
}
.screen-jobs .job-btn.complete { background: var(--teal); }
.screen-jobs .job-btn.ask-drip { background: linear-gradient(135deg, var(--blue), var(--coral)); }
.screen-jobs .job-btn.estimate { background: var(--blue); }
.screen-jobs .progress-bar {
  padding: 8px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}
.screen-jobs .progress-text {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.screen-jobs .progress-track {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}
.screen-jobs .progress-fill {
  height: 100%;
  width: 0%;
  background: var(--teal);
  border-radius: 2px;
}
.screen-jobs .tab-bar {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 6px 0 8px;
}
.screen-jobs .tab-item {
  flex: 1;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.screen-jobs .tab-item.active {
  color: var(--blue);
}
.screen-jobs .tab-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-jobs .tab-icon svg {
  width: 16px;
  height: 16px;
}

/* ---- Phone 3: Job Chat ---- */
.screen-jobchat .jc-header {
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.screen-jobchat .jc-back {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
}
.screen-jobchat .jc-customer {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.screen-jobchat .jc-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--teal);
}
.screen-jobchat .jc-status .dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.screen-jobchat .jc-info {
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.screen-jobchat .jc-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-jobchat .jc-info-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.screen-jobchat .jc-action-row {
  display: flex;
  gap: 4px;
}
.screen-jobchat .jc-action-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  border: none;
}
.screen-jobchat .jc-action-btn.complete { background: var(--teal); }
.screen-jobchat .jc-action-btn.est { background: var(--blue); }
.screen-jobchat .jc-action-btn.inv { background: var(--text-secondary); }
.screen-jobchat .jc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.screen-jobchat .jc-tab {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  padding: 7px 0;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
}
.screen-jobchat .jc-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.screen-jobchat .jc-body {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.screen-jobchat .jc-drip-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--blue);
}
.screen-jobchat .jc-drip-label .drip-drop {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-jobchat .jc-drip-label .drip-drop svg {
  width: 12px;
  height: 12px;
}
.screen-jobchat .user-bubble {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  padding: 8px 12px;
  font-size: 10.5px;
  max-width: 75%;
}
.screen-jobchat .ai-bubble {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text);
  max-width: 95%;
  box-shadow: var(--shadow-sm);
}
.screen-jobchat .ai-disclaimer {
  font-size: 8px;
  color: var(--coral);
  text-align: center;
  padding: 4px;
  font-style: italic;
}
.screen-jobchat .jc-input {
  padding: 8px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}
.screen-jobchat .jc-input-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 10px;
  color: var(--text-tertiary);
}

/* ---- Phone 4: Personality Picker ---- */
.screen-personality .pers-header {
  background: linear-gradient(135deg, var(--blue), var(--coral));
  padding: 16px 14px;
  color: #fff;
}
.screen-personality .pers-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.screen-personality .pers-header p {
  font-size: 10px;
  opacity: 0.85;
}
.screen-personality .pers-subtitle {
  padding: 10px 14px;
  font-size: 10px;
  color: var(--text-secondary);
}
.screen-personality .pers-body {
  flex: 1;
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.screen-personality .pers-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.screen-personality .pers-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}
.screen-personality .pers-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-personality .pers-card.selected .pers-check {
  border-color: var(--blue);
  background: var(--blue);
}
.screen-personality .pers-check-mark {
  display: none;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.screen-personality .pers-card.selected .pers-check-mark {
  display: block;
}
.screen-personality .pers-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
}
.screen-personality .pers-card.selected .pers-name {
  color: var(--blue);
}
.screen-personality .pers-desc {
  font-size: 9px;
  color: var(--text-tertiary);
  line-height: 1.4;
}
.screen-personality .pers-card.pers-locked {
  opacity: 0.45;
  pointer-events: none;
}
.pers-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.3px;
}

/* ============ FEATURES GRID ============ */
.features {
  padding: 80px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.features .section-header {
  text-align: center;
  margin-bottom: 56px;
}
.features .section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.features .section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text);
}
.features .section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-icon.blue { background: var(--blue-light); color: var(--blue); }
.feature-icon.teal { background: var(--teal-light); color: var(--teal); }
.feature-icon.coral { background: var(--coral-light); color: var(--coral); }
.feature-icon.amber { background: var(--amber-light); color: var(--amber); }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 44px 24px;
}
.stat {
  text-align: center;
}
.stat-value {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font);
  background: linear-gradient(135deg, var(--blue), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ============ PRICING ============ */
.pricing {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing .section-header {
  text-align: center;
  margin-bottom: 56px;
}
.pricing .section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.pricing .section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text);
}
.pricing .section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tier.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.tier-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.tier-price {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text);
}
.tier.featured .tier-price {
  background: linear-gradient(135deg, var(--blue), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tier-period {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 8px;
}
.tier-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.tier-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.tier-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 0;
  padding-left: 26px;
  position: relative;
  line-height: 1.4;
}
.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-light);
}
.tier-features li::after {
  content: '\2713';
  position: absolute;
  left: 3px;
  top: 10px;
  font-size: 10px;
  color: var(--teal);
  font-weight: 700;
  line-height: 16px;
}
.tier-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.tier-btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-tertiary);
}
.tier.featured .tier-btn {
  background: linear-gradient(135deg, var(--blue), var(--coral));
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 134, 232, 0.25);
}
.tier.featured .tier-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 134, 232, 0.3);
}
/* AI Office premium tier — on-theme but distinct */
.tier.tier-premium {
  background: linear-gradient(160deg, #FFF7F5 0%, #FFFFFF 50%, #F5F0FF 100%);
  border-color: var(--coral);
  box-shadow: 0 0 0 1px var(--coral), var(--shadow-lg);
}
.tier.tier-premium:hover {
  box-shadow: 0 0 0 1px var(--coral), 0 12px 40px rgba(255, 118, 108, 0.15);
}
.tier.tier-premium .tier-price {
  background: linear-gradient(135deg, var(--coral), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tier.tier-premium .tier-features li::before {
  background: var(--coral-light);
}
.tier.tier-premium .tier-features li::after {
  color: var(--coral);
}
.tier.tier-premium .tier-closer {
  font-style: italic;
  color: var(--text-tertiary);
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border-light);
}
.tier.tier-premium .tier-closer::before,
.tier.tier-premium .tier-closer::after {
  display: none;
}
.tier-premium-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--coral), var(--blue));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.tier.tier-premium .tier-btn {
  background: linear-gradient(135deg, var(--coral), var(--blue));
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 118, 108, 0.2);
}
.tier.tier-premium .tier-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 118, 108, 0.28);
}

/* Mini tier picker (signup modal) */
.mini-tiers { display: flex; gap: 12px; margin-top: 16px; }
.mini-tier {
  flex: 1; padding: 16px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; text-align: center; transition: all 0.2s;
}
.mini-tier:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-tier.mini-featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.mini-tier-name { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 4px; }
.mini-tier-price { font-size: 24px; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.mini-tier-period { font-size: 11px; color: var(--text-tertiary); margin-bottom: 8px; }
.mini-tier-tag { font-size: 11px; color: var(--text-secondary); }
.mini-tier-badge {
  font-size: 9px; font-weight: 700; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  padding: 2px 8px; border-radius: 100px; display: inline-block; margin-bottom: 6px; letter-spacing: 0.5px;
}
.mini-tier.mini-premium {
  border-color: var(--coral);
  background: linear-gradient(160deg, #FFF7F5, #FFFFFF, #F5F0FF);
  box-shadow: 0 0 0 1px var(--coral);
}
.mini-tier.mini-premium:hover {
  border-color: var(--coral);
  box-shadow: 0 0 0 1px var(--coral), var(--shadow-md);
}
.mini-tier.mini-premium .mini-tier-price {
  background: linear-gradient(135deg, var(--coral), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 520px) { .mini-tiers { flex-direction: column; } }

/* ============ SIGNUP / LOGIN SECTION ============ */
.auth-section {
  padding: 100px 24px;
}
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--coral), var(--teal));
}
.auth-card-inner {
  padding: 36px 36px 32px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
}
.auth-tab:hover {
  color: var(--text-secondary);
}
.auth-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Auth Panels */
.auth-panel {
  display: none;
}
.auth-panel.active {
  display: block;
}

/* Role chooser */
.role-chooser {
  margin-bottom: 8px;
}
.role-chooser p {
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-size: 14px;
}
.role-buttons {
  display: flex;
  gap: 12px;
}
.role-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: all 0.25s;
}
.role-btn:hover {
  transform: translateY(-2px);
}
.role-btn.owner {
  background: linear-gradient(135deg, var(--blue), #3A76D8);
  box-shadow: 0 4px 16px rgba(74, 134, 232, 0.25);
}
.role-btn.tech {
  background: linear-gradient(135deg, var(--teal), #4AA392);
  box-shadow: 0 4px 16px rgba(91, 181, 162, 0.25);
}

/* Form fields */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input::placeholder {
  color: var(--text-tertiary);
}
.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue), var(--coral));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 4px;
  box-shadow: 0 4px 20px rgba(74, 134, 232, 0.2);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 134, 232, 0.3);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.form-error {
  color: var(--red, #EF4444);
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  font-weight: 500;
}
.form-back {
  text-align: center;
  margin-top: 12px;
}
.form-back a {
  color: var(--text-tertiary);
  font-size: 13px;
  text-decoration: underline;
}
.form-back a:hover {
  color: var(--text-secondary);
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Success state */
.signup-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.4s ease-out;
}
.success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}
.signup-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.signup-success p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.signup-success strong {
  color: var(--text);
}

/* ============ FOOTER ============ */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 1024px) {
  .phones-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .tier.featured { order: -1; }
  .stats-bar {
    flex-wrap: wrap;
    gap: 24px 40px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-header {
    padding: 0 20px;
  }
  .header-nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding: 100px 20px 60px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hero-actions .btn-gradient,
  .hero-actions .btn-outline {
    justify-content: center;
    width: 100%;
  }
  .phones-row {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    gap: 20px 32px;
    padding: 32px 20px;
  }
  .stat-value {
    font-size: 26px;
  }
  .auth-card-inner {
    padding: 28px 24px 24px;
  }
}
