/* FootMind public site. Look follows the app (turf-dark surfaces, chalk lines, one whistle-yellow action colour,
   Big Shoulders Display for headings + Schibsted Grotesk for text). Tokens mirror footmind-app `AppColors` / the design canvas `fm.css`. */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/bigshoulders.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --turf-950: #06130d;
  --turf-900: #0a1d15;
  --turf-800: #0f2a1e;
  --turf-700: #163a29;
  --turf-600: #1f5039;
  --chalk: #f3f1e7;
  --text: #f3f1e7;
  --muted: rgba(243, 241, 231, 0.66);
  --faint: rgba(243, 241, 231, 0.38);
  --line: rgba(243, 241, 231, 0.14);
  --line-2: rgba(243, 241, 231, 0.07);
  --yellow: #ffd60a;
  --yellow-deep: #e8b800;
  --ink: #0d140f;
  --goal: #46e08a;
  --panel: #0f2a1e;
  --panel-hover: #163a29;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--turf-900);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--text);
  font: 16px/1.65 var(--body);
}

/* Turf backdrop: a soft floodlight at the top and faint mowing stripes, painted once behind everything (same as the app). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(70, 224, 138, 0.16), transparent 60%),
    repeating-linear-gradient(180deg, transparent 0 56px, rgba(255, 255, 255, 0.012) 56px 112px),
    var(--turf-900);
}

a {
  color: var(--yellow);
}

a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap.wide,
header.site .wrap,
footer.site .wrap {
  max-width: 66rem;
}

/* Brand mark: same construction as the app's BrandMark (turf disc, yellow ring, chalk-to-yellow line art). */
.mark {
  --s: 2.5rem;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: max(1.5px, calc(var(--s) * 0.02)) solid var(--yellow);
  background: radial-gradient(circle at 30% 22%, var(--turf-600) 0%, var(--turf-800) 48%, var(--turf-950) 100%);
  box-shadow:
    0 0 0 calc(var(--s) * 0.016) rgba(255, 214, 10, 0.22),
    0 calc(var(--s) * 0.12) calc(var(--s) * 0.28) calc(var(--s) * -0.1) rgba(0, 0, 0, 0.5);
}

.mark i {
  display: block;
  width: 70%;
  height: 70%;
  background: linear-gradient(to bottom, #fff 0%, var(--chalk) 38%, var(--yellow) 100%);
  -webkit-mask: url('/img/brand-icon.png') center / contain no-repeat;
  mask: url('/img/brand-icon.png') center / contain no-repeat;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-2);
  background: rgba(6, 19, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand .mark {
  --s: 2.25rem;
}

.word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.word > span {
  color: var(--yellow);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav a {
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
  background: var(--turf-800);
}

nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--chalk);
}

main {
  flex: 1;
  padding: 2.25rem 0 3.5rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 2.5rem 0 0.6rem;
}

h3 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
  font-weight: 800;
}

p,
li {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

/* Home: hero */

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 2rem;
}

/* The animated logo (img/footmind-sketch.svg) has a 32/576 margin around the disc for its glow; the negative margin keeps the
   disc at --s. The same artwork as the .mark above, with the parts drawn as lines and filled in once on load. */
.hero-logo {
  --s: 9rem;
  justify-self: start;
  width: calc(var(--s) * 1.125);
  margin: calc(var(--s) * -0.0625);
  filter: drop-shadow(0 0 2.5rem rgba(255, 214, 10, 0.2));
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* "Coming soon" badge: whistle yellow with dark type, a hard bottom edge like the app's primary button. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--yellow-deep);
}

.soon::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ink);
}

.hero h1 {
  font-size: clamp(3.4rem, 12vw, 6rem);
  line-height: 0.92;
  margin: 0 0 1rem;
}

.hl {
  color: var(--yellow);
}

.hero .lead {
  max-width: 34rem;
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--turf-800);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: 1fr auto;
    padding: 2.5rem 0 3rem;
  }

  .hero-logo {
    --s: 13rem;
    order: 2;
  }
}

/* Home: sections */

.section-title {
  margin: 2.5rem 0 1rem;
  color: var(--faint);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.tile:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 214, 10, 0.45);
  transform: translateY(-2px);
}

.tile h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tile h3::before {
  content: '';
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0.6rem rgba(255, 214, 10, 0.5);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.tile.feature {
  padding: 1.25rem;
}

.tile.feature h3 {
  font-size: 1.6rem;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 0;
}

.cta-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.7rem;
}

.cta-card ul {
  margin: 0;
}

footer.site {
  border-top: 1px solid var(--line-2);
  background: rgba(6, 19, 13, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.25rem 0 1.75rem;
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--text);
}
