/* Ayumi — /next2 "thought capture" landing.
   One deliberate visual world: warm paper, ink, deep pine accent.
   The hero footage is warm-graded; everything below keeps that temperature. */

:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #211d17;
  --ink-2: #57503f;
  --ink-3: #8a8271;
  --line: #ddd6c8;
  --pine: #1f5f5b;
  --pine-soft: #e3edea;
  --scrim: rgba(24, 20, 14, 0.52);

  --serif-en: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --serif-ja: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif: var(--serif-ja);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", sans-serif;

  --page: 68rem;
  --measure: 36rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.shell { max-width: var(--page); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.nav-logo {
  font-family: var(--serif-en);
  font-size: 1.45rem; font-weight: 600; letter-spacing: .02em;
  color: #fff; text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .9rem; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px;
  padding: .4rem 1.05rem !important; color: #fff !important;
}
@media (max-width: 46rem) { .nav-links li.hide-sm { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Subjects are framed in the right third (text sits left on desktop), so
     bias the crop window right: on narrow viewports the horizontal crop keeps
     the person in frame; on wide viewports the crop is vertical and this is
     a no-op. */
  object-position: 74% center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 10, .78) 0%, var(--scrim) 45%, rgba(24, 20, 14, .30) 100%);
}
.hero-content {
  position: relative;
  padding: 0 0 clamp(3rem, 8vh, 5.5rem);
  display: flex; flex-direction: column; gap: 1.4rem;
  max-width: 44rem;
}
.hero-eyebrow {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75); margin: 0;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.42;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}
.hero-lead {
  font-size: clamp(.98rem, 2vw, 1.08rem);
  line-height: 2;
  color: rgba(255, 255, 255, .92);
  margin: 0; max-width: 34rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.btn-store {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; color: var(--ink);
  border-radius: 999px; padding: .85rem 1.6rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
}
.btn-store:hover { background: var(--paper); }
.hero-free { font-size: .84rem; color: rgba(255, 255, 255, .8); }

/* ---------- shared section bones ---------- */

section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.sec-eyebrow {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pine); margin: 0 0 1rem;
}
.sec-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.6vw, 2.3rem);
  line-height: 1.5;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.sec-lead { color: var(--ink-2); max-width: var(--measure); margin: 0; }
.sec-lead + .sec-lead { margin-top: 1rem; }

/* ---------- problem ---------- */

.problem { border-bottom: 1px solid var(--line); }
.problem .sec-lead strong { color: var(--ink); }

/* ---------- flow ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 52rem) { .flow-grid { grid-template-columns: 1fr; } }

.steps { display: flex; flex-direction: column; margin-top: 2.2rem; }
.step {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem;
  padding: 1.3rem 0; border-top: 1px solid var(--line);
}
.step-no {
  font-family: var(--serif-en); font-size: 1.5rem; font-style: italic;
  color: var(--pine); line-height: 1.2;
}
.step h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .93rem; }

.phone {
  border-radius: 2.2rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(33, 29, 23, .45);
  overflow: hidden;
  background: #000;
  justify-self: center;
  width: min(100%, 19rem);
}
.phone video { width: 100%; height: auto; }

/* ---------- exit (files) ---------- */

.exit { background: var(--ink); color: var(--paper); }
.exit .sec-eyebrow { color: #7fb8ad; }
.exit .sec-lead { color: rgba(247, 244, 238, .8); }
.exit .sec-lead strong { color: var(--paper); }

.exit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}
@media (max-width: 52rem) { .exit-grid { grid-template-columns: 1fr; } }

.md-file {
  background: #171410;
  border: 1px solid #3a352c;
  border-radius: .6rem;
  overflow: hidden;
}
.md-file-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid #3a352c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; color: #8a8271;
}
.md-file pre {
  margin: 0; padding: 1rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem; line-height: 1.75;
  color: #d9d2c2;
  overflow-x: auto;
  white-space: pre;
}
.md-file .fm { color: #7fb8ad; }

.exit-tools { display: flex; flex-direction: column; gap: 1.1rem; }
.tool {
  border: 1px solid #3a352c; border-radius: .6rem;
  padding: 1rem 1.2rem;
}
.tool h3 { margin: 0 0 .25rem; font-size: .98rem; color: var(--paper); }
.tool p { margin: 0; font-size: .88rem; color: rgba(247, 244, 238, .72); }

/* ---------- zero setup ---------- */

.zero-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 52rem) {
  .zero-grid { grid-template-columns: 1fr; }
  .zero-grid .phone { order: 2; }
}
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.chips li {
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff;
  padding: .42rem 1rem; font-size: .87rem; color: var(--ink-2);
}
.zero-note { margin: 1.6rem 0 0; font-size: .88rem; color: var(--ink-3); max-width: var(--measure); }

/* ---------- capture features ---------- */

.capture { background: var(--paper-2); }
.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 52rem) { .cap-grid { grid-template-columns: 1fr; } }
.cap-list { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .1rem 2rem; max-width: 40rem; }
.cap-list li {
  padding: .8rem 0; border-top: 1px solid var(--line);
  font-size: .93rem; color: var(--ink-2);
}
.cap-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- honest comparison ---------- */

.compare-table { width: 100%; border-collapse: collapse; margin-top: 2.2rem; font-size: .92rem; }
.compare-scroll { overflow-x: auto; }
.compare-table th, .compare-table td {
  text-align: left; padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; border-bottom-width: 2px; border-color: var(--ink);
}
.compare-table tbody th { font-weight: 600; white-space: nowrap; }
.compare-table td { color: var(--ink-2); }
.compare-table tr.is-ayumi { background: var(--pine-soft); }
.compare-table tr.is-ayumi td, .compare-table tr.is-ayumi th { color: var(--ink); }
.compare-note { margin: 1.2rem 0 0; font-size: .85rem; color: var(--ink-3); max-width: var(--measure); }

/* ---------- who ---------- */

.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.who-card { border: 1px solid var(--line); border-radius: .6rem; padding: 1.4rem 1.5rem; background: #fff; }
.who-card h3 { margin: 0 0 .8rem; font-size: .95rem; }
.who-card ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; color: var(--ink-2); }

/* ---------- price ---------- */

.price { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price .sec-title { margin-bottom: .8rem; }
.price p { max-width: 32rem; margin: 0 auto; color: var(--ink-2); }

/* ---------- faq ---------- */

.faq-list { max-width: 44rem; margin-top: 1.5rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; padding: 1.1rem 0;
  font-weight: 600; font-size: .97rem; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--pine); font-family: var(--serif-en); font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 1.2rem; color: var(--ink-2); font-size: .93rem; max-width: 40rem; }

/* ---------- final ---------- */

.final { text-align: center; padding-bottom: clamp(5rem, 10vw, 8rem); }
.final .sec-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.final .hero-actions { justify-content: center; margin-top: 1.6rem; }
.final .btn-store { background: var(--ink); color: var(--paper); }
.final .btn-store:hover { background: #3a352c; }
.final .hero-free { color: var(--ink-3); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; }
.site-footer .shell { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: .82rem; color: var(--ink-3); }
.site-footer nav { display: flex; gap: 1.3rem; }
.site-footer a { font-size: .82rem; color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.who-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }
