/* Every routes — awa.fm edition.
   Black stage, single red accent, centered hero, alternating rows.
   Vanilla CSS. Breakpoints 553 / 960. Content width 1072. */

:root {
  --accent: #ff5246;
  --accent-deep: #c93328;
  --ink: #fff;
  --ink-soft: #d6d6d6;
  --muted: #aaa;
  --bg: #000;
  --card: #1d1d1d;
  --card-hi: #282828;
  --line: #333;
  --max: 1072px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans SC", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.78;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 99;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
}

.skip:focus { left: 8px; top: 8px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------- top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-right: auto;
  white-space: nowrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

.menu {
  display: none;
  align-items: center;
  gap: 26px;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s var(--ease);
}

.menu a:hover { color: var(--accent); }

.lang { position: relative; }

.lang summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.2s var(--ease);
}

.lang summary:hover { border-color: var(--accent); }
.lang summary::-webkit-details-marker { display: none; }

.lang-menu {
  position: absolute;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  background: var(--card-hi);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  margin-top: 8px;
}

.lang-menu a { color: var(--ink-soft); text-decoration: none; padding: 6px 14px; border-radius: 8px; font-size: 14px; }
.lang-menu a:hover { color: var(--accent); }
.lang-menu a[aria-current="page"] { background: rgba(255, 82, 70, 0.14); color: var(--accent); }

.go {
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.go:hover { background: var(--accent-deep); transform: translateY(-1px); }
.go:active { transform: scale(0.98); }

/* ---------- hero ---------- */

.hero { text-align: center; padding: 64px 0 48px; }

.kick {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 18em;
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  font-weight: 800;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero h1 strong { color: var(--accent); }

.lede {
  margin: 0 auto 30px;
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 15px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 34px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn.line { border: 2px solid var(--line); color: var(--ink); }
.btn.line:hover { border-color: var(--accent); color: var(--accent); }

.spec {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 auto;
  max-width: 816px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}

.spec > div { background: var(--card); padding: 16px 22px; }

.spec dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.spec dd { margin: 0; font-weight: 800; font-size: 15px; }

/* ---------- strip ---------- */

.strip {
  margin: 0;
  overflow: hidden;
  padding: 14px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- blocks ---------- */

.block { padding: 64px 0 8px; }

.block .kick { margin-bottom: 12px; }

.block h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.8vw, 35px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.sub { margin: 0 0 8px; max-width: 600px; color: var(--ink-soft); }

/* alternating rows */
.rows { display: flex; flex-direction: column; margin-top: 32px; }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.row:last-child { border-bottom: 1px solid var(--line); }

.art {
  height: 152px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 160px at 80% 0%, rgba(255, 82, 70, 0.16), transparent 65%);
  pointer-events: none;
}

.art > * { position: relative; z-index: 1; }

/* Feature 01: a weekday rule and its reusable time blocks. */
.art-routine { display: grid; align-content: center; gap: 18px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; max-width: 380px; margin: 0 auto; width: 100%; }
.week span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-height: 30px;
  border: 1px solid #484848;
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.week span:nth-child(-n + 5) { color: #fff; border-color: rgba(255, 82, 70, 0.62); background: rgba(255, 82, 70, 0.16); }
.routine-plan { display: grid; gap: 7px; max-width: 380px; margin: 0 auto; width: 100%; }
.routine-plan span { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; }
.routine-plan b { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.routine-plan i { display: block; height: 8px; border-radius: 999px; background: #555; }
.routine-plan span:nth-child(1) i { width: 54%; background: var(--accent); }
.routine-plan span:nth-child(2) i { width: 82%; }
.routine-plan span:nth-child(3) i { width: 66%; }

/* Feature 02: one chronological rail with the current item highlighted. */
.art-today { display: flex; align-items: center; justify-content: center; }
.today-line { display: grid; gap: 9px; width: min(360px, 92%); position: relative; }
.today-line::before { content: ""; position: absolute; left: 50px; top: 9px; bottom: 9px; width: 1px; background: #555; }
.today-line span { display: grid; grid-template-columns: 40px 12px 1fr; align-items: center; gap: 6px; min-height: 20px; }
.today-line time { color: var(--muted); font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.today-line i { width: 8px; height: 8px; border: 2px solid var(--card); border-radius: 50%; background: #777; z-index: 1; }
.today-line b { display: block; width: 64%; height: 8px; border-radius: 999px; background: #555; }
.today-line span:nth-child(3) b { width: 82%; }
.today-line span:nth-child(4) b { width: 48%; }
.today-line .active i, .today-line .active b { background: var(--accent); }
.now-pill { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }

/* Feature 03: tasks from three sources converge on the same list. */
.art-tasks { display: flex; align-items: center; justify-content: center; }
.task-list { display: grid; gap: 9px; width: min(330px, 88%); }
.task-list span { display: grid; grid-template-columns: 28px 1fr 18px; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #444; border-radius: 10px; background: rgba(0, 0, 0, 0.14); }
.task-list i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #383838; color: #fff; font-size: 9px; font-style: normal; font-weight: 800; }
.task-list span:nth-child(3) i { background: var(--accent); }
.task-list b { display: block; height: 7px; width: 78%; border-radius: 999px; background: #606060; }
.task-list span:nth-child(2) b { width: 56%; }
.task-list em { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #666; border-radius: 50%; color: var(--accent); font-size: 10px; font-style: normal; }
.sync-mark { position: absolute; right: 17px; bottom: 11px; color: var(--accent); font-size: 15px; font-weight: 800; }

/* Feature 04: the phone writes to its own local data store. */
.art-offline { display: flex; align-items: center; justify-content: center; gap: 34px; }
.device { width: 72px; height: 106px; border: 2px solid #777; border-radius: 15px; padding: 18px 10px 10px; display: grid; align-content: center; gap: 8px; position: relative; }
.device span { position: absolute; width: 18px; height: 3px; border-radius: 999px; background: #666; top: 8px; left: 50%; transform: translateX(-50%); }
.device i { display: block; height: 7px; border-radius: 999px; background: #555; }
.device i:nth-of-type(1) { width: 82%; background: var(--accent); }
.device i:nth-of-type(2) { width: 58%; }
.local-store { display: grid; align-content: center; width: 86px; }
.local-store i { display: block; height: 22px; border: 2px solid #666; border-radius: 50%; margin-top: -8px; background: var(--card); }
.local-store i:first-child { border-color: var(--accent); background: rgba(255, 82, 70, 0.12); }
.offline-badge { position: absolute; right: 16px; top: 12px; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.offline-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Feature 05: only the app is connected to the private server tunnel. */
.art-vpn { display: flex; align-items: center; justify-content: center; gap: 24px; }
.vpn-node { width: 76px; height: 88px; border: 1px solid #555; border-radius: 14px; background: rgba(0, 0, 0, 0.18); display: grid; place-content: center; justify-items: center; gap: 7px; }
.app-node span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 900; }
.vpn-node i { display: block; width: 36px; height: 5px; border-radius: 999px; background: #5b5b5b; }
.server-node i { width: 38px; height: 12px; border: 1px solid #666; border-radius: 4px; background: transparent; }
.tunnel { width: 74px; height: 32px; border: 1px solid rgba(255, 82, 70, 0.65); border-radius: 999px; display: grid; place-items: center; position: relative; }
.tunnel::before, .tunnel::after { content: ""; position: absolute; top: 50%; width: 24px; height: 1px; background: var(--accent); }
.tunnel::before { right: 100%; }
.tunnel::after { left: 100%; }
.tunnel span { color: var(--accent); font-size: 12px; }
.vpn-label { position: absolute; bottom: 12px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.14em; }

.txt .no {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.txt h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
.txt p { margin: 0; color: var(--ink-soft); max-width: 34em; }

/* live panel */
.live {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 30px;
}

.live-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.live-head h3 { margin: 0; font-size: 16px; }

.live ol { list-style: none; margin: 8px 0 0; padding: 0; }

.live li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}

.live li:last-child { border-bottom: none; }
.live li:hover { background: rgba(255, 82, 70, 0.06); }

.live time {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}

.live b { font-weight: 700; }

.live .tag {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 12px;
  white-space: nowrap;
  flex: none;
}

.now { height: 4px; background: var(--line); border-radius: 4px; margin-top: 18px; overflow: hidden; }
.now i { display: block; height: 100%; width: 38%; background: var(--accent); border-radius: 4px; }

/* server duo */
.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.term {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  min-width: 0;
}

.row > *, .spec > div, .live, .how li > div { min-width: 0; }

.term-hi { border-color: var(--accent); }

.term h3 { margin: 0 0 8px; font-size: 18px; }
.term p { margin: 0 0 14px; color: var(--ink-soft); }

.term pre {
  margin: 0;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  color: #ffd9d4;
  font-family: monospace, monospace;
}

/* steps */
.how { list-style: none; margin: 32px 0 0; padding: 0; max-width: 816px; }

.how li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 4px;
  border-top: 1px solid var(--line);
}

.how li:last-child { border-bottom: 1px solid var(--line); }

.how .n {
  flex: none;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  min-width: 40px;
}

.how h3 { margin: 0 0 6px; font-size: 17px; }
.how p { margin: 0; color: var(--ink-soft); }
.how a { color: var(--accent); font-weight: 700; }

.note {
  margin-top: 24px;
  max-width: 816px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
}

.note strong { display: block; margin-bottom: 4px; }
.note p { margin: 0 0 8px; color: var(--ink-soft); }
.note p:last-child { margin-bottom: 0; }
.note a { color: var(--accent); }

/* finale */
.final { text-align: center; padding: 88px 0 96px; }

.final h2 {
  margin: 0 auto 30px;
  max-width: 16em;
  font-size: clamp(28px, 4.8vw, 46px);
  line-height: 1.25;
  font-weight: 800;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }

.foot-in {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

footer .logo { margin-right: 0; }

footer p { margin: 0; color: var(--muted); font-size: 13px; }

footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color 0.2s var(--ease); }
footer nav a:hover { color: var(--accent); }

/* ---------- 553+ ---------- */

@media only screen and (min-width: 553px) {
  body { font-size: 16px; }
  .wrap { padding-left: 0; padding-right: 0; }
  .top-in, .hero .wrap, .block .wrap, .final .wrap, .foot-in { padding-left: 24px; padding-right: 24px; }
  .menu { display: flex; }
  .hero { padding: 88px 0 64px; }
  .row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .row.rev .art { order: 2; }
  .duo { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 960+ ---------- */

@media only screen and (min-width: 960px) {
  .hero { padding: 110px 0 80px; }
  .block { padding: 88px 0 8px; }
  .final { padding: 120px 0 130px; }
  .art { height: 256px; }
  .foot-in { flex-direction: row; align-items: center; }
  footer nav { margin-left: auto; }
}

@media (max-width: 552px) {
  .live .tag { display: none; }
  .btn { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .top-in { gap: 10px; }
  .logo .word { font-size: 12px; letter-spacing: 0.04em; }
  .go { padding: 8px 14px; font-size: 13px; }
  .lang summary { padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
