/* Shared by the search landing pages (private-travel-journal,
   travel-photo-organizer, travel-journal-with-map, mytriplog-vs-camera-roll).
   Linked as landing.css?v=N: bump N in all four when this file changes. Tokens, nav, CTA and
   footer are the same as how-it-works.html; everything under "Landing
   blocks" is specific to these pages. Listed in package.json's cp list. */

/* ─── Design tokens — identical to index.html ─────────────────────── */
:root {
  --bg:        #F9F7F4;
  --ink:       #1A1714;
  --ink-muted: #6B6560;
  --ink-faint: #928B84;
  --accent:    #2A6B4F;
  --accent-dk: #1d5038;
  --accent-lt: #EAF2ED;
  --rule:      #E2DDD8;
  --white:     #FFFFFF;
  --own:       #9A4F2B;
  --own-lt:    #FAF0E9;

  --display: 'Playfair Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:    'DM Mono', 'Courier New', monospace;

  --container:  1100px;
  --pad-x:      24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(42,107,79,0.25);
}
.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42,107,79,0.35);
}
.btn-ghost { color: var(--ink); border: 1.5px solid var(--rule); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(249,247,244,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.nav-logo { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.nav-logo .my { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-login { font-size: 0.9375rem; font-weight: 500; color: var(--ink-muted); transition: color 0.15s; }
.nav-login:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.18s;
}
.nav-cta:hover { background: var(--accent-dk); }
.nav-sep { width: 1px; height: 18px; background: var(--rule); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a, .mobile-overlay button { font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.mobile-overlay a:hover { color: var(--accent); }
.overlay-close { position: absolute; top: 18px; right: 24px; font-size: 2rem; line-height: 1; color: var(--ink-muted); }

/* ─── Landing blocks ─────────────────────────────────────────────── */
.sec-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lp-head { padding-top: calc(64px + 64px); }
.lp-h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 18ch;
  text-wrap: balance;
}
.lp-sub {
  margin-top: 22px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 60ch;
}
.lp-sub strong { color: var(--ink); font-weight: 600; }
.lp-btns { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.lp-reassure {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lp-shot { padding-top: 56px; }
.lp-shot figure { display: flex; flex-direction: column; gap: 16px; }
.lp-shot .frame {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,23,20,0.04), 0 10px 34px rgba(26,23,20,0.06);
}
.lp-shot .frame img { width: 100%; }
figcaption {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 74ch;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
figcaption strong { color: var(--ink); font-weight: 600; }

/* A prose section: heading on the left, text on the right on wide screens */
.lp-sec { padding-top: 88px; }
.lp-sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 56px;
  align-items: start;
}
.lp-h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.lp-prose { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; }
.lp-prose p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-muted); }
.lp-prose strong { color: var(--ink); font-weight: 600; }
.lp-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Three short points */
.lp-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lp-point {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-point h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.lp-point p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-muted); }
.lp-point .k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Where-it-lives ledger: two columns of what's held where */
.ledger {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.ledger > div { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.ledger > div + div { border-left: 1px solid var(--rule); }
.ledger h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.ledger .you h3 { color: var(--own); }
.ledger .mtl h3 { color: var(--accent); }
.ledger li {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.ledger li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }
.ledger strong { color: var(--ink); font-weight: 600; }

/* Comparison rows */
.compare { margin-top: 40px; border-top: 1px solid var(--rule); }
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 8px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.compare-row.hd {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 0;
}
.compare-row .q { font-weight: 600; }
.compare-row .them { color: var(--ink-muted); }
.compare-row .us { color: var(--ink); }
.compare-row .lbl { display: none; }
/* Four-column variant: a row label and three approaches side by side */
.compare.four .compare-row { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 3fr)); }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--rule); max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-faint);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq .a { padding: 0 0 22px; font-size: 1rem; line-height: 1.7; color: var(--ink-muted); max-width: 70ch; }
.faq .a a, .lp-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lp-note { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-muted); }

/* Related pages */
.related {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.related a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.related a:hover { border-color: var(--accent); background: var(--white); }
.related a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.related .t { font-weight: 600; }
.related .d { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.5; }

/* ─── Closing CTA ────────────────────────────────────────────────── */
.cta {
  margin-top: 96px;
  background: var(--ink);
  padding: 72px 0 76px;
  text-align: center;
  color: #fff;
}
.cta-h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta-sub { margin-top: 16px; color: rgba(255,255,255,0.6); font-size: 1.0625rem; }
.cta-btns { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.cta .btn-ghost:hover { border-color: rgba(255,255,255,0.6); }

/* ─── Footer ─────────────────────────────────────────────────────── */
footer { background: var(--ink); padding: 64px 0 36px; color: rgba(255,255,255,0.5); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, auto);
  gap: 48px;
  margin-bottom: 52px;
}
.footer-logo { font-size: 1.0625rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo .my { color: var(--accent); }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; max-width: 220px; }
.footer-col-h {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-rule { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8125rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.4); transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .lp-sec-grid { grid-template-columns: 1fr; }
  .lp-points, .related { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-login, .nav-sep { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 680px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger > div + div { border-left: none; border-top: 1px solid var(--rule); }
  .compare-row.hd { display: none; }
  .compare-row, .compare.four .compare-row { grid-template-columns: 1fr; gap: 6px; }
  .compare-row .lbl {
    display: inline;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-right: 8px;
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .lp-head { padding-top: calc(64px + 40px); }
  .lp-sec { padding-top: 64px; }
}

figcaption code { font-family: var(--mono); font-size: 0.875em; }
