:root {
  --paper: #faf9f7;
  --card: #ffffff;
  --ink: #23232b;
  --dim: #6f6f7a;
  --line: rgba(35, 35, 43, 0.13);
  --line-strong: rgba(35, 35, 43, 0.3);
  --strike: rgba(35, 35, 43, 0.42);
  --max-width: 720px;
  --display: "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(100% - 44px, var(--max-width));
  margin-inline: auto;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  padding-block: 84px 34px;
}

h1,
h2,
.name,
.contact h3 {
  font-family: var(--display);
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(29px, 5.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

h1 .u {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

h1 .u::after {
  position: absolute;
  top: 57%;
  left: -0.04em;
  width: calc(100% + 0.08em);
  height: 4px;
  border-radius: 3px;
  background: var(--strike);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.62s cubic-bezier(0.2, 0.9, 0.3, 1) 0.5s;
}

body.ready h1 .u::after {
  transform: scaleX(1);
}

.lede {
  max-width: 33em;
  color: var(--dim);
  font-size: 15px;
}

section {
  padding-block: 34px;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h2::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.product {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}

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

.icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--line-strong);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
}

.icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.symptom {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 14px;
}

.symptom::after {
  position: absolute;
  top: 53%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--strike);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.product.seen .symptom::after {
  transform: scaleX(1);
}

.upcoming .product.seen .symptom::after {
  transform: scaleX(0.4);
}

.upcoming .symptom::after {
  opacity: 0.55;
}

.upcoming .product.full-strike.seen .symptom::after {
  transform: scaleX(1);
}

.upcoming .product.full-strike .symptom::after {
  opacity: 1;
}

.name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.tag {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.desc {
  max-width: 36em;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 14.5px;
}

.links,
.side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.side {
  gap: 9px;
  padding-top: 8px;
}

.btn {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

a.btn:hover {
  background: rgba(35, 35, 43, 0.05);
  text-decoration: none;
}

.btn.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

a.btn.primary:hover {
  background: #000000;
}

.btn.quiet {
  padding-inline: 6px;
  border-color: transparent;
  color: var(--dim);
}

a.btn.quiet:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
}

.todo-link {
  cursor: default;
  opacity: 0.52;
  user-select: none;
}

.side .btn {
  border-radius: 999px;
}

.contact {
  margin-top: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.contact h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 800;
}

.contact p {
  margin-bottom: 14px;
  color: var(--dim);
  font-size: 14.5px;
}

.mail {
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 34px;
  padding-block: 40px 88px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

footer .sig {
  letter-spacing: 0.02em;
}

/* ---------- privacy / support pages ---------- */
.subpage .page-header {
  padding-block: 60px 28px;
}

.subpage .back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--dim);
  font-size: 14px;
}

.subpage .page-header h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 38px);
}

.subpage .page-intro {
  max-width: 42em;
  color: var(--dim);
  font-size: 16px;
}

.legal {
  padding-block: 12px 48px;
}

.legal h2 {
  display: block;
  margin: 34px 0 8px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0;
}

.legal h2::after {
  display: none;
}

.legal p,
.legal li {
  font-size: 16px;
}

.legal ul {
  padding-left: 1.4em;
}

.legal li + li {
  margin-top: 6px;
}

.legal .meta {
  color: var(--dim);
  font-size: 14px;
}

.support-details {
  display: grid;
  gap: 16px;
  padding-block: 12px 48px;
}

.support-details .contact {
  margin-top: 0;
}

.support-details h2 {
  margin-bottom: 12px;
}

.support-details ul {
  padding-left: 1.4em;
  font-size: 16px;
}

.support-details li + li {
  margin-top: 5px;
}

.support-note {
  color: var(--dim);
  font-size: 14px;
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 36px, var(--max-width));
  }

  .hero {
    padding-top: 64px;
  }

  h1 .u {
    white-space: normal;
  }

  .product {
    grid-template-columns: 40px 1fr;
    column-gap: 13px;
  }

  .icon {
    width: 40px;
    height: 40px;
    margin-top: 20px;
    border-radius: 11px;
    font-size: 15px;
  }

  .contact {
    padding: 22px;
  }

  .subpage .page-header {
    padding-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .symptom::after,
  h1 .u::after {
    transition: none;
  }
}
