/* The public page about Clapiletics: the app's dark slate palette and condensed display type (WorkoutStyle.swift). */
:root {
  color-scheme: dark;
  --bg: #090c0e;
  --bg-top: #19242c;
  --surface: #14191d;
  --raised: #1f262b;
  --stroke: rgba(255, 255, 255, .07);
  --text: #f3f6f8;
  --text-2: #8f9ca6;
  --text-3: #616e78;
  --blue: #33a1ff;
  --blue-soft: rgba(51, 161, 255, .14);
  --green: #54e078;
  --amber: #ffbd47;
  --food: #ff8c52;
  --sky: #8fb5db;
  --red: #ff615c;
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(70% 520px at 78% 0, rgba(51, 161, 255, .16), transparent), linear-gradient(180deg, var(--bg-top) 0, var(--bg) 720px) var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
/* Titles in the app are black, condensed and upper case. */
h1, h2 { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Roboto Condensed", "Arial Narrow", sans-serif; font-weight: 900; font-stretch: condensed; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }

.top, main, .bottom { width: min(1080px, 100% - 32px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo img { border-radius: 9px; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top nav a.nav-join { color: #04121f; background: var(--blue); padding: 6px 14px; border-radius: 999px; margin: -6px 0; }
.top nav a.nav-join:hover { color: #04121f; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 14px; }
.eyebrow.blue { color: var(--blue); }
.eyebrow.green { color: var(--green); }
.eyebrow.amber { color: var(--amber); }
.eyebrow.food { color: var(--food); }
.eyebrow.sky { color: var(--sky); }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; padding: 40px 0 80px; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); margin-bottom: 24px; }
.hero h1 span { color: var(--blue); }
.lead { font-size: 19px; color: var(--text-2); max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill { border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 650; background: var(--raised); color: var(--text-2); }
.pill.blue { background: var(--blue); color: #04121f; }

.phone { margin: 0; justify-self: center; width: min(300px, 100%); border-radius: 44px; padding: 8px; background: #000; border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow); }
.phone img { border-radius: 36px; width: 100%; }
.hero-phone { width: min(330px, 100%); }

.features { display: grid; gap: 28px; padding-bottom: 28px; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 32px; background: var(--surface); border: 1px solid var(--stroke); }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(34px, 4.4vw, 50px); }
.feature-text { display: grid; gap: 14px; align-content: center; }
.feature-text h2 { margin-bottom: 4px; }
.feature-text .eyebrow { margin-bottom: 0; }
.feature p:not(.eyebrow) { color: var(--text-2); }
.feature p strong { color: var(--text); }
.feature .note { font-size: 14px; color: var(--text-3); padding: 12px 14px; border-radius: 14px; background: var(--raised); }
.feature .phone { width: min(260px, 100%); box-shadow: none; }
.feature.wide { grid-template-columns: 1fr 1.1fr; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { padding: 18px 20px; border-radius: 20px; background: var(--raised); color: var(--text-2); font-size: 16px; }
.points strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.phones .phone { width: 100%; }

.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 72px; }
.tile { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--stroke); }
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p { color: var(--text-2); font-size: 15px; }
.tile strong { color: var(--text); }

/* The waiting list form: an email field and a button on one line, a hidden field for bots, and the answer below. */
.join { margin-top: 30px; max-width: 34em; }
.join-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .12); }
.join-row:focus-within { border-color: var(--blue); }
.join input, .welcome-form input { font: inherit; color: var(--text); background: transparent; border: 0; outline: 0; min-width: 0; }
.join input { flex: 1; padding: 10px 14px; }
.join input::placeholder { color: var(--text-3); }
.join button, .welcome-form button { font: inherit; font-weight: 700; color: #04121f; background: var(--blue); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; white-space: nowrap; }
.join button:hover, .welcome-form button:hover { background: #5cb4ff; }
.join button:disabled, .welcome-form button:disabled { opacity: .6; cursor: default; }
.join button:focus-visible, .welcome-form button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-status { margin-top: 12px; font-size: 15px; font-weight: 600; }
.join-status:empty { display: none; }
.join-status[data-tone=ok] { color: var(--green); }
.join-status[data-tone=error] { color: var(--red); }
.join-note { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.join-note a { color: var(--text-2); }

.cta { display: grid; justify-items: center; text-align: center; margin-bottom: 72px; padding: 64px 32px; border-radius: 32px; background: radial-gradient(80% 120% at 50% 0, rgba(51, 161, 255, .22), transparent), var(--surface); border: 1px solid var(--stroke); }
.cta h2 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 18px; }
.cta .eyebrow { margin-bottom: 14px; }
.cta .join { width: min(100%, 34em); text-align: left; }
.cta .join-status, .cta .join-note { text-align: center; }

.welcome { display: grid; place-items: center; min-height: calc(100vh - 220px); padding: 24px 0 72px; }
.welcome-card { width: min(100%, 460px); padding: 40px; border-radius: 32px; background: var(--surface); border: 1px solid var(--stroke); }
.welcome-card h1 { font-size: clamp(38px, 8vw, 52px); margin-bottom: 14px; }
.welcome-card .lead { font-size: 17px; }
.welcome-form { display: grid; gap: 14px; margin-top: 28px; }
.welcome-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; color: var(--text-2); }
.welcome-form input { padding: 13px 16px; border-radius: 14px; background: var(--raised); border: 1px solid rgba(255, 255, 255, .1); }
.welcome-form input:focus { border-color: var(--blue); }
.welcome-form input[readonly] { color: var(--text-2); }
.welcome-form .join-note { margin: -6px 0 0; }
.welcome-form button { margin-top: 6px; padding: 14px 22px; }
.welcome-app { display: inline-block; margin-top: 22px; color: #04121f; background: var(--blue); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; }
.welcome-app[hidden], .welcome-form[hidden] { display: none; }

.bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 28px 0 48px; border-top: 1px solid var(--stroke); color: var(--text-3); font-size: 15px; }
.bottom a { color: var(--text-2); text-decoration: none; }
.bottom a:hover { color: var(--text); }

@media (max-width: 940px) {
  .more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero, .feature, .feature.wide { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 24px 0 56px; }
  .feature { padding: 28px 22px; border-radius: 26px; }
  .feature.flip .feature-text { order: 0; }
  .top nav { gap: 14px; }
}
@media (max-width: 480px) {
  .more { grid-template-columns: 1fr; }
  .join-row { flex-direction: column; border-radius: 22px; }
  .join input { padding: 12px 14px; }
  .cta { padding: 44px 20px; }
  .welcome-card { padding: 28px 22px; }
  .top nav a[href="#features"] { display: none; }
  .phones { gap: 10px; }
  .phone { border-radius: 32px; padding: 6px; }
  .phone img { border-radius: 27px; }
}
