/* ============================================================================
   Pabach landing — implementation of the Pabach Design System on the Hugo site.
   Tokens + fonts mirror pabach-design-system/project/colors_and_type.css;
   section styles recreate ui_kits/landing/Landing.jsx as plain CSS classes.
   ============================================================================ */

/* ── Fonts (served from /fonts) ──────────────────────────────────────────── */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --pb-orange:        #FF542E;
  --pb-orange-2:      #FF5D5D;
  --pb-marigold:      #FFB661;
  --pb-marigold-soft: #FFD8A9;
  --pb-cream:         #FFFBE6;
  --pb-cream-deep:    #FFF4D9;

  --pb-ink:           #181818;
  --pb-ink-soft:      #525252;
  --pb-ink-mute:      #5C5C5C;
  --pb-white:         #FFFFFF;

  --pb-font-display: "Unbounded", system-ui, sans-serif;
  --pb-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pb-radius-sm:   5px;
  --pb-radius-md:   8px;
  --pb-radius-lg:  16px;
  --pb-radius-pill: 999px;

  --pb-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --pb-shadow-lift: 0 6px 24px rgba(0, 0, 0, 0.10);

  /* Tint any black SVG icon to the brand orange. */
  --pb-filter-orange: brightness(0) saturate(100%) invert(43%) sepia(98%)
                      saturate(2916%) hue-rotate(343deg) brightness(100%) contrast(101%);

  --pb-gutter: 40px;
  --pb-maxw: 1280px;
}

/* ── Reset / base ─────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pb-cream);
  color: var(--pb-ink);
  font-family: var(--pb-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.pb-wrap {
  max-width: var(--pb-maxw);
  margin: 0 auto;
  padding-left: var(--pb-gutter);
  padding-right: var(--pb-gutter);
}

/* ── Section header (kicker + title) ──────────────────────────────────────── */
.pb-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pb-kicker {
  display: block;
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pb-orange);
  margin-bottom: 12px;
}
.pb-section-title {
  margin: 0;
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pb-ink);
  max-width: 16ch;
}
.pb-section-desc {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--pb-ink-soft);
  max-width: 60ch;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.pb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pb-marigold);
}
.pb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pb-gutter);
  max-width: var(--pb-maxw);
  margin: 0 auto;
}
.pb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pb-brand img { height: 38px; }
.pb-brand-word {
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--pb-ink);
}
.pb-nav { display: flex; align-items: center; gap: 30px; }
.pb-nav a {
  font-family: var(--pb-font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--pb-ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.pb-nav a:hover { opacity: 0.7; }
.pb-lang { display: inline-flex; gap: 8px; align-items: center; padding-left: 6px; }
.pb-lang a {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.65;
}
.pb-lang a.active { opacity: 1; color: var(--pb-orange); }
.pb-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.pb-nav-toggle img { width: 26px; height: 26px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.pb-hero {
  position: relative;
  overflow: hidden;
  background: var(--pb-marigold-soft);
}
.pb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../pabach/pattern-strip.svg") center/cover;
  opacity: 0.18;
  filter: var(--pb-filter-orange);
  pointer-events: none;
}
.pb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--pb-maxw);
  margin: 0 auto;
  padding: 80px var(--pb-gutter);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: 600px;
}
.pb-hero-title {
  margin: 0;
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--pb-orange);
  text-transform: uppercase;
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}
.pb-hero-title img { width: clamp(40px, 6vw, 56px); height: auto; margin-top: 6px; }
.pb-hero-sub {
  margin: 16px 0 0;
  font-family: var(--pb-font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pb-ink);
}
.pb-hero-text {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(24, 24, 24, 0.78);
  max-width: 52ch;
}
.pb-store-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.pb-store-row a {
  display: block;
  width: 164px;
  height: 54px;
  border-radius: 7px;
  overflow: hidden;
  background: #000;
  transition: transform 0.2s ease;
}
.pb-store-row img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pb-store-row .pb-store-badge--apple { object-fit: cover; transform: scale(1.04); }
.pb-store-row a:hover { transform: translateY(-2px); }
.pb-hero-art { display: flex; justify-content: center; }

/* Mini phone mockup (recreated from a real app screenshot) */
.pb-phone {
  width: 320px;
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: #181818;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25), 0 8px 18px rgba(0, 0, 0, 0.10);
  position: relative;
  transform: rotate(-3deg);
}
.pb-phone-notch {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  border-radius: 99px;
  background: #000;
  z-index: 2;
}
.pb-phone-screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--pb-cream);
  display: flex;
  flex-direction: column;
}

/* Header: brand mark + AI / settings buttons */
.pb-phone-topbar {
  flex: none;
  padding: 54px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pb-phone-brand { display: flex; align-items: center; gap: 6px; }
.pb-phone-brand-mark { width: 18px; height: 18px; filter: var(--pb-filter-orange); }
.pb-phone-brand span {
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--pb-ink);
}
.pb-phone-actions { display: flex; align-items: center; gap: 8px; }
.pb-phone-icon-btn {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 99px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(24, 24, 24, 0.10);
}
.pb-phone-icon-btn img { width: 14px; height: 14px; opacity: 0.8; }
.pb-phone-icon-btn--ai svg { width: 15px; height: 15px; color: var(--pb-orange); }

/* Scrollable body */
.pb-phone-body {
  flex: 1;
  min-height: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Story banner: illustration + overlapping card */
.pb-phone-story { position: relative; }
.pb-phone-story-art {
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 32% 42%, var(--pb-orange) 0 37%, var(--pb-marigold-soft) 38%);
}
.pb-phone-story-art img {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  height: auto;
}
.pb-phone-story-card {
  position: relative;
  z-index: 1;
  margin: -34px 6px 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.08);
}
.pb-phone-story-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pb-phone-story-title {
  font-family: var(--pb-font-display); font-weight: 700; font-size: 13.5px; line-height: 1.3;
  color: var(--pb-ink);
}
.pb-phone-story-arrow { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.pb-phone-story-arrow img { width: 100%; height: 100%; filter: var(--pb-filter-orange); }
.pb-phone-story-text { margin-top: 6px; font-size: 10.5px; line-height: 1.4; color: var(--pb-ink-soft); }

.pb-phone-dots { margin: 10px 0 16px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.pb-phone-dots span { width: 5px; height: 5px; border-radius: 99px; background: rgba(24, 24, 24, 0.18); }
.pb-phone-dots span.is-active { width: 16px; background: var(--pb-ink); }

/* Routes carousel */
.pb-phone-routes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pb-phone-routes-head span:first-child {
  font-family: var(--pb-font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--pb-ink);
}
.pb-phone-routes-head span:last-child { font-size: 12px; font-weight: 700; color: var(--pb-orange); }
.pb-phone-tiles { display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 16px; overflow: hidden; }
.pb-phone-tile { flex: none; width: 92px; }
.pb-phone-tile-img {
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}
.pb-phone-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #fff;
  color: var(--pb-ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 99px;
}
.pb-phone-tile-cap {
  margin-top: 8px;
  font-family: var(--pb-font-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  color: var(--pb-ink);
}

/* Bottom tab bar */
.pb-phone-tabbar {
  flex: none;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 16px 22px;
  background: #fff;
  border-top: 1px solid rgba(24, 24, 24, 0.06);
}
.pb-phone-tabbar img { width: 20px; height: 20px; opacity: 0.35; }
.pb-phone-tabbar .is-active img { opacity: 0.9; }

/* ── Generic section spacing ──────────────────────────────────────────────── */
.pb-section { padding: 96px var(--pb-gutter); }
.pb-section--cream { background: var(--pb-cream); }
.pb-section--cream-deep { background: var(--pb-cream-deep); }

/* ── Feature cards ────────────────────────────────────────────────────────── */
.pb-grid {
  margin-top: 56px;
  display: grid;
  gap: 18px;
}
.pb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pb-grid--4 { grid-template-columns: repeat(4, 1fr); }

.pb-feature {
  background: #fff;
  border-radius: var(--pb-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--pb-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}
.pb-feature-icon {
  width: 56px; height: 56px;
  border-radius: 99px;
  background: var(--pb-cream-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.pb-feature-icon img { width: 28px; height: 28px; filter: var(--pb-filter-orange); }
.pb-feature h3 {
  margin: 0;
  font-family: var(--pb-font-display);
  font-weight: 700; font-size: 18px; line-height: 1.25;
  color: var(--pb-ink);
}
.pb-feature p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pb-ink-soft); }

/* ── Routes / photo cards ─────────────────────────────────────────────────── */
.pb-section--marigold {
  background: var(--pb-marigold);
  position: relative;
  overflow: hidden;
}
.pb-section--marigold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../pabach/pattern-strip.svg") center/cover;
  opacity: 0.16;
  filter: brightness(0) saturate(100%) invert(8%);
  pointer-events: none;
}
.pb-section--marigold .pb-wrap { position: relative; z-index: 1; }

.pb-route {
  background: #fff;
  border-radius: var(--pb-radius-lg);
  overflow: hidden;
  box-shadow: var(--pb-shadow-lift);
  display: flex;
  flex-direction: column;
}
.pb-route-photo {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--pb-marigold);
  position: relative;
}
.pb-route-body { padding: 20px 22px 24px; }
.pb-route-body h3 {
  margin: 0;
  font-family: var(--pb-font-display);
  font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--pb-ink);
}
.pb-route-meta {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--pb-ink-soft);
}
.pb-route-meta img { width: 16px; height: 16px; opacity: 0.6; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.pb-faq-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.pb-faq {
  background: #fff;
  border-radius: var(--pb-radius-lg);
  box-shadow: var(--pb-shadow-card);
  padding: 24px 26px;
}
.pb-faq h4 {
  margin: 0 0 10px;
  font-family: var(--pb-font-display);
  font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--pb-ink);
}
.pb-faq p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pb-ink-soft); }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.pb-contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pb-contact {
  background: #fff;
  border-radius: var(--pb-radius-lg);
  box-shadow: var(--pb-shadow-card);
  padding: 28px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pb-contact-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 99px;
  background: var(--pb-cream-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.pb-contact-icon img { width: 22px; height: 22px; filter: var(--pb-filter-orange); }
.pb-contact-label {
  font-family: var(--pb-font-display);
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--pb-ink); margin: 0 0 4px;
}
.pb-contact-value { margin: 0; font-size: 15px; color: var(--pb-ink-soft); }
.pb-contact-value a { color: var(--pb-orange); text-decoration: none; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.pb-cta { background: var(--pb-orange); color: #fff; padding: 96px var(--pb-gutter); }
.pb-cta-inner {
  max-width: var(--pb-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.pb-cta h2 {
  margin: 0;
  font-family: var(--pb-font-display);
  font-weight: 700; font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05; letter-spacing: -0.01em; color: #fff;
}
.pb-cta p {
  margin: 18px 0 0;
  max-width: 50ch;
  font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.88);
}
.pb-cta-stores { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.pb-cta-stores a { display: block; width: 164px; height: 54px; border-radius: 7px; overflow: hidden; background: #000; }
.pb-cta-stores img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pb-cta-stores .pb-store-badge--apple { object-fit: cover; transform: scale(1.04); }

/* ── Prose (privacy policy etc.) ──────────────────────────────────────────── */
.pb-prose { max-width: 820px; }
.pb-prose .pb-section-title { max-width: none; margin-bottom: 32px; }
.pb-prose-body { font-size: 16px; line-height: 1.65; color: var(--pb-ink-soft); }
.pb-prose-body h2, .pb-prose-body h3 {
  font-family: var(--pb-font-display);
  color: var(--pb-ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}
.pb-prose-body h2 { font-size: 24px; }
.pb-prose-body h3 { font-size: 19px; }
.pb-prose-body p { margin: 0 0 16px; }
.pb-prose-body ul, .pb-prose-body ol { margin: 0 0 16px; padding-left: 22px; }
.pb-prose-body li { margin-bottom: 8px; }
.pb-prose-body a { color: var(--pb-orange); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.pb-footer { background: var(--pb-ink); color: #fff; padding: 48px var(--pb-gutter); }
.pb-footer-inner {
  max-width: var(--pb-maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.pb-footer-brand { display: flex; align-items: center; gap: 12px; }
.pb-footer-brand img { height: 32px; filter: brightness(0) invert(1); }
.pb-footer-brand span {
  font-family: var(--pb-font-display);
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
}
.pb-footer-meta { font-size: 13px; opacity: 0.7; }
.pb-footer-meta a { color: var(--pb-marigold); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  :root { --pb-gutter: 24px; }
  .pb-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pb-hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 56px var(--pb-gutter); }
  .pb-hero-art { margin-top: 16px; }
  .pb-cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .pb-cta-stores { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .pb-nav { display: none; }
  .pb-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--pb-marigold);
    padding: 20px var(--pb-gutter) 28px;
    box-shadow: var(--pb-shadow-lift);
  }
  .pb-nav-toggle { display: inline-flex; }
  .pb-lang { padding-left: 0; }
  .pb-section { padding: 64px var(--pb-gutter); }
  .pb-grid--3, .pb-grid--4, .pb-faq-grid, .pb-contact-grid {
    grid-template-columns: 1fr;
  }
}
