@font-face {
  font-family: "Dominique";
  src: url("assets/fonts/Dominique-Black.woff2") format("woff2"),
       url("assets/fonts/Dominique-Black.woff") format("woff");
  font-weight: 900;
  font-display: swap;
}

:root {
  --blue: #0041ff;
  --pink: #ffa1f4;
  --black: #000;
  --white: #fff;
  --muted: #9f9f9f;
  --gutter: clamp(16px, 1.5vw, 19px);

  /* One Figma pixel. The design frame is 1280 × 832, so the hero scales with
     whichever viewport dimension runs out first, keeping that aspect ratio. */
  --u: min(100vw / 1280, 100svh / 832);
}

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

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font-family: "Dominique", "Arial Narrow", Impact, sans-serif;
  overflow-x: hidden;
}

img { display: block; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter) 0;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 7px;
  border-radius: 56px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .2s;
}
.header-link:hover { background: var(--pink); }
.header-links { display: flex; gap: 8px; }

/* Sojur's icon, drawn in CSS until there's an image: a light grey tile with
   an S. The big one (the 3D tile's fallback) shows the S as an etched
   outline; .sojur-mini, the header pill's version, keeps a solid S. */
.sojur-mini, .sojur-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f4f5f7, #d9dbe0);
  color: #000;
  font-family: "Dominique", "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  line-height: 1;
}
.sojur-mini {
  width: 22px;
  height: 22px;
  border-radius: 22.37%;
  font-size: 15px;
  padding-top: 1px;
}
.sojur-icon {
  font-size: 124px;
  color: transparent;
  -webkit-text-stroke: 3px rgba(60, 64, 72, .7);
  text-shadow: -1px -1px 0 rgba(255, 255, 255, .9);
}
.header-link img { width: 22px; height: 22px; border-radius: 22.37%; }

.brand {
  position: relative;
  display: block;
  width: 132px;
  aspect-ratio: 132 / 35.304;
  transition: opacity .2s;
}
.brand:hover { opacity: .75; }
.brand-mark {
  position: absolute;
  top: 16.37%; left: 6.15%;
  width: 14.21%; height: 60.18%;
}
.brand-wordmark {
  position: absolute;
  left: 24.8%; top: 20.85%;
  width: 65.34%; height: 53.18%;
}

/* Hero: every size is in Figma pixels (--u). Headline sits at y=223, the
   pyramid at y=318 overlapping it, and "stay tuned" at y=589. */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(60 * var(--u)) var(--gutter) calc(80 * var(--u));
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  color: var(--blue);
  font-weight: 900;
  font-size: calc(100 * var(--u));
  line-height: 0.845;
}
.hero h1 span { white-space: nowrap; }

.pyramid {
  position: relative;
  width: calc(209.059 * var(--u));
  height: calc(236.933 * var(--u));
  margin-top: calc(-74 * var(--u));
}
.pyramid img {
  width: 100%;
  height: 100%;
  animation: hover 6s ease-in-out infinite;
}
/* pyramid-3d.js draws into this canvas. It overflows the pyramid's box so
   the spinning solid has room, without changing the page layout. The flat
   SVG shows until the first frame, and stays if WebGL is unavailable. */
.pyramid canvas {
  position: absolute;
  inset: -35% -60%;
  width: 220%;
  height: 170%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.pyramid.is-3d canvas { opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .22)); }
.pyramid.is-3d img { opacity: 0; transition: opacity .3s ease; }

.stay-tuned {
  margin-top: calc(34 * var(--u));
  color: var(--pink);
  font-weight: 900;
  font-size: calc(24 * var(--u));
  line-height: 0.845;
}

@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(calc(-8 * var(--u))); }
}

@media (prefers-reduced-motion: reduce) {
  .pyramid img { animation: none; }
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 62px;
  min-height: 31px;
  padding: 8px var(--gutter);
  background: rgba(0, 0, 0, .5);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.site-footer a { padding: 6px 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--white); text-decoration-color: currentColor; }
.site-footer a[aria-current="page"] { color: var(--white); }

/* Keyboard focus, visible on black */
a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hazel app page */
.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--gutter) 64px;
}

/* The icon stage. The flat PNG shows until glass-icon.js draws its first
   frame into the canvas, then fades out; without WebGL it simply stays. */
.app-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(260px, 34vw, 420px);
  aspect-ratio: 1;
  margin: -24px 0 -36px;
}
.app-hero > * { grid-area: 1 / 1; }
.app-hero canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
}
.app-hero.is-3d canvas { opacity: 1; }
.app-hero.is-3d .app-icon { opacity: 0; transition: opacity .3s ease; }

.app-icon {
  width: 160px;
  height: 160px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08),
              0 18px 48px rgba(255, 161, 244, .16),
              0 6px 16px rgba(0, 0, 0, .6);
}

.app-name {
  margin-top: 32px;
  color: var(--blue);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 120px);
  line-height: .845;
  text-transform: uppercase;
}

.app-tagline {
  margin-top: 20px;
  max-width: 22ch;
  color: var(--pink);
  font-weight: 900;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1;
  text-transform: uppercase;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 36px;
  padding: 0 24px;
  border-radius: 56px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.store-button.soon {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #b8b8b8;
  cursor: default;
}
a.store-button {
  background: var(--white);
  color: var(--black);
  transition: background-color .2s;
}
a.store-button:hover { background: var(--pink); }

.app-links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
}
.app-links a { color: #cfcfcf; text-decoration: underline; text-underline-offset: 3px; }
.app-links a:hover { color: var(--white); }

/* Text pages: privacy, terms, support */
.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e6e6e6;
}
.doc h1 {
  font-family: "Dominique", "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 9vw, 72px);
  line-height: .845;
  color: var(--blue);
  text-transform: uppercase;
}
.doc .meta { margin-top: 16px; color: #b8b8b8; font-size: 14px; }
.doc h2 {
  margin-top: 40px;
  font-family: "Dominique", "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: var(--pink);
  text-transform: uppercase;
}
.doc h3 { margin-top: 24px; font-size: 17px; line-height: 1.4; color: var(--white); }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--white); }
.doc a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--pink); }
.doc .lead { margin-top: 24px; font-size: 18px; }
.email {
  display: inline-block;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
}

/* Phones: scale the hero off width alone so the headline fills the screen
   instead of shrinking with the tall viewport. */
@media (max-width: 720px) {
  :root { --u: calc((100vw - 32px) / 829); }
  .brand { width: 110px; }
  .stay-tuned { font-size: 18px; margin-top: 28px; }
  .site-footer { gap: 6px 20px; padding: 10px var(--gutter); }
  .site-footer > span { flex-basis: 100%; text-align: center; }
  .doc { padding-top: 32px; }
}
