/* ============ Golf Rhythm Coach — product page ============ */
/* Inherits the brand system from /styles.css. Only page-specific rules here. */

/* Type scale and greys measured from apple.com/jp (iPhone 17 Pro pages):
   eyebrow 24/600, section head 56/600 lh1.125, big statement 80/600 lh1.09,
   supporting copy 21/600 #86868b, spec label 24/600, spec value 17/400 #a1a1a6,
   hairline #424245, primary text #f5f5f7. */
:root {
  --grc: #35e07f;          /* app's signal green, used sparingly */
  --grc-soft: rgba(53, 224, 127, .16);
  --ap-text: #f5f5f7;
  --ap-dim: #86868b;
  --ap-spec: #a1a1a6;
  --ap-rule: #424245;
}

.product-page { overflow-x: hidden; }

/* ---------- Apple-grade typography for this page ---------- */
.product-page .kicker {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);   /* 24px at desktop */
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .009em;
  color: var(--grc);
  margin-bottom: 18px;
}
.product-page .stmt {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);    /* 56px at desktop */
  font-weight: 600;
  line-height: 1.125;
  letter-spacing: 0;
  color: var(--ap-text);
  max-width: 20ch;
  text-wrap: balance;
}
html[lang="ja"].product-page .stmt,
html[lang="ja"] .product-page .stmt { line-height: 1.22; }
.product-page .lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3125rem); /* 21px at desktop */
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: .011em;
  color: var(--ap-dim);
  max-width: 34ch;
  margin-top: 22px;
}
html[lang="ja"] .product-page .lead { line-height: 1.62; letter-spacing: 0; max-width: 30ch; }

/* ---------- Hero ---------- */
.pr-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 76% 42%, rgba(53, 224, 127, .10), transparent 62%),
    linear-gradient(180deg, #02060d 0%, #030b18 60%, #02060d 100%);
}
.pr-hero-media { position: absolute; inset: 0; }
.pr-hero-img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  opacity: .78;
  will-change: transform;
}
.pr-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 13, .96) 0%, rgba(2, 6, 13, .78) 42%, rgba(2, 6, 13, .28) 72%, rgba(2, 6, 13, .55) 100%),
    linear-gradient(180deg, rgba(2, 6, 13, .9) 0%, transparent 26%, transparent 62%, var(--bg) 100%);
}
.pr-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12svh max(24px, env(safe-area-inset-left)) 10svh;
  width: 100%;
}
.pr-appicon {
  width: clamp(84px, 9vw, 112px);
  height: auto;
  border-radius: 23%;
  display: block;
  margin-bottom: 26px;
  box-shadow: 0 10px 44px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(244, 241, 234, .1);
}
.pr-eyebrow {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--grc);
  margin-bottom: 14px;
}
.pr-title {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.03;
  background: linear-gradient(180deg, #ffffff 0%, #dfe6f2 58%, #93a3ba 132%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[lang="ja"] .pr-title { letter-spacing: 0; line-height: 1.18; }
.pr-sub {
  margin-top: 12px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}
html[lang="ja"] .pr-sub { letter-spacing: 0; }
.pr-lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--muted);
}
html[lang="ja"] .pr-lede { letter-spacing: 0; line-height: 1.85; word-break: auto-phrase; }
.pr-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.pr-badge {
  display: inline-block;
  border: 1px solid rgba(53, 224, 127, .5);
  background: var(--grc-soft);
  color: #cdf6de;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: .01em;
}
.pr-link {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  border-bottom: 1px solid rgba(147, 163, 186, .35);
  padding-bottom: 2px;
  transition: color .3s ease, border-color .3s ease;
}
.pr-link:hover { color: var(--ink); border-color: rgba(244, 241, 234, .6); }

/* ---------- Sections ---------- */
.pr-concept { padding: 20svh 0 14svh; }
.pr-shot { padding: 8svh 0; }
.pr-shot--alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.pr-features { padding: 16svh 0; }
.pr-pricing { padding: 16svh 0; background: linear-gradient(180deg, var(--bg), var(--bg-2) 55%, var(--bg)); }
.pr-specs { padding: 14svh 0; }
.pr-faq { padding: 14svh 0; background: linear-gradient(180deg, var(--bg), var(--bg-2) 55%, var(--bg)); }
.pr-contact { padding: 14svh 0 16svh; }

.stmt--sm {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 100%;
  line-height: 1.16;
}
html[lang="ja"] .stmt--sm { line-height: 1.42; }

/* ---------- Scroll-driven swing meter ---------- */
.grc-stage { height: 400vh; position: relative; }
.grc-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.grc-pin-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left));
  width: 100%;
  text-align: center;
}
.grc-pin-inner .kicker { margin-bottom: 30px; }
.grc-meter-wrap {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 940 / 300;
}
.grc-meter { width: 100%; height: 100%; display: block; }
.grc-meter-fallback { display: none; }

.grc-phases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 38px;
}
.grc-phases span {
  border: 1px solid rgba(244, 241, 234, .16);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: clamp(.82rem, 1.3vw, .95rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(147, 163, 186, .75);
  background: rgba(4, 16, 32, .5);
  transition: color .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
html[lang="ja"] .grc-phases span { letter-spacing: .02em; text-transform: none; }
.grc-phases span.on {
  color: #0a1f12;
  background: linear-gradient(180deg, #4bea90, #23c96b);
  border-color: transparent;
  box-shadow: 0 0 26px rgba(53, 224, 127, .34);
}
.grc-caption {
  margin: 30px auto 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--muted);
  min-height: 3.4em;
  transition: opacity .3s ease;
}
html[lang="ja"] .grc-caption { letter-spacing: 0; line-height: 1.85; word-break: auto-phrase; }

@media (prefers-reduced-motion: reduce) {
  .grc-stage { height: auto; padding: 16svh 0; }
  .grc-pin { position: static; height: auto; }
  .grc-meter { display: none; }
  .grc-meter-wrap { aspect-ratio: auto; }
  .grc-meter-fallback {
    display: block;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 54ch;
    margin: 0 auto;
  }
  .grc-phases span.on { box-shadow: none; }
}
@media (max-width: 860px) {
  .grc-meter-wrap { aspect-ratio: 660 / 300; }
  .grc-stage { height: 340vh; }
}

/* ---------- Screenshot showcase ---------- */
.pr-shot-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
}
.pr-shot-copy .lead { max-width: 100%; }
.pr-shot-grid--rev .pr-shot-copy { order: 2; }
.pr-shot-figure { margin: 0; }
.pr-shot-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(244, 241, 234, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  background: #05070c;
  transform: scale(.94);
  transition: transform 1s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.pr-shot-figure.on img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .pr-shot-figure img { transform: none !important; transition: none !important; }
}
.pr-shot-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(147, 163, 186, .8);
}
html[lang="ja"] .pr-shot-figure figcaption { letter-spacing: .06em; text-transform: none; }

/* ---------- Feature cards ---------- */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}
.pr-card {
  border: 1px solid rgba(244, 241, 234, .12);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(9, 22, 44, .7), rgba(2, 6, 13, .6));
  padding: 32px 28px 34px;
  position: relative;
  overflow: hidden;
}
.pr-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--grc), rgba(53, 224, 127, 0));
  opacity: .85;
}
.pr-card h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-bottom: 12px;
}
html[lang="ja"] .pr-card h3 { letter-spacing: 0; word-break: auto-phrase; }
.pr-card p {
  font-size: clamp(.98rem, 1.45vw, 1.06rem);
  line-height: 1.65;
  color: var(--muted);
}
html[lang="ja"] .pr-card p { line-height: 1.9; word-break: auto-phrase; }
.pr-card:nth-child(2) { transition-delay: .06s; }
.pr-card:nth-child(3) { transition-delay: .12s; }
.pr-card:nth-child(4) { transition-delay: .06s; }
.pr-card:nth-child(5) { transition-delay: .12s; }
.pr-card:nth-child(6) { transition-delay: .18s; }

/* ---------- Pricing ---------- */
.pr-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 54px 0 44px;
}
.pr-plan {
  border: 1px solid rgba(244, 241, 234, .12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(9, 22, 44, .72), rgba(2, 6, 13, .6));
  padding: 38px 32px 40px;
}
.pr-plan--pro {
  border-color: rgba(53, 224, 127, .4);
  box-shadow: 0 0 60px rgba(53, 224, 127, .07);
  transition-delay: .1s;
}
.pr-plan-name {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.015em;
}
.pr-plan--pro .pr-plan-name { color: var(--grc); }
.pr-plan-price {
  margin-top: 6px;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  color: var(--muted);
}
.pr-plan-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.pr-plan-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: clamp(.98rem, 1.45vw, 1.06rem);
  line-height: 1.6;
  color: rgba(244, 241, 234, .88);
}
html[lang="ja"] .pr-plan-list li { line-height: 1.85; word-break: auto-phrase; }
.pr-plan-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grc);
  opacity: .85;
}
.pr-plan-note {
  margin-top: 22px;
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(147, 163, 186, .85);
}
html[lang="ja"] .pr-plan-note { line-height: 1.85; }

/* ---------- Tech specs (apple.com pattern: hairline rows, no table chrome) ---------- */
.spec-list { margin-top: 52px; }
.spec-row {
  display: grid;
  grid-template-columns: 22% 1fr;
  column-gap: clamp(24px, 3vw, 48px);
  padding: 56px 0 52px;
  border-top: 1px solid var(--ap-rule);
  align-items: start;
}
.spec-row:last-child { border-bottom: 1px solid var(--ap-rule); }
.spec-label {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .009em;
  color: var(--ap-text);
  margin: 0;
}
html[lang="ja"] .spec-label { letter-spacing: 0; }
.spec-value { max-width: 46ch; }
.spec-value p {
  font-size: 1.0625rem;          /* 17px */
  font-weight: 400;
  line-height: 1.353;            /* 23px */
  letter-spacing: 0;
  color: var(--ap-spec);
  margin: 0 0 4px;
}
html[lang="ja"] .spec-value p { line-height: 1.7; word-break: auto-phrase; }
.spec-value p:first-child {
  font-weight: 600;
  color: var(--ap-text);
  margin-bottom: 14px;
}
.spec-value p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .spec-row {
    grid-template-columns: 1fr;
    row-gap: 16px;
    padding: 40px 0 38px;
  }
  .spec-value { max-width: 100%; }
}

/* ---------- FAQ ---------- */
.pr-faq-list { margin-top: 48px; border-top: 1px solid rgba(244, 241, 234, .1); }
.pr-faq-item { border-bottom: 1px solid rgba(244, 241, 234, .1); }
.pr-faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
html[lang="ja"] .pr-faq-q { letter-spacing: 0; word-break: auto-phrase; }
.pr-faq-q:hover { color: #fff; }
.pr-faq-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: .25em;
}
.pr-faq-mark::before,
.pr-faq-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--grc);
  transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease;
}
.pr-faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.pr-faq-item.open .pr-faq-mark::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.pr-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s cubic-bezier(.22,.61,.36,1);
}
.pr-faq-a-inner {
  padding: 0 44px 28px 4px;
  font-size: clamp(.98rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
}
html[lang="ja"] .pr-faq-a-inner { line-height: 1.95; word-break: auto-phrase; }
.pr-faq-a-inner a { color: #bcd6ff; }

/* ---------- Contact form ---------- */
.pr-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 46px;
  max-width: 860px;
}
.pr-field { display: flex; flex-direction: column; }
.pr-field--full { grid-column: 1 / -1; }
.pr-field label {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(244, 241, 234, .9);
  margin-bottom: 9px;
}
.pr-field input,
.pr-field select,
.pr-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(4, 16, 32, .72);
  border: 1px solid rgba(244, 241, 234, .18);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.pr-field select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(147,163,186,.9) 50%), linear-gradient(135deg, rgba(147,163,186,.9) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.pr-field select option { background: #061020; color: var(--ink); }
.pr-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.pr-field input:focus,
.pr-field select:focus,
.pr-field textarea:focus {
  outline: none;
  border-color: rgba(53, 224, 127, .7);
  box-shadow: 0 0 0 3px rgba(53, 224, 127, .16);
}
.pr-field.invalid input,
.pr-field.invalid textarea { border-color: rgba(255, 122, 40, .8); }
.pr-error {
  display: none;
  margin-top: 8px;
  font-size: .86rem;
  color: #ffab7a;
}
.pr-field.invalid .pr-error { display: block; }
.pr-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.pr-form-note {
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(147, 163, 186, .85);
  max-width: 48ch;
}
.pr-submit {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #04240f;
  background: linear-gradient(180deg, #4bea90, #23c96b);
  border: 0;
  border-radius: 999px;
  padding: 15px 34px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, filter .3s ease;
  box-shadow: 0 10px 30px rgba(53, 224, 127, .22);
}
.pr-submit:hover { filter: brightness(1.06); box-shadow: 0 14px 38px rgba(53, 224, 127, .32); }
.pr-submit:active { transform: translateY(1px); }
.pr-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pr-form-sent {
  grid-column: 1 / -1;
  border: 1px solid rgba(53, 224, 127, .45);
  background: var(--grc-soft);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: .98rem;
  line-height: 1.6;
  color: #cdf6de;
}
.pr-form-sent.error {
  border-color: rgba(255, 138, 76, .5);
  background: rgba(255, 122, 40, .12);
  color: #ffcda8;
}
.pr-submit[disabled] { opacity: .55; cursor: default; filter: none; }
.pr-contact-alt {
  margin-top: 34px;
  font-size: 1rem;
  color: var(--muted);
}
.pr-contact-alt a { color: #bcd6ff; }

.pr-trademark {
  margin-top: 14px;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(147, 163, 186, .55);
}
.footer-fine a { color: rgba(147, 163, 186, .9); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .pr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pr-shot-grid { grid-template-columns: 1fr; gap: 34px; }
  .pr-shot-grid--rev .pr-shot-copy { order: 0; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr-plans { grid-template-columns: 1fr; }
  .pr-form { grid-template-columns: 1fr; }
  .pr-specs .legal-table th { width: 38%; white-space: normal; }
  .pr-hero-inner { padding-top: 16svh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pr-hero-img { transform: none !important; }
  .pr-faq-a { transition: none !important; }
}
