/* Unclog's homepage, from Claude Design's "Unclog" (the Blackout direction), and its page for a missing address. */

:root {
  color-scheme: dark;
  --bg: #0c0915;
  --text: #f4f0ff;
  --text-muted: #a79fbe;
  --text-soft: #d9d2ea;
  /* 4.5:1 on the background, enough for the small capitals of each section's name. */
  --accent: #7a5cff;
  --mint: #7ee0b4;
  --panel: #1a1430;
  --line: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
ol,
h1,
h2,
h3 {
  margin: 0;
}

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

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

/* The design sizes text and space by the page's width, in cqw. */
.page {
  container-type: inline-size;
  min-height: 100vh;
  overflow-x: clip;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4cqw, 56px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Buttons and labels */

.pill {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
}

a.pill:hover,
a.button:hover {
  background: var(--accent);
  color: #fff;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.body {
  max-width: 460px;
  font-size: clamp(1rem, 1.3cqw, 1.125rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* The bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(16px, 2cqw, 24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 22.5%;
}

/* The first screen */

.hero {
  padding-top: clamp(32px, 5cqw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 5cqw, 64px);
  align-items: center;
}

h1 {
  font-size: clamp(3.6rem, 9.5cqw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-wrap: balance;
}

.lead {
  margin-top: clamp(20px, 2.5cqw, 32px);
  max-width: 520px;
  font-size: clamp(1.0625rem, 1.5cqw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.cta .button {
  flex: 1 1 240px;
  max-width: 360px;
}

.note {
  font-size: 13px;
  color: var(--text-muted);
}

/* An App Store screenshot in a thin bezel, with an iPhone's rounded corners: its radius is 12% of the screen's width,
   and so 5.5% of its height. */
.phone {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13% / 6%;
  background: var(--panel);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 12% / 5.5%;
}

.hero-phone {
  width: min(100%, 340px);
  margin: 0 auto;
  box-shadow: 0 0 140px -20px rgba(122, 92, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Sections */

.section {
  padding-top: clamp(72px, 9cqw, 140px);
}

.steps {
  margin-top: clamp(24px, 3cqw, 40px);
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(36px, 4cqw, 48px) 40px;
}

/* Each step's screen sits under its words, at the bottom of the step, so the screens line up across a row. */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.step-phone {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: center;
  width: min(100%, 270px);
  margin-top: 20px;
}

.step-number {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--accent);
}

.step h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.step p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.step .shrink {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

s {
  color: var(--text-muted);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.shrink s {
  text-decoration-thickness: 3px;
}

.shrink .after {
  color: var(--mint);
}

.privacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 64px;
  align-items: end;
}

.zeros {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  font-size: clamp(2.6rem, 6cqw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.zeros li {
  text-wrap: balance;
}

.zeros span {
  color: var(--accent);
}

.free {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2cqw, 24px);
  flex-wrap: wrap;
}

.free-word {
  font-size: clamp(7rem, 20cqw, 15rem);
  font-weight: 900;
  font-stretch: 115%;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.free-note {
  font-size: clamp(2.1rem, 5cqw, 4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--mint);
  letter-spacing: -0.02em;
}

.price-grid {
  margin-top: clamp(28px, 4cqw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px 64px;
  align-items: start;
}

.prices {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(1.375rem, 2cqw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.questions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 32px 64px;
}

.questions h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.questions p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* The end of the page */

.closing {
  padding-top: clamp(88px, 11cqw, 180px);
  padding-bottom: clamp(56px, 7cqw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.closing-icon {
  width: 84px;
  height: 84px;
  border-radius: 22.5%;
  box-shadow: 0 24px 60px -16px rgba(122, 92, 255, 0.7);
}

.closing h2,
.missing h1 {
  max-width: 800px;
  font-size: clamp(2.75rem, 6cqw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

/* Each sentence starts its own line. */
.closing h2 span {
  display: block;
}

.closing .button {
  width: min(100%, 360px);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
}

.footer ul {
  padding: 0;
  list-style: none;
  display: flex;
  gap: 16px;
}

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

/* 404.html */

.missing {
  padding-top: clamp(48px, 8cqw, 120px);
  padding-bottom: clamp(56px, 7cqw, 110px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.missing .lead {
  margin-top: 0;
}
