/* PTP Training — "timetable": warm paper, ruled rows, ticket stub, chat bubble. */

.svc--ptp {
    --bg: #F8F6FA;
    --line: #E8E2EF;
    --card: #F8F6FA;
    --paper-ink: #3F2254;
}
.svc--ptp h1, .svc--ptp h2, .svc--ptp h3 { letter-spacing: -0.02em; }
.svc--ptp h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; font-weight: 600; margin-top: 0.8rem; max-width: 24ch; }
.svc--ptp .sb--onpurple { background: #fff; color: #4E2C68; }
.svc--ptp .sb--outlight { border-color: rgba(255,255,255,.45); color: #fff; }

/* Hero */
.trn-hero { padding: 8rem 0 4rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .trn-hero { padding: 10rem 0 5.5rem; } }
.trn-hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .trn-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 5rem; } }
.trn-hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.06; font-weight: 600; margin: 1rem 0 1.4rem; }
.trn-hero .lead { margin-bottom: 2rem; }
.trn-reg { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 600; }
.trn-reg i { width: 8px; height: 8px; background: var(--accent); display: inline-block; }

.trn-ticket {
    position: relative;
    background: var(--paper-ink);
    color: #fff;
    padding: 2rem 2rem 0;
    transform: rotate(1.2deg);
    box-shadow: 0 30px 50px -30px rgba(63,34,84, 0.6);
    animation: trn-tilt 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes trn-tilt { from { transform: rotate(-4deg) translateY(30px); opacity: 0; } to { transform: rotate(1.2deg); opacity: 1; } }
.trn-ticket::before, .trn-ticket::after {
    content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); top: calc(100% - 4.6rem);
}
.trn-ticket::before { left: -11px; }
.trn-ticket::after { right: -11px; }
.trn-ticket__top { display: flex; align-items: baseline; gap: 0.7rem; }
.trn-ticket__num { font-size: clamp(6rem, 12vw, 9rem); line-height: 0.85; font-weight: 600; letter-spacing: -0.06em; color: #C9B5E0; }
.trn-ticket__unit { font-size: 1.6rem; font-weight: 500; }
.trn-ticket ul { margin: 1.5rem 0 2.2rem; display: grid; gap: 0.2rem; }
.trn-ticket li { display: grid; grid-template-columns: 4rem 1fr; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.95rem; line-height: 1.4; color: rgba(255, 255, 255, 0.82); }
.trn-ticket li b { color: #C9B5E0; font-weight: 600; }
.trn-ticket__stub { display: flex; justify-content: space-between; padding: 1.4rem 0 1.5rem; margin-top: 0.6rem; border-top: 2px dashed rgba(255, 255, 255, 0.28); font-size: 0.72rem; letter-spacing: 0.22em; font-weight: 600; color: rgba(255, 255, 255, 0.6); }

/* Role */
.trn-role__grid, .trn-who__grid, .trn-learn__grid, .trn-inhouse__grid, .trn-faq__grid { display: grid; gap: 2.2rem; }
@media (min-width: 900px) {
    .trn-role__grid, .trn-who__grid, .trn-learn__grid, .trn-inhouse__grid, .trn-faq__grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; }
}
.trn-verbs { border-top: 2px solid var(--paper-ink); }
.trn-verbs li { display: flex; gap: 1.2rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 500; }
.trn-verbs span { font-size: 0.78rem; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.trn-who { border-block: 1px solid var(--line); background: var(--card); }

/* Outline — timetable */
.trn-days { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 900px) { .trn-days { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.trn-day > header { display: flex; align-items: baseline; gap: 0.9rem; padding-bottom: 1rem; border-bottom: 2px solid var(--paper-ink); position: relative; }
.trn-day > header::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.trn-day.is-drawn > header::after { width: 100%; }
.trn-day__lbl { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.trn-day__n { font-size: 4rem; line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; color: var(--accent); }
.trn-mod { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.trn-mod__n { font-size: 0.8rem; font-weight: 600; color: #fff; background: var(--paper-ink); width: 1.9rem; height: 1.9rem; display: grid; place-items: center; transition: background-color 0.3s ease; }
.trn-mod:hover .trn-mod__n { background: var(--accent); }
.trn-mod h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.trn-mod p { color: var(--muted); line-height: 1.6; font-size: 0.93rem; }

/* Learn */
.trn-learn { background: var(--paper-ink); color: #fff; --muted: rgba(255,255,255,.75); --line: rgba(255,255,255,.16); --accent: #C9B5E0; }
.trn-learn h2 { color: #fff; }
.trn-checks li { display: grid; grid-template-columns: 1.7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.trn-checks li:first-child { border-top: 1px solid var(--line); }
.trn-checks svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent); stroke-width: 1.4; margin-top: 0.05rem; }
.trn-checks path { stroke-width: 2; stroke-dasharray: 22; stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s ease 0.4s; }
.js .trn-checks li:not(.is-in) path { stroke-dashoffset: 22; }

/* Certification */
.trn-flow { display: grid; gap: 0; margin: 2.5rem 0 2rem; counter-reset: f; }
@media (min-width: 900px) { .trn-flow { grid-template-columns: repeat(4, 1fr); } }
.trn-flow li { position: relative; padding: 1.4rem 1.4rem 1.6rem; border: 1px solid var(--paper-ink); margin: 0 -1px -1px 0; background: var(--card); counter-increment: f; }
.trn-flow li::before { content: counter(f, decimal-leading-zero); display: block; font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-bottom: 1.2rem; }
.trn-flow li:last-child { background: var(--accent); color: #fff; }
.trn-flow li:last-child::before { color: #fff; }
.trn-flow li:last-child span { color: rgba(255,255,255,.85); }
.trn-flow b { display: block; font-size: 1.1rem; margin-bottom: 0.4rem; }
.trn-flow span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; display: block; }
.trn-cert__copy p:last-child { font-weight: 600; color: var(--fg); }

/* Public */
.trn-public { background: var(--card); border-block: 1px solid var(--line); }
.trn-public__head { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 900px) { .trn-public__head { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }
.trn-cal { margin-bottom: 4rem; }
.trn-join { display: grid; gap: 3rem; }
@media (min-width: 900px) { .trn-join { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: start; } }
.trn-join h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.2rem; }
.trn-steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.trn-steps li > span { font-size: 1.8rem; font-weight: 600; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }
.trn-steps b { display: block; margin-bottom: 0.25rem; }
.trn-steps p { color: var(--muted); line-height: 1.55; font-size: 0.93rem; }
.trn-join .svc-note { margin-top: 1rem; }

.trn-chat { background: #E8E2EF; padding: 1.4rem; display: grid; gap: 1rem; position: relative; }
.trn-chat__h { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #4A4454; }
.trn-chat__bubble { background: #F0EBF5; color: #16131C; padding: 0.9rem 1rem 1.2rem; font-size: 0.95rem; line-height: 1.55; position: relative; border-radius: 12px 12px 2px 12px; min-height: 8.4rem; box-shadow: 0 1px 1px rgba(22,19,28,.12); }
.trn-chat__bubble.is-typing .trn-chat__text::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 1px; vertical-align: -2px; animation: trn-caret 0.8s steps(1) infinite; }
@keyframes trn-caret { 50% { opacity: 0; } }
.trn-chat .sb { justify-self: start; }

/* In-house + FAQ */
.trn-inhouse { border-bottom: 1px solid var(--line); }
.trn-faq { background: transparent; }

.trn-cta { background: #3F2254; color: #fff; padding: 5rem 0 3rem; --bg: #3F2254; --fg: #fff; --muted: rgba(255,255,255,.75); --line: rgba(255,255,255,.18); --accent: #fff; }
.trn-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.8rem; }
.trn-cta .more a { background: #673A89; }
.trn-cta .more a:hover { background: #542E70; }

/* hero upgrade */
.trn-hero { padding: 0; border-bottom: 0; }
.trn-hero::before { content: "PTP"; position: absolute; right: -2vw; bottom: 6rem; font-size: clamp(14rem, 34vw, 30rem); font-weight: 700; letter-spacing: -0.08em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(103,58,137,.16); pointer-events: none; }
.trn-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.trn-stage { position: relative; padding: 0 0 1.5rem 1rem; }
.trn-back { position: absolute; inset: 2.2rem -1rem -1rem 2rem; background: var(--accent); color: #fff; padding: 1.4rem 1.6rem; transform: rotate(-3.5deg); display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; animation: trn-back 1.2s .5s cubic-bezier(.2,.8,.2,1) both; }
.trn-back span { font-weight: 600; letter-spacing: .02em; }
.trn-back small { font-size: .78rem; line-height: 1.45; opacity: .8; max-width: 22rem; }
@keyframes trn-back { from { transform: rotate(0) translate(-20px, -20px); opacity: 0; } }
.trn-ticket { position: relative; z-index: 1; }
