:root {
  --wine: var(--sage);
}

.eyebrow {
  color: var(--accent);
}

.detail-hero {
  padding: 92px 0 80px;
  background: var(--bg-deep);
  text-align: center;
}

.detail-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 22px;
}

.detail-hero h1 em {
  color: var(--wine);
  font-style: normal;
  border-bottom: 1px solid var(--accent);
}

.detail-hero .lede {
  margin: 0 auto;
}

.detail-section {
  max-width: 760px;
  margin: 0 auto;
}

.detail-section h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.detail-section p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 18px;
}

.highlight,
.machine-point h3 strong {
  color: var(--wine);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.detail-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-point {
  background: var(--card);
  padding: 28px 22px;
}

.detail-point strong {
  display: block;
  color: var(--wine);
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  margin-bottom: 8px;
}

.detail-point span {
  color: var(--ink-soft);
  font-size: 13px;
}

.machine-points {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.machine-points-heading {
  padding: 28px 0 4px;
  border-top: 1px solid var(--line);
}

.machine-points-heading .eyebrow {
  margin-bottom: 6px;
}

.machine-points-heading h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.machine-points-heading h3 em {
  color: var(--wine);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.machine-points-heading p {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 0;
}

.machine-point {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: stretch;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: 7px 7px 0 rgba(169, 131, 79, 0.13);
}

.machine-point:nth-child(even) {
  box-shadow: -7px 7px 0 rgba(124, 59, 72, 0.1);
}

.machine-point-visual {
  min-height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: var(--wine);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  font-family: 'Cormorant Garamond', serif;
}

.machine-point-visual::before,
.machine-point-visual::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(124, 59, 72, 0.28);
  border-radius: 50%;
}

.machine-point-visual::before {
  width: 132px;
  height: 132px;
}

.machine-point-visual::after {
  width: 82px;
  height: 82px;
  border-color: rgba(169, 131, 79, 0.55);
}

.machine-point-visual span,
.machine-point-visual small {
  position: relative;
  z-index: 1;
}

.machine-point-visual span {
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.machine-point-visual small {
  color: var(--ink-soft);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

.visual-wavelength span:first-child {
  transform: translateX(-18px);
}

.visual-wavelength span:nth-child(2) {
  color: var(--sage);
  transform: translateX(18px);
}

.visual-spot span {
  border: 2px solid var(--wine);
  padding: 15px 18px;
}

.visual-cooling {
  background: #E8F2EC;
}

.visual-cooling span {
  color: var(--sage);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 18px;
  letter-spacing: 0.16em;
}

.visual-air span {
  color: var(--brass);
  font-size: 34px;
  font-style: italic;
}

.machine-point-label {
  color: var(--brass);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.machine-point-label b {
  color: var(--wine);
  font-size: 20px;
  font-weight: 500;
  margin-left: 6px;
}

.machine-point h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 12px;
}

.machine-point-body {
  align-self: center;
}

.machine-point p {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 0;
}

.detail-note {
  font-size: 12px !important;
  margin-top: 20px;
}

.price-table-wrap {
  overflow-x: auto;
  margin-top: 30px;
}

.price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th,
.price-table td {
  border: 1px solid var(--line);
  padding: 17px 16px;
  text-align: center;
}

.price-table thead th {
  background: var(--wine);
  color: #fff;
  font-weight: 500;
}

.price-table tbody th {
  background: var(--bg-deep);
  font-weight: 500;
  text-align: left;
}

.price-table tbody th span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
}

.price-table td strong {
  color: var(--wine);
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
}

.price-clinic-name {
  color: var(--brass) !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px !important;
  letter-spacing: 0.12em;
  margin: 28px 0 8px !important;
}

.price-clinic-name span {
  color: var(--ink-soft);
  margin-left: 8px;
}

.price-group {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.price-group-heading {
  margin-bottom: 20px;
}

.price-group-heading .eyebrow,
.price-subgroup > .eyebrow {
  display: block;
  margin-bottom: 5px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.price-group-heading h3,
.price-subgroup h4,
.price-option h4 {
  margin: 0;
  color: var(--ink);
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
}

.price-group-heading h3 {
  font-size: 22px;
}

.price-group .price-table-wrap {
  margin-top: 14px;
}

.price-group .price-table {
  min-width: 560px;
}

.price-group .price-table td strong {
  white-space: nowrap;
}

.price-notes {
  margin: 14px 0 0;
  padding-left: 1.4em;
  color: var(--ink-soft);
  font-size: 12px;
}

.price-notes li + li {
  margin-top: 5px;
}

.price-option {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.price-option h4,
.price-subgroup h4 {
  font-size: 17px;
}

.price-option p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
}

.price-option p span {
  color: var(--ink-soft);
}

.price-option p strong {
  color: var(--wine);
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  white-space: nowrap;
}

.price-option .detail-note {
  display: block;
  margin-bottom: 0;
}

.price-subgroup {
  margin-top: 30px;
}

.price-subgroup > .eyebrow + h4 {
  margin-top: 0;
}

.price-subgroup .price-table-wrap {
  margin-top: 12px;
}

.face-price-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.face-price-tables .price-table-wrap {
  min-width: 0;
  margin-top: 0;
  overflow: visible;
}

.face-price-tables .face-price-table {
  min-width: 0;
  table-layout: fixed;
}

.face-price-tables .price-table th,
.face-price-tables .price-table td {
  padding: 12px 10px;
}

.face-price-tables .price-table td strong {
  font-size: 16px;
}

.price-group .size-table {
  min-width: 620px;
}

.price-table tbody th span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
}

.price-note {
  margin: 10px 0 0 !important;
  font-size: 12px !important;
}

.price-tax-note {
  margin-top: 28px;
  text-align: right;
}

#features > .detail-section,
#machine > .detail-section,
#price > .detail-section,
#flow > .detail-section,
#faq > .detail-section {
  width: min(760px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--card);
  border-radius: var(--content-card-radius);
}

#features .detail-points {
  background: transparent;
  border: 0;
  gap: 16px;
}

#features .detail-point {
  background: transparent;
  border-bottom: 1px solid var(--line);
}

#machine .machine-point {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  box-shadow: none;
}

#machine .machine-point:nth-child(even) {
  box-shadow: none;
}

#price .price-option {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

#faq .faq-list details p {
  background: transparent;
  padding: 8px 0 16px;
}

.detail-list {
  margin: 28px 0 0;
  padding-left: 1.4em;
  color: var(--ink-soft);
  font-size: 15px;
}

.detail-list li + li {
  margin-top: 10px;
}

.flow-list {
  list-style: none;
  padding-left: 0;
  counter-reset: flow;
}

.flow-list li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  color: var(--brass);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
}

.flow-list strong,
.flow-list span {
  grid-column: 2;
}

.flow-list strong {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  margin-bottom: 3px;
}

.flow-list span {
  color: var(--ink-soft);
  font-size: 13.5px;
}

.faq-list {
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 34px 20px 0;
  position: relative;
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  color: var(--wine);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 22px;
  font-weight: 300;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  background: rgba(169, 131, 79, 0.08);
  margin: 0 0 16px;
  padding: 14px 18px;
  font-size: 13.5px;
}

.detail-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.nav-cta,
.detail-actions .btn-primary {
  background: var(--accent);
}

.nav-cta:hover,
.detail-actions .btn-primary:hover {
  background: var(--accent);
}

.detail-actions .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.detail-actions .btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

#reserve .detail-actions .btn-primary {
  background: #fff;
  color: var(--accent);
}

#reserve .detail-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

#reserve .detail-actions .btn-outline {
  border-color: #fff;
  color: #fff;
}

#reserve .detail-actions .btn-outline:hover {
  background: #fff;
  color: var(--accent);
}

@media (max-width: 600px) {
  #features > .detail-section,
  #machine > .detail-section,
  #price > .detail-section,
  #flow > .detail-section,
  #faq > .detail-section {
    width: calc(100% - 32px);
    padding: 20px 16px;
  }

  .detail-hero {
    padding: 64px 0 56px;
  }

  .detail-points {
    grid-template-columns: 1fr;
  }

  .machine-points {
    grid-template-columns: 1fr;
  }

  .machine-point {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
  }

  .machine-point-visual {
    min-height: 130px;
  }

  .price-group {
    margin-top: 36px;
    padding-top: 22px;
  }

  .price-table-wrap {
    overflow-x: visible;
  }

  .price-table,
  .price-group .price-table,
  .price-group .size-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }

  .price-table th,
  .price-table td {
    padding: 9px 7px;
    overflow-wrap: anywhere;
  }

  .price-table td strong {
    font-size: 15px;
  }

  .price-group[aria-labelledby="price-full-body"] .price-table th:first-child {
    width: 32%;
  }

  .price-group[aria-labelledby="price-full-body"] .price-table td:nth-child(2) {
    width: 43%;
  }

  .price-group[aria-labelledby="price-full-body"] .price-table td:last-child {
    width: 25%;
  }

  .price-group .face-price-table th:first-child,
  .price-group .set-price-table th:first-child {
    width: 68%;
  }

  .price-group .face-price-table td:last-child,
  .price-group .set-price-table td:last-child {
    width: 32%;
  }

  .price-group .size-table th:first-child {
    width: 14%;
  }

  .price-group .size-price-table th:first-child {
    width: 68%;
  }

  .face-price-tables {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .face-price-tables .price-table th,
  .face-price-tables .price-table td {
    padding: 10px 12px;
  }

  .price-option {
    padding: 16px;
  }

  .price-option p {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .price-option p strong {
    align-self: flex-end;
  }

  .price-tax-note {
    text-align: left;
  }
}