/* Private Cloud Compute brand page (JA + EN). Builds on home-site.css and sanary-layout.css. */

/* What is PCC */
.pcc-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: pcc; }

.pcc-points li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 24px 22px 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  counter-increment: pcc;
}

.pcc-points li::before {
  content: counter(pcc);
  position: absolute;
  top: 22px;
  left: 22px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.pcc-points strong { font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); font-weight: 400; line-height: 1.5; }
.pcc-points span { color: var(--muted); font-size: 14px; line-height: 2; }

.pcc-note {
  margin-top: clamp(36px, 5vw, 56px);
  padding: 18px 22px;
  border-left: 3px solid rgba(47, 111, 103, 0.26);
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.pcc-note a { display: inline-block; margin: 2px 18px 0 0; color: var(--accent); font-weight: 500; text-decoration: none; }
.pcc-note a:hover { text-decoration: underline; }

/* Dark sections (stance / closing) */
.pcc-dark { position: relative; overflow: hidden; background: var(--deep); color: var(--bg); }

.pcc-dark::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: -220px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 215, 181, 0.18), transparent 66%);
  pointer-events: none;
}

.pcc-dark .inner { position: relative; }
.pcc-dark .label { color: rgba(151, 215, 181, 0.86); }
.pcc-dark .title { color: var(--bg); }
.pcc-dark .lead { color: var(--deep-muted); }
.pcc-dark a { text-decoration: none; }
.pcc-dark .button { background: var(--bg); color: var(--deep); border-color: transparent; box-shadow: none; }
.pcc-dark .button.ghost { background: transparent; color: var(--bg); border-color: rgba(248, 250, 248, 0.32); }

.pcc-merits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  background: rgba(248, 250, 248, 0.14);
  border: 1px solid rgba(248, 250, 248, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.pcc-merits li { display: grid; align-content: start; gap: 10px; padding: 28px 26px; background: #1B2B29; }
.pcc-merits strong { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); font-weight: 400; line-height: 1.55; color: var(--bg); }
.pcc-merits span { color: var(--deep-muted); font-size: 14px; line-height: 2; }

.pcc-sub-label { margin: clamp(36px, 5vw, 56px) 0 14px; color: rgba(151, 215, 181, 0.86); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.pcc-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }

.pcc-route-step {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 26px;
  border: 1px solid rgba(248, 250, 248, 0.16);
  border-radius: 8px;
}

.pcc-route-step.is-pcc { border-color: rgba(151, 215, 181, 0.5); background: rgba(151, 215, 181, 0.07); }
.pcc-route-tag { color: rgba(151, 215, 181, 0.86); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.pcc-route-step strong { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); font-weight: 400; line-height: 1.55; }
.pcc-route-step > span:last-child { color: var(--deep-muted); font-size: 14px; line-height: 2; }
.pcc-route-arrow { align-self: center; color: rgba(151, 215, 181, 0.7); font-size: 22px; }

/* Use cases */
.pcc-usage { background: var(--soft); }

.pcc-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: clamp(40px, 6vw, 64px) 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.5;
}

.pcc-group small { color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 300; }

.pcc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }

.pcc-card {
  --app-color: var(--accent);
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.pcc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--app-color); }

.pcc-card-app {
  color: color-mix(in srgb, var(--app-color) 70%, var(--ink));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pcc-card h4 { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); font-weight: 400; line-height: 1.5; }
.pcc-card dl { display: grid; gap: 10px; }
.pcc-card dl div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.pcc-card dt { padding: 2px 0; border-radius: 999px; background: color-mix(in srgb, var(--app-color) 10%, white); color: color-mix(in srgb, var(--app-color) 64%, var(--ink)); font-size: 11px; line-height: 1.7; text-align: center; }
.pcc-card dd { color: var(--muted); font-size: 14px; line-height: 1.9; }

.pcc-card-wide { grid-column: span 2; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px 36px; }
.pcc-card-wide > div { display: grid; align-content: start; gap: 14px; }
.pcc-card-lead { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: color-mix(in srgb, var(--app-color) 70%, var(--ink)); }
.pcc-card-text { color: var(--muted); font-size: 14px; line-height: 2; }

.pcc-flow { display: grid; gap: 10px; align-content: center; margin: 0; padding: 0; list-style: none; }

.pcc-flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-color) 8%, white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.pcc-flow li:nth-child(2) { background: color-mix(in srgb, var(--app-color) 16%, white); font-weight: 500; }
.pcc-flow li:not(:last-child)::after { content: ""; position: absolute; left: 27px; bottom: -8px; width: 7px; height: 7px; border-right: 1.5px solid var(--app-color); border-bottom: 1.5px solid var(--app-color); transform: rotate(45deg); }
.pcc-flow span { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--app-color); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; }

/* Closing */
.pcc-future .hero-actions { justify-content: flex-start; animation: none; }

.pcc-fineprint { margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid rgba(248, 250, 248, 0.14); }
.pcc-fineprint-title { margin-bottom: 10px; color: rgba(248, 250, 248, 0.72); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; }
.pcc-fineprint ul { display: grid; gap: 6px; padding-left: 1.2em; color: rgba(248, 250, 248, 0.6); font-size: 12.5px; line-height: 2; }
.pcc-fineprint a { color: rgba(248, 250, 248, 0.86); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .pcc-merits { grid-template-columns: 1fr; }
  .pcc-cards { grid-template-columns: repeat(2, 1fr); }
  .pcc-card-wide { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .pcc-route { grid-template-columns: 1fr; }
  .pcc-route-arrow { justify-self: center; transform: rotate(90deg); }
  .pcc-cards { grid-template-columns: 1fr; }
  .pcc-card-wide { grid-template-columns: 1fr; }
  .pcc-points li { padding: 20px 20px 20px 62px; }
  .pcc-points li::before { left: 18px; top: 20px; }
  .pcc-future .hero-actions .button { width: min(100%, 280px); }
}

/* English typography */
html[lang="en"] .pcc-points span,
html[lang="en"] .pcc-merits span,
html[lang="en"] .pcc-route-step > span:last-child,
html[lang="en"] .pcc-card dd,
html[lang="en"] .pcc-card-text,
html[lang="en"] .pcc-note { line-height: 1.75; }
html[lang="en"] .pcc-card dl div { grid-template-columns: 6.6em minmax(0, 1fr); }
html[lang="en"] .pcc-points strong,
html[lang="en"] .pcc-merits strong,
html[lang="en"] .pcc-route-step strong,
html[lang="en"] .pcc-card h4 { line-height: 1.4; }
html[lang="en"] .pcc-fineprint ul { line-height: 1.75; }

/* Keep Japanese headings from breaking mid-phrase (progressive enhancement) */
.page-hero .title, #what .title, #reason .title, #usage .title, #future .title, .pcc-card h4, .pcc-points strong, .pcc-merits strong, .pcc-route-step strong {
  word-break: auto-phrase;
  text-wrap: balance;
}

/* Design principle: on-device first, PCC for bigger jobs */
.pcc-motto { display: grid; gap: 6px; margin-top: clamp(32px, 5vw, 52px); padding-left: clamp(18px, 3vw, 28px); border-left: 3px solid rgba(151, 215, 181, 0.5); }
.pcc-motto p { font-family: var(--serif); font-size: clamp(22px, 3.6vw, 40px); font-weight: 300; line-height: 1.6; color: var(--bg); }
.pcc-motto p.is-pcc { color: rgba(151, 215, 181, 0.95); }
.pcc-motto small { margin-top: 10px; color: var(--deep-muted); font-size: 13px; line-height: 2; }
html[lang="en"] .pcc-motto p { line-height: 1.4; }
html[lang="en"] .pcc-motto small { line-height: 1.75; }
.pcc-motto p { word-break: auto-phrase; text-wrap: balance; }

/* Brand colours (must out-rank .pcc-card's default --app-color) */
.pcc-card.app-log { --app-color: var(--log); }
.pcc-card.app-money { --app-color: var(--money); }
.pcc-card.app-beauty { --app-color: var(--beauty); }
.pcc-card.app-dev { --app-color: var(--dev); }
