/* Draft E homepage — plain landing page. Tokens only (see rp.css). */

.rp-home .rp-btn--lg { min-width: 200px; }
.hp-red { color: var(--red); }
.hp-center { text-align: center; margin: clamp(32px, 4vw, 48px) auto 0; max-width: none; }

/* ---------- hero ---------- */
.hp-hero { text-align: center; padding: clamp(56px, 8.5vh, 104px) 0 clamp(56px, 7vw, 88px); }
.hp-pill { display: inline-flex; align-items: center; gap: 10px; font: 500 14.5px/1.2 var(--text); color: var(--body); background: var(--card); border: 1px solid var(--sand); border-radius: 999px; padding: 9px 16px; margin: 0 auto 28px; max-width: none; }
.hp-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.hp-hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; max-width: 14ch; margin-inline: auto; }
.hp-hero__lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--body); max-width: 58ch; margin: 26px auto 0; }
.hp-hero__btns { justify-content: center; margin-top: 36px; }
.hp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; margin: clamp(48px, 7vh, 72px) auto 0; border-top: 1px solid var(--sand); }
.hp-stats li { padding: 22px 12px 0; display: grid; gap: 4px; }
.hp-stats li + li { border-left: 1px solid var(--sand); }
.hp-stats b { font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--text); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.hp-stats span { font-size: 15px; color: var(--mute); }

/* hero, Draft F: text left, illustration right (stacks below 960px) */
.hp-hero { padding-top: clamp(40px, 6.5vh, 80px); }
.hp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; text-align: left; }
.hp-hero__text .hp-pill { margin-left: 0; }
.hp-hero__text h1 { font-size: clamp(40px, 4.7vw, 64px); max-width: 13ch; margin-inline: 0; }
.hp-hero__text .hp-hero__lead { margin-inline: 0; max-width: 50ch; font-size: clamp(17.5px, 1.45vw, 20px); }
.hp-hero__text .hp-hero__btns { justify-content: flex-start; }

/* hero illustration: anchors ranging two tags on a light floor plan */
.hpf { margin: 0; }
.hpf-card { background: var(--card); border: 1px solid var(--sand); border-radius: calc(var(--radius) * 2); padding: clamp(10px, 1.2vw, 16px); box-shadow: var(--shadow-lg); }
.hpf-svg, .hps-svg { width: 100%; height: auto; }
.hpf-floor, .hps-floor { fill: var(--paper-2); }
.hpf-rack, .hps-rack { fill: var(--card); stroke: var(--sand-2); stroke-width: 1.5; }
.hpf-bay, .hps-bay { stroke: var(--sand); stroke-width: 1.5; stroke-linecap: round; }
.hpf-anchor rect, .hps-anchor rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.75; }
.hpf-anchor circle, .hps-anchor circle { fill: var(--red); }
.hpf-line { stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2 6; animation: hp-range 1.6s linear infinite; }
.hpf-line--f { stroke: var(--ink); opacity: .2; }
.hpf-line--p { stroke: var(--red); opacity: .38; }
@keyframes hp-range { to { stroke-dashoffset: -16; } }
.hpf-tag--f .hpf-halo { fill: var(--ink); opacity: .06; }
.hpf-tag--f .hpf-dot { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.hpf-tag--p .hpf-halo { fill: var(--red-soft); opacity: .9; }
.hpf-tag--p .hpf-dot { fill: var(--red); stroke: var(--card); stroke-width: 2.5; }
.hpf-tag use, .hps-truck use, .hps-worker use { fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hpf-tag--f use, .hps-truck use { stroke: var(--ink); }
.hpf-tag--p use, .hps-worker use { stroke: #fff; }
.hpf-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; padding-inline: 4px; font-size: var(--fs-caption); line-height: 1.45; color: var(--mute); }
.hpf-legend { display: inline-flex; align-items: center; gap: 6px; }
.hpf-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 8px; }
.hpf-key:first-child { margin-left: 0; }
.hpf-key--a { border-radius: 3px; border: 1.75px solid var(--ink); background: var(--card); }
.hpf-key--p { background: var(--red); }
.hpf-key--f { background: var(--card); border: 2px solid var(--ink); }

/* ---------- sections ---------- */
.hp-sec { padding-block: clamp(72px, 9vw, 120px); }
.hp-sec--band { background: var(--paper-2); }
.hp-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); }
.hp-head h2 { font-size: clamp(32px, 3.6vw, 48px); margin-inline: auto; }
.hp-head p { font-size: clamp(17px, 1.4vw, 19px); color: var(--body); margin: 16px auto 0; max-width: 56ch; }

/* trusted by */
.hp-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp-trust li { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 28px 24px; text-align: center; display: grid; gap: 8px; align-content: start; }
.hp-trust b { font: 400 clamp(28px, 2.6vw, 36px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.hp-trust span { font-size: 15.5px; line-height: 1.45; color: var(--body); }

/* cards */
.hp-cards { display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.hp-cards--4 { --cols: 4; }
.hp-cards--3 { --cols: 3; }
.hp-card { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 28px 26px; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.hp-card h3, .hp-steps h3, .hp-story h3 { text-wrap: pretty; }
.hp-card h3 { font-size: 22px; }
.hp-card p { font-size: 16px; line-height: 1.55; }
.hp-card--quiet { background: transparent; border-style: dashed; border-color: var(--sand-2); }
a.hp-card:hover, a.hp-story:hover { border-color: var(--sand-2); box-shadow: var(--shadow); transform: translateY(-2px); }
a.hp-card:hover h3, a.hp-story:hover h3 { color: var(--red-dark); }
.hp-card__more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.hp-card__more::after { content: " →"; color: var(--red); }
.hp-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 4px; }
.hp-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* why redpoint — safety simulation (forklift + worker): drawn in front-page.php, driven by front-page.js */
.hps { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; background: var(--card); border: 1px solid var(--sand); border-radius: calc(var(--radius) * 2); padding: clamp(12px, 1.4vw, 18px); box-shadow: var(--shadow); }
.hps-fig { margin: 0; align-self: center; }
.hps-lane { stroke: var(--sand-2); stroke-width: 1.5; stroke-dasharray: 10 10; stroke-linecap: round; }
.hps-line { stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2 6; }
.hps-line--f { stroke: var(--ink); opacity: .16; }
.hps-line--p { stroke: var(--red); opacity: .3; }
.hps-trail circle { fill: var(--sand-2); transition: fill .3s; }
.hps.is-crawl .hps-trail circle { fill: var(--red); opacity: .45; }
.hps-zone { fill: var(--red-soft); fill-opacity: .35; stroke: var(--sand-2); stroke-width: 1.5; stroke-dasharray: 5 6; transition: fill .35s, fill-opacity .35s, stroke .35s; }
.hps-zone--inner { fill-opacity: .45; }
.hps.is-near .hps-zone--outer, .hps.is-slow .hps-zone--outer { fill-opacity: .6; stroke: var(--red); stroke-dasharray: none; stroke-width: 2; }
.hps.is-stop .hps-zone--outer { fill-opacity: .5; stroke: var(--red); stroke-opacity: .45; stroke-dasharray: none; }
.hps.is-stop .hps-zone--inner { fill-opacity: 1; stroke: var(--red); stroke-dasharray: none; stroke-width: 2; }
.hps.is-clear .hps-zone { fill: var(--safe-soft); fill-opacity: .7; stroke: var(--safe); stroke-opacity: .7; stroke-dasharray: none; }
.hps-dot { fill: var(--card); stroke: var(--ink); stroke-width: 2; transition: stroke .3s; }
.hps.is-slow .hps-dot, .hps.is-stop .hps-dot { stroke: var(--red); }
.hps.is-clear .hps-dot { stroke: var(--safe); }
.hps-pdot { fill: var(--red); stroke: var(--card); stroke-width: 2.5; }
.hps-buzz { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: 0; }
.hps.is-near .hps-buzz, .hps.is-stop .hps-buzz { animation: hps-buzz 1.1s ease-out infinite; }
.hps.is-near .hps-buzz--2, .hps.is-stop .hps-buzz--2 { animation-delay: .55s; }
@keyframes hps-buzz { from { r: 14px; opacity: .55; } to { r: 30px; opacity: 0; } }

.hps-panel { display: flex; flex-direction: column; gap: 16px; padding: 6px 6px 6px 0; }
.hps-steps { display: grid; gap: 6px; }
.hps-steps li { display: grid; gap: 3px; align-content: start; padding: 12px 14px 12px 16px; border-radius: var(--radius); border-left: 3px solid var(--sand); transition: background .3s, border-color .3s; }
.hps-steps b { font: 600 16px/1.3 var(--text); color: var(--ink); }
.hps-steps span { font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.hps-steps li.is-on { background: var(--paper-2); border-left-color: var(--ink); }
.hps-steps li[data-phase="slow"].is-on, .hps-steps li[data-phase="stop"].is-on { background: var(--red-soft); border-left-color: var(--red); }
.hps-steps li[data-phase="stop"].is-on b { color: var(--red-dark); }
.hps-steps li[data-phase="clear"].is-on { background: var(--safe-soft); border-left-color: var(--safe); }
.hps-steps li[data-phase="clear"].is-on b { color: var(--safe); }
.hps-meta { margin-top: auto; display: grid; gap: 8px; padding: 14px 16px 6px; border-top: 1px solid var(--sand); }
.hps-meta[hidden] { display: none; }
.hps-speed { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--mute); max-width: none; }
.hps-speed b { font-variant-numeric: tabular-nums; }
.hps-bar { display: block; height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.hps-bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; transform-origin: left; transition: background .3s; }
.hps.is-crawl .hps-bar i { background: var(--red); }
.hps.is-clear .hps-bar i { background: var(--safe); }
.hps-count { font-size: 15px; color: var(--body); margin-top: 6px; }
.hps-count b { font-variant-numeric: tabular-nums; }

/* why redpoint */
.hp-point { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.hp-point > b { font: 600 clamp(26px, 2.4vw, 32px)/1.1 var(--text); letter-spacing: -.02em; color: var(--red); margin-bottom: 6px; }
.hp-point h3 { font: 600 17.5px/1.3 var(--text); letter-spacing: 0; }
.hp-point p { font-size: 15.5px; line-height: 1.55; }
.hp-impact { margin-top: 20px; background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px 26px; display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; align-items: center; }
.hp-impact__title { font-weight: 600; color: var(--ink); font-size: 16px; }
.hp-impact ul { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 16px; }
.hp-impact ul b { font-size: 18px; }
.hp-impact .rp-note { grid-column: 1 / -1; font-size: 13.5px; }

/* how it works */
.hp-steps { counter-reset: hp; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hp-steps li { counter-increment: hp; position: relative; padding: 28px 26px; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--card); }
.hp-steps li::before { content: counter(hp); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font: 600 16px/1 var(--text); margin-bottom: 18px; }
.hp-steps h3 { font-size: 22px; }
.hp-steps p { margin-top: 8px; font-size: 16px; line-height: 1.55; }

/* stories */
.hp-story { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.hp-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.hp-story__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.hp-story__kind { font: 600 var(--fs-label)/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.hp-story h3 { font-size: 22px; line-height: 1.25; }
.hp-story__fig { font-size: 15.5px; color: var(--body); }
.hp-story__fig b { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hps { grid-template-columns: 1fr; }
  .hps-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hps-panel { padding: 0; }
}
@media (max-width: 960px) {
  .hp-hero__grid { grid-template-columns: 1fr; }
  .hpf { max-width: 620px; }
}
@media (max-width: 1080px) {
  .hp-cards--4, .hp-trust, .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hp-cards--3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-stats li:nth-child(3) { border-left: 0; }
  .hp-stats li:nth-child(n+3) { border-top: 1px solid var(--sand); margin-top: 18px; }
  .hp-impact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hp-hero { padding-top: 40px; }
  .hp-hero__btns .rp-btn { width: 100%; }
  .hpf-legend { display: none; }
  .hps-steps { grid-template-columns: 1fr; }  .hp-cards--4, .hp-trust, .hp-steps { grid-template-columns: 1fr; }
  .hp-trust li { text-align: left; padding: 22px; }
  .hp-card, .hp-point, .hp-steps li { padding: 24px 22px; }
}
