/* ============================================================
   PariNest — Marketing Site
   Same design tokens as the family dashboard (public/style.css)
   so the marketing site and the app feel like one product family.
   Teal = brand, amber = warmth/positive, brick-red is reserved for
   alert states in the app and is NOT used here at all.
   ============================================================ */

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #22282A;
  --ink-soft: #5B6360;
  --hairline: #DDD8CC;

  --brand: #2B5F5C;
  --brand-dark: #1E4341;
  --good: #4C8C5B;
  --good-soft: #DCEBD3;
  --positive: #C98A3E;
  --positive-soft: #F3E3CC;
  --urgent: #C44536;
  --urgent-soft: #F6DAD5;

  --radius: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { color: var(--brand); }

/* Same utility as public/style.css — used by pricing.js to hide a
   deactivated tier's card. */
.hidden { display: none; }

img { max-width: 100%; }

/* ---------- Topbar / nav ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--hairline);
  max-width: 1100px;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brand-dark);
  text-decoration: none;
}

.wordmark-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover { color: var(--brand); }

@media (max-width: 620px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Layout ---------- */

main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

section { padding: 64px 0; }

/* Tighter gap under the hero specifically — the generic 64px top padding
   above left too much empty space once the redundant "Our lineup" kicker
   was removed from this section's heading. */
#products { padding-top: 24px; }

.section--narrow { max-width: 720px; margin: 0 auto; }

.section--tight { padding: 40px 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }

.btn--secondary { background: var(--positive-soft); color: var(--brand-dark); }
.btn--secondary:hover { background: var(--positive); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--hairline);
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

.link-arrow {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.text-muted { color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--brand-dark);
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
}

/* ---------- Generic headings ---------- */

h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--brand-dark);
  margin: 0 0 16px;
  text-align: center;
}

p.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ---------- Problem section ---------- */

.problem-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.problem-card p:last-child { margin-bottom: 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brand-dark);
  margin: 0 0 8px;
}

.step p { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}

.product-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 18px;
  display: block;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--positive);
  margin: 0 0 6px;
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand-dark);
  margin: 0 0 10px;
}

.product-card p { color: var(--ink-soft); margin: 0 0 18px; }

.product-card ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--ink);
}

.product-card li { margin-bottom: 8px; font-size: 0.93rem; }

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.badge-soon {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 6px 14px;
}

/* ---------- Platform homepage: hero kicker + mission strip ---------- */

.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--positive);
  margin: 0 0 18px;
}

.mission-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 40px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mission-card p { font-size: 1.02rem; line-height: 1.65; margin: 0; }

/* ---------- Section kicker (sits above h2.section-title) ---------- */

.kicker {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--positive);
  margin: 0 0 12px;
}

/* ---------- Product tiles (homepage + products hub) ----------
   Distinct from .product-grid/.product-card above, which is the
   fuller-detail layout reused on individual product pages. This is the
   lighter 3-up gallery: a shared template so a 4th/5th product slots in
   without a redesign. */

.product-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 820px) {
  .product-tiles { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.product-tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-tile:hover { border-color: var(--brand); transform: translateY(-2px); }

.product-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: block;
}

.product-tile__icon--placeholder {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: var(--bg);
  border: 1.5px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-tile__icon--placeholder svg { width: 26px; height: 26px; color: var(--ink-soft); }

.product-tile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--brand-dark);
  margin: 0 0 2px;
}

/* Display-only: the product's app name ("Touch"/"Pulse"/"Bloom") plus a
   "by PariNest" byline, standing in for the full "Pari Touch"/etc. name in
   this tile grid specifically — the real product names are unchanged
   everywhere else (page titles, Play Store listings, body copy). Scoped
   with the extra .product-tile ancestor selector so its specificity beats
   .product-tile p's color/margin/flex-grow, since both are plain <p> tags
   here. */
.product-tile .product-tile__by {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 14px;
  flex-grow: 0;
}

.product-tile p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 0.95rem;
  flex-grow: 1;
}

.product-tile__cta { color: var(--brand); font-weight: 600; font-size: 0.9rem; }

.product-tile--soon { background: var(--bg); }
.product-tile--soon:hover { border-color: var(--hairline); transform: none; }
.product-tile--soon h3 { color: var(--ink-soft); }
.product-tile--soon .product-tile__cta { color: var(--ink-soft); }

.product-tile--soon .badge-soon { margin-bottom: 18px; align-self: flex-start; }

/* ---------- Product system (Pari Touch + Pari Pulse, shown as one
   connected system rather than two peer tiles) ----------
   The outer container reuses the exact surface/border/radius already used
   by .step/.mission-card/.problem-card above — no new card language. Each
   half keeps the real .product-tile class (so its icon/h3/p/cta styling is
   fully reused); .product-system__half only strips the outer tile chrome
   that would otherwise make each half read as its own separate card. */

.product-system {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px 40px 34px;
  margin-bottom: 22px;
}

.product-system__label { text-align: center; margin-bottom: 30px; }

.product-system__label h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--brand-dark);
  margin: 0 0 8px;
}

.product-system__label p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

.product-system__pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* stretch (grid default), not center: both halves should match height so
     their CTAs land on the same baseline regardless of minor copy-length
     differences — .product-tile p's existing flex-grow:1 absorbs the
     difference. The connector explicitly stretches too (see below) so its
     line spans the full row; it centers its own chip internally. */
  align-items: stretch;
}

.product-system__half {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 6px 22px;
  transform: none !important;
}

.product-system__half:hover { background: var(--bg); border-color: transparent; }

/* Connector: a hairline running between the two halves (vertical on
   desktop, horizontal once .product-system__pair stacks on mobile) with a
   circular chip centered on it — the chip reuses .step-number's exact
   circle treatment (size, teal fill, white icon) with a two-way arrow
   instead of a digit. */

.product-system__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  position: relative;
  padding: 0 6px;
}

.product-system__connector::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--hairline);
}

.product-system__connector-chip {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-system__connector-chip svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .product-system__pair { grid-template-columns: 1fr; }
  .product-system__connector { flex-direction: row; padding: 10px 0; }
  .product-system__connector::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
}

.product-system__actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.product-system__actions p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.product-system__next-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.product-tiles--single {
  grid-template-columns: 1fr;
  max-width: 340px;
  margin: 0 auto;
}

/* ---------- Individual product page hero ---------- */

.product-hero { text-align: center; padding: 56px 0 8px; }

.product-hero__icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 22px;
  display: block;
}

.product-hero__icon--placeholder {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto 22px;
  background: var(--surface);
  border: 2px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-hero__icon--placeholder svg { width: 40px; height: 40px; color: var(--ink-soft); }

.product-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--brand-dark);
  margin: 0 0 4px;
}

/* Same display-only name treatment as .product-tile__by, scaled for the
   larger hero context — the real product name is unchanged everywhere
   else (page <title>, Play Store listing, body copy). */
.product-hero__by {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 20px;
}

.product-hero p.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

.product-hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.product-hero .badge-soon { margin-bottom: 8px; }

/* ---------- Trust ---------- */

.trust-card {
  background: var(--good-soft);
  border-radius: var(--radius);
  padding: 32px 40px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.trust-card p { color: var(--brand-dark); margin: 0 0 10px; font-size: 1rem; line-height: 1.6; }

/* ---------- Pricing (Pari Pulse) ----------
   Cards reuse the same surface/hairline/radius treatment as .step and
   .product-tile above rather than inventing a new card look; the trial
   explainer reuses .trust-card as-is (same "soft informational callout"
   pattern already used earlier on this page). */

.pricing-grid {
  display: grid;
  /* --pricing-columns is set by pricing.js when a tier is deactivated and
     hidden, so the grid reflows to however many tiers are actually visible
     instead of leaving an empty gap. Falls back to 3 (all tiers active). */
  grid-template-columns: repeat(var(--pricing-columns, 3), 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 760px) {
  /* Plain value, not the variable — this must always win at narrow
     viewports regardless of how many tiers are active. */
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--brand-dark);
  margin: 0;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--brand-dark);
  margin: 10px 0 12px;
}

.pricing-card__period {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.pricing-card__track {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.pricing-card__scope { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }
.pricing-card__scope::before { content: "✓ "; color: var(--good, #4C8C5B); font-weight: 700; }

.pricing-note {
  text-align: center;
  font-size: 0.88rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

.pricing-trial-note { margin-bottom: 28px; }

.pricing-cta { text-align: center; }

/* ---------- Footer CTA band ---------- */

.cta-band {
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 64px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 24px;
  color: #fff;
}

.cta-band .btn--primary { background: var(--positive); }
.cta-band .btn--primary:hover { background: #b57a34; }

.cta-band .btn--outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-band .btn--outline:hover { border-color: #fff; }

.cta-band-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Founders (About page) ----------
   Reuses the same surface/hairline/radius card language as .problem-card/
   .step/.mission-card above rather than inventing a new visual treatment —
   this is just the first place on the site with real photos. */

/* Source photo is portrait (896x1195, ~3:4), but landscape display is
   requested here regardless — object-position biased toward the top of the
   frame since a portrait composition's subjects are more likely to sit in
   the upper portion than dead center once cropped this wide. Adjust the
   object-position vertical value if the crop doesn't land on the subjects
   correctly once you see it rendered. */
.founders-banner {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.founders-banner__img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 620px) {
  .founders-banner__img { aspect-ratio: 4 / 3; }
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .founder-grid { grid-template-columns: 1fr; }
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.founder-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.founder-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-dark);
  margin: 0 0 4px;
}

.founder-card__role {
  color: var(--positive);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.founder-card p:not(.founder-card__role) {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
}

.founders-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brand-dark);
  margin: 32px 0 0;
}

/* ---------- Approach list (About page) ---------- */

.approach-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.approach-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.98rem;
}

/* ---------- Placeholder marker ---------- */

.placeholder-note {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--positive);
  background: var(--positive-soft);
  border-radius: 100px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Legal doc pages (Privacy/Terms) ---------- */

.legal-doc { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-doc h1 { font-family: var(--font-display); color: var(--brand-dark); font-size: 1.8rem; }
.legal-doc h2 { font-family: var(--font-display); color: var(--brand-dark); font-size: 1.2rem; margin-top: 36px; }
.legal-doc p, .legal-doc li { color: var(--ink); font-size: 0.95rem; line-height: 1.65; }
.legal-doc .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 32px; }
.legal-doc .important { background: var(--urgent-soft); border-left: 3px solid var(--urgent); border-radius: 6px; padding: 16px 20px; margin: 20px 0; }
.legal-doc .important p { color: var(--urgent); font-weight: 500; }
.legal-doc .note { background: var(--positive-soft); border-radius: 8px; padding: 14px 18px; font-size: 0.85rem; color: #8A5B1E; margin: 16px 0; }
.legal-doc h3 { font-family: var(--font-display); color: var(--brand-dark); font-size: 1.02rem; margin-top: 24px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.legal-doc th, .legal-doc td { border: 1px solid #D8DEDC; padding: 10px 14px; text-align: left; vertical-align: top; color: var(--ink); }
.legal-doc th { background: var(--positive-soft); color: var(--brand-dark); }
.legal-doc a { color: var(--brand); }
.back-link { display: inline-block; margin-bottom: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover { color: var(--brand); }
