/* ============================================================
   Publish360 — Marketing Landing Page Styles
   Theme: Dark forest green with bright lime-green (#5DB843) accents
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --p3-green:        #5DB843;
  --p3-green-light:  #7DCF5F;
  --p3-green-dark:   #4A9634;
  --p3-bg:           #162116;
  --p3-surface:      #1D2D1D;
  --p3-surface-2:    #243624;
  --p3-border:       rgba(255,255,255,0.08);
  --p3-text:         #E8F0E8;
  --p3-text-muted:   #8AA88A;
  --p3-white:        #FFFFFF;
  --p3-radius:       10px;
  --p3-font-body:    'Inter', system-ui, sans-serif;
  --p3-font-display: 'Syne', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--p3-bg);
  color: var(--p3-text);
  font-family: var(--p3-font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.p3-green { color: var(--p3-green); }

/* ── Buttons ──────────────────────────────────────────────── */
.p3-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.3rem;
  border-radius: 50px;
  font-family: var(--p3-font-body);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.p3-btn:hover { transform: translateY(-1px); }
.p3-btn:active { transform: translateY(0); }

.p3-btn-primary {
  background: var(--p3-green);
  color: #fff;
  border-color: var(--p3-green);
}
.p3-btn-primary:hover {
  background: var(--p3-green-light);
  border-color: var(--p3-green-light);
}

.p3-btn-ghost {
  background: transparent;
  color: var(--p3-text);
  border-color: rgba(255,255,255,0.25);
}
.p3-btn-ghost:hover {
  border-color: var(--p3-white);
  color: var(--p3-white);
}

.p3-btn-lg {
  padding: .85rem 1.75rem;
  font-size: 1rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.p3-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22,33,22,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--p3-border);
}

.p3-nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.p3-logo {
  font-family: var(--p3-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--p3-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.p3-logo svg { color: var(--p3-green); }
.p3-logo-num { color: var(--p3-green); }

.p3-nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin-left: .5rem;
}
.p3-nav-links a {
  color: var(--p3-text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.p3-nav-links a:hover { color: var(--p3-white); }

.p3-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.p3-nav-signin {
  color: var(--p3-text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.p3-nav-signin:hover { color: var(--p3-white); }

.p3-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.p3-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--p3-text);
  border-radius: 2px;
}

.p3-nav-mobile {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--p3-border);
}
.p3-nav-mobile ul { list-style: none; }
.p3-nav-mobile li { padding: .6rem 0; border-bottom: 1px solid var(--p3-border); }
.p3-nav-mobile li:last-child { border-bottom: none; padding-top: 1rem; }
.p3-nav-mobile a {
  color: var(--p3-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.p3-nav-mobile.open { display: block; }

/* ── Hero ─────────────────────────────────────────────────── */
.p3-hero {
  padding: 5rem 0 4rem;
  background: var(--p3-bg);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.p3-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(93,184,67,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.p3-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.p3-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .9rem;
  border: 1px solid rgba(93,184,67,0.4);
  border-radius: 50px;
  color: var(--p3-green);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.p3-hero-copy h1 {
  font-family: var(--p3-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--p3-white);
  margin-bottom: 1.25rem;
}

.p3-hero-copy h1 .p3-green {
  color: var(--p3-green);
}

.p3-hero-sub {
  font-size: 1.05rem;
  color: var(--p3-text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.p3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ── Phone mockup ─────────────────────────────────────────── */
.p3-hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.p3-phones {
  position: relative;
  height: 400px;
  width: 320px;
}

.p3-phone {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.p3-phone-back {
  width: 180px;
  height: 340px;
  background: #fff;
  left: 0;
  bottom: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.p3-phone-front {
  width: 190px;
  height: 360px;
  background: #fff;
  left: 60px;
  bottom: 20px;
  z-index: 2;
}

.p3-phone-side {
  width: 150px;
  height: 300px;
  background: #F5C518;
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
  z-index: 1;
}

.p3-phone-notch {
  width: 80px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

.p3-phone-screen {
  padding: .75rem;
  height: 100%;
}
.p3-phone-screen-back { padding-top: 1rem; }

.p3-screen-label {
  font-size: .6rem;
  font-weight: 700;
  color: #333;
  margin-bottom: .5rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.p3-screen-row {
  display: flex;
  gap: .35rem;
  margin-bottom: .75rem;
}

.p3-screen-card {
  flex: 1;
  height: 70px;
  border-radius: 6px;
}
.p3-card-dark  { background: #1a1a2e; }
.p3-card-blue  { background: #4A90D9; }
.p3-card-teal  { background: #2EC4B6; }

.p3-screen-text {
  font-size: .55rem;
  color: #555;
  margin-bottom: .5rem;
  font-weight: 500;
}

.p3-screen-bar {
  height: 6px;
  background: #E5E5E5;
  border-radius: 3px;
  margin-bottom: .35rem;
}
.p3-screen-bar.short { width: 65%; }

.p3-screen-progress {
  height: 4px;
  background: #E5E5E5;
  border-radius: 2px;
  margin-bottom: .5rem;
  overflow: hidden;
}
.p3-screen-progress-fill {
  width: 40%;
  height: 100%;
  background: var(--p3-green);
  border-radius: 2px;
}

.p3-phone-screen-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #F5C518;
}

.p3-book-cover {
  width: 100px;
  height: 140px;
  background: linear-gradient(135deg, #e8a800 0%, #F5C518 100%);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: .5rem;
  margin-bottom: .75rem;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.25);
}
.p3-book-title {
  font-size: .55rem;
  font-weight: 800;
  color: #000;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.p3-audio-bar {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.p3-audio-fill {
  width: 55%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  border-radius: 2px;
}

/* ── Value section ────────────────────────────────────────── */
.p3-value {
  padding: 5rem 0;
  background: var(--p3-surface);
}

.p3-value-headline {
  font-family: var(--p3-font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.p3-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
}
.p3-value-grid p {
  color: var(--p3-text-muted);
  font-size: .95rem;
  line-height: 1.75;
}

/* ── Features ─────────────────────────────────────────────── */
.p3-features {
  padding: 5rem 0;
  background: var(--p3-bg);
}

.p3-section-title {
  font-family: var(--p3-font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  color: var(--p3-white);
  margin-bottom: 3rem;
}

.p3-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.p3-feature-card {
  background: var(--p3-surface);
  border: 1px solid var(--p3-border);
  border-radius: var(--p3-radius);
  padding: 2rem 1.75rem;
  transition: border-color .2s, transform .2s;
}
.p3-feature-card:hover {
  border-color: rgba(93,184,67,0.35);
  transform: translateY(-3px);
}

.p3-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(93,184,67,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p3-green);
  margin-bottom: 1.25rem;
}

.p3-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--p3-white);
  margin-bottom: .5rem;
}
.p3-feature-card p {
  font-size: .875rem;
  color: var(--p3-text-muted);
  line-height: 1.65;
}

/* ── CTA ──────────────────────────────────────────────────── */
.p3-cta {
  padding: 5rem 0;
  background: var(--p3-surface);
  text-align: center;
}
.p3-cta h2 {
  font-family: var(--p3-font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--p3-white);
  margin-bottom: .75rem;
}
.p3-cta p {
  color: var(--p3-text-muted);
  margin-bottom: 2rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.p3-footer {
  background: var(--p3-bg);
  border-top: 1px solid var(--p3-border);
  padding: 3rem 0 2rem;
}

.p3-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.p3-footer-brand .p3-logo { display: inline-flex; margin-bottom: .5rem; }
.p3-footer-brand p {
  font-size: .85rem;
  color: var(--p3-text-muted);
  max-width: 260px;
}

.p3-footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.p3-footer-nav a {
  color: var(--p3-text-muted);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.p3-footer-nav a:hover { color: var(--p3-green); }

.p3-footer-copy {
  border-top: 1px solid var(--p3-border);
  padding-top: 1.5rem;
}
.p3-footer-copy p {
  font-size: .8rem;
  color: var(--p3-text-muted);
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .p3-features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .p3-nav-links,
  .p3-nav-actions { display: none; }
  .p3-nav-toggle { display: flex; }

  .p3-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .p3-hero-copy h1, .p3-hero-sub { text-align: left; }
  .p3-hero-visual { display: none; }

  .p3-hero-actions { justify-content: flex-start; flex-direction: column; }
  .p3-hero-actions .p3-btn { justify-content: center; }

  .p3-value-grid { grid-template-columns: 1fr; }
  .p3-features-grid { grid-template-columns: 1fr; }
  .p3-footer-inner { flex-direction: column; }
}
