/* ============================================================
   Cranq LP — Sunrise Edition
   ============================================================ */

:root {
  /* Surfaces — warm light */
  --bg-base: #FBF7F2;
  --bg-card: #FFFFFF;
  --bg-soft: #F4EDE3;
  --bg-deep: #E8DECF;

  /* Ink — warm slate */
  --ink-primary: #1A1410;
  --ink-secondary: #5C4F44;
  --ink-muted: #9C8E81;
  --ink-on-dark: #FBF7F2;
  --ink-on-dark-2: #C9BFB3;

  /* Dark inversion */
  --night-base: #1A0F08;
  --night-elev: #2A1B10;

  /* Accent — sunrise orange */
  --accent: #F97316;
  --accent-soft: #FB923C;
  --accent-deep: #C2410C;
  --accent-tint: rgba(249, 115, 22, 0.10);
  --accent-tint-strong: rgba(249, 115, 22, 0.20);

  /* Status (warm-friendly) */
  --status-track: #F97316;
  --status-progress: #EAB308;
  --status-done: #16A34A;
  --status-streak: #DC2626;

  /* Borders */
  --border-subtle: rgba(26, 20, 16, 0.06);
  --border-soft: rgba(26, 20, 16, 0.10);
  --border-strong: rgba(26, 20, 16, 0.18);

  /* Shadows — warm */
  --shadow-1: 0 1px 2px rgba(76, 51, 32, 0.04), 0 4px 12px rgba(76, 51, 32, 0.05);
  --shadow-2: 0 2px 6px rgba(76, 51, 32, 0.06), 0 16px 32px rgba(76, 51, 32, 0.08);
  --shadow-3: 0 4px 12px rgba(76, 51, 32, 0.08), 0 32px 64px rgba(76, 51, 32, 0.12);
  --shadow-accent: 0 12px 32px rgba(249, 115, 22, 0.30);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --container-max: 1140px;
  --container-pad: 24px;

  /* Type */
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-brand: "Rubik", var(--font-sans);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   Reset
   ============================================================ */

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

html {
  font-family: var(--font-sans);
  font-feature-settings: "palt" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background: var(--bg-base);
}

body {
  background: var(--bg-base);
  color: var(--ink-primary);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  letter-spacing: -0.005em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

::selection {
  background: var(--accent-tint-strong);
  color: var(--ink-primary);
}

/* ============================================================
   Typography
   ============================================================ */

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  font-weight: 700;
}

:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 {
  letter-spacing: 0.005em;
  font-family: var(--font-sans);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
}

/* Signature mark — sunrise / spoke */
.eyebrow .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  line-height: 0.85;
  letter-spacing: 0;
  margin-right: 2px;
}

.eyebrow .dot::before {
  content: "↗";
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin: 16px 0 16px;
  letter-spacing: -0.02em;
}

:lang(ja) .section-title {
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.section-lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-secondary);
  line-height: 1.85;
  max-width: 640px;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.nav.scrolled {
  background: rgba(251, 247, 242, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.nav-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(76, 51, 32, 0.16);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink-primary);
  background: rgba(26, 20, 16, 0.05);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  transition: transform 0.18s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.btn-primary {
  color: #fff;
  background: var(--ink-primary);
  box-shadow: var(--shadow-2);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-ghost {
  color: var(--ink-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26, 20, 16, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0;
  mask-image: linear-gradient(180deg, black 0%, black 30%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 30%, transparent 75%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-eyebrow { margin-bottom: 28px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin: 0 auto 20px;
  color: var(--ink-primary);
}

:lang(ja) .hero-title {
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.hero-title .accent {
  color: var(--accent-deep);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 64px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta-divider {
  width: 1px;
  height: 12px;
  background: var(--border-soft);
}

/* Hero device stage — three iPhones, center forward + side fan */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  height: clamp(440px, 52vw, 600px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -10% -10% -25% -10%;
  background: radial-gradient(ellipse at 50% 70%, rgba(249, 115, 22, 0.22), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.hero-phone {
  position: absolute;
  bottom: 0;
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background: white;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}

.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone-main {
  width: 36%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-phone-left {
  width: 30%;
  left: 8%;
  transform: rotate(-8deg) translateY(34px);
  transform-origin: bottom right;
  z-index: 1;
}

.hero-phone-right {
  width: 30%;
  right: 8%;
  transform: rotate(8deg) translateY(34px);
  transform-origin: bottom left;
  z-index: 1;
}

@media (max-width: 720px) {
  .hero { padding: 120px 0 60px; }
  .hero-stage { height: clamp(280px, 78vw, 420px); }
  .hero-phone-main { width: 44%; }
  .hero-phone-left, .hero-phone-right { width: 36%; }
  .hero-phone-left { left: 2%; transform: rotate(-9deg) translateY(20px); }
  .hero-phone-right { right: 2%; transform: rotate(9deg) translateY(20px); }
}

/* ============================================================
   Section base
   ============================================================ */

section.section {
  position: relative;
  padding: var(--s-9) 0;
}

@media (min-width: 960px) {
  section.section { padding: var(--s-10) 0; }
}

.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================================
   Problem
   ============================================================ */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-soft);
}

.problem-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(26, 20, 16, 0.06);
  color: var(--ink-secondary);
  margin-bottom: 16px;
  font-size: 18px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem-card p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.85;
}

@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Spotlight (Activity stats demo)
   ============================================================ */

.spotlight {
  position: relative;
  isolation: isolate;
}

.spotlight::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.10) 0%, transparent 60%);
  filter: blur(60px);
  z-index: -1;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.spotlight-text .section-title {
  font-size: clamp(32px, 3.6vw, 48px);
  margin-top: 16px;
}

.spotlight-text .accent {
  color: var(--accent-deep);
  display: inline-block;
}

.spotlight-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spotlight-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.85;
}

.spotlight-feature .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}

/* Activity demo card */
.activity-demo {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.activity-demo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.activity-demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-demo-header .traffic {
  display: flex;
  gap: 6px;
}

.activity-demo-header .traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-deep);
}

.activity-demo-header .label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.activity-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.activity-summary .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.30);
}

.activity-summary .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-summary .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.activity-summary .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.activity-summary .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
}

.stats-label {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.stats-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-done);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
}

.stats-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(8px);
  animation: statIn 0.5s var(--ease-out) forwards;
}

.stats-grid li:nth-child(1) { animation-delay: 0.10s; }
.stats-grid li:nth-child(2) { animation-delay: 0.30s; }
.stats-grid li:nth-child(3) { animation-delay: 0.50s; }
.stats-grid li:nth-child(4) { animation-delay: 0.70s; }
.stats-grid li:nth-child(5) { animation-delay: 0.90s; }
.stats-grid li:nth-child(6) { animation-delay: 1.10s; }

@keyframes statIn {
  to { opacity: 1; transform: translateY(0); }
}

.stats-grid .stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.stats-grid .stat-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.stats-grid .stat-label {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
}

.stats-grid .stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   Showcase (screenshot strip)
   ============================================================ */

.showcase {
  background: var(--bg-base);
  position: relative;
}

.showcase .section-head {
  margin-bottom: 40px;
}

.showcase-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 240px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 32px;
  margin: 0 calc(-1 * var(--container-pad));
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

.showcase-strip::-webkit-scrollbar {
  height: 8px;
}

.showcase-strip::-webkit-scrollbar-track {
  background: transparent;
}

.showcase-strip::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 4px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-snap-align: start;
}

.showcase-phone {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: white;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.showcase-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-card:hover .showcase-phone {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}

.showcase-card figcaption {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  padding: 0 4px;
}

@media (max-width: 720px) {
  .showcase-strip { grid-auto-columns: minmax(180px, 200px); gap: 16px; }
  .showcase-card figcaption { font-size: 12px; }
}

/* ============================================================
   Core Loop
   ============================================================ */

.core-loop {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.loop-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 32px 32px 32px 36px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.loop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-soft);
}

.loop-card[data-accent="orange"] { --accent-color: var(--accent); }
.loop-card[data-accent="amber"]  { --accent-color: #EAB308; }
.loop-card[data-accent="rose"]   { --accent-color: #E11D48; }

.loop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-color, var(--accent));
}

.loop-card .step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  font-weight: 600;
}

.loop-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.loop-card p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.loop-card .visual {
  margin-top: 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

/* Mini route visual */
.route-mini {
  display: block;
  width: 100%;
  height: 70px;
}

.route-mini path.bg {
  stroke: var(--border-soft);
  stroke-width: 2;
  fill: none;
}

.route-mini path.fg {
  stroke: var(--accent);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: routeDraw 3.2s var(--ease-out) forwards infinite;
}

@keyframes routeDraw {
  0%   { stroke-dashoffset: 320; }
  60%  { stroke-dashoffset: 0; }
  90%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Mini bar chart */
.bars-mini {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
}

.bars-mini span {
  flex: 1;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.7;
  transform-origin: bottom;
  animation: barIn 0.8s var(--ease-out) backwards;
}

.bars-mini span:nth-child(1) { background: var(--accent-soft); height: 30%; animation-delay: 0.05s; }
.bars-mini span:nth-child(2) { background: var(--accent-soft); height: 55%; animation-delay: 0.15s; }
.bars-mini span:nth-child(3) { background: var(--accent);      height: 80%; animation-delay: 0.25s; }
.bars-mini span:nth-child(4) { background: var(--accent);      height: 45%; animation-delay: 0.35s; }
.bars-mini span:nth-child(5) { background: var(--accent-deep); height: 75%; animation-delay: 0.45s; }
.bars-mini span:nth-child(6) { background: var(--accent-deep); height: 95%; animation-delay: 0.55s; }
.bars-mini span:nth-child(7) { background: var(--accent-deep); height: 60%; animation-delay: 0.65s; }

@keyframes barIn {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 0.95; }
}

/* Mini coach bubble */
.coach-mini {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.coach-mini .avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.30);
}

.coach-mini .bubble {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-primary);
  line-height: 1.6;
}

.coach-mini .bubble strong {
  color: var(--accent-deep);
}

@media (max-width: 900px) { .loop-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Sync (HealthKit, devices)
   ============================================================ */

.sync {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.sync::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-tint), transparent 60%);
  pointer-events: none;
}

.sync .container { position: relative; }

.sync-stage {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

.sync-device {
  flex-shrink: 0;
  border-radius: var(--r-lg);
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 92px;
}

.sync-device i {
  font-size: 36px;
  color: var(--ink-primary);
}

.sync-device span {
  font-size: 12px;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.sync-line {
  height: 1px;
  flex: 1;
  min-width: 60px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  position: relative;
}

.sync-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.65);
  animation: syncDot 2.4s linear infinite;
}

@keyframes syncDot {
  0%   { left: 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 720px) {
  .sync-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
  }
  .sync-line::after {
    left: 50%;
    transform: translateX(-50%);
    animation: syncDotV 2.4s linear infinite;
  }
  @keyframes syncDotV {
    0%   { top: 0; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
}

/* ============================================================
   Pro Tools
   ============================================================ */

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pro-card {
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.pro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-soft);
}

.pro-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pro-card h3 {
  font-size: 17px;
  font-weight: 700;
}

.pro-card p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.85;
}

.pro-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-tint-strong);
  color: var(--accent-deep);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 760px) { .pro-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Privacy
   ============================================================ */

.privacy {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.privacy-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-1);
}

.privacy-point i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.privacy-point h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.privacy-point p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   Roadmap
   ============================================================ */

.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-1);
  font-size: 15px;
}

.roadmap-item .stage {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.roadmap-item .title {
  font-weight: 600;
}

.roadmap-item .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-shipped  { background: rgba(22, 163, 74, 0.12); color: #15803D; }
.badge-soon     { background: var(--accent-tint-strong); color: var(--accent-deep); }
.badge-research { background: rgba(217, 119, 6, 0.12); color: #B45309; }

@media (max-width: 720px) {
  .roadmap-item {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }
  .roadmap-item .stage { grid-column: 1 / -1; }
}

/* ============================================================
   Final CTA — Dark Inversion
   ============================================================ */

.final-cta {
  position: relative;
  overflow: hidden;
}

.final-cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--r-xl);
  background: var(--night-base);
  color: var(--ink-on-dark);
  border: 1px solid var(--night-elev);
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}

.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 0%, rgba(251, 146, 60, 0.30), transparent 55%),
    radial-gradient(circle at 72% 100%, rgba(249, 115, 22, 0.25), transparent 55%);
  z-index: -1;
}

.final-cta-card h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--ink-on-dark);
}

.final-cta-card p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-on-dark-2);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.85;
}

.final-cta-card .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.final-cta-card .btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.final-cta .hero-actions {
  margin: 0 auto;
}

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

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
  background: var(--bg-soft);
  color: var(--ink-secondary);
}

.footer .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-primary);
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(76, 51, 32, 0.16);
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.85;
  max-width: 280px;
  color: var(--ink-secondary);
}

.footer-section h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section a {
  font-size: 14px;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .container { display: contents; }

@media (max-width: 900px) {
  .footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 540px) {
  .footer .container {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Lang switcher
   ============================================================ */

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px;
  font-size: 11px;
  font-family: var(--font-sans);
  background: var(--bg-card);
}

.lang-toggle button {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang-toggle button.active {
  background: var(--ink-primary);
  color: #fff;
}

/* ============================================================
   Animations
   ============================================================ */

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Legal pages (Privacy Policy / Terms of Service)
   ============================================================ */

.nav-back {
  font-size: 13px;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-back:hover {
  color: var(--ink-primary);
  background: rgba(26, 20, 16, 0.05);
}

.legal-page {
  padding: 140px 0 96px;
}

.legal-page .container {
  max-width: 780px;
}

.legal-header {
  margin-bottom: 40px;
}

.legal-header .eyebrow {
  margin-bottom: 18px;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

:lang(ja) .legal-header h1 {
  letter-spacing: 0.005em;
  font-family: var(--font-sans);
  line-height: 1.35;
}

.legal-last-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.legal-article {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  box-shadow: var(--shadow-1);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-secondary);
}

.legal-article > * + * {
  margin-top: 18px;
}

.legal-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 36px;
  letter-spacing: -0.01em;
}

:lang(ja) .legal-article h2 {
  letter-spacing: 0.005em;
  font-family: var(--font-sans);
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article ul,
.legal-article ol {
  padding-left: 22px;
}

.legal-article li {
  margin-bottom: 6px;
}

.legal-article li::marker {
  color: var(--ink-muted);
}

.legal-article strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.legal-article a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(249, 115, 22, 0.30);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.legal-article a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 720px) {
  .legal-page {
    padding: 100px 0 64px;
  }
  .legal-article {
    padding: 28px 22px;
    font-size: 15px;
  }
  .legal-article h2 {
    font-size: 18px;
  }
}
