/* ==========================================================================
   Benten Travel — design tokens
   Concept: the product IS documentation, so the site borrows from real
   travel paperwork — ticket stubs, boarding passes, stamped forms —
   instead of postcard photography of Japan. Perforated cards, monospace
   data fields, one ink-stamp accent used sparingly for anything actionable.
   ========================================================================== */

:root {
  --paper: #E8ECE7;         /* page background: cool ledger-paper grey-green, not cream */
  --card: #F5F6F2;          /* card surface, slightly lighter than page */
  --ink: #20241E;           /* primary text, warm near-black */
  --ink-soft: #5B6055;      /* secondary text */
  --ink-faint: #8A8F82;     /* tertiary / placeholder text */
  --stamp: #8C2F26;         /* ink-stamp red — the one accent, used for actionable things */
  --stamp-dark: #6E241D;
  --navy: #1F3A3D;          /* used for "not yet available" state */
  --line: #C7CABB;          /* hairline rule / perforation color */
  --line-strong: #9A9D8E;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 3px;
  --container: 1080px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wordmark .dot { color: var(--stamp); }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-soft);
  margin-left: 24px;
}
.site-nav a:hover { color: var(--ink); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-stamp {
  background: var(--stamp);
  color: #fdf6f0;
  box-shadow: 0 2px 0 var(--stamp-dark);
}
.btn-stamp:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--stamp-dark); }
.btn-stamp:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--stamp-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn[disabled], .btn.is-disabled {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-faint);
  cursor: default;
  box-shadow: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 20px;
}

.hero .lede {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stub: a single oversized "boarding pass" teaser, the signature
   element repeated at every scale on this site. */
.stub {
  background: var(--card);
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 1px 0 var(--line-strong), 0 18px 40px -24px rgba(32, 36, 30, 0.35);
  display: grid;
  grid-template-columns: 1fr 74px;
}

.stub-main { padding: 22px 20px; }
.stub-main .route {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.stub-main .route .arrow { color: var(--ink-faint); margin: 0 8px; font-weight: 400; }

.stub-fields {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 18px;
  margin-top: 16px;
}
.stub-fields div { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.stub-fields strong { display: block; font-size: 14px; color: var(--ink); margin-top: 2px; }

.stub-stub {
  border-left: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  position: relative;
}

/* perforation notches */
.stub::before, .stub::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-radius: 50%;
  right: 74px;
  margin-right: -9px;
}
.stub::before { top: -9px; }
.stub::after { bottom: -9px; }

/* ==========================================================================
   How it works
   ========================================================================== */

.how {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 28px;
}

.how-step .num {
  font-family: var(--font-mono);
  color: var(--stamp);
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}
.how-step h3 { font-size: 19px; margin-bottom: 8px; }
.how-step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ==========================================================================
   Product grid + ticket cards
   ========================================================================== */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 28px; }

.products { padding: 64px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-rows: 1fr auto;
  box-shadow: 0 1px 0 var(--line-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -18px rgba(32,36,30,0.45), 0 1px 0 var(--line-strong); }

.card-body { padding: 22px 22px 18px; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card h3 { font-size: 22px; }

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.tag-live { background: rgba(140, 47, 38, 0.12); color: var(--stamp); }
.tag-soon { background: rgba(31, 58, 61, 0.1); color: var(--navy); }

.card .tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 8px;
}

.card .teaser {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 0;
}

.card-foot {
  border-top: 1px dashed var(--line-strong);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
}
.card-foot .price { font-weight: 600; }
.card-foot .duration { color: var(--ink-soft); }

/* ==========================================================================
   Tour (product) page
   ========================================================================== */

.tour-header { padding: 48px 0 12px; }
.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 22px;
}
.back-link:hover { color: var(--ink); }

.boarding-pass {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line-strong), 0 24px 50px -30px rgba(32,36,30,0.4);
  display: grid;
  grid-template-columns: 1fr 200px;
  position: relative;
  margin-bottom: 8px;
}

.boarding-pass::before, .boarding-pass::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border-radius: 50%;
  right: 200px;
  margin-right: -11px;
}
.boarding-pass::before { top: -11px; }
.boarding-pass::after { bottom: -11px; }

.pass-main { padding: 36px 40px; }
.pass-main .eyebrow { margin-bottom: 10px; }
.pass-main h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 14px; }
.pass-main .tagline-full {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 56ch;
}

.pass-fields {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  margin-top: 26px;
}
.pass-fields div { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.pass-fields strong { display: block; font-size: 17px; color: var(--ink); margin-top: 3px; text-transform: none; letter-spacing: 0; font-family: var(--font-display); }

.pass-stub {
  border-left: 1px dashed var(--line-strong);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.pass-stub .price-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
}
.pass-stub .price-sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }

.tour-body { padding: 48px 0 80px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }

.tour-body h2 { font-size: 22px; margin-bottom: 16px; }
.whats-inside { list-style: none; padding: 0; margin: 0; }
.whats-inside li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}
.whats-inside li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--stamp);
  font-family: var(--font-mono);
}

.side-note {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}
.side-note h3 { font-size: 15px; margin-bottom: 10px; }
.side-note p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }
.side-note p:last-child { margin-bottom: 0; }

.notify-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.notify-form input {
  flex: 1;
  min-width: 160px;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

/* ==========================================================================
   Success page
   ========================================================================== */

.success-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.success-card {
  max-width: 520px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  box-shadow: 0 24px 50px -30px rgba(32,36,30,0.4);
}
.success-card .stamp-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  border-radius: 50%;
  width: 74px;
  height: 74px;
  line-height: 70px;
  transform: rotate(-8deg);
  margin: 0 auto 22px;
}
.success-card h1 { font-size: 26px; margin-bottom: 14px; }
.success-card p { color: var(--ink-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p { margin: 0; font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }
.site-footer a { font-size: 13px; color: var(--ink-soft); text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0; }
  .stub { grid-template-columns: 1fr; }
  .stub-stub { writing-mode: horizontal-tb; border-left: none; border-top: 1px dashed var(--line-strong); padding: 10px 0; }
  .stub::before, .stub::after { display: none; }
  .how-grid { grid-template-columns: 1fr; gap: 26px; }
  .boarding-pass { grid-template-columns: 1fr; }
  .boarding-pass::before, .boarding-pass::after { display: none; }
  .pass-stub { border-left: none; border-top: 1px dashed var(--line-strong); flex-direction: row; justify-content: space-between; text-align: left; padding: 22px; }
  .tour-body { grid-template-columns: 1fr; gap: 32px; }
  .pass-main { padding: 28px 24px; }
  .pass-fields { grid-template-columns: repeat(3, auto); gap: 14px; }
}
