@import url("./tokens.css?v=20261017y");

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Solitreo";
  src: url("/assets/fonts/solitreo-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   BASE
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button,
input {
  font: inherit;
}

section[id] {
  scroll-margin-top: 84px;
}

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

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  position: relative;
  isolation: isolate;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-chip);
  box-shadow: var(--shadow-glass-chip);
  -webkit-backdrop-filter: blur(10px) saturate(190%) brightness(1.06);
  backdrop-filter: blur(10px) saturate(190%) brightness(1.06);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}

.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: var(--glass-chip-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.badge__icon {
  width: 13px;
  height: 14px;
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--paper);
  transition:
    background-color 0.25s var(--ease-micro),
    border-color 0.25s var(--ease-micro),
    box-shadow 0.25s var(--ease-micro);
}

.nav-wrap--scrolled {
  border-bottom-color: var(--parkly-hairline);
  box-shadow: var(--shadow-nav);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-wrap {
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
  }

  .nav-wrap--scrolled {
    background: var(--nav-surface);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: min(1080px, 100%);
  height: 60px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-xs);
}

.nav__lockup {
  height: 28px;
  width: auto;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link,
.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease-micro), border-color 0.16s var(--ease-micro);
}

.nav__link {
  border-color: var(--parkly-hairline-strong);
  background: var(--parkly-surface);
  color: var(--ink);
}

.nav__link:hover {
  border-color: var(--ink-faint);
  background: var(--paper);
}

.nav__link[aria-current="page"] {
  border-color: var(--parkly-green);
  background: var(--parkly-mint);
  color: var(--parkly-green);
}

.nav__cta {
  background: var(--parkly-green);
  color: var(--parkly-surface);
}

.nav__cta:hover {
  background: var(--green-hover);
}

.nav a:focus-visible,
.cta:focus-visible,
.notify__submit:focus-visible {
  outline: 2px solid var(--parkly-green);
  outline-offset: 3px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 136px 24px 0;
  text-align: center;
}

.hero__title {
  margin: 20px 0 22px;
  font-size: clamp(3.4rem, 9vw, 8.2rem);
}

.scribble {
  position: relative;
  display: inline-block;
  padding: 0 0.18em 0.24em;
}

.scribble__word {
  display: inline-block;
  padding: 0.02em 0.06em 0.08em;
  font-family: var(--font-script);
  font-size: 0.84em;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--pencil-black);
  filter: url("#pencil-text");
  transform: rotate(-2deg);
}

.scribble__line {
  position: absolute;
  left: 6%;
  bottom: 0.04em;
  width: 88%;
  height: 0.26em;
  overflow: visible;
}

.scribble__stroke {
  fill: none;
  stroke: var(--parkly-green);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: url("#pencil-grain");
  opacity: 0.92;
  animation: scribble-draw 0.9s var(--ease-micro) 0.7s forwards;
}

.scribble__stroke--echo {
  stroke-width: 3.5;
  opacity: 0.55;
  animation-duration: 0.6s;
  animation-delay: 1.45s;
}

@keyframes scribble-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__lede {
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-pill);
}

.cta__icon,
.cta__label {
  background: var(--parkly-green);
  color: var(--parkly-surface);
  transition: background-color 0.18s var(--ease-micro);
}

.cta__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.cta__icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.cta__label {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 1.0625rem;
  font-weight: 600;
}

.cta:hover .cta__icon,
.cta:hover .cta__label {
  background: var(--green-hover);
}

.cta:hover .cta__icon svg {
  transform: rotate(45deg);
}
/* ==========================================================================
   SHOWCASE
   Phone sizes derive from --pw. Screen radius and Dynamic Island follow
   iPhone 16 Pro proportions (402 × 874 pt screen).
   ========================================================================== */

.showcase {
  --pw: clamp(170px, 21vw, 250px);
  width: 100%;
  margin-top: 64px;
}

.showcase__card {
  position: relative;
  height: calc(var(--pw) * 2.24);
  margin-top: calc(var(--pw) * 0.2);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.18) 100%),
    url("/assets/images/yyc-skyline.jpg") center 50% / cover no-repeat;
}

.phone {
  position: absolute;
  width: var(--pw);
  margin: 0;
  animation: phone-rise 1s var(--ease-spring) both;
}

.phone--left {
  top: calc(var(--pw) * -0.16);
  left: calc(50% - var(--pw) * 1.06);
  animation-delay: 0.45s;
}

.phone--right {
  top: calc(var(--pw) * 0.28);
  left: calc(50% + var(--pw) * 0.1);
  animation-delay: 0.6s;
}

.phone--right .phone__frame {
  box-shadow:
    inset 0 0 0 1.5px var(--phone-metal),
    var(--shadow-phone-ink);
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

.phone__frame {
  position: relative;
  padding: calc(var(--pw) * 0.035);
  border-radius: calc(var(--pw) * 0.17);
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1.5px var(--phone-metal),
    0 30px 60px -18px rgba(0, 0, 0, 0.45),
    0 10px 24px -10px rgba(0, 0, 0, 0.3);
}

.phone__btn {
  position: absolute;
  z-index: -1;
  width: calc(var(--pw) * 0.018);
  border-radius: 2px;
  background: var(--phone-metal);
}

.phone__btn--action,
.phone__btn--vol-up,
.phone__btn--vol-down {
  left: calc(var(--pw) * -0.011);
}

.phone__btn--action {
  top: 16%;
  height: 4.5%;
}

.phone__btn--vol-up {
  top: 23.5%;
  height: 7.5%;
}

.phone__btn--vol-down {
  top: 33%;
  height: 7.5%;
}

.phone__btn--power {
  right: calc(var(--pw) * -0.011);
  top: 26%;
  height: 11%;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--pw) * 0.135);
  background: #000;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone__island {
  position: absolute;
  z-index: 2;
  top: 1.26%;
  left: 50%;
  width: 31.3%;
  aspect-ratio: 126 / 37;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: #000;
}

/* ==========================================================================
   WAITLIST
   ========================================================================== */

.waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 112px 24px var(--space-xxxl);
  text-align: center;
}

.waitlist__title {
  margin: 20px 0 20px;
  font-size: clamp(2.9rem, 7vw, 6rem);
}

.waitlist__lede {
  max-width: 500px;
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

.notify {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 800px);
  margin-top: 40px;
}

.notify__pill {
  --pill-gap: var(--space-sm);
  --label-rise: 7px;

  display: flex;
  align-items: center;
  padding: calc(var(--pill-gap) + var(--label-rise)) var(--pill-gap) var(--pill-gap);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--parkly-surface);
}

.notify__body {
  width: 100%;
}

.lucide {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notify__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: var(--pill-gap);
}

.field {
  --input-inset: 22px;
  --label-pad: 6px;

  position: relative;
  min-width: 0;
}

.field__label {
  position: absolute;
  top: 0;
  left: calc(var(--input-inset) + 1px - var(--label-pad));
  max-width: calc(100% - 2 * var(--input-inset));
  padding: 0 var(--label-pad);
  transform: translateY(-50%);
  background: var(--parkly-surface);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: color 0.15s var(--ease-micro);
}

.field__input {
  width: 100%;
  height: 50px;
  padding: 0 var(--input-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--parkly-surface);
  color: var(--ink);
  font-size: 0.9375rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.15s var(--ease-micro),
    box-shadow 0.15s var(--ease-micro);
}

.field__input::placeholder {
  color: var(--ink-faint);
}

.field__input:hover {
  border-color: var(--ink-faint);
}

.field__input:focus {
  border-color: var(--parkly-green);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field:focus-within .field__label {
  color: var(--parkly-green);
}

.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--parkly-surface) inset;
}

.field__input[aria-invalid="true"] {
  border-color: var(--error-ink);
}

.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px var(--error-ring);
}

.field:has(.field__input[aria-invalid="true"]) .field__label {
  color: var(--error-ink);
}

.notify__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-width: 156px;
  max-width: 240px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--parkly-green);
  color: var(--parkly-surface);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease-micro),
    transform 0.15s var(--ease-micro);
}

#notify-submit-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.notify__submit:hover {
  background: var(--green-hover);
}

.notify__submit:active {
  transform: scale(0.98);
}

.notify__submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.notify__spinner {
  display: none;
}

.notify--loading .notify__spinner {
  display: block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.notify__errors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.notify__errors:has(.field__error:not(:empty)) {
  margin-top: var(--space-md);
}

.field__error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error-ink);
  text-align: center;
}

.field__error:empty {
  display: none;
}

.notify--success .notify__body {
  display: none;
}

.notify__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  min-height: 50px;
  padding: 0 var(--space-xxs) 0 var(--space-xxl);
  translate: 0 calc(-0.5 * var(--label-rise));
  text-align: left;
  animation: rise 0.45s var(--ease-spring) both;
}

.notify__success[hidden] {
  display: none;
}

.notify__success-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.success-check {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: check-pop 0.32s var(--ease-spring) 0.62s both;
}

.success-check__ring {
  fill: var(--parkly-green);
  fill-opacity: 0;
  stroke: var(--parkly-green);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  transform: rotate(-90deg);
  transform-origin: center;
  animation:
    check-ring 0.55s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards,
    check-fill 0.25s ease-out 0.55s forwards;
}

.success-check__tick {
  fill: none;
  stroke: var(--parkly-surface);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: check-tick 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes check-ring {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes check-fill {
  to {
    fill-opacity: 1;
  }
}

@keyframes check-tick {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes check-pop {
  50% {
    transform: scale(1.1);
  }
}

.notify__success-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

.notify__success-text {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.waitlist__sticker {
  width: clamp(128px, 12vw, 156px);
  height: auto;
  margin-top: var(--space-xxl);
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-credit {
  padding: 26px 24px 30px;
  border-top: 1px solid var(--parkly-hairline);
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   LOAD MOTION
   ========================================================================== */

.reveal {
  animation: rise 0.8s var(--ease-spring) both;
}

.hero > .reveal:nth-child(2),
.page > .reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.hero > .reveal:nth-child(3),
.page > .reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.hero > .reveal:nth-child(4),
.page > .reveal:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ==========================================================================
   SUBPAGES (privacy, 404)
   ========================================================================== */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  padding: 136px 24px 96px;
  text-align: center;
}

.page__title {
  margin: 20px 0 22px;
  font-size: clamp(3rem, 8vw, 6.4rem);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 720px) {
  .nav {
    height: 56px;
    padding: 0 var(--space-md);
  }

  .nav__lockup {
    height: 24px;
  }

  .nav__actions {
    gap: 6px;
  }

  .nav__link,
  .nav__cta {
    height: 34px;
    padding: 0 var(--space-sm);
    font-size: 0.8125rem;
  }

  .hero {
    padding-top: 112px;
  }

  .page {
    padding: 112px 20px 72px;
  }

  .showcase {
    --pw: 42vw;
    margin-top: 48px;
  }

  .waitlist {
    padding: 88px 20px var(--space-xxl);
  }

  .notify__pill {
    --pill-gap: var(--space-md);

    border-radius: calc(25px + var(--pill-gap));
  }

  .notify__form {
    grid-template-columns: minmax(0, 1fr);
    row-gap: calc(var(--pill-gap) + var(--label-rise));
  }

  .field__input {
    font-size: 16px;
  }

  .notify__submit {
    width: 100%;
    max-width: none;
    margin-top: calc(-1 * var(--label-rise));
  }

  .notify__success {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-xs) var(--space-md);
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
