/* Pactners marketing site — "Fog" theme, matching the app's design language */

:root {
  --canvas: #eff1f5;
  --surface: #fbfcfd;
  --border: #e0e4ec;
  --foreground: #3c4254;
  --muted: #878fa3;
  --subtle: #a8aebf;
  --primary: #7189a8;
  --primary-soft: #e3e9f2;
  --gold: #b99757;
  --gold-soft: #f0e8d8;
  --success: #7a9b7e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--foreground);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span {
  font-family: var(--serif);
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover { color: var(--primary); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:active { opacity: 0.8; transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: var(--surface);
}

.btn-ghost {
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1b1d22;
  color: #fff;
  border-radius: 12px;
  padding: 10px 20px;
  text-decoration: none;
  line-height: 1.2;
}

.appstore-badge svg { width: 26px; height: 26px; flex-shrink: 0; }

.appstore-badge .badge-text { display: flex; flex-direction: column; text-align: left; }
.appstore-badge .badge-text small { font-size: 10px; font-weight: 400; opacity: 0.85; }
.appstore-badge .badge-text strong { font-size: 17px; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-copy { flex: 1; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--subtle);
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  background: #1b1d22;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 24px 48px -20px rgba(60, 66, 84, 0.35);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 36px;
}

/* Dynamic island */
.phone::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 23px;
  border-radius: 9999px;
  background: #1b1d22;
}

.phone-sm { width: 240px; border-radius: 40px; }
.phone-sm img { border-radius: 31px; }
.phone-sm::after { top: 20px; width: 67px; height: 20px; }

/* ---------- Section labels (mirrors the app's SectionLabel) ---------- */

.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 400;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
}

/* ---------- How it works ---------- */

.how {
  padding: 64px 0;
  text-align: center;
}

.how .section-sub { margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 8px;
}

.step p { font-size: 14px; color: var(--muted); }

/* ---------- Feature rows ---------- */

.features { padding: 32px 0 48px; }

.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
}

.feature-row.reverse { flex-direction: row-reverse; }

.feature-copy { flex: 1; }

.feature-copy h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  margin-bottom: 14px;
}

.feature-copy p {
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 12px;
}

.feature-copy .quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--primary);
  font-size: 17px;
  margin-top: 18px;
}

.feature-copy .quote.gold { color: var(--gold); }

/* ---------- Stakes callout ---------- */

.callout {
  background: var(--gold-soft);
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
  margin: 24px 0 48px;
}

.callout h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 10px;
}

.callout p {
  color: #8a7344;
  max-width: 520px;
  margin: 0 auto;
}

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

.pricing {
  padding: 48px 0 64px;
  text-align: center;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 460px;
  margin: 32px auto 0;
}

.pricing-card .trial {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-card p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- Final CTA ---------- */

.final-cta {
  padding: 72px 0 88px;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  margin-bottom: 12px;
}

.final-cta p { color: var(--muted); margin-bottom: 32px; }

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

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-meta {
  font-size: 13px;
  color: var(--subtle);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 8px;
}

.legal .effective {
  color: var(--subtle);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  margin: 36px 0 12px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal p { margin-bottom: 14px; color: var(--foreground); }

.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }

.legal a { color: var(--primary); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.legal th, .legal td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th { background: var(--primary-soft); font-weight: 600; }

.legal .note-card {
  background: var(--primary-soft);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
}

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

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; gap: 48px; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 36px; text-align: center; padding: 36px 0; }
  .feature-copy p, .section-sub { margin-left: auto; margin-right: auto; }
  .nav-links { gap: 18px; }
  .nav-links .nav-hide-mobile { display: none; }
}
