:root {
  color-scheme: light;
  --bg-canvas: #FAF9FF;
  --primary: #5B4EE6;
  --primary-bright: #6C5CE7;
  --primary-deep: #4838C7;
  --primary-soft: rgba(91, 78, 230, 0.10);
  --teal: #0F766E;
  --gradient-brand: linear-gradient(135deg, #5B4EE6 0%, #4E3CD6 52%, #3D2CB8 100%);
  --gradient-app: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 246, 255, 0.92) 60%, rgba(238, 240, 255, 0.94) 100%);
  --ink: #14151A;
  --ink-2: #3F4254;
  --ink-3: #4E5266;
  --hairline: rgba(20, 21, 26, 0.09);
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Noto Sans JP', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(152, 168, 255, 0.24), transparent 70%),
    radial-gradient(700px 480px at 12% 24%, rgba(123, 107, 255, 0.10), transparent 68%),
    var(--bg-canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  touch-action: manipulation;
}

section[id],
div[id] {
  scroll-margin-top: 84px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(20, 21, 26, 0.22);
}

.skip-link:focus-visible {
  top: 14px;
}

a:focus-visible,
button:focus-visible,
video:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(72, 56, 199, 0.18);
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.ico-sm {
  width: 14px;
  height: 14px;
}

.ico-primary {
  color: var(--primary);
}

.ico-deep {
  color: var(--primary-deep);
}

.ico-teal {
  color: var(--teal);
}

.ico-top {
  margin-top: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Sticky Unified Site Topbar */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(250, 249, 255, 0.84);
  border-bottom: 1px solid var(--hairline);
  view-transition-name: site-topbar;
}

.site-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.site-signin {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.site-signin:hover,
.site-signin.is-active {
  color: var(--ink);
}

.site-links a:hover,
.site-links a.is-active {
  color: var(--ink);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
}

.lang-pill:focus-within {
  border-color: rgba(72, 56, 199, 0.36);
}

.lang-pill button,
.lang-pill a {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.lang-pill button.on,
.lang-pill a.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(20, 21, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px -3px rgba(20, 21, 26, 0.20);
}

.brand-logo-sm {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.foot-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.site-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--gradient-brand);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(20, 21, 26, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.site-dl:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* Split Editorial Hero */
section.hero {
  padding: 68px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 14px;
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.7vw, 54px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  margin-top: 20px;
  max-width: 472px;
  line-height: 1.66;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(20, 21, 26, 0.32);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-hero:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.btn-ghost:hover {
  border-color: rgba(108, 92, 231, 0.45);
  background: #fff;
}

.hero-fine {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 14px;
}

/* Right Column: Frosted Mac App Carousel */
.carousel-wrap {
  position: relative;
  min-width: 0;
}

.app-window {
  border-radius: 22px;
  background: var(--gradient-app);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(20, 21, 26, 0.10);
  box-shadow: 0 24px 56px -22px rgba(20, 21, 26, 0.16), 0 6px 18px rgba(20, 21, 26, 0.05);
  padding: 20px 22px 22px;
  min-height: 332px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(20, 21, 26, 0.06);
}

.rec-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(108, 92, 231, 0.15);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 13px;
}

.wave i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--primary);
  animation: pulseBar 1s infinite ease-in-out;
}

.wave i:nth-child(2) {
  animation-delay: 0.16s;
}

.wave i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes pulseBar {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}

.app-priv-tag {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

/* Ambi-Style Borderless Vertical Timeline */
.ambi-stream {
  position: relative;
  padding: 16px 0 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ambi-stream-compact {
  padding-top: 4px;
  padding-bottom: 2px;
}

.ambi-stream::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 18px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.12), rgba(108, 92, 231, 0.40));
}

.ambi-item {
  position: relative;
}

.ambi-dot {
  position: absolute;
  left: -27px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(20, 21, 26, 0.14);
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.ambi-dot.accent {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(20, 21, 26, 0.18);
}

.ambi-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 3px;
  font-weight: 500;
}

.ambi-meta strong {
  color: var(--primary-deep);
  font-weight: 700;
}

.ambi-quote {
  font-size: 14.5px;
  color: var(--ink-2);
}

.ambi-answer {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ambi-answer-sm {
  font-size: 14.5px;
  line-height: 1.35;
}

.ambi-src {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
}

.source-drawer {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(91, 78, 230, 0.07);
  font-size: 12px;
  color: var(--ink-2);
}

.app-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: transparent;
  border-top: 1px solid rgba(20, 21, 26, 0.08);
  padding: 12px 2px 0;
}

.app-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-btn-primary {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
}

.app-btn-primary:hover {
  background: var(--primary-deep);
}

.app-btn-muted {
  font-size: 12.5px;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.app-status-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--primary-deep);
  font-weight: 600;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.car-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.car-arrow:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.car-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.car-dot-wrap {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.car-dot-bar {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 21, 26, 0.22);
  transition: width 0.2s ease, background-color 0.2s ease;
  display: block;
}

.car-dot-wrap.on .car-dot-bar {
  width: 24px;
  background: var(--primary);
}

.carousel-caption {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Editorial Sections — No Boxy Card Stacking + Real-Human Sunny Relief Scenes */
section.pillars {
  padding: 12px 0 56px;
}

.pillar-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.pillar-row.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.pillar-copy,
.pillar-visual {
  min-width: 0;
  max-width: 100%;
}

.pillar-row.reverse .pillar-copy {
  order: 2;
}

.pillar-row.reverse .pillar-visual {
  order: 1;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-deep);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.pillar-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.pillar-copy p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 460px;
  text-wrap: pretty;
}

.pillar-points {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 1.5px solid rgba(91, 78, 230, 0.38);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Sunlit Real-Human Relief Scene Stage — Zero Face Occlusion & Zero Column Overflow */
.scene-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  min-height: 370px;
  background: #EAEAF4;
}

.scene-photo-wrap {
  position: absolute;
  inset: 0;
}

.scene-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.7s ease;
}

.scene-stage:hover .scene-media {
  transform: scale(1.025);
}

.scene-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.02) 0%, rgba(20, 21, 26, 0.14) 100%);
  pointer-events: none;
}

.scene-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.scene-stage.side-left .scene-pill {
  left: auto;
  right: 14px;
}

.ui-dock {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 252px;
}

.scene-stage.side-left .ui-dock {
  left: 16px;
}

.scene-stage.side-right .ui-dock {
  right: 16px;
}

.ui-frame {
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px -12px rgba(20, 21, 26, 0.24);
  padding: 13px 14px;
}

.scene-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
}

.ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 21, 26, 0.07);
  margin-bottom: 12px;
}

.ui-head-tight {
  margin-bottom: 0;
}

.traffic {
  display: inline-flex;
  gap: 6px;
}

.traffic span {
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
}

.traffic span:nth-child(1) { background: #FF5F56; }
.traffic span:nth-child(2) { background: #FFBD2E; }
.traffic span:nth-child(3) { background: #27C93F; }

.ui-mode-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-deep);
}

.exec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exec-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20, 21, 26, 0.06);
}

.exec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exec-left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.exec-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.exec-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.exec-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.exec-badge.done {
  color: #0B5D56;
  background: rgba(13, 148, 136, 0.13);
}

.share-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px solid rgba(20, 21, 26, 0.07);
}

.share-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.share-local-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.share-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}

.ttl-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #9A3412;
  background: rgba(245, 158, 11, 0.16);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Hairline Trust Strip */
section.trust-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 36px 0;
}

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

.trust-item h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.trust-item p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.62;
}

/* Closing CTA */
section.closing {
  padding: 84px 0 72px;
  text-align: center;
}

section.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  text-wrap: balance;
}

section.closing p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.66;
  margin-bottom: 28px;
  max-width: 580px;
  margin-inline: auto;
  text-wrap: pretty;
}

.closing-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 42px;
  font-size: 13px;
  color: var(--ink-3);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-links a:hover {
  color: var(--ink);
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: calc(100vw - 36px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Granola-Style Pricing Page */
section.pricing-hero {
  padding: 64px 0 36px;
  text-align: center;
}

.pricing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.pricing-hero p {
  font-size: 16.5px;
  color: var(--ink-2);
  margin: 14px auto 0;
  max-width: 560px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0 36px;
}

.price-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(91, 78, 230, 0.48);
  box-shadow: 0 20px 44px -22px rgba(20, 21, 26, 0.20);
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-tier {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.price-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.price-tag {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  min-height: 40px;
}

.price-amount {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-amount span {
  font-size: 12.5px;
  color: var(--ink-3);
}

.price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.price-cta:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.price-card.featured .price-cta,
.price-cta.primary {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(20, 21, 26, 0.30);
}

.price-cta.primary:hover {
  color: #fff;
  filter: brightness(1.04);
}

.price-quota {
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(20, 21, 26, 0.035);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.price-quota.is-unlimited {
  background: rgba(108, 92, 231, 0.09);
  color: var(--primary-deep);
}

.price-inherit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.price-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.price-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-item-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.price-item-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}

.price-check {
  color: var(--ink-3);
  font-weight: 700;
  line-height: 1.3;
  flex: none;
}

.price-list li.is-new .price-item-title {
  color: var(--primary-deep);
}

.price-plus {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  flex: none;
}

.cmp-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.06);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}

.pricing-rules {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 48px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-rules h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pricing-rules ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.pricing-rules a,
.doc-shell a {
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-foot-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  padding: 0 0 44px;
}

/* Granola-Style Grouped Feature Comparison Table */
.compare-section {
  padding: 28px 0 44px;
}

.compare-head {
  text-align: center;
  margin-bottom: 24px;
}

.compare-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.compare-head p {
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 6px;
}

.compare-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table thead th {
  padding: 18px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  background: rgba(250, 249, 255, 0.92);
}

.compare-table thead th:not(:first-child),
.compare-table tbody td:not(:first-child) {
  text-align: center;
  width: 16%;
}

.compare-table thead th.col-pro {
  color: var(--primary-deep);
}

.compare-table tr.cat-row td {
  padding: 14px 16px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
  background: rgba(108, 92, 231, 0.045);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}

.compare-table tbody td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(20, 21, 26, 0.055);
  vertical-align: middle;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.cmp-yes {
  color: var(--primary);
  font-weight: 700;
}

.cmp-no {
  color: rgba(20, 21, 26, 0.56);
}

.cmp-strong {
  font-weight: 700;
  color: var(--ink);
}

.cmp-accent {
  font-weight: 700;
  color: var(--primary-deep);
}

/* Legal Document Pages (Terms / Privacy / Refunds) */
main.doc-shell {
  max-width: 760px;
  margin: 44px auto 64px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
}

.doc-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.doc-shell h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.doc-shell p,
.doc-shell li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.72;
}

.doc-shell p + p {
  margin-top: 10px;
}

.doc-shell ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
}

.doc-shell .seo-fine {
  font-size: 13px;
  color: var(--ink-3);
}

.doc-shell .seo-actions a {
  text-decoration: none;
}

.doc-shell ul.seo-related {
  list-style: none;
  padding-left: 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.doc-banner {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(91, 78, 230, 0.24);
  margin: 16px 0 22px;
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 1020px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  main.doc-shell {
    margin: 24px 16px 48px;
    padding: 22px 18px;
  }
  .seo-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .seo-actions .btn-hero,
  .seo-actions .btn-ghost {
    justify-content: center;
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-topbar-inner {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .site-topbar-right {
    flex: 1 1 100%;
    justify-content: flex-start;
    min-width: 0;
  }
  .site-topbar .site-signin {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .pillar-row,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pillar-row.reverse .pillar-copy,
  .pillar-row.reverse .pillar-visual {
    order: initial;
  }
  .site-topbar-inner {
    display: flex;
    justify-content: space-between;
  }
  .site-links {
    display: none;
  }
  section.hero {
    padding: 40px 0 52px;
  }
}

@media (max-width: 640px) {
  .scene-stage {
    aspect-ratio: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .scene-photo-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
  }
  .ui-dock {
    position: relative;
    top: auto;
    left: auto !important;
    right: auto !important;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .lang-pill button,
  .lang-pill a {
    padding: 4px 6px;
    font-size: 11px;
  }
  .wrap,
  .site-topbar-inner {
    padding: 0 16px;
  }
  .site-topbar-inner {
    gap: 8px;
  }
  .site-topbar-right {
    gap: 6px;
  }
  .site-dl {
    padding: 7px 11px;
    font-size: 12px;
  }
  .lang-pill button,
  .lang-pill a {
    padding: 4px 6px;
    font-size: 11px;
  }
  .brand-name {
    font-size: 17px;
  }
  .app-window {
    padding: 16px;
  }
  .pillar-row {
    padding: 44px 0;
  }
}

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

/* CJK typography polish: prevent synthetic faux-bold smearing on macOS PingFang SC / Hiragino Sans */
html:lang(zh) {
  --font-display: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

html:lang(ja) {
  --font-display: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
}

html:lang(zh) body,
html:lang(ja) body {
  font-synthesis-weight: none;
  font-synthesis: style;
}

html:lang(zh) h1.hero-title,
html:lang(ja) h1.hero-title {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

html:lang(zh) .ambi-answer,
html:lang(ja) .ambi-answer {
  font-weight: 600;
  line-height: 1.44;
  letter-spacing: -0.01em;
}

html:lang(zh) .pillar-copy h2,
html:lang(zh) section.closing h2,
html:lang(zh) .pricing-hero h1,
html:lang(zh) .compare-head h2,
html:lang(zh) .doc-shell h1,
html:lang(ja) .pillar-copy h2,
html:lang(ja) section.closing h2,
html:lang(ja) .pricing-hero h1,
html:lang(ja) .compare-head h2,
html:lang(ja) .doc-shell h1 {
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.015em;
}

html:lang(zh) strong,
html:lang(zh) b,
html:lang(zh) .btn-hero,
html:lang(zh) .ambi-meta strong,
html:lang(zh) .ui-mode-label,
html:lang(zh) .exec-title,
html:lang(zh) .trust-item h3,
html:lang(zh) .price-tier,
html:lang(zh) .price-cta,
html:lang(zh) .price-quota,
html:lang(zh) .price-item-title,
html:lang(zh) .pricing-rules h2,
html:lang(zh) .compare-table thead th,
html:lang(zh) .cmp-strong,
html:lang(zh) .cmp-accent,
html:lang(zh) .doc-shell h2,
html:lang(ja) strong,
html:lang(ja) b,
html:lang(ja) .btn-hero,
html:lang(ja) .ambi-meta strong,
html:lang(ja) .ui-mode-label,
html:lang(ja) .exec-title,
html:lang(ja) .trust-item h3,
html:lang(ja) .price-tier,
html:lang(ja) .price-cta,
html:lang(ja) .price-quota,
html:lang(ja) .price-item-title,
html:lang(ja) .pricing-rules h2,
html:lang(ja) .compare-table thead th,
html:lang(ja) .cmp-strong,
html:lang(ja) .cmp-accent,
html:lang(ja) .doc-shell h2 {
  font-weight: 600;
}

/* Product Film Showcase (EN / JA / ZH 1:1 auto-bound) */
.film-showcase {
  padding: 24px 0 72px;
}

.film-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.film-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 12px;
  text-wrap: balance;
}

:lang(zh) .film-title,
:lang(ja) .film-title {
  font-weight: 600;
}

.film-sub {
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink-2);
  text-wrap: pretty;
}

.film-stage {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #0B1224;
  border: 1px solid rgba(20, 21, 26, 0.14);
  box-shadow: 0 24px 64px -20px rgba(15, 23, 42, 0.24), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  aspect-ratio: 16 / 9;
}

.film-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0B1224;
}

.film-play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(11, 18, 36, 0.10) 0%, rgba(11, 18, 36, 0.36) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.film-play-overlay:hover {
  background: linear-gradient(180deg, rgba(11, 18, 36, 0.16) 0%, rgba(11, 18, 36, 0.44) 100%);
}

.film-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.45);
  transition: transform 0.18s ease, background 0.18s ease;
}

.film-play-overlay:hover .film-play-pill {
  transform: scale(1.04);
  background: rgba(108, 92, 231, 0.94);
}

.film-play-icon {
  font-size: 13px;
}

@media (max-width: 720px) {
  .film-showcase {
    padding: 12px 0 48px;
  }
  .film-stage {
    border-radius: 16px;
  }
  .film-play-pill {
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* Direct DMG download 3-step install guide dialog */
.dl-dialog {
  padding: 0;
  border: 0;
  border-radius: 22px;
  max-width: 520px;
  width: calc(100vw - 32px);
  background: transparent;
  box-shadow: 0 28px 80px rgba(24, 21, 48, 0.24);
  overflow: visible;
  margin: auto;
}
.dl-dialog::backdrop {
  background: rgba(15, 13, 28, 0.45);
  backdrop-filter: blur(8px);
}
.dl-card {
  position: relative;
  background: #ffffff;
  color: #181726;
  border-radius: 22px;
  padding: 28px 28px 22px;
  font-family: inherit;
}
.dl-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #f3f2f8;
  color: #5b5972;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dl-close:hover { background: #e8e6f3; color: #181726; }
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.dl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}
.dl-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #141322;
}
.dl-sub {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #5b5972;
}
.dl-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.dl-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8f7fc;
}
.dl-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #5845e0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dl-steps strong {
  display: block;
  font-size: 14px;
  color: #181726;
  margin-bottom: 2px;
}
.dl-steps div span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #5b5972;
}
.dl-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #ecebf4;
  font-size: 12.5px;
  color: #524F68;
}
.dl-foot a {
  color: #5845e0;
  font-weight: 600;
  text-decoration: none;
}
.dl-foot a:hover { text-decoration: underline; }

/* P2: Prevent JA nav overlap at 960px and orphan 1-2 char wrapping on JA headings */
.site-links a {
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1120px) {
  .site-topbar-inner {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    gap: 12px;
  }
  .site-links {
    gap: 14px;
    font-size: 13.5px;
    flex-shrink: 1;
    min-width: 0;
  }
  .site-topbar-right {
    gap: 8px;
    flex-shrink: 0;
  }
  .site-signin {
    padding: 6px 8px;
    font-size: 13px;
  }
  .lang-pill button,
  .lang-pill a {
    padding: 4px 8px;
    font-size: 12px;
  }
  .site-dl {
    padding: 7px 12px;
    font-size: 12.5px;
    white-space: nowrap;
  }
}

html:lang(ja) h1,
html:lang(ja) h2,
html:lang(ja) .hero-title,
html:lang(ja) .film-title {
  word-break: auto-phrase;
  overflow-wrap: break-word;
  text-wrap: balance;
}

html:lang(ja) h1.hero-title {
  font-size: clamp(30px, 3.1vw, 41px);
  line-height: 1.24;
  word-break: keep-all;
}
