@font-face {
  font-family: Inter;
  src: url("fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fefdf9;
  --page: #e7e1d8;
  --ink: #1c1917;
  --body: #3f3c38;
  --muted: #6f6a64;
  --soft: #8a847c;
  --follow: #b0aeaa;
  --follow-hover: #a3a09b;
  --wait: #e6ddd2;
  --wait-text: #5c5854;
  --track: #e4d9cc;
  --ready: #1c1917;
  --shadow: 0 18px 50px rgba(32, 26, 20, 0.2);
  --card-radius: 28px;
  --btn-radius: 14px;
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

html:not(.is-unlocked),
html:not(.is-unlocked) body {
  height: 100%;
  overflow: hidden;
}

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  padding:
    max(28px, env(safe-area-inset-top))
    20px
    max(36px, env(safe-area-inset-bottom));
  overflow: hidden;
  transition: filter 0.35s ease, transform 0.35s ease;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.stage::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -70px;
  background: #f6f1e8;
}

.stage::after {
  width: 200px;
  height: 200px;
  left: -80px;
  bottom: 20px;
  background: #ddd4c8;
}

html:not(.is-unlocked):not(.is-revealing) .stage {
  filter: blur(13px);
  transform: scale(1.045);
  transform-origin: center center;
  user-select: none;
}

.sheet {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin: 0 auto;
  padding-top: 8px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kicker {
  margin-top: 28px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
}

.tool-title {
  margin-top: 6px;
  max-width: 11em;
  font-size: clamp(2rem, 8.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.spec {
  margin-top: 18px;
  padding: 16px 16px 17px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(28, 25, 23, 0.04),
    0 12px 32px rgba(28, 25, 23, 0.06);
}

.spec p {
  color: var(--body);
  font-size: 16.5px;
  letter-spacing: -0.011em;
  line-height: 1.45;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 22px;
}

.highlights div {
  padding: 0 10px;
  border-left: 1px solid #d9d1c6;
}

.highlights div:first-child {
  padding-left: 0;
  border-left: 0;
}

.highlights dt {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlights dd {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
}

.open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: var(--btn-radius);
  background: var(--ready);
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
}

.open-btn svg {
  flex: 0 0 auto;
}

.credit {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.credit a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.credit a:hover {
  text-decoration: underline;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top))
    16px
    max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(62, 56, 50, 0.38);
  transition: opacity 0.28s ease;
}

html.is-revealing .gate {
  opacity: 0;
  pointer-events: none;
}

html.is-unlocked .gate {
  display: none;
}

.card {
  position: relative;
  width: min(100%, 400px);
  margin: auto;
  padding: 22px 20px 18px;
  background: var(--paper);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.madeby {
  flex: 0 1 auto;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  text-decoration: none;
}

.madeby:hover {
  color: var(--ink);
}

.avatar {
  width: 56px;
  height: 56px;
  margin: 16px 0 14px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2724;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ece6de;
}

#gateTitle {
  max-width: 11em;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.lede {
  margin-top: 8px;
  color: var(--body);
  font-size: 15.5px;
  letter-spacing: -0.011em;
  line-height: 1.4;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--btn-radius);
  font: 600 15.5px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -0.012em;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.btn-follow {
  color: #fff;
  background: var(--follow);
  text-decoration: none;
}

.tick {
  display: none;
  flex: 0 0 auto;
}

.btn-follow.is-done .tick {
  display: block;
}

.progress {
  height: 3px;
  margin: 14px 0 0;
  overflow: hidden;
  background: var(--track);
  border-radius: 99px;
}

.progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ready);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
}

.btn-unlock {
  margin-top: 12px;
  color: var(--wait-text);
  background: var(--wait);
  cursor: default;
}

.btn-unlock:disabled {
  opacity: 1;
}

.btn-unlock.is-ready {
  color: var(--paper);
  background: var(--ready);
  cursor: pointer;
}

.hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) {
  .btn-follow:hover {
    background: var(--follow-hover);
  }

  .open-btn:hover,
  .btn-unlock.is-ready:hover {
    background: #2e2a27;
  }
}

.btn:active,
.open-btn:active {
  transform: scale(0.985);
}

.btn-unlock:disabled:active {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .gate,
  .btn,
  .open-btn {
    transition: none;
  }
}

@media (min-width: 840px) {
  .stage {
    display: grid;
    align-items: center;
  }

  .sheet {
    padding-top: 0;
    padding-bottom: 12px;
  }
}
