/* gatehier.com: quiet ink and paper, with each product's own colour. Our own design, no kits. */
:root {
  --bg: #fbfbfa;
  --bg-2: #f1f1ef;
  --card: #ffffff;
  --ink: #141416;
  --ink-2: #3c3d42;
  --muted: #6d6e74;
  --line: rgba(20, 20, 22, 0.09);
  --kontour: #2fd39f;
  --inly: #ff6b3d;
  --drive: #3b82f6;
  --shadow: 0 1px 2px rgba(20, 20, 22, 0.04), 0 18px 50px -24px rgba(20, 20, 22, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-2: #151517;
    --card: #17171a;
    --ink: #f4f4f2;
    --ink-2: #d4d4d0;
    --muted: #9b9ca2;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 50px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ink) 35%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 10px;
}

/* The mark */
.mark rect {
  fill: var(--ink);
}
.mark path {
  fill: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}
.top nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.top nav a:hover {
  color: var(--ink);
}
.pill-link {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-light {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.btn-light-on-dark {
  background: #fff;
  color: #141416;
}
.btn-ghost-on-dark {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 24px;
}
.soft {
  background: linear-gradient(100deg, var(--kontour), var(--drive) 50%, var(--inly));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-art {
  position: relative;
}
.gates {
  width: 100%;
  height: auto;
  overflow: visible;
}
.gate {
  transform-box: fill-box;
  animation: rise-in 0.9s var(--ease) both;
}
.gate rect {
  stroke: var(--bg);
  stroke-width: 4;
}
.gate path {
  fill: #fff;
}
.g4 rect {
  fill: var(--kontour);
}
.g3 rect {
  fill: var(--inly);
}
.g2 rect {
  fill: var(--drive);
}
.g1 rect {
  fill: var(--ink);
}
.g1 path {
  fill: var(--bg);
}
.g4 {
  animation-delay: 0.05s;
}
.g3 {
  animation-delay: 0.15s;
}
.g2 {
  animation-delay: 0.25s;
}
.g1 {
  animation-delay: 0.35s;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate(-30px, 30px);
  }
}
.tag {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  animation: float 6s ease-in-out infinite;
}
.tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
}
.t1 {
  right: 0;
  top: 4%;
}
.t1::before {
  background: var(--kontour);
}
.t2 {
  right: -2%;
  top: 34%;
  animation-delay: -2s;
}
.t2::before {
  background: var(--inly);
}
.t3 {
  right: 8%;
  top: 62%;
  animation-delay: -4s;
}
.t3::before {
  background: var(--drive);
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* Sections */
.products,
.how,
.account {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px;
}
.products h2,
.how h2,
.account h2,
.band h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
}
.section-lead {
  margin: 14px 0 34px;
  color: var(--muted);
  font-size: 18px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product {
  --tone: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.product::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.product:hover {
  transform: translateY(-4px);
}
.product.kontour {
  --tone: var(--kontour);
}
.product.inly {
  --tone: var(--inly);
}
.product.drive {
  --tone: var(--drive);
}
.product img {
  border-radius: 14px;
}
.product h3 {
  font-size: 26px;
}
.product p {
  color: var(--muted);
  flex: 1;
}
.go {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
}
.product:hover .go span {
  display: inline-block;
  transform: translateX(3px);
  transition: transform 0.2s;
}

/* One account */
.account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.account h2 {
  margin-bottom: 22px;
}
.points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  color: var(--ink-2);
}
.points li {
  position: relative;
  padding-left: 30px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.points strong {
  color: var(--ink);
}
.account-art {
  padding: 20px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.account-art svg {
  width: 100%;
  height: auto;
}
.wire {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  animation: flow 1.6s linear infinite;
  opacity: 0.6;
}
@keyframes flow {
  to {
    stroke-dashoffset: -22;
  }
}
.node.center rect {
  fill: var(--ink);
}
.node.center path {
  fill: var(--card);
}
.node.bill rect {
  fill: var(--bg-2);
  stroke: var(--line);
}
.node.bill path {
  stroke: var(--ink-2);
  stroke-width: 4;
  stroke-linecap: round;
}
.account-art text {
  fill: var(--ink-2);
  font: 600 14px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* How we work */
.how-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.how-grid > div {
  background: var(--card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.num {
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.how-grid h3 {
  font-size: 21px;
}
.how-grid p {
  color: var(--muted);
}

/* Band */
.band {
  margin: 50px auto 80px;
  max-width: 1132px;
  padding: 64px 40px;
  border-radius: 36px;
  background: radial-gradient(500px 300px at 15% 0%, color-mix(in srgb, var(--kontour) 35%, transparent), transparent 70%),
    radial-gradient(500px 300px at 85% 100%, color-mix(in srgb, var(--inly) 35%, transparent), transparent 70%), #141416;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.band p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) {
  .band {
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 44px 24px 30px;
}
.foot-inner {
  max-width: 1132px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.foot-cols div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.foot-cols p {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.foot-cols a {
  text-decoration: none;
  color: var(--ink-2);
}
.foot-cols a:hover {
  color: var(--ink);
}
.legal {
  max-width: 1132px;
  margin: 34px auto 0;
  font-size: 13px;
  color: var(--muted);
}

/* Smaller screens */
@media (max-width: 900px) {
  .hero,
  .account {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 420px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
  .top nav a:not(.pill-link) {
    display: none;
  }
}
@media (max-width: 560px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 24px;
  }
  .band {
    margin: 30px 16px 60px;
    padding: 48px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Not found */
.lost-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.lost-main h1 {
  font-size: clamp(30px, 5vw, 48px);
}
.lost-main p {
  color: var(--muted);
  margin-bottom: 8px;
}
