/* Putup's site. Colors and type are the app's (Theme.swift): brandGreen,
   forestGreen, black text with gray for the softer phrase, and SF Pro Heavy
   for anything loud. White, like the onboarding. */

:root {
  --brand-green: #2bbf42;   /* Color.brandGreen (0.17, 0.75, 0.26) */
  --forest-green: #1f6b2e;  /* Color.forestGreen (0.12, 0.42, 0.18) */
  --text: #000;
  --text-soft: rgba(0, 0, 0, 0.5);
  --text-quiet: rgba(0, 0, 0, 0.6);
  --surface: #f4f4f2;
  --line: rgba(0, 0, 0, 0.08);
  --page: #fff;
  --icon: clamp(84px, 24vw, 116px);
  --column: 30rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Home ---------- */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4.4vh, 48px);
  padding: 64px 16px 24px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--icon) * 0.2);
  margin: 0;
}

.logo-stage {
  position: relative;
  flex: none;
  width: var(--icon);
  height: var(--icon);
}

/* The App Store's rounded square around the icon art. */
.logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22.37%;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.logo img,
.logo-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo-body,
.logo-forearm {
  will-change: transform;
}

.wordmark {
  margin: 0;
  line-height: 0;
}

.wordmark img {
  display: block;
  height: calc(var(--icon) * 0.5);
  width: auto;
}

/* Styled like the workout screen's "+1": SF Pro Heavy in brand green. */
.pop {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  font-size: calc(var(--icon) * 0.25);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: var(--brand-green);
}

.pop span {
  display: inline-block;
}

.pitch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: var(--column);
}

.pitch-title {
  margin: 0;
  font-size: clamp(20px, 5.4vw, 24px);
  line-height: 1.25;
  font-weight: 800;
}

/* The Start Challenge screen's steps: a number in a green circle, the
   circles joined by a green line that fades on the way down. */
.steps {
  --dot: 30px;
  --step-gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.steps li {
  position: relative;
  min-height: var(--dot);
  padding-left: calc(var(--dot) + 14px);
  font-size: clamp(18px, 4.8vw, 20px);
  line-height: var(--dot);
  font-weight: 700;
  counter-increment: step;
}

.steps li + li {
  margin-top: var(--step-gap);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--brand-green);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  line-height: var(--dot);
  text-align: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--dot);
  left: calc(var(--dot) / 2 - 1.5px);
  width: 3px;
  height: calc(100% - var(--dot) + var(--step-gap));
  background: linear-gradient(var(--brand-green), rgba(43, 191, 66, 0.2));
}

.get {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr {
  position: relative;
  display: block;
  width: clamp(184px, 52vw, 224px);
  aspect-ratio: 1;
  padding: 7%;
  border-radius: 15%;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.15s ease-out;
}

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

.qr-code {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21%;
  height: 21%;
  transform: translate(-50%, -50%);
  border-radius: 22.37%;
  box-shadow: 0 0 0 3px var(--surface);
}

.get-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-quiet);
}

.hint-touch {
  display: none;
}

/* The closing line: same two tones as the pitch, louder. */
.dare {
  max-width: var(--column);
  margin: 0;
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1.25;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.dare strong {
  display: block;
  font-weight: 800;
  color: var(--text);
}

@media (hover: none) and (pointer: coarse) {
  .hint-touch {
    display: inline;
  }
  .hint-scan {
    display: none;
  }
}

/* ---------- Footer ---------- */

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  max-width: var(--column);
  margin: 0 auto;
  padding: 20px 16px max(24px, env(safe-area-inset-bottom));
  font-size: 14px;
  font-weight: 500;
  color: var(--text-quiet);
}

.legal a {
  text-decoration: none;
}

.legal a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .dot {
  color: rgba(0, 0, 0, 0.25);
}

/* The email wraps to its own line on phones; don't leave a dot hanging. */
@media (max-width: 440px) {
  .legal .dot:last-of-type {
    display: none;
  }
}

/* ---------- Terms and privacy: the app's TermsView, on the web ---------- */

.doc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 0;
  text-decoration: none;
}

.doc-top img:first-child {
  width: 40px;
  height: 40px;
  border-radius: 22.37%;
}

.doc-top img:last-child {
  height: 24px;
  width: auto;
}

.doc {
  flex: 1;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding: 8px 16px 48px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.75);
}

.doc h1 {
  margin: 28px 0 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.doc h1 + .lead,
.doc .lead {
  font-weight: 600;
}

.doc h2 {
  margin: 30px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.doc h3 {
  margin: 22px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.doc p,
.doc ul {
  margin: 0 0 10px;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--forest-green);
  font-weight: 600;
  text-underline-offset: 3px;
}

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

.doc .fine {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
}

.doc .part {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 14px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.doc th,
.doc td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 700;
  color: var(--text);
}

@media (min-width: 720px) {
  .doc-top {
    padding-top: 36px;
  }
}
