:root {
  --page: #fbfbfc;
  --ink: #171719;
  --muted: #626872;
  --quiet: #8b929b;
  --line: rgba(23, 23, 25, 0.12);
  --line-strong: rgba(23, 23, 25, 0.18);
  --panel: rgba(255, 255, 255, 0.72);
  --spark: #6de7ca;
  --steel: #dfe5ec;
  --button: #171719;
  --button-hover: #050506;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(251, 251, 252, 0.92) 36%, rgba(244, 245, 247, 0.98) 100%),
    var(--page);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0%, transparent 21%, rgba(255, 255, 255, 0.58) 35%, transparent 49%),
    linear-gradient(180deg, rgba(23, 23, 25, 0.018) 0%, transparent 42%, rgba(23, 23, 25, 0.026) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
}

.brand__icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow:
    0 7px 12px rgba(18, 24, 32, 0.15),
    0 2px 4px rgba(18, 24, 32, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(30px, 5vw, 72px);
  min-height: auto;
  align-items: center;
  padding: 32px 0 30px;
}

.hero__icon {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow:
    0 18px 26px rgba(18, 24, 32, 0.20),
    0 7px 10px rgba(18, 24, 32, 0.14),
    0 2px 4px rgba(18, 24, 32, 0.10);
}

.hero__copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: clamp(2.95rem, 6.2vw, 4.85rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero p {
  max-width: 600px;
  color: #333840;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.34;
}

.wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 760;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--spark);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.13em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--button);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.1;
  box-shadow: 0 14px 34px rgba(23, 23, 25, 0.16);
}

.button:hover {
  background: var(--button-hover);
}

.button:focus-visible {
  outline: 3px solid rgba(117, 131, 148, 0.34);
  outline-offset: 4px;
}

.phone-shot,
.detail-shot {
  margin: 0;
}

.phone-shot {
  justify-self: end;
  display: grid;
  gap: 14px;
  width: min(100%, 292px);
}

.phone-frame,
.detail-shot img {
  display: block;
  width: 100%;
  background: #f3f4fa;
  border: 1px solid rgba(23, 23, 25, 0.10);
  box-shadow:
    0 34px 60px rgba(18, 24, 32, 0.18),
    0 8px 18px rgba(18, 24, 32, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.phone-frame {
  aspect-ratio: 368 / 560;
  overflow: hidden;
  border-radius: 34px;
}

.phone-frame img,
.detail-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-shot img {
  border: 1px solid rgba(23, 23, 25, 0.10);
}

.phone-shot figcaption {
  color: #69717b;
  font-size: 0.86rem;
  text-align: center;
}

.intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro div {
  display: grid;
  gap: 10px;
}

.intro h2,
.section-heading h2,
.receipt h2 {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 730;
  letter-spacing: 0;
  line-height: 1.02;
}

.intro p,
.section-heading p,
.receipt p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.48;
}

.options {
  display: grid;
  gap: 26px;
  padding: 58px 0 60px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 710px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-height: 180px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.60)),
    var(--panel);
  box-shadow:
    0 16px 38px rgba(18, 24, 32, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.option h3 {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 760;
}

.option p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.42;
}

.option code,
.receipt code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

.option code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 7px 8px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(23, 23, 25, 0.10);
  border-radius: 6px;
  background: rgba(241, 244, 247, 0.82);
  color: #2d333a;
  font-size: 0.78rem;
  line-height: 1.2;
}

.option--inactive h3,
.option--inactive p {
  color: var(--quiet);
}

.option--canceled h3,
.option--canceled p {
  text-decoration: line-through;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.state-glyph {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--ink);
}

.state-glyph--open {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.state-glyph--done {
  border-radius: 999px;
  background: currentColor;
}

.state-glyph--moved::before,
.state-glyph--backlog::before {
  content: "";
  position: absolute;
  top: 1px;
  width: 15px;
  height: 15px;
  background: var(--muted);
}

.state-glyph--moved::before {
  left: 1px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.state-glyph--backlog::before {
  right: 1px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.state-glyph--canceled {
  border: 2px solid var(--quiet);
  border-radius: 999px;
}

.state-glyph--detail::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.state-glyph--canceled::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--quiet);
  transform: translate(-50%, -50%);
}

.receipt {
  display: grid;
  grid-template-columns: minmax(240px, 368px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: 4px 0 28px;
}

.detail-shot img {
  border-radius: 22px;
}

.receipt__copy {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.receipt pre {
  margin: 4px 0 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #171719;
  color: #f5f7f8;
  box-shadow: 0 18px 36px rgba(23, 23, 25, 0.16);
}

.receipt code {
  font-size: 0.92rem;
  line-height: 1.62;
}

.footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--quiet);
  font-size: 0.92rem;
}

@media (max-width: 840px) {
  .hero,
  .intro,
  .receipt {
    grid-template-columns: 1fr;
  }

  .phone-shot {
    justify-self: start;
    width: min(100%, 262px);
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page,
  .footer {
    width: min(100% - 28px, 720px);
  }

  .page {
    padding-top: 18px;
  }

  .brand {
    min-height: 44px;
  }

  .hero {
    gap: 22px;
    min-height: auto;
    padding: 28px 0 28px;
  }

  .hero__icon {
    width: 92px;
    height: 92px;
    border-radius: 21px;
  }

  .hero__copy {
    gap: 16px;
  }

  h1 {
    font-size: clamp(2.28rem, 10.8vw, 3.02rem);
    line-height: 0.96;
  }

  .hero p {
    font-size: 1.02rem;
    line-height: 1.38;
  }

  .button {
    width: 100%;
  }

  .phone-shot {
    justify-self: center;
    width: min(100%, 252px);
    gap: 0;
  }

  .phone-frame {
    aspect-ratio: 368 / 390;
    border-radius: 24px;
  }

  .phone-shot figcaption {
    display: none;
  }

  .intro {
    padding: 22px 0 27px;
  }

  .options {
    padding: 42px 0 46px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .option {
    min-height: auto;
    padding: 17px;
  }

  .receipt {
    padding-bottom: 18px;
  }

  .detail-shot {
    width: 100%;
  }

  .receipt pre {
    padding: 15px;
  }
}
