/* ParkTick landing page. System fonts only: the page loads nothing from third parties. */
:root {
  --concrete: #e6e8ea;
  --concrete-deep: #d5d9dd;
  --ink: #16191d;
  --ink-soft: #4a525c;
  --board: #ffcb05;
  --sign-red: #d7262e;
  --p-blue: #1b5fc1;
  --led: #ffb21a;
  --led-off: #2a2410;
  --display: #101214;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p-blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--p-blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.p-badge {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px;
  background: var(--p-blue); color: #fff; font-weight: 900; font-size: 21px; line-height: 1;
}
.topnav { display: flex; gap: 20px; font-size: 15px; }
.topnav a { color: var(--ink-soft); text-decoration: none; }
.topnav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding-block: 40px 72px; }
.hero h1 {
  font-size: clamp(36px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 850;
  margin: 0 0 20px; max-width: 16ch; text-wrap: balance;
}
.hero h1 .tick { color: var(--sign-red); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 38em; margin: 0 0 44px; }

.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: center; }
.demo-arrow { font-size: 15px; color: var(--ink-soft); text-align: center; line-height: 1.3; }
.demo-arrow span { display: block; font-size: 34px; color: var(--ink); }
.demo figure { margin: 0; }
.demo-caption { font-size: 14px; color: var(--ink-soft); margin: 14px 2px 0; }

/* The rate board, as photographed: Times-style yellow panel */
.board {
  background: var(--board); border-radius: 6px; padding: 12px; transform: rotate(-1.6deg);
  box-shadow: 0 1px 0 #c79d00, 0 18px 40px -18px rgba(22, 25, 29, 0.55);
  font-weight: 800; color: var(--ink);
}
.board-grid { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 6px; }
.board-head {
  background: var(--board); border: 2px solid #b48c00; border-radius: 4px; text-align: center;
  font-size: clamp(12px, 1.6vw, 17px); padding: 2px 4px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.board-label {
  writing-mode: vertical-rl; text-orientation: upright; color: #fff; font-size: 13px; letter-spacing: 0.1em;
  display: grid; place-items: center; border-radius: 3px; padding: 4px 0;
}
.board-label.max { background: var(--sign-red); }
.board-label.base { background: var(--ink); }
.board-cell {
  background: #ffe066; border-radius: 4px; display: flex; align-items: baseline; justify-content: center; gap: 2px;
  padding: 6px 4px; font-variant-numeric: tabular-nums; line-height: 1;
}
.board-cell.red { color: var(--sign-red); font-size: clamp(34px, 5vw, 56px); }
.board-cell.wide { grid-column: span 2; font-size: clamp(34px, 5vw, 56px); gap: 10px; }
.board-cell small { font-size: 0.32em; }
.board-foot {
  margin-top: 8px; background: #fff; border-radius: 3px; font-size: 11px; font-weight: 600; color: var(--ink-soft);
  padding: 3px 8px; display: flex; justify-content: space-between; gap: 8px;
}

/* The meter: a payment-machine style display (精算機) */
.meter {
  background: var(--display); color: #fff; border-radius: 20px; padding: 18px 20px 20px;
  box-shadow: inset 0 0 0 1px #2c3036, 0 18px 40px -18px rgba(22, 25, 29, 0.7);
}
.meter-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #9aa3ad; }
.meter-top .island {
  display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; border-radius: 999px;
  padding: 4px 12px 4px 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.island .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--p-blue); display: grid; place-items: center; font-size: 11px; }
.island .count { color: var(--led); }
.seg-row { display: flex; align-items: flex-end; gap: 6px; margin: 18px 0 6px; min-height: 92px; }
[data-digits] { display: flex; gap: 6px; flex-wrap: nowrap; }
.seg-yen { color: var(--led); font-size: 44px; font-weight: 800; line-height: 1; padding-bottom: 6px; }
.seg-digit { width: 50px; height: 88px; }
.seg-digit polygon { fill: var(--led-off); transition: fill 120ms linear; }
.seg-digit polygon.on { fill: var(--led); filter: drop-shadow(0 0 6px rgba(255, 178, 26, 0.55)); }
.meter.charged .seg-digit polygon.on { animation: charge 900ms ease-out; }
@keyframes charge { from { fill: #fff; } to { fill: var(--led); } }
.meter-next { font-size: 15px; color: #d6dbe0; font-variant-numeric: tabular-nums; min-height: 1.6em; }
.meter-next strong { color: var(--led); }
.meter-next.capped strong { color: #7bd88f; }
.meter-meta { display: flex; justify-content: space-between; font-size: 13px; color: #9aa3ad; margin-top: 10px; font-variant-numeric: tabular-nums; }

/* Sections */
section { padding-block: 64px; }
section + section { border-top: 1px solid var(--concrete-deep); }
h2 { text-wrap: balance; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 820; margin: 0 0 12px; max-width: 22ch; }
.section-lede { color: var(--ink-soft); max-width: 40em; margin: 0 0 32px; }

/* Sign says → ParkTick does */
.rules { display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: center; background: #f4f5f6; border-radius: var(--radius); padding: 16px 20px; }
.chip {
  justify-self: start; background: var(--board); color: var(--ink); font-weight: 800; border-radius: 6px; padding: 6px 12px;
  font-size: 17px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 2px #e0b200;
}
.chip em { color: var(--sign-red); font-style: normal; }
.rule p { margin: 0; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.shot img { border-radius: 28px; box-shadow: 0 24px 50px -28px rgba(22, 25, 29, 0.6); background: #fff; }
.shot.island img { border-radius: 18px; }
.shot h3 { font-size: 18px; margin: 16px 0 4px; letter-spacing: -0.01em; }
.shot p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Two-column text blocks */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.cols h3 { font-size: 18px; margin: 0 0 4px; }
.cols p { margin: 0; color: var(--ink-soft); }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.langs span { background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 700; }

.privacy { background: var(--ink); color: #e9ecef; border-radius: 24px; padding: 40px; }
.privacy h2 { color: #fff; }
.privacy ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.privacy li { padding-left: 22px; position: relative; }
.privacy li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 2px; background: var(--board); }
.privacy a { color: var(--board); }

.cta { text-align: left; }
.cta .status { display: inline-block; background: var(--p-blue); color: #fff; font-weight: 800; border-radius: 999px; padding: 8px 18px; margin-bottom: 12px; }

footer { padding-block: 32px 48px; font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-meta { display: grid; gap: 3px; }
.footer-meta small { color: var(--ink-soft); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-arrow span { transform: rotate(90deg); }
  .shots, .cols, .privacy ul { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .shots { max-width: 420px; }
  .privacy { padding: 28px 22px; }
  .topnav a.optional { display: none; }
  .topnav { gap: 10px; font-size: 13px; }
  .brand { font-size: 18px; }
  .seg-digit { width: 40px; height: 70px; }
  .seg-row { min-height: 74px; }
  .seg-yen { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .board { transform: none; }
  .meter.charged .seg-digit polygon.on { animation: none; }
  .seg-digit polygon { transition: none; }
}
