/* Home page (swold.app). A static copy of the Claude Design file "Swold Landing.dc.html":
   same markup, values and copy, with the inline styles moved here so the strict CSP holds.
   The design's React preview runtime is replaced by assets/landing-28.js.
   Breakpoints match the design's render rules: md >= 760px, lg >= 1100px,
   phone shot when < 760px wide and >= 640px tall, footer only from 760px. */

/* unicode-range matches the Google Fonts latin + latin-ext subsets the design loads, so glyphs outside
   them (the ✓) fall back to the same system font as in the design. */
@font-face { font-family: "Familjen Grotesk"; src: url("/assets/fonts/FamiljenGrotesk_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0100-02BA, U+02BB-02BC, U+02BD-02C5, U+02C6, U+02C7-02CC, U+02CE-02D7, U+02DA, U+02DC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; src: url("/assets/fonts/FamiljenGrotesk_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0100-02BA, U+02BB-02BC, U+02BD-02C5, U+02C6, U+02C7-02CC, U+02CE-02D7, U+02DA, U+02DC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; src: url("/assets/fonts/FamiljenGrotesk_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0100-02BA, U+02BB-02BC, U+02BD-02C5, U+02C6, U+02C7-02CC, U+02CE-02D7, U+02DA, U+02DC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0100-02BA, U+02BB-02BC, U+02BD-02C5, U+02C6, U+02C7-02CC, U+02CE-02D7, U+02DA, U+02DC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }

html, body { margin: 0; height: 100%; background: #161613; overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: #b6e35a; }

@keyframes popIn { 0% { opacity: 0; transform: translateY(60px) scale(.7) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
@keyframes rise { 0% { transform: translateY(110%); } 100% { transform: none; } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(-6px) rotate(0); } 50% { transform: translateY(10px) rotate(-1.4deg); } }
@keyframes floatC { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(6px, -10px); } 66% { transform: translate(-6px, 6px); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marqueeRev { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes stripes { 0% { background-position: 0 0; } 100% { background-position: 34px 0; } }
@keyframes grow { 0% { transform: scaleY(.06); } 28% { transform: scaleY(1); } 86% { transform: scaleY(1); } 100% { transform: scaleY(.06); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.35, 1.6); opacity: 0; } }
@keyframes flicker { 0%, 100% { transform: rotate(-45deg) scale(1); } 50% { transform: rotate(-45deg) scale(1.15); } }
@keyframes phoneUp { 0% { opacity: 0; transform: translateY(120px) rotate(6deg); } 100% { opacity: 1; transform: rotate(-3deg); } }

.root {
  --k: 1;
  position: relative; width: 100vw; height: 100dvh; overflow: hidden;
  background: #161613; color: #f1f0ea;
  font-family: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
}

/* Background ticker */
.ticker {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-around;
  font-weight: 700; font-size: 21vh; line-height: 1; letter-spacing: -0.04em;
  color: rgba(241, 240, 234, 0.035); white-space: nowrap;
  animation: fadeIn 2s ease 0.4s both;
}
.ticker-row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker-row.rev { animation: marqueeRev 70s linear infinite; }

/* Header */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  animation: fadeIn 800ms ease 100ms both;
}
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup-mark { height: 26px; width: auto; display: block; }
.lockup-word { height: 24px; width: auto; display: block; }
.nav-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 14px;
  border: 1px solid rgba(241, 240, 234, 0.16); color: #f1f0ea; text-decoration: none;
  font-weight: 700; font-size: 15px; transition: background .25s, color .25s, border-color .25s;
}
.nav-btn:hover { background: #b6e35a; color: #161613; border-color: #b6e35a; }

/* Center */
.center {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 20px 20px; pointer-events: none;
}
.eyebrow {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #a3a299;
  display: flex; gap: 10px; align-items: center;
  animation: fadeUp 700ms cubic-bezier(.2, .8, .2, 1) 200ms both;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #b6e35a; display: block; }
.headline {
  margin: 18px 0 0; font-weight: 700; font-size: clamp(54px, min(10.5vw, 17vh), 184px);
  line-height: 0.9; letter-spacing: -0.045em; display: flex; flex-direction: column; align-items: center;
}
.hl-line { display: flex; gap: 0.22em; overflow: hidden; padding-bottom: 0.08em; }
.hl-line-2 { display: block; overflow: hidden; padding-bottom: 0.08em; }
.word { display: block; animation: rise 900ms cubic-bezier(.2, .8, .2, 1) 250ms both; }
.word-2 { animation-delay: 350ms; }
.word-3 { color: #b6e35a; animation-delay: 480ms; }
.sub {
  margin: 20px 0 0; max-width: 30ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4;
  color: #a3a299; text-wrap: pretty;
  animation: fadeUp 800ms cubic-bezier(.2, .8, .2, 1) 700ms both;
}
.cta-row {
  position: relative; margin-top: 30px; display: flex; align-items: center; gap: 22px; pointer-events: auto;
  animation: fadeUp 800ms cubic-bezier(.2, .8, .2, 1) 850ms both;
}
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 34px; border-radius: 20px; background: #b6e35a; color: #161613;
  font-weight: 700; font-size: 18px; text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px -12px rgba(182, 227, 90, 0.55); color: #161613; }
.cta-ring {
  position: absolute; inset: 0; border-radius: 20px; border: 2px solid #b6e35a;
  animation: ring 2.4s ease-out infinite; pointer-events: none;
}
/* Shown only after a tap while APP_STORE_URL is still a placeholder. Sits under the
   row without moving it, so the resting layout is the design's. */
.store-note {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin: 12px 0 0;
  font-size: 14px; color: #a3a299; white-space: nowrap;
}
.store-note:empty { display: none; }
.qr-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #a3a299; }
.qr-link:hover { color: #a3a299; }
.qr-tile {
  display: block; width: 62px; height: 62px; padding: 6px; border-radius: 12px; background: #f1f0ea;
  box-sizing: border-box; transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.qr-tile:hover { transform: scale(1.6) rotate(-3deg); }
.qr-tile img { width: 100%; height: 100%; display: block; }
.qr-cap {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: left; line-height: 1.5;
}

/* Floating cards: card-pos = position + parallax, card-scale = --k, pop = entrance, float = idle loop */
.card-pos { position: absolute; z-index: 3; }
.card-scale { scale: var(--k, 1); }
.pop { animation: popIn 1000ms cubic-bezier(.2, .8, .2, 1) both; }
.card {
  box-sizing: border-box; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.card-dark { background: #1f1f1c; border: 1px solid rgba(241, 240, 234, 0.09); }
.tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.1em; }

/* Eat-enough meter */
.pos-meter { left: 4%; top: 14%; }
.pos-meter .card-scale { transform-origin: top left; }
.pos-meter .pop { animation-delay: 700ms; }
.pos-meter .float { animation: floatA 7s ease-in-out infinite; }
.meter-card {
  width: 310px; padding: 22px 22px 18px; border-radius: 30px; background: #b6e35a; color: #161613;
  transform: rotate(-4deg); position: relative;
}
.meter-card:hover { transform: rotate(0deg) scale(1.05); }
.m-label { font-weight: 700; font-size: 15px; min-height: 20px; }
.m-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 4px; }
.m-big { font-weight: 700; font-size: 68px; line-height: 0.95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.m-unit { font-weight: 700; font-size: 17px; padding-bottom: 8px; }
.m-bar { position: relative; height: 30px; margin-top: 16px; border-radius: 999px; background: rgba(22, 22, 19, 0.14); overflow: hidden; }
.m-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: #161613; border-radius: 999px 0 0 999px; }
.m-over {
  position: absolute; left: 76.9%; top: 0; bottom: 0; width: 0%;
  background: repeating-linear-gradient(135deg, #f2733a 0 6px, #f7a27a 6px 12px); background-size: 34px 100%;
  animation: stripes .7s linear infinite;
}
.m-goal { position: absolute; left: 76.9%; top: 0; bottom: 0; width: 3px; background: #f1f0ea; margin-left: -1px; }
.m-legend {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.m-badge {
  position: absolute; right: -14px; top: -16px; padding: 8px 13px; border-radius: 999px;
  background: #f2733a; color: #161613; font-weight: 700; font-size: 13px;
  box-shadow: 0 10px 24px -8px rgba(242, 115, 58, 0.8);
  transform: scale(.4) rotate(8deg); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.motion .m-badge { opacity: 0; }

/* Streak */
.pos-streak { right: 4%; top: 13%; }
.pos-streak .card-scale { transform-origin: top right; }
.pos-streak .pop { animation-delay: 850ms; }
.pos-streak .float { animation: floatB 8s ease-in-out infinite; }
.streak-card { width: 320px; padding: 20px 20px 18px; border-radius: 28px; background: oklch(0.29 0.06 50); transform: rotate(3deg); }
.streak-card:hover { transform: rotate(0deg) scale(1.05); }
.s-head { display: flex; align-items: center; gap: 12px; }
.s-flame { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f2733a; }
.s-flame-in {
  display: block; width: 11px; height: 11px; background: #f1f0ea; border-radius: 50% 0 50% 50%;
  animation: flicker 1.2s ease-in-out infinite; margin-top: 3px;
}
.s-count { font-weight: 700; font-size: 19px; flex: 1; }
.s-week { color: oklch(0.86 0.06 55); }
.s-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; justify-items: center; }
.s-day { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.s-dot {
  width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 2px dashed rgba(241, 240, 234, 0.25);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #161613;
}
.motion .s-dot span { opacity: 0; }
.s-letter { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; color: #a3a299; }
.s-note { margin-top: 14px; font-size: 14px; color: #f1f0ea; }

/* Food log */
.pos-food { left: 7%; bottom: 8%; }
.pos-food .card-scale { transform-origin: bottom left; }
.pos-food .pop { animation-delay: 1050ms; }
.pos-food .float { animation: floatC 9s ease-in-out infinite; }
.food-card { width: 300px; padding: 18px; border-radius: 26px; transform: rotate(2.5deg); }
.food-card:hover { transform: rotate(0deg) scale(1.05); }
.f-head { display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; color: #a3a299; }
.f-status { color: #b6e35a; }
.f-input {
  margin-top: 12px; min-height: 46px; box-sizing: border-box; padding: 12px 14px; border-radius: 14px;
  background: #161613; font-size: 16px; display: flex; align-items: center;
}
.f-caret { display: inline-block; width: 2px; height: 19px; background: #b6e35a; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.f-chips {
  display: flex; gap: 8px; margin-top: 12px; align-items: center;
  transition: opacity .35s, transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.motion .f-chips { opacity: 0; transform: translateY(8px); }
.chip { padding: 7px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.chip-kcal { background: oklch(0.29 0.06 50); color: oklch(0.86 0.06 55); }
.chip-pro { background: oklch(0.29 0.07 290); color: oklch(0.82 0.11 290); }
.f-btn {
  margin-left: auto; padding: 7px 12px; border-radius: 10px; background: rgba(241, 240, 234, 0.08);
  color: #f1f0ea; font-weight: 700; font-size: 13px; transition: background .25s, color .25s;
}

/* Weigh-ins */
.pos-weigh { right: 3%; top: 52%; }
.pos-weigh .card-scale { transform-origin: center right; }
.pos-weigh .pop { animation-delay: 1150ms; }
.pos-weigh .float { animation: floatA 8.5s ease-in-out -2s infinite; }
.weigh-card { width: 250px; padding: 18px; border-radius: 26px; transform: rotate(-3deg); }
.weigh-card:hover { transform: rotate(0deg) scale(1.05); }
.w-tag { text-transform: uppercase; color: #a3a299; }
.w-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.w-num { font-weight: 700; font-size: 34px; letter-spacing: -0.03em; }
.w-unit { font-weight: 700; font-size: 15px; color: #a3a299; }
.w-delta { margin-left: auto; font-weight: 700; font-size: 13px; color: #b6e35a; }
.w-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 12px; }
.w-bar {
  flex: 1; border-radius: 5px; background: rgba(241, 240, 234, 0.16); transform-origin: bottom;
  animation: grow 6s cubic-bezier(.2, .8, .2, 1) 0s infinite;
}
.w-bar:nth-child(1) { height: 36%; }
.w-bar:nth-child(2) { height: 44%; animation-delay: .08s; }
.w-bar:nth-child(3) { height: 40%; animation-delay: .16s; }
.w-bar:nth-child(4) { height: 52%; animation-delay: .24s; }
.w-bar:nth-child(5) { height: 49%; animation-delay: .32s; }
.w-bar:nth-child(6) { height: 60%; animation-delay: .40s; }
.w-bar:nth-child(7) { height: 57%; animation-delay: .48s; }
.w-bar:nth-child(8) { height: 70%; animation-delay: .56s; }
.w-bar:nth-child(9) { height: 78%; animation-delay: .64s; background: #5fb6e6; }
.w-bar:nth-child(10) { height: 92%; animation-delay: .72s; background: #b6e35a; }

/* Protein */
.pos-protein { left: 3%; top: 52%; z-index: 2; }
.pos-protein .card-scale { transform-origin: center left; }
.pos-protein .pop { animation-delay: 1250ms; }
.pos-protein .float { animation: floatB 7.5s ease-in-out -3s infinite; }
.protein-card { width: 230px; padding: 18px; border-radius: 24px; background: oklch(0.29 0.07 290); transform: rotate(-2deg); }
.protein-card:hover { transform: rotate(0deg) scale(1.06); }
.p-tag { color: oklch(0.82 0.11 290); }
.p-row, .l-row { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.p-num, .l-num { font-weight: 700; font-size: 38px; letter-spacing: -0.03em; }
.p-num { font-variant-numeric: tabular-nums; }
.p-of { font-weight: 700; font-size: 16px; color: oklch(0.82 0.11 290); }
.p-track { height: 9px; margin-top: 10px; border-radius: 999px; background: rgba(241, 240, 234, 0.1); overflow: hidden; }
.p-bar { height: 100%; width: 0%; border-radius: 999px; background: #8a72e6; }

/* Lift days */
.pos-lifts { right: 10%; bottom: 8%; z-index: 2; }
.pos-lifts .card-scale { transform-origin: bottom right; }
.pos-lifts .pop { animation-delay: 1350ms; }
.pos-lifts .float { animation: floatC 10s ease-in-out -4s infinite; }
.lifts-card { width: 240px; padding: 18px; border-radius: 24px; background: oklch(0.29 0.05 235); transform: rotate(4deg); }
.lifts-card:hover { transform: rotate(0deg) scale(1.06); }
.l-tag { display: flex; justify-content: space-between; color: oklch(0.83 0.09 235); }
.l-of { font-weight: 700; font-size: 16px; color: oklch(0.83 0.09 235); }
.l-segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.l-seg { height: 9px; border-radius: 999px; background: rgba(241, 240, 234, 0.12); transition: background .3s; }

/* Phone shot (narrow, tall screens) */
.phone-shot {
  position: absolute; left: 50%; bottom: 0; z-index: 3;
  width: min(66vw, 300px); margin-left: calc(min(66vw, 300px) / -2); height: 34dvh; overflow: hidden;
}
.phone-shot img {
  width: 100%; height: auto; display: block; border-radius: 34px 34px 0 0;
  border: 1px solid rgba(241, 240, 234, 0.12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  animation: phoneUp 1100ms cubic-bezier(.2, .8, .2, 1) 900ms both;
}

/* Footer */
.foot {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5;
  display: flex; justify-content: center; gap: 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #a3a299; animation: fadeIn 1s ease 1.4s both;
}
.foot a, .foot a:hover { text-decoration: none; color: #a3a299; }

/* Visibility rules from the design's renderVals() */
.phone-shot, .only-lg { display: none; }
@media (min-width: 1100px) { .only-lg { display: block; } }
@media (max-width: 759px) {
  .only-md, .foot { display: none; }
}
@media (max-width: 759px) and (min-height: 640px) {
  .phone-shot { display: block; }
  .center { padding-bottom: 34dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .phone-shot img { transform: rotate(-3deg); }
  .s-flame-in { transform: rotate(-45deg); }
}
