/* ==========================================================================
   Eventory Japan — eventory.tomote.ch
   Single stylesheet, no build step, no external requests.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --sky-100: #eaf7fc;
  --sky-200: #b7e3f1;
  --sky-400: #59b6d4;
  --sky-500: #35aed3;
  --sky-600: #1b8fb8;
  --sky-700: #0e6e93;
  --navy-800: #06405f;
  --navy-900: #04304a;

  --gold: #c58a1f;
  --green: #2f9e5e;
  --teal: #1e8e9e;
  --violet: #7c6be0;
  --pink: #d8479b;
  --red: #e0574f;

  --ink: #0b2430;
  --ink-2: #3d5a68;
  --ink-3: #6c8593;
  --paper: #ffffff;
  --paper-2: #f4fafc;
  --line: rgba(4, 48, 74, 0.12);
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(4, 48, 74, 0.06), 0 12px 32px -12px rgba(4, 48, 74, 0.18);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1140px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, Roboto, Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f3f8;
    --ink-2: #a9c3d0;
    --ink-3: #7e9dac;
    --paper: #071e2b;
    --paper-2: #0a2836;
    --line: rgba(183, 227, 241, 0.14);
    --card: #0d2f3f;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --sky-700: #7fcbe4;
  }
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: var(--sky-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.021em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.center .lede { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky-700); margin-bottom: 14px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: var(--sky-700); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.82rem; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 5px 11px; color: var(--ink-3); }
.lang-switch a:hover { background: var(--paper-2); text-decoration: none; color: var(--sky-700); }
.lang-switch [aria-current="true"] { background: var(--sky-500); color: #fff; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
/* Narrow phones: keep the header on one line by dropping the wordmark. */
@media (max-width: 540px) {
  .nav { gap: 10px; height: 62px; }
  .site-header .brand { font-size: 0; gap: 0; }
  .site-header .brand img { width: 34px; height: 34px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 10px 16px; font-size: 0.9rem; }
  .lang-switch a, .lang-switch span { padding: 5px 9px; font-size: 0.78rem; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sky-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(27, 143, 184, 0.9); }
.btn-primary:hover { background: var(--sky-700); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--sky-500); color: var(--sky-700); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.center .stores, .stores.is-centered { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 15px; border-radius: 13px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.9); }
.store-badge svg { flex: none; }
.store-badge span { display: block; line-height: 1.15; }
.store-badge .s1 { font-size: 0.62rem; letter-spacing: 0.04em; opacity: 0.86; text-transform: uppercase; }
.store-badge .s2 { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.store-badge.is-jp .s2 { font-size: 0.98rem; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(53, 174, 211, 0.5), transparent 60%),
    linear-gradient(168deg, #0a5f85 0%, #06405f 46%, #04304a 100%);
  color: #fff;
  padding: clamp(46px, 7vw, 78px) 0 clamp(0px, 4vw, 40px);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='7' stroke-linecap='round' opacity='0.09'%3E%3Cpath d='M-20 96h150a40 40 0 0 1 40 40v70a40 40 0 0 0 40 40h230'/%3E%3Cpath d='M96 -20v120a40 40 0 0 0 40 40h60a40 40 0 0 1 40 40v260'/%3E%3Cpath d='M440 300H320a40 40 0 0 0-40 40v100'/%3E%3Cpath d='M-20 330h130a40 40 0 0 1 40 40v70'/%3E%3Cpath d='M300 -20v60a40 40 0 0 0 40 40h100'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.75; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent {
  background: linear-gradient(100deg, #b7e3f1, #7fe3c0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.75vw, 1.28rem); color: #cfe8f3; max-width: 34ch; margin-bottom: 26px; }
.hero .stores { margin-bottom: 16px; }
.hero-note { font-size: 0.9rem; color: #9dc7db; display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; }

/* Phone mock */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 78vw); flex: none;
  border-radius: 42px; padding: 9px;
  background: linear-gradient(160deg, #4b5b64, #14202a 42%, #3a4750);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone-screen { position: relative; border-radius: 34px; overflow: hidden; background: #cfe6ef; aspect-ratio: 1206 / 2622; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; background: #0b1015; border-radius: 999px; z-index: 2;
}
.phone-tilt { transform: perspective(1400px) rotateY(-11deg) rotateX(3deg) rotateZ(0.6deg); }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); color: var(--ink); font-size: 0.83rem; font-weight: 700;
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
  animation: bob 5.5s ease-in-out infinite;
}
.float-chip i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.float-chip.c1 { top: 12%; left: -6%; animation-delay: -0.4s; }
.float-chip.c2 { top: 44%; right: -8%; animation-delay: -2.1s; }
.float-chip.c3 { bottom: 13%; left: -10%; animation-delay: -3.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .hero-note { justify-content: center; }
  .phone-tilt { transform: none; }
  .float-chip.c1 { left: 0; }
  .float-chip.c3 { left: 2%; }
  .float-chip.c2 { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .float-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; background: var(--paper-2); border-block: 1px solid var(--line);
}
.stat { padding: 26px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -0.03em; color: var(--sky-700); }
.stat span { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- Feature cards ------------------------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sky-500) 40%, var(--line)); }
.card p { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--sky-500) 14%, transparent); color: var(--sky-700); margin-bottom: 16px;
}
.card .ico.g { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.card .ico.v { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
.card .ico.t { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.card .ico.e { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.card .ico.p { background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }

/* --- Split sections ----------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media { display: flex; justify-content: center; }

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 0.99rem; }
.checks svg { flex: none; margin-top: 4px; color: var(--sky-500); }

/* Nearby band */
.band-dark {
  background: linear-gradient(155deg, #05364f, #072c3f 60%, #04222f);
  color: #eaf6fb; border-block: 1px solid rgba(183, 227, 241, 0.12);
}
.band-dark h2 { color: #fff; }
.band-dark .lede, .band-dark .checks li { color: #b9d8e5; }
.band-dark .eyebrow { color: #7fe3c0; }

.notif-stack { display: grid; gap: 14px; width: min(420px, 100%); }
.notif {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.94); color: #10222b;
  border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.8);
  animation: slidein 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.notif:nth-child(2) { animation-delay: 0.18s; opacity: 0.96; }
.notif:nth-child(3) { animation-delay: 0.36s; opacity: 0.9; }
@keyframes slidein { from { transform: translateY(14px) scale(0.97); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .notif { animation: none; } }
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif-body { min-width: 0; }
.notif-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.74rem; color: #5b7280; font-weight: 600; }
.notif-title { font-weight: 700; font-size: 0.95rem; margin: 1px 0 2px; }
.notif-text { font-size: 0.88rem; color: #43596a; line-height: 1.45; }

/* Matsuri band */
.band-gold {
  background:
    radial-gradient(700px 420px at 12% 0%, rgba(197, 138, 31, 0.16), transparent 62%),
    var(--paper-2);
  border-block: 1px solid var(--line);
}
.band-gold .eyebrow { color: var(--gold); }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tag {
  font-size: 0.86rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent);
}

/* --- Screens gallery ---------------------------------------------------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr);
  gap: 22px; overflow-x: auto; padding: 8px 22px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery > figure { scroll-snap-align: center; margin: 0; }
.gallery .phone { width: 100%; }
.gallery figcaption { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
@media (min-width: 1020px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding-inline: 0; }
}

/* --- Categories --------------------------------------------------------- */
.cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.cat {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(4, 48, 74, 0.2);
}
.cat i { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: 0 1px 2px rgba(4, 48, 74, 0.05);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 30px 15px 0; font-weight: 700;
  position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--ink-2); font-size: 0.97rem; padding-bottom: 6px; margin-bottom: 10px; }

/* --- CTA ---------------------------------------------------------------- */
.cta-box {
  background: linear-gradient(150deg, #0a5f85, #06405f 55%, #04304a);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 62px) 28px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #c3e0ec; max-width: 52ch; margin-inline: auto; }
.cta-box .stores { justify-content: center; margin-top: 26px; }
.cta-logo { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 20px; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.8); }

.socials { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; transition: background 0.18s ease, transform 0.18s ease;
}
.social:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); text-decoration: none; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; background: var(--paper-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .site-footer p { font-size: 0.92rem; color: var(--ink-2); }
.site-footer p { margin: 0; }
.footer-legal { margin-top: 26px; font-size: 0.86rem; color: var(--ink-3); }
.footer-legal p { font-size: 0.86rem; color: var(--ink-3); }

/* --- Language hint banner ----------------------------------------------- */
.lang-hint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%);
  z-index: 60; display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 10px 9px 20px; box-shadow: 0 20px 44px -18px rgba(4, 48, 74, 0.5);
  font-size: 0.93rem; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  max-width: calc(100vw - 32px);
}
.lang-hint.show { transform: translateX(-50%) translateY(0); }
.lang-hint .btn { padding: 7px 16px; font-size: 0.9rem; }
.lang-hint button.close {
  background: none; border: 0; color: var(--ink-3); font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0 8px;
}

/* --- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- Legal pages -------------------------------------------------------- */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) 22px 80px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); font-size: 1rem; }
.legal ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal strong { color: var(--ink); }
.legal .callout {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--sky-500);
  border-radius: 10px; padding: 16px 18px; margin: 24px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .backlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; margin-bottom: 28px; }

/* --- 404 ---------------------------------------------------------------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 60px 22px; }
