/* Attrace — shared site styles
   Design language: pure white, generous whitespace, restrained typography.
   Accent: emerald-600 (#059669), used sparingly. One dark section per page. */

:root {
  --white: #ffffff;
  --grey: #f8fafc;
  --dark: #0f172a;
  --ink: #0f172a;
  --body: #475569;
  --mute: #94a3b8;
  --line: #e2e8f0;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-tint: #ecfdf5;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em;
  color: var(--ink);
}
.wordmark span { color: var(--emerald); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--body);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--emerald); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--emerald);
  margin-bottom: 20px;
}
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; }
h2 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65;
  max-width: 640px; margin-top: 24px;
}

/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section-tight { padding: 88px 0; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #94a3b8; }
.section-dark .eyebrow { color: #34d399; }

.hero { padding: 110px 0 120px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: center;
}

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

/* ---------- Buttons ---------- */

.btn-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--emerald); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.section-dark .btn-primary { background: var(--emerald); }
.section-dark .btn-primary:hover { background: var(--emerald-dark); }
.section-dark .btn-ghost { border-color: #334155; color: var(--white); }
.section-dark .btn-ghost:hover { border-color: var(--white); }

/* ---------- Feature layouts ---------- */

.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.feature + .feature { margin-top: 140px; }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-visual { order: 1; }
.feature-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.feature-copy p { margin-top: 20px; max-width: 480px; }
.feature-list { list-style: none; margin-top: 28px; }
.feature-list li {
  padding: 10px 0 10px 30px; position: relative; font-size: 0.95rem;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--emerald-tint);
  box-shadow: inset 0 0 0 1.5px var(--emerald);
}

/* ---------- Phone mockup ---------- */

.phone {
  width: 290px; margin: 0 auto; position: relative;
  background: linear-gradient(160deg, #1e293b, var(--dark) 60%);
  border-radius: 42px; padding: 12px;
  box-shadow:
    0 40px 80px -28px rgba(15, 23, 42, 0.45),
    0 30px 120px -16px rgba(5, 150, 105, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.phone-screen {
  background: var(--white); border-radius: 32px; overflow: hidden;
  height: 580px; position: relative; display: flex; flex-direction: column;
}
.phone-notch {
  width: 110px; height: 26px; background: var(--dark);
  border-radius: 0 0 16px 16px; margin: 0 auto; flex-shrink: 0;
}
.screen-body { padding: 18px 18px 20px; flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.screen-title { font-size: 0.95rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.screen-sub { font-size: 0.7rem; color: var(--mute); margin-top: 2px; }

.srow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  margin-top: 9px; font-size: 0.72rem; font-weight: 500; color: var(--ink);
}
.srow small { display: block; font-weight: 300; color: var(--mute); font-size: 0.66rem; }
.pill {
  font-size: 0.6rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.pill-green { background: var(--emerald-tint); color: var(--emerald-dark); }
.pill-amber { background: #fef3c7; color: #b45309; }
.pill-slate { background: #f1f5f9; color: #475569; }

.sbtn {
  margin-top: auto; background: var(--ink); color: var(--white);
  text-align: center; padding: 13px; border-radius: 12px;
  font-size: 0.78rem; font-weight: 600;
}
.sbtn.green { background: var(--emerald); }

/* Ledger rows (audit trail visual) */
.ledger-row {
  display: flex; gap: 10px; padding: 10px 2px;
  border-bottom: 1px solid var(--grey); align-items: flex-start;
}
.ledger-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  margin-top: 6px; flex-shrink: 0;
}
.ledger-row b { display: block; font-size: 0.7rem; color: var(--ink); font-weight: 600; }
.ledger-row span { font-size: 0.62rem; color: var(--mute); }
.hash {
  font-family: var(--mono); font-size: 0.58rem; color: var(--emerald-dark);
  background: var(--emerald-tint); border-radius: 4px; padding: 1px 6px;
  display: inline-block; margin-top: 3px; word-break: break-all;
}

/* ---------- Stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  text-align: center;
}
.stat-num {
  font-size: clamp(3rem, 7vw, 4.8rem); font-weight: 800;
  letter-spacing: -0.04em; color: var(--white); line-height: 1;
}
.stat-num em { font-style: normal; color: #34d399; }
.stat-label { margin-top: 12px; font-size: 0.9rem; color: #94a3b8; }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; }
.section-grey .card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }

/* ---------- Pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  border: 1px solid var(--line); border-radius: 18px; padding: 36px 30px;
  display: flex; flex-direction: column; background: var(--white);
}
.tier.featured { border-color: var(--emerald); box-shadow: 0 24px 48px -24px rgba(5, 150, 105, 0.25); position: relative; }
.tier-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--emerald); color: var(--white); font-size: 0.62rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.tier-name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.tier-for { font-size: 0.78rem; color: var(--mute); margin-top: 4px; min-height: 2.4em; }
.tier-price { margin: 22px 0 4px; color: var(--ink); }
.tier-price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.tier-price span { font-size: 0.85rem; color: var(--mute); font-weight: 300; }
.tier-annual { font-size: 0.75rem; color: var(--mute); }
.tier ul { list-style: none; margin: 26px 0 30px; flex: 1; }
.tier li {
  font-size: 0.86rem; padding: 7px 0 7px 26px; position: relative;
}
.tier li::before {
  content: "✓"; position: absolute; left: 0; color: var(--emerald);
  font-weight: 700; font-size: 0.8rem;
}
.tier .btn { text-align: center; }

/* ---------- Comparison table ---------- */

.cmp { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { font-weight: 700; color: var(--ink); font-size: 0.82rem; }
.cmp td:first-child { color: var(--ink); font-weight: 500; }
.cmp .yes { color: var(--emerald); font-weight: 700; }
.cmp .no { color: var(--mute); }

/* ---------- Quote ---------- */

.quote {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.quote blockquote {
  font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.45;
}
.quote cite { display: block; margin-top: 24px; font-style: normal; font-size: 0.9rem; color: var(--mute); }

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-weight: 800; font-size: 1.6rem; color: var(--emerald);
  letter-spacing: -0.03em;
}
.step h3 { margin-bottom: 6px; }
.step p { max-width: 560px; font-size: 0.95rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line); padding: 64px 0 48px;
  font-size: 0.85rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .wordmark { font-size: 1rem; }
.footer-note { margin-top: 14px; max-width: 340px; color: var(--mute); font-size: 0.8rem; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 14px;
}
.footer-col a { display: block; padding: 4px 0; color: var(--body); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-base {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--grey);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--mute); font-size: 0.78rem;
}
.footer-base a { color: var(--body); }
.footer-base a:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Animated screens (hero loop + demo) ---------- */

@keyframes rowin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pillpop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .animate-rows > .srow, .animate-rows > .ledger-row,
  .animate-rows > .screen-hint, .animate-rows > .sbtn { animation: rowin 0.45s ease backwards; }
  .pill.pop { animation: pillpop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) backwards; }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-visual { order: 2; }
  .feature + .feature { margin-top: 96px; }
  .grid-3, .tiers { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 88px 0; }
  .hero { padding: 72px 0 88px; }

  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 16px 24px 24px; gap: 4px;
  }
  .nav-links a { padding: 10px 0; font-size: 1rem; width: 100%; }
  .nav-links.open { display: flex; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle {
    display: block; background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--ink); line-height: 1; padding: 8px;
  }
}
