:root {
  --green: #145c38;
  --green-deep: #0c2f1e;
  --gold: #d4af37;
  --cream: #f6f1e8;
  --ink: #121c16;
  --muted: #55665c;
  --line: rgba(20, 92, 56, 0.14);
  --white: #fff;
}

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

body.pub {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(212, 175, 55, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 45% at -10% 0%, rgba(20, 92, 56, 0.14), transparent 50%),
    linear-gradient(180deg, #faf7f1 0%, var(--cream) 45%, #eef4ef 100%);
  line-height: 1.5;
}

.pub-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.pub-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 800;
}

.pub-logo img { border-radius: 9px; }

.pub-nav-links { display: none; gap: 1.1rem; margin-left: 0.5rem; }
.pub-nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.pub-nav-cta {
  margin-left: auto;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pub-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.75rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.pub-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(212, 175, 55, 0.28);
  padding: 0.32rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.9rem;
}

.pub-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.05rem, 6.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
  color: var(--green-deep);
}

.pub-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 1.4rem;
}

.pub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.pub-btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 92, 56, 0.28);
}

.pub-btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--green-deep);
  border: 1px solid var(--line);
}

.pub-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pub-trust li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

/* Original phone UI — not the concept mockup image */
.pub-phone-stack {
  position: relative;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.pub-phone {
  width: min(270px, 72vw);
  aspect-ratio: 9 / 19;
  background: #0e1411;
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 28px 60px rgba(12, 47, 30, 0.35);
  position: relative;
  z-index: 2;
}

.pub-phone--back {
  position: absolute;
  width: min(240px, 64vw);
  transform: translate(-42%, -8%) rotate(-8deg);
  z-index: 1;
  opacity: 0.92;
  box-shadow: 0 18px 40px rgba(12, 47, 30, 0.22);
}

.pub-phone--back2 {
  position: absolute;
  width: min(240px, 64vw);
  transform: translate(42%, -12%) rotate(7deg);
  z-index: 1;
  opacity: 0.9;
}

.pub-phone__screen {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #f7faf7;
  display: flex;
  flex-direction: column;
}

.pub-ui-top {
  padding: 1.1rem 0.85rem 0.55rem;
  background: linear-gradient(180deg, #145c38, #1a6b42);
  color: #fff;
}

.pub-ui-top small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-ui-top strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
}

.pub-ui-hero {
  height: 110px;
  background-size: cover;
  background-position: center;
}

.pub-ui-body { padding: 0.65rem 0.7rem; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }

.pub-ui-chip {
  align-self: flex-start;
  background: rgba(20, 92, 56, 0.1);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.pub-ui-card {
  background: #fff;
  border: 1px solid rgba(20, 92, 56, 0.1);
  border-radius: 12px;
  padding: 0.55rem 0.6rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pub-ui-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.pub-ui-card b { display: block; font-size: 0.75rem; }
.pub-ui-card span { font-size: 0.65rem; color: var(--muted); }

.pub-ui-cta {
  margin-top: auto;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.65rem;
  border-radius: 12px;
}

.pub-ui-badge {
  background: rgba(212, 175, 55, 0.25);
  color: #7a5f10;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.18rem 0.4rem;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.pub-video {
  background: var(--green-deep);
  color: #e8f0ea;
  padding: 3rem 1.25rem;
}

.pub-video__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.pub-video .pub-eyebrow {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.16);
}

.pub-video h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.pub-section-lead {
  color: rgba(232, 240, 234, 0.75);
  margin-bottom: 1.5rem;
}

.pub-player {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 720px);
  margin: 0 auto 1.25rem;
  max-width: 380px;
}

.pub-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0a100c;
}

.pub-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.pub-video .pub-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.pub-idea {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.pub-idea__grid { display: grid; gap: 1rem; }

.pub-idea article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 10px 28px rgba(18, 28, 22, 0.05);
}

.pub-idea h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.3rem;
  color: var(--green-deep);
  margin-bottom: 0.45rem;
}

.pub-idea p { color: var(--muted); }

.pub-gallery {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
}

.pub-gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  min-height: 180px;
}

.pub-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 180px;
}

.pub-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(12, 47, 30, 0.85));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.pub-gallery figure:first-child {
  grid-row: span 2;
  min-height: 380px;
}

.pub-how {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.pub-how h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--green-deep);
  margin-bottom: 1.25rem;
  text-align: center;
}

.pub-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.pub-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.pub-steps li::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.pub-steps strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--green-deep);
}

.pub-steps span { color: var(--muted); font-size: 0.95rem; }

.pub-how__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.pub-close {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
}

.pub-close h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.45rem;
}

.pub-close p { opacity: 0.85; margin-bottom: 1.25rem; }

.pub-close .pub-btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: none;
}

.pub-foot {
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.pub-foot a { color: var(--green); font-weight: 600; }

@media (min-width: 860px) {
  .pub-nav-links { display: flex; }
  .pub-hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 3rem;
  }
  .pub-idea__grid { grid-template-columns: repeat(3, 1fr); }
  .pub-phone-stack { min-height: 560px; }
}

@media (max-width: 640px) {
  .pub-phone--back,
  .pub-phone--back2 { display: none; }
  .pub-gallery {
    grid-template-columns: 1fr;
  }
  .pub-gallery figure:first-child {
    grid-row: auto;
    min-height: 220px;
  }
}
