/* TripCompanion holding page — Lime Ink.
 * Fonts are self-hosted (OFL, see /fonts): no third-party requests at all,
 * which is also what lets the CSP stay at 'self'. */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #111110;
  --ink-2: #1C1C1A;
  --line: #2E2E2B;
  --paper: #F5F4F1;
  --muted: #B9B6AE;
  --lime: #D4FF3F;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--paper); }
a:hover { color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; border-radius: 10px; background: var(--lime); color: var(--ink); font-weight: 700; z-index: 10; }
.skip:focus { top: 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font: 800 24px/1 var(--display); letter-spacing: -0.035em; }
.top-link { font-weight: 600; font-size: 15px; text-decoration: none; }

.notice { margin-top: 4px; padding: 14px 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.notice p { margin: 0; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(212, 255, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0); } }
h1 { margin: 0; font: 800 clamp(46px, 7.2vw, 96px)/0.93 var(--display); letter-spacing: -0.045em; }
.lede { margin: 24px 0 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: #DCDAD4; }

.join { margin-top: 32px; max-width: 520px; }
.join-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--paper); }
.join input[type='email'] { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 17px var(--body); }
.join input[type='email']::placeholder { color: #6B6A64; }
.join input[type='email']:focus { outline: none; }
.join-row:focus-within { box-shadow: 0 0 0 3px var(--lime); }
.join button { flex: none; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font: 700 16px var(--body); cursor: pointer; transition: transform 0.15s ease; }
.join button:hover { transform: translateY(-1px); }
.join button:disabled { opacity: 0.6; cursor: progress; }
.fine { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Success and error messages. Shown by :target after the no-JS redirect,
 * or by app.js toggling .show. */
.status { display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.status.ok { background: var(--lime); color: var(--ink); }
.status.err { background: #3A1F1A; color: #FFD9CF; border: 1px solid #6B3426; }
.status.live:empty { display: none; }
.status:target, .status.show { display: block; }

.hero-photo { position: relative; margin: 0; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: rgba(17, 17, 16, 0.78); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; }

.gem, .tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.gem { background: var(--lime); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.tag { background: var(--paper); color: var(--ink); }

/* Sections */
section h2 { margin: 0; font: 800 clamp(34px, 4.6vw, 60px)/1 var(--display); letter-spacing: -0.04em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 32px; }
.section-head p { margin: 0; max-width: 28em; color: #DCDAD4; }

.guess { padding-block: 40px 100px; border-top: 1px solid var(--line); padding-top: 90px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cards details { border-radius: 26px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.cards summary { position: relative; display: block; cursor: pointer; list-style: none; }
.cards summary::-webkit-details-marker { display: none; }
.cards summary img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: saturate(0.9); }
.cards details:not([open]) summary img { filter: saturate(0.9) brightness(0.82); }
.cards summary:hover img { transform: scale(1.03); }
.cards .gem { position: absolute; left: 14px; top: 14px; }
.cards .hint { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(17, 17, 16, 0.78); font-size: 13px; font-weight: 600; }
.cards .reveal { position: absolute; right: 14px; bottom: 14px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; }
.cards details[open] .reveal { display: none; }
.answer { margin: 0; padding: 18px 20px 22px; font-size: 16px; color: #DCDAD4; animation: rise 0.35s ease; }
.answer strong { display: block; margin-bottom: 4px; color: var(--paper); font: 700 21px/1.2 var(--display); letter-spacing: -0.02em; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.coming { padding-block: 90px 100px; border-top: 1px solid var(--line); }
.coming ol { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.coming li { padding-top: 20px; border-top: 2px solid var(--lime); }
.coming .n { font: 700 14px var(--body); color: var(--lime); letter-spacing: 0.06em; }
.coming h3 { margin: 10px 0 8px; font: 700 23px/1.15 var(--display); letter-spacing: -0.02em; }
.coming p { margin: 0; color: #DCDAD4; font-size: 16px; }


.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--muted); }

/* Legal and support pages */
.doc { max-width: 720px; padding-block: 24px 80px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); }
.doc h2 { margin: 40px 0 10px; font: 700 22px/1.2 var(--display); letter-spacing: -0.01em; }
.doc p, .doc li { color: #DCDAD4; }
.doc .meta { color: var(--muted); font-size: 15px; }
.panel { margin-top: 28px; padding: 24px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.panel p:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
.panel a { color: var(--lime); font-weight: 600; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .join-row { flex-direction: column; border-radius: 22px; }
  .join input[type='email'], .join button { width: 100%; }
  .top-link { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
