/* Beeem — brand tokens from the Beeem logo kit (UFO / Fredoka / #7C6FD0→#F2929C)
   歴史的経緯でトークン名は --indigo のままだが、値はキットの violet。 */
:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --ink: #24222D;
  --muted: #6F6D7C;
  --line: rgba(36, 34, 45, 0.1);
  --hover: rgba(36, 34, 45, 0.05);
  --indigo: #7C6FD0;
  --indigo-600: #6A5CC7;
  --indigo-soft: rgba(124, 111, 208, 0.12);
  --pink: #F2929C;
  --grad: linear-gradient(96deg, #9A86E8, #F2929C);
  --ok: #63A375;

  --radius: 20px;
  --radius-sm: 12px;
  --gap: 24px;
  --maxw: 1040px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  /* Fredoka はブランドの瞬間だけ（ロゴ・シーン・英語製品名・数字）。和文はJPフォールバック */
  --font-round: "Fredoka", system-ui, -apple-system, "Hiragino Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141319;
    --surface: #1D1C24;
    --ink: #E9E8EE;
    --muted: #9B98A6;
    --line: rgba(233, 232, 238, 0.12);
    --hover: rgba(233, 232, 238, 0.06);
    --indigo: #9A86E8;
    --indigo-600: #AC9BF0;
    --indigo-soft: rgba(154, 134, 232, 0.16);
    --ok: #7CBF8C;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-word {
  font-family: var(--font-round);
  font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: 0.01em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--muted); transition: color 0.16s var(--ease); }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 980px) { .nav { gap: 14px; font-size: 13px; } }
@media (max-width: 700px) { .nav { display: none; } }

/* ---- hero ---- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1fr 300px; } }
.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-round);
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }

/* ---- loading scene (from the logo kit: abduct) ---- */
.scene {
  position: relative; width: 100%; max-width: 300px; height: 300px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 130% at 26% 14%, #3A2F66 0%, #2C2550 70%);
  border-radius: 32px;
}
.scene .ufo { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); animation: scene-hover 2.6s ease-in-out infinite; }
@keyframes scene-hover { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.scene .beam { animation: scene-beam 1.5s ease-in-out infinite; }
@keyframes scene-beam { 0%, 100% { opacity: 0.32; } 50% { opacity: 0.6; } }
.scene .word {
  position: absolute; top: 176px; left: 0; right: 0; text-align: center;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600;
  font-size: 56px; line-height: 1; white-space: nowrap;
}
.scene .word span {
  display: inline-block;
  background: linear-gradient(96deg, #9A86E8, #F2929C);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: scene-abduct 2.6s cubic-bezier(0.5, 0, 0.6, 1) infinite;
}
.scene .word span:nth-child(1) { --dx: 44px; animation-delay: 0s; }
.scene .word span:nth-child(2) { --dx: 23px; animation-delay: 0.16s; }
.scene .word span:nth-child(3) { --dx: 6px; animation-delay: 0.32s; }
.scene .word span:nth-child(4) { --dx: -13px; animation-delay: 0.48s; }
.scene .word span:nth-child(5) { --dx: -38px; animation-delay: 0.64s; }
@keyframes scene-abduct {
  0% { transform: translate(0, 16px); opacity: 0; }
  7% { transform: translate(0, 0); opacity: 1; }
  46% { transform: translate(0, 0); opacity: 1; }
  70% { transform: translate(var(--dx), -112px) scale(0.16); opacity: 0; }
  100% { transform: translate(var(--dx), -112px) scale(0.16); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scene .ufo, .scene .beam, .scene .word span { animation: none; }
  .scene .word span { opacity: 1; transform: none; }
}

/* ---- section ---- */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-block; margin: 0 0 10px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
h2 { margin: 0 0 8px; font-family: var(--font-round); font-size: 26px; line-height: 1.4; letter-spacing: -0.015em; font-weight: 700; }
h3 { margin: 0 0 8px; font-family: var(--font-round); font-size: 17px; font-weight: 650; }
.lead { margin: 0 0 24px; max-width: 66ch; color: var(--muted); }

/* ---- product ---- */
.product { display: grid; grid-template-columns: 1fr; gap: 28px; }
.product + .product { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.product-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-head h2, .product-head h1 { margin: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.badge-live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 38%, var(--line)); }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.badge-early { color: var(--indigo-600); background: var(--indigo-soft); border-color: color-mix(in srgb, var(--indigo) 24%, var(--line)); }
@media (prefers-color-scheme: dark) { .badge-early { color: #C9BCF5; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features svg { flex: none; margin-top: 4px; color: var(--indigo); }
.features b { display: block; font-weight: 650; }
.features span { color: var(--muted); font-size: 14px; }

.req {
  margin: 0; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; color: var(--muted);
}
.req b { color: var(--ink); font-weight: 650; }

/* ---- pricing ---- */
.plans { display: grid; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.plan .price { margin: 14px 0 4px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; font-family: inherit; }
.plan .note { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.plan ul li { display: flex; gap: 9px; align-items: flex-start; }
.plan ul svg { flex: none; margin-top: 4px; color: var(--ok); }
.plan .cta { margin-top: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--grad); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 111, 208, 0.24);
  transition: filter 0.16s var(--ease);
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-quiet:hover { background: var(--hover); filter: none; }
.btn[aria-disabled="true"] { background: var(--hover); color: var(--muted); cursor: not-allowed; border-color: var(--line); box-shadow: none; }
.btn[aria-disabled="true"]:hover { background: var(--hover); transform: none; }

.tax-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

/* ---- faq ---- */
.faq { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 16px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 12px;
  transition: background 0.16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--hover); }
.faq summary svg { flex: none; margin-left: auto; color: var(--muted); transition: transform 0.2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }
.faq .answer p { margin: 0 0 8px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.copy { margin: 24px 0 0; font-size: 13px; }

/* ---- legal pages ---- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-family: var(--font-round); font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 18px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.legal th { width: 30%; background: var(--surface); font-weight: 650; }
@media (max-width: 640px) {
  .legal th, .legal td { display: block; width: 100%; }
  .legal th { border-bottom: 0; }
  .legal td { border-top: 0; }
}
.todo {
  background: var(--indigo-soft); border-radius: 6px; padding: 1px 7px;
  font-weight: 650; color: var(--indigo-600);
}
@media (prefers-color-scheme: dark) { .todo { color: #C9BCF5; } }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); text-decoration: none; }

/* ---- product pages ---- */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-round);
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.page-hero .lead { margin: 0; max-width: 64ch; font-size: 17px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-cta .btn { width: auto; }

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #2C2550;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 6px;
  font-family: var(--font-round);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--indigo);
}
.steps b { display: block; font-weight: 650; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 14px; }

.diagram {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.diagram svg { display: block; width: 100%; height: auto; }

.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }

.plan-solo { max-width: 460px; }

/* ---- feature showcase (screenshot-rich rows) ---- */
.showcase { display: grid; gap: 44px; margin-top: 28px; }
.show-row { display: grid; gap: 20px; align-items: center; }
@media (min-width: 880px) {
  .show-row { grid-template-columns: 5fr 7fr; gap: 44px; }
  .show-row.flip .show-text { order: 2; }
  .show-row.flip .shot { order: 1; }
}
.show-text h3 { margin: 0 0 8px; font-size: 19px; }
.show-text p { margin: 0; color: var(--muted); font-size: 15px; }
.shot-hero { margin: 0 0 10px; }

/* ---- manifesto ---- */
.manifesto-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .manifesto-hero { grid-template-columns: 1fr 300px; } }
.prose { max-width: 68ch; }
.prose h2 { margin: 44px 0 14px; font-size: 21px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.95; }
.prose b { font-weight: 650; }
.closing {
  margin: 52px 0 0; padding-top: 36px; border-top: 1px solid var(--line);
  font-family: var(--font-round); font-weight: 700;
  font-size: clamp(22px, 3.2vw, 28px); line-height: 1.7; letter-spacing: -0.02em;
}

/* ── product app icons(実アプリと同じアート) ── */
.app-icon { display:block; border-radius: 22.5%; box-shadow: 0 6px 22px rgba(26,20,51,0.35); }
.product-head .app-icon, .hero-app-icon { flex-shrink: 0; }
.hero-icon-row { display:flex; align-items:center; gap:18px; margin-bottom: 14px; }
.plan .app-icon { margin-bottom: 12px; }
.plan .product-head .app-icon { margin-bottom: 0; }
