/* ExoLog marketing site — exolog.app
   Paper-led, editorial, restrained. Mobile-first. */

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm-serif-display.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm-serif-display-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF7F2;
  --paper-deep: #F2ECDF;
  --ink: #2B241D;
  --ink-80: rgba(43, 36, 29, .8);
  --ink-60: rgba(43, 36, 29, .62);
  --ink-40: rgba(43, 36, 29, .42);
  --line: rgba(43, 36, 29, .14);
  --accent: #C96A1E;
  --accent-deep: #A85413;
  --pink: #D94F70;
  --paper-on-ink: #F6EFE3;
  --paper-on-ink-60: rgba(246, 239, 227, .64);
  --line-on-ink: rgba(246, 239, 227, .18);
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-pill: 26px;
  --radius-card: 12px;
  --ease: cubic-bezier(.25, 1, .5, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper-on-ink);
  padding: 10px 18px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--paper-on-ink); }

/* ---------- Type ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.12;
}

.h-display { font-size: clamp(2.5rem, 7.2vw, 4.25rem); }
.h-section { font-size: clamp(1.9rem, 4.6vw, 2.75rem); }
.h-sub { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }

.lede {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-80);
}

.small { font-size: .92rem; color: var(--ink-60); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}

/* ---------- Layout ---------- */

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4.5vw, 2.5rem); }
.wrap-text { max-width: 44rem; }

section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
section + section { border-top: 1px solid var(--line); }

.section-tone { background: var(--paper-deep); }
.section-dark { background: var(--ink); color: var(--paper-on-ink); }
.section-dark .lede { color: var(--paper-on-ink-60); }
.section-dark .small { color: var(--paper-on-ink-60); }
.section-dark a { color: #E8A367; }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

.nav-links { display: none; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--ink-80); text-decoration: none; font-size: .95rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left 100%;
  transition: background-size .3s var(--ease), color .2s;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--ink); background-size: 100% 1px; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 16px; font: inherit; font-size: .9rem; color: var(--ink);
  cursor: pointer;
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; }
.mobile-menu[data-open] { display: block; }
.mobile-menu a {
  display: block; padding: .65rem 0; color: var(--ink); text-decoration: none; font-size: 1.05rem;
}

@media (min-width: 52rem) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Buttons and forms ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 52px; padding: 0 1.9rem;
  border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease);
  border: none;
}
.btn-primary { background: var(--accent); color: #FFF8EF; }
.btn-primary:hover { background: var(--accent-deep); color: #FFF8EF; }
.btn-primary:active { transform: scale(.98); }
.btn-sm { height: 42px; padding: 0 1.4rem; font-size: .92rem; }

.btn-ghost {
  background: none; border: 1px solid var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-40); color: var(--ink); }

.signup {
  display: flex; flex-direction: column; gap: .75rem;
  max-width: 30rem;
}
.signup input[type="email"] {
  height: 52px; padding: 0 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: #FFFDF9; color: var(--ink);
  font: inherit; font-size: 1rem;
  width: 100%;
}
.signup input[type="email"]::placeholder { color: var(--ink-40); }
.signup input[type="email"]:focus { border-color: var(--accent); outline: none; }
@media (min-width: 34rem) {
  .signup { flex-direction: row; flex-wrap: wrap; }
  .signup input[type="email"] { flex: 1; }
}

.signup .cf-turnstile {
  flex-basis: 100%;
  min-height: 65px;
  margin-top: .25rem;
}

.signup .btn[disabled] { opacity: .6; cursor: progress; }

.form-note { font-size: .88rem; color: var(--ink-60); }

.form-status { font-size: .88rem; margin-top: .6rem; max-width: 30rem; }
.form-status[data-tone="info"] { color: var(--ink-60); }
.form-status[data-tone="error"] { color: var(--pink); }

.form-done {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  background: #FFFDF9;
  padding: 1.4rem 1.6rem;
  max-width: 30rem;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(4rem, 9vw, 6.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}
.hero .h-display { margin-bottom: 1.4rem; }
.hero .lede { max-width: 34rem; }
.hero-actions { margin-top: 2rem; }
.hero-alt { margin-top: 1.1rem; font-size: .95rem; }
.hero-alt a { color: var(--ink-80); }

.figure-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #FFFDF9;
  box-shadow: 0 24px 60px -32px rgba(43, 36, 29, .35);
}
.hero-shot { max-width: 21rem; margin: 0 auto; }
@media (min-width: 60rem) { .hero-shot { max-width: 24rem; } }

figcaption {
  font-size: .88rem; color: var(--ink-60);
  padding: .85rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- Numbers row ---------- */

.numbers {
  display: grid; gap: 2rem; margin: 3rem 0 0;
  grid-template-columns: repeat(3, 1fr);
  max-width: 44rem;
}
.number b {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1; letter-spacing: -.01em;
}
.number span { display: block; margin-top: .55rem; font-size: .9rem; color: var(--ink-60); line-height: 1.45; }

/* ---------- Steps (how it works) ---------- */

.steps { display: grid; gap: clamp(3rem, 7vw, 5rem); margin-top: 3.5rem; }
.step { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 56rem) {
  .step { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .step:nth-child(even) .step-shot { order: -1; }
}
.step-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent-deep);
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .2rem;
  margin-bottom: .9rem;
}
.step h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .8rem; }
.step p { color: var(--ink-80); max-width: 26rem; }
.step-shot { max-width: 100%; }
.step-shot.mobile { max-width: 19rem; margin: 0 auto; }

/* ---------- Principles (trust) ---------- */

.principles { display: grid; gap: 2.5rem; margin: 3.5rem 0; }
@media (min-width: 56rem) { .principles { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.principle h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.principle h3::before {
  content: ""; display: block; width: 2rem; height: 2px;
  background: var(--accent); margin-bottom: .9rem;
}
.principle p { font-size: .98rem; color: var(--paper-on-ink-60); }
.section-dark .principle p { color: var(--paper-on-ink-60); }
.principles-on-paper .principle p { color: var(--ink-80); }

.wide-shot { margin-top: 3rem; }

/* ---------- Diary (a week) ---------- */

.diary { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 56rem) { .diary { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.diary-item .figure-shot { max-width: 17rem; margin: 0 auto 1.4rem; }
.diary-item h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.diary-item p { font-size: .96rem; color: var(--ink-80); }
.diary-when {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); display: block; margin-bottom: .7rem;
}

/* ---------- Lists ---------- */

.plain-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 2rem; max-width: 44rem; }
.plain-list li { padding-left: 1.6rem; position: relative; color: var(--ink-80); }
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--accent);
}
.plain-list li b { color: var(--ink); font-weight: 600; }

.status-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 50rem) { .status-grid { grid-template-columns: 1fr 1fr; } }
.status-grid h3 {
  font-family: var(--sans); font-weight: 600; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 1rem;
}
.status-grid ul { list-style: none; display: grid; gap: .7rem; }
.status-grid li { padding-left: 1.5rem; position: relative; color: var(--ink-80); font-size: .98rem; }
.status-grid li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: .9rem; height: 2px; background: var(--accent);
}

/* ---------- Founder note ---------- */

.founder { max-width: 44rem; }
.founder blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.5;
  margin: 2rem 0 1.5rem;
}
.founder-sig { font-size: .95rem; color: var(--ink-60); }
.founder-photo img {
  width: clamp(9rem, 34vw, 13.5rem);
  height: auto; display: block;
  border-radius: var(--radius-pill);
}
.founder-photo-lg img { width: min(100%, 22rem); }
.founder-note p + p { margin-top: 1rem; }
.founder-note .founder-sig { margin-top: 1.5rem; }

.placeholder-note {
  border: 1px dashed var(--ink-40);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
  margin-top: 2rem;
  background: rgba(255, 253, 249, .6);
}
.placeholder-note b {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: .6rem;
}
.placeholder-note p { font-size: .95rem; color: var(--ink-60); }

/* ---------- FAQ ---------- */

.faq { max-width: 44rem; margin-top: 2.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.25rem 2.2rem 1.25rem 0;
  font-weight: 600; font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 1.15rem;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400;
  color: var(--accent-deep);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-80); max-width: 38rem; }

/* ---------- Final CTA ---------- */

.final-cta .h-section { max-width: 36rem; }
.final-cta .signup { margin-top: 2.2rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 50rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-60); margin-bottom: .9rem;
}
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: var(--ink-80); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-line { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-60); }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta[data-visible] { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 52rem) { .sticky-cta { display: none; } }

/* ---------- Subpages ---------- */

.page-head { padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem); }
.page-head .h-display { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.page-head .lede { margin-top: 1.2rem; max-width: 40rem; }

.tour-item { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); }
.tour-item:first-of-type { border-top: none; }
.tour-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) {
  .tour-grid { grid-template-columns: 22rem 1fr; gap: 3.5rem; }
  .tour-grid.flip { grid-template-columns: 1fr 22rem; }
  .tour-grid.flip .tour-copy { order: 2; }
}
.tour-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.tour-copy p { color: var(--ink-80); max-width: 26rem; }
.tour-copy .small { margin-top: 1rem; display: block; }
.tour-shots { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.tour-shots.single { max-width: 17rem; margin: 0 auto; }
.tour-shots.two { grid-template-columns: 1fr; max-width: 17rem; margin: 0 auto; }
@media (min-width: 40rem) { .tour-shots.two { grid-template-columns: 1fr 1fr; max-width: 34rem; } }
.tour-shots .figure-shot { box-shadow: 0 18px 44px -30px rgba(43, 36, 29, .35); }
@media (min-width: 56rem) {
  .tour-shots.two { max-width: none; }
}

.ref-list { list-style: none; display: grid; gap: 1.6rem; margin-top: 2.5rem; max-width: 46rem; }
.ref-list li { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.ref-list b { font-weight: 600; }
.ref-list .ref-what { display: block; margin-top: .35rem; color: var(--ink-80); font-size: .97rem; }
.ref-list a { font-size: .92rem; word-break: break-all; }

/* ---------- Reveal motion ---------- */

html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
