/* =============================================
   machi-sys POS — Feature page
   ============================================= */

.pos-page main {
  overflow-x: hidden;
  padding-top: var(--header-h);
}

/* ---------- Hero ---------- */
.pos-hero {
  padding: 32px 0 72px;
  background: linear-gradient(160deg, #FFF7ED 0%, #FFFFFF 45%, #FFEDD5 100%);
  position: relative;
}

.pos-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(249, 115, 22, .12) 0%, transparent 50%);
  pointer-events: none;
}

.pos-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.pos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--orange-700);
  background: var(--white);
  border: 1px solid var(--orange-100);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.pos-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.pos-hero h1 em {
  font-style: normal;
  color: var(--orange-500);
}

.pos-hero-lead {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 28px;
}

.pos-hero-lead strong {
  color: var(--gray-900);
}

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

.pos-hero-visual {
  display: flex;
  justify-content: center;
}

.pos-hero-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
}

.pos-hero-card-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.pos-hero-mock-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pos-hero-mock-btn {
  flex: 1 1 calc(33% - 8px);
  min-width: 72px;
  padding: 12px 8px;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-md);
  font-size: .72rem;
  font-weight: 700;
  color: var(--orange-700);
  text-align: center;
}

.pos-hero-mock-total {
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.pos-hero-mock-total span:first-child {
  font-size: .8rem;
  opacity: .85;
}

.pos-hero-mock-total span:last-child {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: var(--font-en);
}

.pos-hero-mock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pos-hero-mock-actions span {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
}

.pos-hero-mock-actions .is-hold {
  background: var(--gray-100);
  color: var(--gray-700);
}

.pos-hero-mock-actions .is-pay {
  background: var(--orange-500);
  color: var(--white);
}

/* ---------- Pain points ---------- */
.pos-pain {
  padding: 72px 0;
  background: var(--gray-900);
  color: var(--white);
}

.pos-pain .section-eyebrow {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #FDBA74;
}

.pos-pain h2 {
  color: var(--white);
}

.pos-pain h2 em {
  color: #FDBA74;
}

.pos-pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pos-pain-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}

.pos-pain-item i {
  font-size: 1.6rem;
  color: var(--orange-500);
  margin-bottom: 14px;
}

.pos-pain-item p {
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

/* ---------- Overview ---------- */
.pos-overview {
  padding: 80px 0;
  background: var(--white);
}

.pos-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -24px 0 40px;
}

.pos-quick-nav a {
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--orange-700);
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  border-radius: 99px;
  transition: all var(--transition);
}

.pos-quick-nav a:hover {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
}

.pos-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pos-overview-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.pos-overview-card:hover {
  border-color: var(--orange-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pos-overview-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-500);
  color: var(--white);
  border-radius: 16px;
  font-size: 1.35rem;
}

.pos-overview-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.5;
}

.pos-overview-card p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ---------- Feature sections ---------- */
.pos-features {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.pos-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-100);
}

.pos-feature:last-child {
  border-bottom: none;
}

.pos-feature.is-reverse .pos-feature-content {
  order: 2;
}

.pos-feature.is-reverse .pos-feature-visual {
  order: 1;
}

.pos-feature-num {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  font-family: var(--font-en);
  color: var(--orange-600);
  background: var(--orange-50);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pos-feature h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.4;
}

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

.pos-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.pos-feature-list li i {
  color: var(--orange-500);
  margin-top: 4px;
  flex-shrink: 0;
}

.pos-feature-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--orange-50);
  border-left: 3px solid var(--orange-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  color: var(--orange-700);
  font-weight: 600;
}

.pos-feature-visual {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ---------- Screenshots ---------- */
.pos-shot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pos-shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.pos-shot figcaption {
  padding: 10px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  text-align: center;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.pos-shot--hero {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--orange-100);
}

.pos-shot--hero figcaption {
  color: var(--orange-700);
  background: var(--orange-50);
  border-top-color: var(--orange-100);
}

.pos-shot--hardware img {
  max-height: 220px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  padding: 16px;
  background: var(--gray-50);
}

.pos-feature-visual--stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pos-feature-visual--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .pos-feature-visual--duo {
    grid-template-columns: 1fr;
  }
}

.pos-mock-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-mock-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: .85rem;
}

.pos-mock-line .mock-id {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--orange-600);
  font-size: .8rem;
}

.pos-mock-line .mock-meta {
  flex: 1;
  color: var(--gray-700);
}

.pos-mock-line .mock-amt {
  font-weight: 800;
  font-family: var(--font-en);
  color: var(--gray-900);
}

.pos-mock-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pos-mock-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--orange-100);
  color: var(--orange-700);
}

.pos-mock-tag.is-muted {
  background: var(--gray-100);
  color: var(--gray-500);
}

.pos-mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-top: 8px;
}

.pos-mock-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-100));
  border-radius: 6px 6px 0 0;
  min-height: 24px;
}

.pos-mock-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ---------- Summary ---------- */
.pos-summary {
  padding: 80px 0;
  background: var(--orange-50);
}

.pos-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pos-summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--orange-100);
  box-shadow: var(--shadow-sm);
}

.pos-summary-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-summary-card h3 i {
  color: var(--orange-500);
}

.pos-summary-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-summary-card li {
  font-size: .92rem;
  color: var(--gray-700);
  padding-left: 1.2em;
  position: relative;
}

.pos-summary-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-500);
  font-weight: 800;
}

/* ---------- CTA ---------- */
.pos-cta {
  padding: 72px 0 96px;
  text-align: center;
}

.pos-cta-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.pos-cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.pos-cta-box p {
  font-size: .95rem;
  opacity: .95;
  margin-bottom: 24px;
  line-height: 1.8;
}

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

.pos-cta .btn-primary {
  background: var(--white);
  color: var(--orange-600);
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}

.pos-cta .btn-primary:hover {
  background: var(--orange-50);
  color: var(--orange-700);
}

.pos-cta .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .6);
}

.pos-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
}

.pos-breadcrumb {
  padding: 16px 0 0;
  font-size: .82rem;
  color: var(--gray-500);
}

.pos-breadcrumb a {
  color: var(--orange-600);
  font-weight: 600;
}

.pos-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pos-pain-grid,
  .pos-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pos-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pos-hero-inner,
  .pos-feature {
    grid-template-columns: 1fr;
  }

  .pos-feature.is-reverse .pos-feature-content,
  .pos-feature.is-reverse .pos-feature-visual {
    order: unset;
  }

  .pos-pain-grid,
  .pos-overview-grid {
    grid-template-columns: 1fr;
  }

  .pos-shot--hero {
    order: -1;
  }
}
