/* TallyWhatsApp landing page - product-register UI */

:root {
  --bg: oklch(0.98 0.003 140);
  --bg-soft: oklch(1 0 0);
  --bg-sidebar: oklch(0.96 0.005 140);
  --ink-primary: oklch(0.18 0.015 140);
  --ink-secondary: oklch(0.38 0.012 140);
  --ink-muted: oklch(0.55 0.008 140);
  --line: oklch(0.88 0.007 140);
  --line-strong: oklch(0.76 0.009 140);
  --tally-green: oklch(0.58 0.14 142);
  --tally-green-hover: oklch(0.52 0.13 142);
  --tally-green-tint: oklch(0.95 0.03 142);
  --success: oklch(0.58 0.14 142);
  --success-bg: oklch(0.95 0.03 142);
  --warning: oklch(0.76 0.10 75);
  --warning-bg: oklch(0.97 0.02 75);
  --error: oklch(0.58 0.12 25);
  --error-bg: oklch(0.96 0.02 25);
  --white: #fff;
  --whatsapp-dark: #075e54;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --max-w: 1180px;
  --shadow-compact: 0 2px 4px rgba(0, 0, 0, 0.03);
  --ease: ease-out;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

section[id] {
  scroll-margin-top: 86px;
}

:focus-visible {
  outline: 2px solid var(--tally-green);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.supporting-label,
.trial-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.supporting-label.center {
  display: flex;
  margin: 0 auto 14px;
}

.trial-badge {
  margin-left: 8px;
  color: var(--tally-green-hover);
  background: var(--tally-green-tint);
  border-color: oklch(0.86 0.025 142);
}

.section-title {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--ink-primary);
  font-size: 2.25rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--tally-green);
  color: var(--white);
  box-shadow: var(--shadow-compact);
}

.btn-primary:hover {
  background: var(--tally-green-hover);
}

.btn-ghost,
.btn-outline {
  color: var(--ink-primary);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
}

.btn-ghost:hover,
.btn-outline:hover {
  border-color: var(--tally-green);
  background: var(--tally-green-tint);
  color: var(--tally-green-hover);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn-lg {
  min-height: 50px;
  padding: 14px 22px;
  font-size: 1rem;
}

.btn-block { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 42px;
  color: var(--ink-primary);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--tally-green);
  color: var(--white);
  font-weight: 800;
}

.brand-name span {
  color: var(--tally-green-hover);
}

nav[aria-label="Primary"] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

nav[aria-label="Primary"] a {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a.active {
  color: var(--tally-green-hover);
}

nav[aria-label="Primary"] .btn {
  color: var(--white);
}

.hero {
  padding: 70px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 660px;
  margin: 18px 0 20px;
  color: var(--ink-primary);
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.highlight-sweep {
  color: var(--tally-green-hover);
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-cta-note,
.final-cta-actions p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.note-icon {
  flex: 0 0 auto;
  color: var(--tally-green-hover);
}

.trust-row {
  display: grid;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.trust-row li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 3px;
  color: var(--tally-green-hover);
  background: var(--tally-green-tint);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  overflow: hidden;
  border: 9px solid var(--ink-primary);
  border-radius: 16px;
  background: #f0f2f5;
  box-shadow: var(--shadow-compact);
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--whatsapp-dark);
  color: var(--white);
}

.phone-back {
  font-size: 1.7rem;
  line-height: 1;
}

.phone-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tally-green);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 800;
}

.phone-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.phone-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  opacity: 0.96;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally-green);
  animation: pulse-green 1.6s ease-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

.phone-chat {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  gap: 14px;
  padding: 24px 18px;
  background:
    repeating-linear-gradient(45deg, #ece5dd 0 2px, #e7dfd5 2px 4px);
}

.msg {
  position: relative;
  align-self: flex-end;
  max-width: 86%;
  min-height: 130px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #dcf8c6;
  color: #111b21;
  font-size: 1rem;
  line-height: 1.5;
}

.msg-out { align-self: flex-end; }

.msg-meta {
  display: block;
  margin-top: 6px;
  color: #667781;
  font-size: 0.78rem;
  text-align: right;
}

.msg-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #d2efaf;
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 7px;
  background: var(--white);
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 800;
}

.doc-title {
  color: #111b21;
  font-size: 0.94rem;
  font-weight: 800;
}

.doc-sub {
  color: #667781;
  font-size: 0.82rem;
}

.floating-card {
  position: absolute;
  left: 0;
  bottom: 34px;
  z-index: 3;
  width: 292px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.fc-title {
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}

.fc-active,
.fc-success {
  color: var(--tally-green-hover);
  font-weight: 800;
}

.fc-success {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

kbd,
code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-sidebar);
  color: var(--ink-secondary);
  font-family: 'SFMono-Regular', Consolas, ui-monospace, monospace;
}

kbd {
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 800;
}

code {
  padding: 2px 6px;
  font-size: 0.86em;
}

.problem,
.features,
.setup-guide,
.faq {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.value-highlight,
.pricing,
.contact {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.how,
.privacy,
.demo-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.problem-grid,
.value-grid,
.how-grid,
.features-grid {
  display: grid;
  gap: 18px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.how-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-card,
.value-card,
.step,
.feature,
.privacy-list li,
.pricing-col,
.plan-card,
.setup-step,
.faq details,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.problem-card,
.value-card,
.step,
.feature {
  padding: 22px;
}

.problem-dot {
  width: 9px;
  height: 9px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--tally-green);
}

.problem-card h3,
.value-card h3,
.step h3,
.feature h3 {
  margin: 0 0 8px;
  color: var(--ink-primary);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.problem-card p,
.value-card p,
.step p,
.feature p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.93rem;
}

.value-icon,
.feature-icon,
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--tally-green-tint);
  color: var(--tally-green-hover);
}

.value-icon svg,
.feature-icon svg {
  width: 22px;
  height: 22px;
}

.step {
  text-align: left;
}

.step-num {
  font-weight: 800;
}

.demo-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.demo-head .section-title {
  margin-top: 10px;
  margin-bottom: 12px;
}

.demo-head p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.demo-video-wrap {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-compact);
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.privacy-list {
  display: grid;
  gap: 14px;
}

.privacy-list li {
  display: grid;
  gap: 4px;
  padding: 17px 18px;
}

.privacy-list strong {
  color: var(--ink-primary);
  font-size: 0.96rem;
}

.privacy-list span {
  color: var(--ink-secondary);
  font-size: 0.91rem;
}

.pricing-intro {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--ink-secondary);
  text-align: center;
  font-size: 1rem;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 22px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-col {
  padding: 28px;
}

.pricing-lifetime {
  border-color: oklch(0.73 0.06 142);
  background: linear-gradient(180deg, var(--tally-green-tint), var(--bg-soft) 35%);
}

.pricing-col-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 22px;
}

.pricing-col-head h3,
.compare-title {
  margin: 0;
  color: var(--ink-primary);
  font-size: 1.2rem;
  font-weight: 800;
}

.pricing-col-head p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  display: flex;
  min-height: 226px;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  background: var(--bg-soft);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.plan-card:hover {
  border-color: var(--tally-green);
  background: var(--tally-green-tint);
  transform: translateY(-1px);
}

.plan-name {
  color: var(--ink-primary);
  font-size: 0.94rem;
  font-weight: 800;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.plan-currency {
  color: var(--ink-muted);
  font-size: 1rem;
  font-weight: 800;
}

.plan-number {
  color: var(--ink-primary);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.plan-per,
.period {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-sub {
  min-height: 40px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.pricing-col-note,
.price-note {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.best-value-badge,
.highlight-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid oklch(0.78 0.04 142);
  border-radius: var(--radius-sm);
  background: var(--tally-green-tint);
  color: var(--tally-green-hover);
  font-size: 0.8rem;
  font-weight: 800;
}

.best-value-badge {
  margin-bottom: 16px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.currency {
  color: var(--ink-muted);
  font-size: 1.25rem;
  font-weight: 800;
}

.number {
  color: var(--ink-primary);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.lifetime-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.price-features {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.price-features li {
  position: relative;
  padding-left: 22px;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally-green);
}

.pricing-compare {
  max-width: 1080px;
  margin: 42px auto 0;
  overflow-x: auto;
}

.compare-title {
  margin-bottom: 16px;
  text-align: left;
}

.compare-table {
  width: 100%;
  min-width: 700px;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--bg-sidebar);
  color: var(--ink-primary);
  font-weight: 800;
}

.compare-table tbody th {
  color: var(--ink-primary);
  font-weight: 800;
}

.compare-table tbody td {
  color: var(--ink-secondary);
  text-align: center;
}

.compare-table thead th:not(:first-child) {
  text-align: center;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.setup-steps {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 30px auto 0;
}

.setup-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.setup-step .step-num {
  margin: 0;
}

.step-body h4 {
  margin: 0 0 4px;
  color: var(--ink-primary);
  font-size: 0.98rem;
  font-weight: 800;
}

.step-body p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.setup-help {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sidebar);
  color: var(--ink-secondary);
  text-align: center;
  font-size: 0.9rem;
}

.setup-help a,
.faq details p a,
.contact-row a,
.footer-contact a,
.footer-bottom a {
  color: var(--tally-green-hover);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.contact-copy {
  padding: 8px 0;
}

.contact-copy .section-title {
  margin-top: 12px;
  margin-bottom: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card {
  display: grid;
  align-content: stretch;
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

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

.contact-row span {
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-row strong {
  color: var(--ink-primary);
  font-size: 0.93rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  padding: 18px 20px;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.faq details[open] {
  border-color: var(--tally-green);
  background: var(--tally-green-tint);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-primary);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--tally-green-hover);
}

.faq details p {
  margin: 12px 0 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.final-cta {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
}

.final-cta h2 {
  max-width: 720px;
  margin: 0 auto 14px;
  color: var(--ink-primary);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.final-cta > .container > p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.final-cta-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer {
  padding: 54px 0 28px;
  background: var(--ink-primary);
  color: oklch(0.88 0.006 140);
}

footer .brand {
  color: var(--white);
}

footer .brand-name span {
  color: oklch(0.78 0.13 142);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.75fr) minmax(260px, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.footer-tag,
.footer-mini {
  margin: 10px 0 0;
  color: oklch(0.78 0.008 140);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  width: fit-content;
  color: oklch(0.86 0.006 140);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms var(--ease);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact div:first-child {
  margin-bottom: 8px;
  color: oklch(0.78 0.008 140);
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid oklch(0.32 0.012 140);
  color: oklch(0.72 0.008 140);
  font-size: 0.8rem;
}

.typing-cursor {
  margin-left: 1px;
  color: var(--tally-green-hover);
  font-weight: 800;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { color: transparent; }
  50% { color: var(--tally-green-hover); }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 16, 0.56);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  animation: modal-enter 180ms ease-out forwards;
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-size: 1.45rem;
  line-height: 1;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.modal-close:hover {
  color: var(--ink-primary);
  background: var(--bg-sidebar);
}

.modal h3 {
  margin: 0 0 8px;
  color: var(--ink-primary);
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-subtitle {
  margin: 0 0 22px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  color: var(--ink-primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-group input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink-primary);
  font: inherit;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.form-group input:focus {
  border-color: var(--tally-green);
  outline: 2px solid var(--tally-green);
  outline-offset: 2px;
}

@media (max-width: 1040px) {
  nav[aria-label="Primary"] {
    gap: 12px;
  }

  nav[aria-label="Primary"] a:not(.btn) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-visual {
    min-height: 620px;
  }

  .value-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
    background-size: 44px 44px;
  }

  .container {
    padding: 0 18px;
  }

  .hero,
  .problem,
  .value-highlight,
  .how,
  .demo-section,
  .features,
  .privacy,
  .pricing,
  .setup-guide,
  .contact,
  .faq,
  .final-cta {
    padding: 58px 0;
  }

  .hero h1,
  .section-title,
  .final-cta h2 {
    font-size: 2rem;
  }

  .trial-badge {
    margin: 8px 0 0;
  }

  .problem-grid,
  .how-grid,
  .privacy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 0;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .nav {
    gap: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  nav[aria-label="Primary"] {
    display: none;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero-buttons,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .btn,
  .contact-actions .btn,
  .final-cta .btn {
    width: 100%;
    white-space: normal;
  }

  .hero-visual {
    display: grid;
    gap: 16px;
    min-height: 0;
  }

  .phone,
  .floating-card {
    position: relative;
    inset: auto;
  }

  .phone {
    width: min(330px, 100%);
    margin: 0 auto;
  }

  .floating-card {
    width: min(330px, 100%);
    margin: 0 auto;
  }

  .value-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-col {
    padding: 22px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .setup-step {
    grid-template-columns: 1fr;
  }

  .setup-step .step-num {
    width: 36px;
    height: 36px;
  }

  .final-cta-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
