/* ==========================================================================
   Myfeetness - phase 1 landing page
   Apple's dark product-page language: low light, warm ivory type, one crimson
   accent. Sensual by lighting and restraint, never by explicitness.
   No webfonts at all, so the page makes zero third-party requests.
   No inline styles anywhere: the enforced CSP is style-src 'self'.
   ========================================================================== */

:root {
  --black:    #0B0809;   /* page ground */
  --panel:    #151011;   /* alternating band, a shade warmer */
  --ivory:    #F3EAE7;
  --ivory-2:  #B6A6A2;
  --ivory-3:  #8B7C79;
  --hairline: #2B2224;
  --accent:   #C4123A;   /* crimson */
  --accent-2: #DE1B47;

  --wrap: 980px;
  --pad:  clamp(22px, 5vw, 32px);

  /* San Francisco where it exists, the platform's own UI face everywhere
     else. SF Pro cannot be legally self-hosted for the web, and pulling a
     substitute from a font CDN would leak visitor IPs to a third party. */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Segoe UI Variable Display', 'Segoe UI', system-ui, 'Helvetica Neue',
          Helvetica, Arial, sans-serif;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ivory);
  color: var(--black);
  padding: 12px 20px;
  font-size: 15px;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* --- Loader: two feet, ankle down ---------------------------------------- */
/* Pure CSS, so it dismisses itself with JavaScript disabled and can never
   trap the page. All content below is in the DOM from the first byte. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 30px;
  background:
    radial-gradient(120% 80% at 50% 52%, #1A1314 0%, var(--black) 62%);
  animation: loader-out .8s ease 2.3s forwards;
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

.walk { width: clamp(230px, 34vw, 360px); height: auto; }
.foot--far { opacity: .55; }

.foot__anim {
  transform-box: fill-box;
  transform-origin: 75% 97%;
  /* slower than a walk - a saunter reads warmer than a march */
  animation: step 1.9s cubic-bezier(.42, .02, .58, 1) infinite;
}
.shadow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: step-shadow 1.9s cubic-bezier(.42, .02, .58, 1) infinite;
}
.foot--far .foot__anim,
.shadow--far { animation-delay: -.95s; }

/* A tracking camera: the planted foot slides backwards while the swinging
   foot travels forward. That is what makes it read as walking, not tapping. */
@keyframes step {
  0%   { transform: translate(36px, 0)     rotate(7deg); }
  18%  { transform: translate(26px, 0)     rotate(0deg); }
  46%  { transform: translate(11px, 0)     rotate(0deg); }
  62%  { transform: translate(0, -2px)     rotate(-17deg); }
  78%  { transform: translate(14px, -16px) rotate(-7deg); }
  92%  { transform: translate(31px, -7px)  rotate(7deg); }
  100% { transform: translate(36px, 0)     rotate(7deg); }
}
@keyframes step-shadow {
  0%   { transform: translateX(36px) scale(1);    opacity: 1; }
  18%  { transform: translateX(26px) scale(1.04); opacity: 1; }
  46%  { transform: translateX(11px) scale(1.04); opacity: 1; }
  62%  { transform: translateX(0)    scale(.86);  opacity: .6; }
  78%  { transform: translateX(14px) scale(.62);  opacity: .28; }
  92%  { transform: translateX(31px) scale(.82);  opacity: .55; }
  100% { transform: translateX(36px) scale(1);    opacity: 1; }
}

.loader__caption {
  font-size: 15px;
  color: var(--ivory-3);
  letter-spacing: .01em;
}

/* --- Nav ----------------------------------------------------------------- */
.nav-bar { border-bottom: 1px solid var(--hairline); background: var(--black); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 52px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}
.nav__link {
  font-size: 14px;
  color: var(--ivory-2);
  text-decoration: none;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--accent-2); }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(76px, 11vw, 130px); background: var(--black); }
.section--tint { background: var(--panel); }
/* the hero sits in a pool of warm light */
.hero {
  background:
    radial-gradient(90% 62% at 50% 78%, #1C1416 0%, var(--black) 68%);
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  text-align: center;
}

.headline {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.022em;
  max-width: 17ch;
  margin-inline: auto;
}
.headline--sm { font-size: clamp(34px, 5vw, 54px); max-width: 20ch; }

.subhead {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.38;
  letter-spacing: -.014em;
  color: var(--ivory-2);
  max-width: 36ch;
  margin: 20px auto 0;
}

.title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: clamp(44px, 6vw, 68px);
}

.note { font-size: 14px; color: var(--ivory-3); margin-top: 18px; }

/* --- Button -------------------------------------------------------------- */
.actions { margin-top: clamp(28px, 3.6vw, 38px); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  letter-spacing: -.012em;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 980px;
  transition: background .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(196, 18, 58, .16);
}

/* --- Three-up ------------------------------------------------------------ */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 56px);
  text-align: left;
}
.trio__title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin-bottom: 8px;
}
.trio__text { font-size: 16px; line-height: 1.5; color: var(--ivory-2); }

/* --- Rules --------------------------------------------------------------- */
.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 5vw, 56px) clamp(40px, 6vw, 88px);
  text-align: left;
}
.rule__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.016em;
  margin-bottom: 6px;
}
.rule__text { font-size: 16px; line-height: 1.5; color: var(--ivory-2); }

/* --- Footer -------------------------------------------------------------- */
.site-foot {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  padding-block: 30px 34px;
}
.site-foot .wrap { text-align: left; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.foot-nav a { font-size: 12px; color: var(--ivory-2); text-decoration: none; }
.foot-nav a:hover { color: var(--accent-2); }
.disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ivory-3);
  max-width: 78ch;
}
.copyright { font-size: 12px; color: var(--ivory-3); margin-top: 8px; }

/* --- Shared foot artwork ------------------------------------------------- */
/* Hero product shot: the same foot the loader walks on, at rest. */
.hero-feet {
  width: clamp(250px, 40vw, 420px);
  height: auto;
  margin: clamp(44px, 6vw, 76px) auto 0;
}
.hero-feet__far { opacity: .55; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .trio  { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* --- Motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Legal / document pages ---------------------------------------------- */
.doc { padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px); }
.doc .wrap { max-width: 760px; text-align: left; }
.doc__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
}
.doc__meta {
  font-size: 14px;
  color: var(--ivory-3);
  margin-top: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.doc h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.018em;
  margin-top: 40px;
  margin-bottom: 10px;
}
.doc p { color: var(--ivory-2); margin-bottom: 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.doc li { color: var(--ivory-2); margin-bottom: 8px; }
.doc a { color: var(--accent-2); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--ivory); font-weight: 600; }

/* --- 404 ----------------------------------------------------------------- */
.oops { min-height: 62vh; display: grid; place-content: center; text-align: center; }

/* --- Brand lockup -------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand__mark { display: block; }
.foot-mark { display: block; margin-bottom: 14px; opacity: .9; }
.doc h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.012em;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ivory);
}
.doc code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .9em;
  color: var(--ivory);
}
