/* Heel-Toe Labs. One page that says who the company is, what it makes and how to reach it. The
   product's own site carries everything else, including the privacy policy, terms and support.

   The brand color is Kurvenjäger's accent (KJBrand.accent, #ED9945). The page opens on it: the
   logo in black on the orange, deepening to burnt orange and fading to black, with everything
   else on black below. One look in light and dark mode alike. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-italic.woff2") format("woff2"); }
/* Sora is Kurvenjäger's typeface (kurvenjager.app), used only where the page speaks for the product.
   SIL Open Font License; subset to Latin from ~/Developer/kurvenjager-icon/assets/Sora.ttf. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/sora.woff") format("woff"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  --accent: #ED9945;          /* KJBrand.accent */
  --accent-deep: #CC6E29;     /* KJBrand.accentDeep, the burnt orange */
  --night: #1C1C1E;          /* iOS dark card gray (secondarySystemBackground), Brandon 2026-10-28 */
  --ink: #F4F4F4;            /* kurvenjager.app's text, on the same page gray */
  --muted: #9A9A9A;
  --card: #2C2C2E;           /* iOS tertiarySystemBackground: one step up from the page */
  --hairline: #38383A;       /* iOS opaqueSeparator */
  --rule: var(--hairline);
  --logo: var(--night);      /* one black: the page, the end of the fade and the logo */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --product: "Sora", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 880px;         /* room for an app tile to run wide beside its art */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--night); color: var(--ink);
  font: 400 17px/1.6 var(--display);
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--accent); color: var(--logo); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Content keeps one left edge and one measure, from the logo to the last line. */
.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* The orange. Tall enough to own the first screen; the fade takes its lower half, so the logo is
   always on orange and the line at the bottom is always on near black. */
.hero {
  min-height: 78vh; min-height: 78dvh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 48px 0 clamp(36px, 7vh, 64px);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 42%, var(--night) 100%);
  background: linear-gradient(in oklab 180deg, var(--accent) 0%, var(--accent-deep) 42%, var(--night) 100%);
}
.hero .wrap:first-child { align-self: center; padding-bottom: 8vh; }

/* The 08A mark beside HEEL-TOE / LABS, in black on the orange. */
.lockup { margin: 0; display: inline-flex; align-items: center; gap: 0.55em; font-size: clamp(28px, 9vw, 60px); color: var(--logo); text-decoration: none; }
.lockup svg { width: 1.9em; height: 1.9em; flex: none; }
.lockup svg path { fill: var(--logo); }
.lockup .words { display: flex; flex-direction: column; gap: 0.2em; font-style: italic; line-height: 1; }
.lockup .w1 { font-weight: 800; font-stretch: 118%; letter-spacing: -0.01em; white-space: nowrap; }
.lockup .w2 { font-weight: 600; font-stretch: 125%; letter-spacing: 0.55em; font-size: 0.33em; }

.line { margin: 0; max-width: 34ch; font-size: clamp(19px, 2.6vw, 22px); line-height: 1.45; }

.page { flex: 1; padding: 36px 0 64px; }
.page .wrap { display: grid; justify-items: start; gap: 22px; }
.page .mail { margin-top: 18px; }

/* "// Makers of": the logo's two bars, as punctuation. */
.makers { margin: 0; display: flex; align-items: baseline; gap: .6em; font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.makers-slashes { color: var(--accent); font-weight: 600; letter-spacing: -.08em; }

/* App tiles. Every app is a window into its own world beside its identity, in one frame. An app
   brings only a modifier class: --app-accent, --app-accent-deep, --app-font and --app-art (and its
   art images). The tile measures itself (container query), not the screen: wide with the art
   beside the copy when it has the room, stacked with the art on top when it does not. */
.apps { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.app-tile {
  --app-accent: var(--accent); --app-accent-deep: var(--accent-deep); --app-font: var(--display);
  --app-art: linear-gradient(165deg, var(--app-accent), var(--app-accent-deep));
  container-type: inline-size; position: relative; display: block; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--hairline); background: var(--card);
  color: var(--ink); text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.app-tile:hover { border-color: color-mix(in oklab, var(--app-accent) 55%, var(--hairline)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.app-frame { display: grid; grid-template-columns: minmax(0, 1fr); }

/* The art: the app's header in miniature. Topo and road come from the app's own generator. */
.app-art { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--app-art); }
.app-art-topo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.app-art-road { position: absolute; left: 50%; top: 46%; height: 135%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.app-art-phone {
  position: absolute; left: 50%; bottom: 0; width: 34%; aspect-ratio: 9 / 19.5;
  transform: translate(-50%, 58%) rotate(-5deg); transform-origin: 50% 100%;
  border-radius: 26px; border: 5px solid #0C0C0C; background: #0C0C0C; overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .7); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.app-art-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.app-body { display: grid; align-content: center; gap: 12px; padding: clamp(18px, 7cqi, 26px) clamp(18px, 7cqi, 26px) clamp(18px, 6cqi, 24px); font-family: var(--app-font); }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-icon { width: clamp(44px, 15cqi, 60px); height: auto; aspect-ratio: 1; border-radius: 22.37%; flex: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.app-name { font-weight: 800; font-size: clamp(24px, 8.6cqi, 40px); line-height: 1; letter-spacing: -0.02em; }
.app-tagline { font-weight: 800; font-size: clamp(19px, 2.6vw, 23px); line-height: 1.15; letter-spacing: -0.01em; color: var(--app-accent); }
.app-blurb { font-size: 15px; line-height: 1.55; color: #B9B9C0; max-width: 46ch; }
.app-platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .04); font: 500 11.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--ink); }
.chip-soon { border-style: dashed; color: var(--muted); background: none; }
.app-foot { margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.app-status { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--app-accent); }
.app-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--app-accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--app-accent) 60%, transparent); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--app-accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.app-link { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.app-link::after { content: "\2192"; display: inline-block; margin-left: .35em; transition: transform .2s; }
.app-tile:hover .app-link { color: var(--ink); }
.app-tile:hover .app-link::after { transform: translateX(3px); }

/* Wide: the art beside the copy, and the phone stands taller in the taller art. */
@container (min-width: 640px) {
  .app-frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .app-art { aspect-ratio: auto; min-height: 380px; }
  .app-art-phone { width: 40%; transform: translate(-50%, 40%) rotate(-5deg); }
  .app-body { padding: 34px 34px 30px; }
}

/* Kurvenjäger: its orange, its typeface (Sora), its header in miniature. */
.app-tile--kurvenjager {
  --app-accent: #ED9945; --app-accent-deep: #CC6E29; --app-font: var(--product);
  --app-art: linear-gradient(in oklab 165deg, #ED9945 0%, #E58B3C 55%, #CC6E29 100%);
}

.mail { font: 500 15px/1.4 var(--mono); color: var(--muted); }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 20px var(--gutter); border-top: 1px solid var(--rule);
  font: 400 13px/1.5 var(--mono); color: var(--muted);
}
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); }

/* Hover motion only for people who have not asked for less: the tile lifts, the phone rises. */
@media (prefers-reduced-motion: no-preference) {
  .app-tile:hover { transform: translateY(-3px); }
  .app-tile:hover .app-art-phone { transform: translate(-50%, 44%) rotate(-2deg); }
  @container (min-width: 640px) { .app-tile:hover .app-art-phone { transform: translate(-50%, 30%) rotate(-2deg); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
