/* LowKal landing — paper, tape, stickers */

:root {
  --ink: #000000;
  --paper: #fff;
  --paper-2: #fff;
  --cream: #ffffff;
  --white: #ffffff;
  --graphite: #2c2a27;
  --slate: #5c5852;
  --ash: #8a847a;
  --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: "Bricolage Grotesque", system-ui, sans-serif;
  --border-thin: 1px solid rgba(40, 28, 12, 0.12);
  --radius: 12px;
  --shadow: 4px 10px 24px rgba(60, 40, 20, 0.1);
  --shadow-sm: 2px 5px 14px rgba(60, 40, 20, 0.08);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  --tape-clip: polygon(
    0% 18%,
    2% 6%,
    5% 22%,
    8% 2%,
    12% 16%,
    16% 0%,
    20% 20%,
    25% 4%,
    30% 18%,
    35% 1%,
    40% 14%,
    46% 3%,
    52% 19%,
    58% 0%,
    64% 15%,
    70% 4%,
    76% 21%,
    82% 2%,
    88% 16%,
    93% 5%,
    97% 18%,
    100% 8%,
    100% 86%,
    97% 100%,
    93% 84%,
    88% 98%,
    82% 86%,
    76% 100%,
    70% 83%,
    64% 97%,
    58% 85%,
    52% 100%,
    46% 84%,
    40% 96%,
    34% 82%,
    28% 100%,
    22% 85%,
    16% 97%,
    10% 84%,
    6% 100%,
    2% 86%,
    0% 96%
  );
}

* {
  box-sizing: border-box;
}

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

html {
  background: #f3eadc;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(
      ellipse 72% 52% at 6% -8%,
      rgba(248, 196, 255, 0.58) 0%,
      rgba(240, 182, 224, 0.18) 38%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 58% 48% at 102% 2%,
      rgba(133, 218, 220, 0.42) 0%,
      rgba(192, 226, 226, 0.16) 42%,
      transparent 64%
    ),
    radial-gradient(
      ellipse 46% 36% at 96% 92%,
      rgba(240, 182, 224, 0.28) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 40% 32% at 2% 78%,
      rgba(133, 218, 220, 0.22) 0%,
      transparent 55%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: var(--grain);
  background-size: 180px 180px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      114deg,
      transparent 42%,
      rgba(40, 24, 8, 0.035) 49%,
      transparent 57%
    ),
    linear-gradient(
      22deg,
      transparent 62%,
      rgba(255, 255, 255, 0.18) 72%,
      transparent 82%
    );
  mix-blend-mode: multiply;
}

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

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

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

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

/* ---------------- shared analog bits ---------------- */

.logo__tape,
.card__tape,
.entry__tape,
.masthead__tape,
.btn::before {
  position: absolute;
  background-color: rgba(236, 164, 214, 0.78);
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.08) 36%,
      rgba(140, 50, 110, 0.1) 72%,
      rgba(60, 20, 40, 0.16) 100%
    ),
    repeating-linear-gradient(
      122deg,
      transparent 0 5px,
      rgba(255, 255, 255, 0.2) 5px 6px
    ),
    radial-gradient(
      circle at 28% 70%,
      rgba(90, 40, 20, 0.16) 0 10%,
      transparent 22%
    ),
    radial-gradient(
      circle at 76% 28%,
      rgba(255, 255, 255, 0.22) 0 8%,
      transparent 18%
    );
  clip-path: var(--tape-clip);
  mix-blend-mode: multiply;
  box-shadow:
    0 1px 1px rgba(40, 16, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(80, 20, 50, 0.1);
}

/* ---------------- 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 {
  top: -8px;
  left: 14px;
  width: 48px;
  height: 16px;
  transform: rotate(-7deg);
}

.nav__soon {
  background: var(--ink);
  color: var(--white);
  border-radius: 999px 999px 96% 999px;
  padding: 7px 13px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: -0.02em;
  transform: rotate(-6deg);
  box-shadow:
    1px 2px 0 rgba(0, 0, 0, 0.18),
    2px 6px 12px rgba(40, 24, 8, 0.1);
}

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

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

.kicker {
  font-weight: 600;
  font-size: 13px;
  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: 23px;
  font-weight: 600;
  max-width: 18em;
  margin: 0 0 28px;
  color: var(--graphite);
  line-height: 1.18;
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 460px;
}

.waitlist input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  border: 1.5px solid rgba(28, 18, 8, 0.22);
  border-radius: 3px 10px 4px 8px;
  background: var(--cream);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    2px 4px 10px rgba(60, 40, 20, 0.06);
}

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

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  cursor: pointer;
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
  transform: rotate(-2deg);
  box-shadow:
    1px 2px 0 rgba(0, 0, 0, 0.2),
    2px 6px 14px rgba(40, 24, 8, 0.12);
  transition:
    transform 0.34s cubic-bezier(0.22, 1.45, 0.36, 1),
    box-shadow 0.34s ease,
    text-shadow 0.28s ease;
}

.btn::before {
  content: "";
  top: -10px;
  left: 22%;
  width: 44px;
  height: 15px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-22deg) translateY(-14px) scale(0.55);
  transform-origin: 50% 80%;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.6, 0.64, 1),
    opacity 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: rotate(3.5deg) translateY(-4px);
  box-shadow:
    -4px 3px 0 0 var(--pink-start),
    5px 6px 0 0 var(--mint-start),
    3px 12px 20px rgba(40, 24, 8, 0.16);
  text-shadow:
    -1.5px 0 0 rgba(248, 196, 255, 0.9),
    1.5px 0 0 rgba(133, 218, 220, 0.9);
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
  transform: rotate(-7deg) translateY(0) scale(1);
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn:active {
  transform: rotate(-1deg) translateY(1px) scale(0.98);
  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.22),
    1px 3px 8px rgba(40, 24, 8, 0.1);
  text-shadow: none;
}

.btn:active::before {
  transform: rotate(-4deg) translateY(1px) scale(0.96);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn:disabled:hover,
.btn:disabled:focus-visible {
  transform: rotate(-2deg);
  box-shadow:
    1px 2px 0 rgba(0, 0, 0, 0.2),
    2px 6px 14px rgba(40, 24, 8, 0.12);
  text-shadow: none;
}

.btn:disabled::before {
  opacity: 0;
}

.waitlist__note,
.waitlist__ok,
.waitlist__err {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin: 12px 0 0;
  line-height: 1.4;
  max-width: 34em;
}

.waitlist__ok {
  display: none;
  background:
    radial-gradient(
      ellipse 80% 70% at 12% 0%,
      rgba(133, 218, 220, 0.7),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 80% at 100% 100%,
      rgba(192, 226, 226, 0.8),
      transparent 50%
    ),
    var(--cream);
  color: var(--ink);
  border-radius: 6px 16px 8px 14px;
  padding: 12px 14px;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
}

.waitlist__err {
  color: var(--danger);
}

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

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

.waitlist__row {
  display: flex;
  gap: 10px;
  max-width: 440px;
  align-items: center;
}

/* ---------------- 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 96% 999px 999px;
  padding: 7px 13px;
  font-weight: 600;
  font-size: 11px;
  transform: rotate(-12deg);
  box-shadow:
    1px 2px 0 rgba(0, 0, 0, 0.18),
    2px 6px 12px rgba(40, 24, 8, 0.12);
}

.phone {
  position: relative;
  isolation: isolate;
  width: 320px;
  border-radius: 28px 32px 30px 34px;
  box-shadow:
    8px 20px 44px rgba(60, 36, 12, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 10px 8px 16px;
  transform: rotate(3deg);
  background-color: var(--paper-2);
  background-image:
    radial-gradient(
      ellipse 90% 48% at 18% 0%,
      rgba(248, 196, 255, 0.38),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 40% at 100% 100%,
      rgba(133, 218, 220, 0.22),
      transparent 50%
    );
  border: 1.5px solid rgba(40, 28, 12, 0.1);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: var(--grain);
  background-size: 140px 140px;
}

.phone__notch {
  width: 64px;
  height: 9px;
  background: #1a1814;
  border-radius: 999px;
  margin: 8px auto 6px;
  opacity: 0.72;
}

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

.masthead__tape {
  top: 2px;
  left: 50%;
  width: 68px;
  height: 15px;
  transform: translateX(-50%) rotate(-6deg);
}

.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:
    radial-gradient(
      ellipse 80% 70% at 8% 0%,
      var(--pink-start) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 80% at 100% 110%,
      var(--mint-end) 0%,
      transparent 55%
    ),
    linear-gradient(130deg, var(--pink-start) 0%, var(--pink-end) 48%, var(--mint-end) 100%);
  border-radius: 8px 14px 10px 12px;
  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 999px 90% 999px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 9px;
  transform: rotate(-8deg);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.16);
}

.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(--cream);
  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(--cream);
  border: var(--border-thin);
  border-radius: 6px 10px 7px 9px;
  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(--cream);
  border: var(--border-thin);
  border-radius: 8px 12px 7px 11px;
  box-shadow: var(--shadow-sm);
  padding: 9px 11px;
  margin: 0 12px 12px;
  font-size: 11px;
  font-weight: 600;
  transform: rotate(0.8deg);
}

.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(--cream);
  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;
  transform: rotate(-1.6deg);
}

.entry + .entry {
  transform: rotate(1.4deg);
}

.entry__tape {
  top: -7px;
  right: 18px;
  width: 40px;
  height: 14px;
  transform: rotate(5deg);
}

.entry + .entry .entry__tape {
  right: auto;
  left: 16px;
  transform: rotate(-8deg);
}

.entry__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border: var(--border-thin);
  border-radius: 4px 10px 6px 8px;
  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: 22px;
  padding: 0 0 96px;
}

.card {
  position: relative;
  background-color: var(--cream);
  background-image:
    radial-gradient(
      ellipse 80% 50% at 0% 0%,
      rgba(255, 255, 255, 0.35),
      transparent 50%
    ),
    var(--grain);
  background-size: auto, 160px 160px;
  border: 1px solid rgba(40, 28, 12, 0.08);
  border-radius: 4px 12px 6px 10px;
  box-shadow:
    3px 8px 0 rgba(40, 24, 8, 0.04),
    6px 16px 28px rgba(60, 40, 20, 0.1);
  padding: 26px 22px 22px;
}

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

.card:nth-child(2) {
  transform: rotate(2.6deg);
  background-color: #f4e6d4;
  background-image:
    radial-gradient(
      ellipse 90% 80% at 8% -10%,
      rgba(248, 196, 255, 0.72) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 85% 90% at 110% 120%,
      rgba(133, 218, 220, 0.55) 0%,
      transparent 52%
    ),
    var(--grain);
  background-size: auto, auto, 160px 160px;
  border: none;
  box-shadow:
    4px 12px 0 rgba(40, 24, 8, 0.03),
    8px 20px 32px rgba(60, 40, 20, 0.12);
}

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

.card__tape {
  top: -10px;
  left: 22px;
  width: 62px;
  height: 20px;
  transform: rotate(-6deg);
}

.card:nth-child(3) .card__tape {
  left: auto;
  right: 28px;
  width: 56px;
  transform: rotate(-8deg);
}

.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);
}

.sticker-math {
  position: absolute;
  right: -16px;
  bottom: -22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 30% 28%,
      rgba(255, 255, 255, 0.35),
      transparent 42%
    ),
    linear-gradient(160deg, var(--mint-start), var(--mint-end));
  transform: rotate(9deg);
  box-shadow:
    1px 2px 0 rgba(20, 60, 60, 0.12),
    3px 8px 16px rgba(40, 24, 8, 0.12);
}

/* ---------------- 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;
    gap: 28px;
  }

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

  .card:nth-child(2) {
    transform: rotate(1.8deg);
  }

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

  .sticker-math {
    right: 8px;
    bottom: -18px;
  }
}

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

  .waitlist__row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    transform: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: rotate(2deg) translateY(-3px);
  }

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

  .btn:disabled:hover,
  .btn:disabled:focus-visible {
    transform: none;
  }

  .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;
  }
}
