/* LowKal landing — tokens mirrored from the app */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --white: #ffffff;
  --graphite: #333333;
  --slate: #666666;
  --ash: #999999;
  --fog: #b3b3b3;
  --silver: #cccccc;
  --sand: #d9c58b;
  --pink-start: #f8c4ff;
  --pink-end: #f0b6e0;
  --mint-start: #85dadc;
  --mint-end: #c0e2e2;
  --going: #31c431;
  --danger: #e11d48;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --border-thin: 1px solid rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(
    180deg,
    rgba(248, 196, 255, 0.42) 0%,
    rgba(150, 196, 255, 0.14) 28%,
    #ffffff 56%
  );
}

::selection {
  background: var(--pink-start);
  color: var(--ink);
}

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

button,
input {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------- nav ---------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}

.logo {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo span {
  font-weight: 500;
}

.logo__tape {
  position: absolute;
  top: -7px;
  left: 18px;
  width: 42px;
  height: 10px;
  background: rgba(248, 196, 255, 0.7);
  border-radius: 2px;
  transform: rotate(-3deg);
}

.nav__soon {
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: -0.02em;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sm);
}

/* ---------------- hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}

.kicker {
  font-weight: 600;
  font-size: 12px;
  color: var(--slate);
  margin: 0 0 10px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 84px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.wordmark span {
  font-weight: 500;
}

.tag {
  font-size: 22px;
  font-weight: 600;
  max-width: 20em;
  margin: 0 0 14px;
  color: var(--graphite);
  line-height: 1.25;
}

.lede {
  font-size: 15px;
  color: var(--slate);
  max-width: 28em;
  margin: 0 0 28px;
  line-height: 1.45;
}

.waitlist {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.waitlist input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  border: var(--border-thin);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.waitlist input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.waitlist input::placeholder {
  color: var(--ash);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 12px;
  border: var(--border-thin);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  cursor: pointer;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.waitlist__note,
.waitlist__ok {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin: 10px 0 0;
}

.waitlist__ok {
  display: none;
  background: linear-gradient(130deg, var(--mint-start), var(--mint-end));
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  max-width: 440px;
}

.waitlist.is-done .waitlist__row,
.waitlist.is-done .waitlist__note {
  display: none;
}

.waitlist.is-done .waitlist__ok {
  display: block;
}

.waitlist__row {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

/* ---------------- phone ---------------- */

.phone-wrap {
  position: relative;
  justify-self: end;
}

.phone-wrap__sticker {
  position: absolute;
  top: 18px;
  left: -28px;
  z-index: 3;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 11px;
  transform: rotate(-12deg);
  box-shadow: var(--shadow-sm);
}

.phone {
  width: 320px;
  background: var(--white);
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  padding: 10px 8px 16px;
  transform: rotate(3deg);
  background-image: linear-gradient(
    180deg,
    rgba(248, 196, 255, 0.42) 0%,
    rgba(150, 196, 255, 0.14) 32%,
    #ffffff 58%
  );
  overflow: hidden;
}

.phone__notch {
  width: 88px;
  height: 18px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  margin: 0 auto 4px;
}

.masthead {
  position: relative;
  text-align: center;
  padding: 6px 0 8px;
}

.masthead__tape {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 62px;
  height: 12px;
  background: rgba(248, 196, 255, 0.7);
  border-radius: 2px;
}

.masthead__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 14px 0 2px;
}

.masthead__logo span {
  font-weight: 500;
}

.masthead__kicker {
  font-weight: 500;
  font-size: 10px;
  color: var(--slate);
  margin: 0;
}

.scoreboard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    130deg,
    var(--pink-start) 0%,
    var(--pink-end) 52%,
    var(--mint-end) 100%
  );
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 12px 12px;
  margin: 10px 10px 14px;
  transform: rotate(-4deg);
}

.scoreboard__sticker {
  position: absolute;
  top: -10px;
  left: -4px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 9px;
  transform: rotate(-8deg);
}

.scoreboard__digits {
  font-weight: 800;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.scoreboard__unit {
  font-weight: 500;
  font-size: 10px;
  color: var(--graphite);
}

.scoreboard__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.scoreboard__remaining {
  font-weight: 600;
  font-size: 11px;
}

.scoreboard__goal {
  font-weight: 600;
  font-size: 9px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 8px;
}

.goal-ring {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--going) 223deg, rgba(0, 0, 0, 0.08) 223deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.goal-ring__hole {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.goal-ring__pct {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.04em;
}

.goal-ring__label {
  font-size: 7px;
  font-weight: 500;
  color: var(--slate);
}

.macros {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 0 12px 12px;
}

.macros__item {
  background: var(--white);
  border: var(--border-thin);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.macros__label {
  font-weight: 600;
  font-size: 9px;
  color: var(--slate);
  margin: 0 0 2px;
}

.macros__val {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.macros__bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.macros__fill {
  height: 100%;
  border-radius: 99px;
}

.macros__item--p .macros__fill {
  width: 28%;
  background: var(--pink-end);
}

.macros__item--c .macros__fill {
  width: 52%;
  background: #96c4ff;
}

.macros__item--f .macros__fill {
  width: 20%;
  background: var(--mint-start);
}

.verdict {
  background: var(--white);
  border: var(--border-thin);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 9px 11px;
  margin: 0 12px 12px;
  font-size: 11px;
  font-weight: 600;
  transform: rotate(0.6deg);
}

.verdict__label {
  font-weight: 600;
  font-size: 9px;
  color: var(--slate);
  margin: 0 0 3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 12px 12px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: var(--border-thin);
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 600;
  font-size: 10px;
  box-shadow: var(--shadow-sm);
}

.chip__cal {
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 9px;
}

.chip--custom {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.chip--custom .chip__cal {
  background: var(--white);
  color: var(--ink);
}

.entry {
  position: relative;
  margin: 0 14px 12px;
}

.entry:nth-child(1) {
  transform: rotate(-1.2deg);
}

.entry:nth-child(2) {
  transform: rotate(0.8deg);
}

.entry__tape {
  position: absolute;
  top: -6px;
  right: 16px;
  width: 34px;
  height: 12px;
  background: rgba(248, 196, 255, 0.65);
  border-radius: 2px;
  transform: rotate(4deg);
}

.entry__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: var(--border-thin);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 9px 11px;
}

.entry__name {
  font-weight: 700;
  font-size: 12px;
  display: block;
}

.entry__time {
  font-weight: 500;
  font-size: 9px;
  color: var(--ash);
}

.entry__cal {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.04em;
}

/* ---------------- features ---------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 80px;
}

.card {
  background: var(--white);
  border: var(--border-thin);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 20px;
  position: relative;
}

.card:nth-child(1) {
  transform: rotate(-1.4deg);
}

.card:nth-child(2) {
  transform: rotate(1.1deg);
  background: linear-gradient(130deg, var(--pink-start) 0%, var(--pink-end) 48%, var(--mint-end) 100%);
  border: none;
  box-shadow: var(--shadow);
}

.card:nth-child(3) {
  transform: rotate(-0.6deg);
}

.card__tape {
  position: absolute;
  top: -8px;
  left: 28px;
  width: 48px;
  height: 16px;
  background: rgba(248, 196, 255, 0.7);
  border-radius: 2px;
  transform: rotate(-4deg);
}

.card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 8px 0 8px;
  line-height: 1.05;
}

.card p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  line-height: 1.4;
}

.card:nth-child(2) p {
  color: var(--ink);
}

/* ---------------- footer ---------------- */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 36px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}

.foot p {
  margin: 0;
}

/* ---------------- responsive ---------------- */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 28px 0 56px;
  }

  .phone-wrap {
    justify-self: center;
  }

  .features {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .waitlist__row {
    flex-direction: column;
  }

  .wordmark {
    font-size: 56px;
  }

  .phone {
    width: min(320px, 100%);
    transform: rotate(1.5deg);
  }

  .phone-wrap__sticker {
    left: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
