/* Fitnapse website. Source of truth: brand-02-website (beats 1 to 3) and brand-02-website-mobile
   on the Design canvas. Light only, like the boards. */

:root {
  color-scheme: light;
  --bg: #fbfcfe;
  --glow: #e8effc;
  --ink: #0f1115;
  --mark: #111111;
  --text-2: #3c4150;
  --muted: #5b6170;
  --blue: #2f6fed;
  --blue-text: #1d4fc4;
  --line: #e3e7ef;
  --sans: -apple-system, "SF Pro Text", system-ui, sans-serif;
  --display: -apple-system, "SF Pro Display", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg) radial-gradient(60% 400px at 50% 0%, var(--glow) 0%, var(--bg) 100%)
    no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

main {
  flex: 1;
}

a {
  color: var(--blue-text);
}

/* Lockup: the mark beside the name, no nav */

.site-header {
  position: relative;
  z-index: 6;
  padding: 28px 80px 0;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 30px;
}

.mark {
  width: 40px;
  height: 40px;
  margin: -5px;
  color: var(--mark);
  flex-shrink: 0;
}

/* Hero */

.hero {
  margin-top: 69px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 72px;
  line-height: 78px;
  font-weight: 700;
  letter-spacing: -2.4px;
}

.hero h1 span {
  color: var(--blue);
  white-space: nowrap;
}

/* A statement, not a button: no link, no hover. */
.soon {
  margin: 0;
  height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.soon svg {
  width: 20px;
  height: 20px;
}

/* The phone: the app's Today screen in dark mode */

.stage {
  position: relative;
  width: 300px;
  height: 620px;
  margin: 98px auto 0;
}

.phone {
  width: 300px;
  height: 620px;
  border-radius: 48px;
  background: #000;
  border: 10px solid #1c1c1e;
  padding: 54px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 40px 80px rgba(20, 40, 100, 0.22);
  color: #e5e5ea;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  position: relative;
}

.week {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8e8e93;
}

.week div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.week b {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.week .today b {
  background: #fff;
  color: #000;
}

.screen {
  margin-top: 10px;
  width: 240px;
  height: 420px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Drawn at the app's 358 pt card width, scaled into the phone. */
.cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 358px;
  transform: scale(0.6704);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  font-size: 17px;
  line-height: 24px;
}

.card {
  height: 96px;
  background: #1c1c1e;
  border-radius: 22px;
  padding: 12px 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.name {
  flex: 1;
  font-weight: 600;
}

.key {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.key small {
  font-size: inherit;
  font-weight: 400;
  color: #8e8e93;
}

.plus {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: rgba(107, 155, 245, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-bottom {
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 4px;
}

.card s {
  text-decoration: none;
  color: #8e8e93;
}

.card em {
  font-style: normal;
  color: #e5e5ea;
}

.card em.b {
  font-weight: 600;
}

.caption {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 18px;
  color: #8e8e93;
  margin-bottom: 6px;
  white-space: nowrap;
}

.caption.small {
  font-size: 12px;
}

.mood .caption {
  margin-bottom: 5px;
}

.bar {
  height: 6px;
  border-radius: 3px;
  background: #2c2c2e;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.metrics {
  display: flex;
  gap: 12px;
}

.metrics > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.m {
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.m.cup {
  display: flex;
  align-items: center;
  gap: 3px;
}

.trend {
  font-size: 12px;
  line-height: 6px;
  color: #30d158;
  font-weight: 600;
  white-space: nowrap;
}

.segments {
  display: flex;
  gap: 4px;
}

.segments i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #2c2c2e;
}

.segments i.on {
  background: #ff9f0a;
}

.segments.mint {
  gap: 3px;
}

.segments.mint i.on {
  background: #63e6be;
}

/* The ask bar: not an input. site.js types into it. */

.ask {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 46px;
  border-radius: 23px;
  background: #1c1c1e;
  border: 0.5px solid #3a3a3c;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-size: 15px;
}

.ask-text {
  flex: 1;
  min-width: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #fff;
  margin-left: 3px;
  vertical-align: text-bottom;
  visibility: hidden;
}

.ask.typing .caret {
  visibility: visible;
  animation: blink 1s steps(1) infinite;
}

.ask.typing.busy .caret {
  animation: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.placeholder {
  position: absolute;
  left: 0;
  top: 0;
  color: #8e8e93;
  visibility: hidden;
}

.ask.empty .placeholder,
html.demo .ask:not(.live) .placeholder {
  visibility: visible;
}

html.demo .ask:not(.live) .typed {
  visibility: hidden;
}

.ask.empty .caret {
  margin-left: 0;
}

/* Liquid glass cards that pop over the phone's edge: a thin tint, a short
   blur that keeps the cards beneath readable as colour, and a lit rim. */

.frost {
  position: absolute;
  z-index: 5;
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.4)
  );
  /* Lifts the dark phone beneath to a light, softly coloured blur, so the
     glass reads clear rather than gray. */
  -webkit-backdrop-filter: blur(14px) contrast(0.38) brightness(1.95) saturate(260%);
  backdrop-filter: blur(14px) contrast(0.38) brightness(1.95) saturate(260%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -1px 1px rgba(255, 255, 255, 0.7),
    inset 0 0 20px rgba(255, 255, 255, 0.55),
    inset 0 0 3px rgba(255, 255, 255, 0.85),
    0 20px 50px rgba(20, 40, 100, 0.2),
    0 2px 6px rgba(20, 40, 100, 0.08);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1.2, 0.36, 1),
    visibility 0s linear 0.45s;
}

.frost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0.85)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
}

/* .is-shown is the still (no JS or Reduce Motion); .on is the demo's. */
html:not(.demo) .frost.is-shown,
.frost.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1.2, 0.36, 1),
    visibility 0s;
}

.frost small {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: #4b5262;
}

.frost strong {
  display: block;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  white-space: nowrap;
}

/* Beat 1, Log: over the left edge */
.toast {
  left: -198px;
  top: 230px;
  width: 264px;
  border-radius: 20px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.toast small {
  white-space: nowrap;
}

.check {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Beat 2, Ask: over the right edge */
.answer {
  /* Keeps 16px from the window's right edge when the phone is centred and
     the window is narrow; wide windows get the board's 222px. */
  left: min(222px, calc(50vw + 134px - 300px));
  top: 160px;
  width: 300px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(16px) scale(0.98);
}

.answer p {
  margin: 0;
  font-size: 15px;
  line-height: 21px;
}

/* Beat 3, Plan: over the right edge */
.plan {
  left: min(218px, calc(50vw + 134px - 360px));
  top: 180px;
  width: 360px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.plan-head div {
  flex: 1;
  min-width: 0;
}

/* Wide enough for the subtitle on one line beside the date. */
.plan-head small {
  white-space: nowrap;
}

.tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff1dd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.starts {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-text);
  white-space: nowrap;
}

.weeks {
  display: flex;
  gap: 6px;
}

.weeks i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e6eefe;
}

.weeks i.on {
  background: var(--blue);
}

.beats {
  margin: 40px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  padding: 36px 80px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .copy {
  margin-right: auto;
}

/* The landing page scrolls past the phone's foot before its footer. */
.landing .site-footer {
  padding-top: 120px;
}

.site-footer nav {
  display: flex;
  gap: 28px;
}

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

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

/* Medium widths: tighter margins, smaller headline */
@media (max-width: 900px) {
  .site-header,
  .site-footer {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero h1 {
    font-size: 60px;
    line-height: 66px;
    letter-spacing: -2px;
  }
}

/* Mobile: brand-02-website-mobile */
@media (max-width: 600px) {
  body {
    background-image: radial-gradient(90% 370px at 50% 0%, var(--glow) 0%, var(--bg) 100%);
  }

  .site-header {
    padding: 20px 20px 0;
  }

  .lockup {
    gap: 6px;
    font-size: 19px;
    line-height: 24px;
  }

  .mark {
    width: 32px;
    height: 32px;
    margin: -4px;
  }

  .hero {
    margin-top: 32px;
    gap: 20px;
  }

  /* As large as fits "food and fitness AI." on one line inside the 24px
     gutters (about 8.3 times the font size wide), up to the old 44px. */
  .hero h1 {
    font-size: min(44px, calc((100vw - 48px) / 8.4));
    line-height: 1.1;
    letter-spacing: -0.034em;
  }

  .soon {
    height: 46px;
    padding: 0 20px;
    border-radius: 23px;
    font-size: 15px;
    gap: 8px;
  }

  .soon svg {
    width: 18px;
    height: 18px;
  }

  /* The stage spans the screen so cards can hug its edges; the phone stays centered. */
  .stage {
    width: 100%;
    max-width: 390px;
    margin-top: 54px;
  }

  .phone {
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(20, 40, 100, 0.2);
  }

  .frost {
    border-radius: 18px;
  }

  .frost strong {
    font-size: 13px;
    line-height: 18px;
  }

  .frost small {
    font-size: 12px;
    line-height: 16px;
  }

  .toast {
    left: 14px;
    top: 400px;
    width: 240px;
    padding: 11px 14px;
    gap: 10px;
  }

  .check {
    width: 24px;
    height: 24px;
    border-radius: 12px;
  }

  .answer,
  .plan {
    left: auto;
    right: 14px;
    top: 330px;
    width: 240px;
    padding: 12px 14px;
    gap: 6px;
  }

  .answer p {
    font-size: 13px;
    line-height: 18px;
  }

  .answer svg {
    height: 36px;
  }

  .tile {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .plan-head {
    gap: 9px;
  }

  /* Too narrow for the date beside the title: the smaller card drops it. */
  .plan {
    width: 252px;
  }

  .starts {
    display: none;
  }

  .beats {
    margin-top: 30px;
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 32px 24px;
    font-size: 13px;
  }

  .landing .site-footer {
    padding-top: 179px;
  }

  .site-footer .copy {
    margin-right: 0;
  }

  .site-footer nav {
    gap: 24px;
  }
}

/* Text pages: privacy, terms, support */

.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 80px 80px;
}

.doc h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.doc .updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

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

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--ink);
}

.contact {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 40, 100, 0.12);
}

.contact p {
  margin: 0;
}

.contact a {
  font-size: 20px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .doc {
    padding: 40px 20px 64px;
  }

  .doc h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .frost,
  .bar i {
    transition: none;
  }
}
