/* ─── PnLStack site styles ─────────────────────────────────────────────── */

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

:root {
  --green: #00B85C;
  --green-dark: #04673A;
  --green-light: #E8FAF2;
  --green-app: #00D26A;

  --bg: #FFFFFF;
  --bg-soft: #FAFAF8;
  --bg-card: #FFFFFF;

  --text: #0A0A0A;
  --text-soft: #5A5A5A;
  --text-mute: #888888;
  --border: #E8E6E0;
  --border-soft: #F0EFE9;

  --red: #E24B4A;
  --red-dark: #791F1F;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --container: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.text-accent { color: var(--green); }

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.1px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-dark { background: #0A0A0A; color: #fff; }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-soft); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-mute); }

.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ─── Navigation ───────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

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

.logo { display: inline-flex; align-items: center; gap: 8px; }

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--green);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark::after {
  content: "";
  width: 12px;
  height: 12px;
  background-image:
    linear-gradient(45deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%);
  background-size: 6px 6px;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 60px 0 0;
  background:
    radial-gradient(ellipse at top, rgba(0, 184, 92, 0.05) 0%, transparent 60%),
    var(--bg);
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--green-light);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 22px;
  letter-spacing: 0.1px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: var(--text);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ─── Phone mockup ─────────────────────────────────────────────────────── */

.hero-mockup {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: #0A0A0A;
  border-radius: 44px;
  border: 4px solid #1F1F1F;
  padding: 6px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.18),
    0 50px 100px -20px rgba(0, 184, 92, 0.08);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 2;
}

.phone-screen {
  background: #0A0A0A;
  border-radius: 38px;
  height: 100%;
  padding: 50px 16px 16px;
  position: relative;
  overflow: hidden;
}

.phone-status {
  position: absolute;
  top: 18px;
  left: 28px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.phone-tabs { display: flex; gap: 18px; padding: 14px 4px 16px; }
.phone-tabs span {
  font-size: 13px;
  color: #5A5A5A;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.phone-tab-active { color: #fff !important; font-weight: 600 !important; }
.phone-tab-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-app);
  border-radius: 1px;
}

.phone-month {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  padding: 4px 4px 6px;
  letter-spacing: -0.4px;
}

.phone-summary {
  font-size: 13px;
  color: #5A5A5A;
  padding: 0 4px 18px;
  font-weight: 500;
}
.phone-summary .text-accent {
  color: var(--green-app);
  font-weight: 700;
  font-size: 16px;
}

.phone-weekdays {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 0 2px 8px;
}
.phone-weekdays span {
  text-align: center;
  font-size: 9px;
  color: #444;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.phone-cal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 0 2px;
}

.cell {
  aspect-ratio: 0.85;
  border-radius: 9px;
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cell .d {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
.cell .p {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.cell.win { background: linear-gradient(160deg, #003D1F, #002A15); }
.cell.win .p { color: var(--green-app); }
.cell.loss { background: linear-gradient(160deg, #3D0F0F, #2A0A0A); }
.cell.loss .p { color: #FF6B6B; }
.cell.flat { background: #131313; }
.cell.flat .p { color: #333; }
.cell.today {
  background: rgba(0, 210, 106, 0.05);
  border: 1.5px solid var(--green-app);
  padding: 4.5px 3.5px;
}
.cell.today .d { color: var(--green-app); }
.cell.today .p { color: rgba(0, 210, 106, 0.4); }

.phone-fab {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--green-app);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  line-height: 0;
  padding-bottom: 3px;
  box-shadow: 0 4px 16px rgba(0, 210, 106, 0.4);
}

/* ─── Trust strip ──────────────────────────────────────────────────────── */

.trust {
  padding: 36px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}

.trust-label {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.trust-grid {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 500;
}

.trust-icon { font-size: 16px; }

/* ─── Section header ───────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header.center-narrow { max-width: 540px; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ─── Features grid ────────────────────────────────────────────────────── */

.features { padding: 96px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon.green { background: var(--green-light); color: var(--green); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ─── How it works ─────────────────────────────────────────────────────── */

.how {
  padding: 96px 0;
  background: var(--bg-soft);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.how-step {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.how-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.how-step h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.how-step p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ─── Audience ─────────────────────────────────────────────────────────── */

.audience { padding: 96px 0; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.audience-card {
  padding: 28px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-soft);
  transition: transform 0.2s ease;
}
.audience-card:hover { transform: translateY(-2px); }

.audience-emoji { font-size: 36px; margin-bottom: 14px; }

.audience-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.audience-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ─── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  padding: 96px 0;
  background: var(--bg-soft);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--green); }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 28px;
  letter-spacing: -0.2px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  font-weight: 300;
  color: var(--text-mute);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.65;
}

.faq-item a { color: var(--green); font-weight: 500; }
.faq-item a:hover { text-decoration: underline; }

/* ─── Final CTA ────────────────────────────────────────────────────────── */

.cta {
  padding: 96px 0 96px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(0, 184, 92, 0.06) 0%, transparent 60%),
    var(--bg);
}

.cta-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
  color: var(--text);
}

.cta-sub {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 32px;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

.footer {
  padding: 56px 0 24px;
  background: #0A0A0A;
  color: #888;
}
.footer .logo-text { color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-tag {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.6;
}

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

@media (max-width: 540px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}

.footer-links h4 {
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  font-size: 13.5px;
  color: #888;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1A1A1A;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #555;
}

/* ─── Legal pages (privacy, terms, support) ────────────────────────────── */

.legal {
  padding: 60px 0 96px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
}

.legal-header .effective {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 36px 0 14px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
}

.legal p {
  font-size: 15.5px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal ul, .legal ol {
  margin: 0 0 18px 24px;
  font-size: 15.5px;
  color: var(--text-soft);
  line-height: 1.75;
}

.legal li { margin-bottom: 8px; }

.legal a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal a:hover { text-decoration-thickness: 2px; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-mute);
  margin-bottom: 32px;
  transition: color 0.15s ease;
}
.legal-back:hover { color: var(--text); }

/* ─── Support page extras ──────────────────────────────────────────────── */

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 48px;
}

.support-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.support-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.support-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.support-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}

.support-card a {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.support-card a:hover { text-decoration: underline; }
