:root {
  --ink: #101010;
  --ink-2: #3a3a3a;
  --muted: #7c7c7c;
  --faint: #a9a9a9;
  --bg: #ffffff;
  --panel: #f6f6f5;
  --panel-2: #efeeec;
  --line: #e5e4e1;
  --line-2: #d8d7d3;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

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

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.sec-eyebrow {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.sec-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Logo marks (pure CSS/geometry) ---------- */
.mark {
  --s: 64px;
  font-family: var(--display);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mark.v2 {
  width: var(--s);
  height: var(--s);
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--s) * 0.27);
  font-weight: 600;
  font-size: calc(var(--s) * 0.34);
  letter-spacing: 0.02em;
}

/* ---------- Site header ---------- */
.site {
  padding-top: 8px;
}

header.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

#headerMark {
  --s: 38px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.bar-cta {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 17px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.bar-cta:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

@media (max-width: 560px) {
  .bar-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 78px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  margin: 0;
}

.hero p {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
  margin: 22px 0 0;
}

/* ---------- Apps grid ---------- */
.apps {
  padding: 64px 0 70px;
}

.apps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.count {
  font-family: var(--display);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.app {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.app:hover {
  border-color: var(--line-2);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.45);
}

.app-top {
  display: flex;
  gap: 18px;
  align-items: center;
}

.icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
}

.icon svg,
.icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-id h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0;
}

.app-id .tag {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 3px;
}

.stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.store .g {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--ink);
  flex: 0 0 auto;
}

.store.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.store.primary .g {
  background: #fff;
}

.store:hover {
  transform: translateY(-1px);
}

.store.ghost:hover {
  border-color: var(--ink);
}

.store.soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.store .soon-label {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.store .arrow {
  font-size: 11px;
  opacity: 0.6;
}

.app-foot {
  display: flex;
  gap: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 18px;
}

.policy {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--body);
  padding: 0;
  transition: color 0.15s;
}

.policy:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  margin: 0 0 80px;
  padding: clamp(48px, 7vw, 88px) clamp(32px, 6vw, 80px);
  text-align: center;
}

.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.05;
  margin: 0;
}

.contact p {
  color: #bdbdbd;
  font-size: clamp(16px, 2vw, 19px);
  margin: 18px auto 0;
  max-width: 46ch;
}

.mailbtn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  background: #fff;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 999px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.mailbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -18px rgba(255, 255, 255, 0.45);
}

.mailbtn .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- Footer ---------- */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 56px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot .brand2 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}

.foot .brand2 .mark {
  --s: 26px;
}

.foot small {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Modal ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 680px) {
  .scrim {
    align-items: center;
    padding: 40px;
  }
}

.modal {
  background: var(--bg);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(28px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 680px) {
  .modal {
    border-radius: 22px;
    max-height: 86vh;
    transform: scale(0.96) translateY(10px);
  }
}

.scrim.open .modal {
  transform: none;
}

.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.modal-head .k {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.modal-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  margin: 0;
}

.x {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.x:hover {
  background: var(--ink);
  color: #fff;
}

.modal-body {
  padding: 24px 28px 40px;
  overflow-y: auto;
}

.modal-body h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin: 26px 0 8px;
}

.modal-body h4:first-child {
  margin-top: 4px;
}

.modal-body p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 12px;
}

.modal-body .updated {
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 20px;
}

.modal-body ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
